mulmoclaude 2.7.0 → 2.8.0
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/client/assets/Graph-ChAxkn9o.js +1 -0
- package/client/assets/dist-Bij44LdC.js +2 -0
- package/client/assets/echarts-GV3U9sVf.js +1 -0
- package/client/assets/echarts-gl-BXx4On0Y.js +4282 -0
- package/client/assets/echarts-wordcloud-_9uQUAfp.js +1 -0
- package/client/assets/emscripten-module-Q67P5WYC-BU3Hlttz.js +2160 -0
- package/client/assets/ffi-4V2b7xu3.js +1 -0
- package/client/assets/{index-lkpgbKtk.js → index-D6xzCZhP.js} +600 -589
- package/client/assets/index-DzMsXDnj.css +2 -0
- package/client/assets/{install-wxcddUsO.js → install-C1moNcrn.js} +1 -1
- package/client/assets/{marp-DcTywifN.js → marp-Du5Sym5b.js} +1 -1
- package/client/assets/module-ES6BEMUI-CDTIpMiA.js +6 -0
- package/client/index.html +4 -3
- package/package.json +5 -4
- package/server/api/routes/plugins.ts +9 -59
- package/server/build/mcp-server.mjs +609 -608
- package/server/index.ts +1 -0
- package/server/plugins/confined-file-ops.ts +56 -0
- package/server/plugins/spreadsheet-builtin.ts +26 -0
- package/server/plugins/spreadsheet-save-outcome.ts +7 -0
- package/server/utils/files/store-resolvers.ts +1 -1
- package/src/lang/de.ts +0 -20
- package/src/lang/en.ts +0 -20
- package/src/lang/es.ts +0 -20
- package/src/lang/fr.ts +0 -20
- package/src/lang/ja.ts +0 -20
- package/src/lang/ko.ts +0 -20
- package/src/lang/pt-BR.ts +0 -20
- package/src/lang/zh.ts +0 -20
- package/src/plugins/spreadsheet/definition.ts +9 -127
- package/src/plugins/spreadsheet/index.ts +7 -4
- package/src/plugins/spreadsheet/meta.ts +2 -4
- package/client/assets/echarts-gl-Cq76Z6DA.js +0 -4282
- package/client/assets/index-Cz7JLE0k.css +0 -2
- package/server/utils/files/spreadsheet-store.ts +0 -26
- package/src/plugins/spreadsheet/Preview.vue +0 -31
- package/src/plugins/spreadsheet/View.vue +0 -1007
- package/src/plugins/spreadsheet/cellHighlights.ts +0 -78
- package/src/plugins/spreadsheet/engine/calculator.ts +0 -427
- package/src/plugins/spreadsheet/engine/cellBuilder.ts +0 -89
- package/src/plugins/spreadsheet/engine/cellEmpty.ts +0 -26
- package/src/plugins/spreadsheet/engine/cellFormatting.ts +0 -59
- package/src/plugins/spreadsheet/engine/coerce-boolean.ts +0 -26
- package/src/plugins/spreadsheet/engine/condition.ts +0 -182
- package/src/plugins/spreadsheet/engine/date-locale.ts +0 -47
- package/src/plugins/spreadsheet/engine/date-parser.ts +0 -234
- package/src/plugins/spreadsheet/engine/date-utils.ts +0 -73
- package/src/plugins/spreadsheet/engine/datedif.ts +0 -93
- package/src/plugins/spreadsheet/engine/engine.ts +0 -177
- package/src/plugins/spreadsheet/engine/evaluator.ts +0 -494
- package/src/plugins/spreadsheet/engine/financial-math.ts +0 -114
- package/src/plugins/spreadsheet/engine/formatter.ts +0 -158
- package/src/plugins/spreadsheet/engine/formulaError.ts +0 -67
- package/src/plugins/spreadsheet/engine/formulaRefs.ts +0 -202
- package/src/plugins/spreadsheet/engine/functions/date.ts +0 -212
- package/src/plugins/spreadsheet/engine/functions/financial.ts +0 -244
- package/src/plugins/spreadsheet/engine/functions/index.ts +0 -16
- package/src/plugins/spreadsheet/engine/functions/logical.ts +0 -221
- package/src/plugins/spreadsheet/engine/functions/lookup-math.ts +0 -28
- package/src/plugins/spreadsheet/engine/functions/lookup.ts +0 -257
- package/src/plugins/spreadsheet/engine/functions/mathematical.ts +0 -283
- package/src/plugins/spreadsheet/engine/functions/statistical-math.ts +0 -91
- package/src/plugins/spreadsheet/engine/functions/statistical.ts +0 -290
- package/src/plugins/spreadsheet/engine/functions/text.ts +0 -398
- package/src/plugins/spreadsheet/engine/index.ts +0 -34
- package/src/plugins/spreadsheet/engine/jsonCellLocator.ts +0 -111
- package/src/plugins/spreadsheet/engine/math-ops.ts +0 -98
- package/src/plugins/spreadsheet/engine/numericCoercion.ts +0 -61
- package/src/plugins/spreadsheet/engine/parser.ts +0 -40
- package/src/plugins/spreadsheet/engine/registry.ts +0 -201
- package/src/plugins/spreadsheet/engine/responseDecoder.ts +0 -68
- package/src/plugins/spreadsheet/engine/spreadsheet-errors.ts +0 -82
- package/src/plugins/spreadsheet/engine/textFormat.ts +0 -108
- package/src/plugins/spreadsheet/engine/translateFormula.ts +0 -69
- package/src/plugins/spreadsheet/engine/types.ts +0 -81
- package/src/plugins/spreadsheet/keyboardNav.ts +0 -38
|
@@ -12,4 +12,4 @@ yyyy`);var r=ls(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r
|
|
|
12
12
|
`,`
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
`];function bb(e,t){return t.type=e,t}function xb(e){return e.type===`section`}function Sb(e){return xb(e)?wb:Tb}function Cb(e){if(xb(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=Cb(e);n>=t&&(t=n+ +(r&&(!n||xb(e)&&!e.noHeader)))}),t}return 0}function wb(e,t,n,r){var i=t.noHeader,a=Db(Cb(t)),o=[],s=t.blocks||[];Ce(!s||V(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Fe(l,c)){var u=new zy(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}F(s,function(n,i){var s=t.valueFormatter,c=Sb(n)(s?M(M({},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):Ob(r,o.join(``),i?n:a.html);if(i)return d;var f=qg(t.header,`ordinal`,e.useUTC),p=_b(r,e.renderMode).nameStyle,m=gb(r);return e.renderMode===`richText`?jb(e,f,p)+a.richText+d:Ob(r,`<div style="`+p+`;`+m+`;">`+Ot(f)+`</div>`+d,n)}function Tb(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=V(e)?e:[e],I(e,function(e,t){return qg(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||P_.color.secondary,i),f=a?``:qg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=_b(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:jb(e,f,v))+(o?``:Mb(e,m,h,g,y)):Ob(r,(s?``:d)+(a?``:kb(f,!s,v))+(o?``:Ab(m,h,g,y)),n)}}function Eb(e,t,n,r,i,a){if(e)return Sb(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Db(e){return{html:vb[e],richText:yb[e]}}function Ob(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=gb(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function kb(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Ot(e)+`</span>`}function Ab(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return Ot(e)}).join(` `)+`</span>`}function jb(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Mb(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(V(t)?t.join(` `):t,a)}function Nb(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return t_(n)}function Pb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Fb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_s()}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=Qg({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?F(t,function(e){return M(n,e)}):M(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Ib(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=V(s),l=Nb(t,n),u,d,f,p;if(o>1||c&&!o){var m=Lb(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=Dy(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Gs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return bb(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[bb(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!we(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Lb(e,t,n,r,i){var a=t.getData(),o=se(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?F(r,function(e){u(Dy(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(bb(`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 Rb=Qs();function zb(e,t){return e.getName(t)||e.getId(t)}var Bb=`__universalTransitionEnabled`,Vb=function(e){n(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=jy({count:Wb,reset:Gb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Rb(this).sourceManager=new db(this)).prepareSource();var r=this.getInitialData(e,n);qb(r,this),this.dataTask.context.data=r,Rb(this).dataBeforeProcessed=r,Hb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=D_(this),r=n?k_(e):{},i=this.subType;M_.hasClass(i)&&(i+=`Series`),j(e,t.getTheme().get(this.subType)),j(e,this.getDefaultOption()),js(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&O_(e,r,n)},t.prototype.mergeOption=function(e,t){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=D_(this);n&&O_(this.option,e,n);var r=Rb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);qb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Rb(this).dataBeforeProcessed=i,Hb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!pe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&js(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=Yb(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Rb(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=Yb(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Rb(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Rb(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rb(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Ib({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(i.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=rv.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={};else for(var a=0;a<e.length;a++){var o=e[a],s=zb(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=z(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[zb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=zb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=zb(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 M_.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}(M_);ae(Vb,ky),ae(Vb,rv),zc(Vb,M_);function Hb(e){var t=e.name;Gs(e)||(e.name=Ub(e)||t)}function Ub(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return F(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Wb(e){return e.model.getRawData().count()}function Gb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Kb}function Kb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qb(e,t){F(Me(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,le(Jb,t))})}function Jb(e,t){var n=Yb(e);return n&&n.setOutputEnd((t||this).count()),t}function Yb(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 Xb=function(){function e(){this.group=new po,this.uid=Bh(`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}();Lc(Xb),Wc(Xb);function Zb(){var e=Qs();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 Qb=Qs(),$b=Zb(),ex=function(){function e(){this.group=new po,this.uid=Bh(`viewChart`),this.renderTask=jy({plan:rx,reset:ix}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Zm(this.group,e)},e.markUpdateMethod=function(e,t){Qb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function tx(e,t,n){e&&jf(e)&&(t===`emphasis`?of:sf)(e,n)}function nx(e,t,n){var r=Zs(e,t),i=t&&t.highlightKey!=null?Nf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){tx(e,n,i)}):F(As(r),function(t){tx(e.getItemGraphicEl(t),n,i)})}Lc(ex,[`dispose`]),Wc(ex);function rx(e){return $b(e.model)}function ix(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Qb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),ax[c]}var ax={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)}}},ox=`\0__throttleOriginMethod`,sx=`\0__throttleRate`,cx=`\0__throttleType`;function lx(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function ux(e,t,n,r){var i=e[t];if(i){var a=i[ox]||i,o=i[cx];if(i[sx]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=lx(a,n,r===`debounce`),i[ox]=a,i[cx]=r,i[sx]=n}return i}}function dx(e,t){var n=e[t];n&&n[ox]&&(n.clear&&n.clear(),e[t]=n[ox])}var fx=Qs(),px={itemStyle:Gc(Fh,!0),lineStyle:Gc(Mh,!0)},mx={lineStyle:`stroke`,itemStyle:`fill`};function hx(e,t){return e.visualStyleMapper||px[t]||(console.warn(`Unknown style type '`+t+`'.`),px.itemStyle)}function gx(e,t){return e.visualDrawType||mx[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var _x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=hx(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=gx(e,r),c=a[s],l=H(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`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(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=M({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},vx=new Rh,yx={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=hx(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){vx.option=n[r];var o=i(vx);M(e.ensureUniqueItemVisual(t,`style`),o),vx.option.decal&&(e.setItemVisual(t,`decal`,vx.option.decal),vx.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},bx={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();fx(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=fx(e).scope,a=gx(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},xx=Math.PI;function Sx(e,t){t||={},N(t,{text:`loading`,textColor:P_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:P_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new po,r=new qu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Qu({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 qu({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 Up({shape:{startAngle:-xx/2,endAngle:-xx/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:xx*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:xx*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 Cx=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Oc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Ce(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;F(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=K(),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)||jy({plan:kx,reset:Ax,count:Nx}));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||jy({reset:Tx});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Ce(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):F(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,jy({reset:Ex,onDirty:Ox})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:Px(e)}),e.uid=Bh(`stageHandler`),t&&(e.visualType=t),e},e}();function Tx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ex(e){return e.dirtyOnOverallProgress&&Dx}function Dx(){this.agent.dirty(),this.getDownstream().dirty()}function Ox(){this.agent&&this.agent.dirty()}function kx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ax(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=As(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return Mx(t)}):jx}var jx=Mx(0);function Mx(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 Nx(e){return e.data.count()}function Px(e){Lx=null;try{e(Fx,Ix)}catch{}return Lx}var Fx={},Ix={},Lx;Rx(Fx,pv),Rx(Ix,Ed),Fx.eachSeriesByType=Fx.eachRawSeriesByType=function(e){Lx=e},Fx.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Lx=e.subType)};function Rx(e,t){for(var n in t.prototype)e[n]=Ie}var Q=P_.darkColor,zx=Q.background,Bx=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},Vx={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},Hx={darkMode:!0,color:Q.theme,backgroundColor:zx,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:zx,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:Vx,y:Vx,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:Bx(),logAxis:Bx(),valueAxis:Bx(),categoryAxis:Bx(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=Bx();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};Hx.categoryAxis.splitLine.show=!1;var Ux=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=Pc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};F(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}(),Wx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Gx=Wx.concat([`symbolKeepAspect`]),Kx={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<Wx.length;o++){var s=Wx[o],c=e.get(s);H(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(M({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=z(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}}},qx={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<Gx.length;r++){var i=Gx[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Jx(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function Yx(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function Xx(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)}}function Zx(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}F([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=M({},t),i.dispatchAction(M(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Qx(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Zs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:M({},r)})}})}function $x(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Qx(`map`,`selectchanged`,t,r,e),Qx(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Qx(`map`,`selected`,t,r,e),Qx(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Qx(`map`,`unselected`,t,r,e),Qx(`pie`,`unselected`,t,r,e))})}function eS(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var tS=new mt,nS={};function rS(e,t){nS[e]=t}function iS(e){return nS[e]}var aS={};function oS(e,t){aS[e]=t}function sS(e){return aS[e]}var cS=Qs();function lS(e){cS(e).prepare={}}function uS(e){cS(e).fullUpdate={}}function dS(e){return cS(e).prepare}function fS(e){return cS(e).fullUpdate}var pS=Math.round(Math.random()*9),mS=typeof Object.defineProperty==`function`,hS=function(){function e(){this._id=`__ec_inner_`+pS++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return mS?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}(),gS=Z.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()}}),_S={line:Lp,rect:qu,roundRect:qu,square:qu,circle:sp,diamond:Z.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:Z.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:Z.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:gS},vS={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}},yS={};F(_S,function(e,t){yS[t]=new e});var bS=Z.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Ja(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=yS[r];i||=(r=`rect`,yS[r]),vS[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function xS(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||P_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function SS(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?Em(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Tm(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new bS({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=xS,a&&c.setColor(a),c}function CS(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function wS(e,t){if(e!=null)return V(e)||(e=[e,e]),[Wo(e[0],t[0])||0,Wo(G(e[1],e[0]),t[1])||0]}function TS(e){return isFinite(e)}function ES(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=TS(r)?r:0,i=TS(i)?i:1,a=TS(a)?a:0,o=TS(o)?o:0,e.createLinearGradient(r,a,i,o)}function DS(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=TS(o)?o:.5,s=TS(s)?s:.5,c=c>=0&&TS(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function OS(e,t,n){for(var r=t.type===`radial`?DS(e,t,n):ES(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function kS(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 AS(e){return parseInt(e,10)}function jS(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]||AS(s[r])||AS(e.style[r]))-(AS(s[a])||0)-(AS(s[o])||0)||0}function MS(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:de(e)?[e]:V(e)?e:null}function NS(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&MS(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=I(n,function(e){return e/i}),r/=i)}return[n,r]}var PS=new lu(!0);function FS(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function IS(e){return typeof e==`string`&&e!==`none`}function LS(e){var t=e.fill;return t!=null&&t!==`none`}function RS(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 zS(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 BS(e,t,n){var r=Xc(t.image,t.__image,n);if(Qc(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)*Le),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VS(e,t,n,r,i){var a,o=FS(n),s=LS(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||PS,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?OS(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?OS(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?BS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?BS(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=NS(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&zS(e,n),s&&RS(e,n)):(s&&RS(e,n),o&&zS(e,n)),T&&e.setLineDash([])}function HS(e,t,n){var r=t.__image=Xc(n.image,t.__image,t,t.onload);if(r&&Qc(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 US(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=NS(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(FS(n)&&e.strokeText(i,n.x,n.y),LS(n)&&e.fillText(i,n.x,n.y)):(LS(n)&&e.fillText(i,n.x,n.y),FS(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var WS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],GS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function KS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){rC(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Cl.opacity:o}(r||t.blend!==n.blend)&&(a||=(rC(e,i),!0),e.globalCompositeOperation=t.blend||Cl.blend);for(var s=0;s<WS.length;s++){var c=WS[s];(r||t[c]!==n[c])&&(a||=(rC(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(rC(e,i),!0),e.shadowColor=t.shadowColor||Cl.shadowColor),a}function qS(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=KS(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(rC(e,i),!0),IS(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(rC(e,i),!0),IS(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(rC(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||=(rC(e,i),!0),e.lineWidth=c)}for(var l=0;l<GS.length;l++){var u=GS[l],d=u[0];(r||a[d]!==o[d])&&(s||=(rC(e,i),!0),e[d]=a[d]||u[1])}return s}function JS(e,t,n,r,i){return KS(e,t.style,n&&n.style,r,i)}function YS(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 XS(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),YS(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function ZS(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 QS=1,$S=2,eC=3,tC=4;function nC(e){var t=LS(e),n=FS(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 rC(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function iC(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};aC(e,t,n),oC(e,n)}function aC(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))t.__dirty&=-2,t.__isRendered=!1;else{var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||kS(i,a))&&(a&&(rC(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(rC(e,n),e.save(),XS(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)t.__dirty&=-2,t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Z&&t.autoBatch&&nC(o);s||ZS(r,l.transform)?(rC(e,n),YS(e,t)):u||rC(e,n),t instanceof Z?(n.lastDrawType!==QS&&(c=!0,n.lastDrawType=QS),qS(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),VS(e,t,o,u,n)):t instanceof Fu?(n.lastDrawType!==eC&&(c=!0,n.lastDrawType=eC),qS(e,t,l,c,n),US(e,t,o)):t instanceof zu?(n.lastDrawType!==$S&&(c=!0,n.lastDrawType=$S),JS(e,t,l,c,n),HS(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==tC&&(c=!0,n.lastDrawType=tC),sC(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&rC(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}}function oC(e,t){rC(e,t),t.prevElClipPaths&&e.restore()}function sC(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var cC=new hS,lC=new kr(100),uC=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function dC(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&cC.delete(e);var a=cC.get(e);if(a)return a;var o=N(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,cC.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<uC.length;++s){var c=o[uC[s]];if(c!=null&&!V(c)&&!U(c)&&!de(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=lC.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=pC(o.dashArrayX),f=mC(o.dashArrayY),m=fC(o.symbol),h=hC(d),g=gC(f),_=!i&&p.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&lC.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=ys(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=ys(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,p=0,h=0,x=0;p<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=p+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,ee=x/2%m[u].length;O(w,T,E,D,m[u][ee])}p+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function O(e,t,a,s,c){var l=i?1:n,u=SS(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else iC(b,u)}}}}function fC(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return fC([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function pC(e){if(!e||e.length===0)return[[0,0]];if(de(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!de(e[r])){n=!1;break}if(n)return pC([e]);for(var i=[],r=0;r<e.length;++r)if(de(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=I(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function mC(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(de(e)){var t=Math.ceil(e);return[t,t]}var n=I(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function hC(e){return I(e,function(e){return gC(e)})}function gC(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var _C=Ac(vC);function vC(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=dC(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=dC(i,t)}}})}var yC=`6.1.0`,bC={zrender:`6.1.0`},xC=1,SC=800,CC=900,wC=920,TC=1e3,EC=2e3,DC=5e3,OC=1e3,kC=1100,AC=2e3,jC=3e3,MC=4e3,NC=4500,PC=4600,FC=5e3,IC=6e3,LC=7e3,RC={PROCESSOR:{SERIES_FILTER:SC,AXIS_STATISTICS:wC,FILTER:TC,STATISTIC:DC,STATISTICS:DC},VISUAL:{LAYOUT:OC,PROGRESSIVE_LAYOUT:kC,GLOBAL:AC,CHART:jC,POST_CHART_LAYOUT:PC,COMPONENT:MC,BRUSH:FC,CHART_ITEM:NC,ARIA:IC,DECAL:LC}},zC=`__flagInMainProcess`,BC=`__mainProcessVersion`,VC=`__pendingUpdate`,HC=`__needsUpdateStatus`,UC=/^[a-zA-Z0-9_]+$/,WC=`__connectUpdateStatus`,GC=0,KC=1,qC=2;function JC(e){return function(){var t=[...arguments];if(this.isDisposed())this.id;else return XC(this,e,t)}}function YC(e){return function(){var t=[...arguments];return XC(this,e,t)}}function XC(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),mt.prototype[t].apply(e,n)}var ZC=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mt),QC=ZC.prototype;QC.on=YC(`on`),QC.off=YC(`off`);var $C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw=function(e){n(t,e);function t(t,n,r){var i=e.call(this,new Ux)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[BC]=1,r.ssr&&Do(function(e){var t=fd(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=bo(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=lx(B(c.flush,c),17),i._updateTheme(n),i._locale=$h(r.locale||Zh),i._coordSysMgr=new a_;var l=i._api=pw(i);function u(e,t){return e.__prio-t.__prio}return Kn(Ew,u),Kn(ww,u),i._scheduler=new Cx(i,l,ww,Ew),i._messageCenter=new ZC,i._initEvents(),i.resize=B(i.resize,i),c.animation.on(`frame`,i._onframe,i),cw(c,i),lw(c,i),Ee(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(gw(this),this[VC]){var r=this[VC].silent;this[zC]=!0,_w(this);try{$C(this),nw.update.call(this,null,this[VC].updateParams)}catch(e){throw this[zC]=!1,this[VC]=null,e}this._zr.flush(),this[zC]=!1,this[VC]=null,ow.call(this,r),sw.call(this,r)}else if(e.unfinished){var i=xC;do{e.unfinished=!1;var a=p.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),iw(this,t),e.performVisualTasks(t),fw(this,this._model,n,`remain`,{}),i-=p.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[zC]){if(this._disposed)this.id;else{var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[zC]=!0,_w(this),!this._model||t){var o=new bv(this._api),s=this._theme,c=this._model=new pv;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Tw);var l={seriesTransition:a,optionChanged:!0};if(n)this[VC]={silent:r,updateParams:l},this[zC]=!1,this.getZr().wakeUp();else{try{$C(this),nw.update.call(this,null,l)}catch(e){throw this[VC]=null,this[zC]=!1,e}this._ssr||this._zr.flush(),this[VC]=null,this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[zC]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[VC]&&(r??=this[VC].silent,i=this[VC].updateParams,this[VC]=null),this[zC]=!0,_w(this);try{this._updateTheme(e),n.setTheme(this._theme),$C(this),nw.update.call(this,{type:`setTheme`},i)}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype._updateTheme=function(e){U(e)&&(e=Dw[e]),e&&(e=A(e),e&&Jv(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||i.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;F(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 F(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Aw[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();F(kw,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(A(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,m=l-s,h=p.createCanvas(),g=bo(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:m}),t){var _=``;return F(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new qu({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new zu({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return rw(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return rw(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return rw(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return F(ec(n,e),function(e,n){n.indexOf(`Models`)>=0&&F(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=ec(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Yx(i,t):Jx(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;F(bw,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&eS(i,function(e){var t=fd(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=M({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;F(Cw,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),$x(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&oc(this.getDom(),Nw,``);var e=this,t=e._api,n=e._model;F(e._componentsViews,function(e){e.dispose(n,t)}),F(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 kw[e.id]}},t.prototype.resize=function(e){if(!this[zC]){if(this._disposed)this.id;else{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[VC]&&(r??=this[VC].silent,n=!0,this[VC]=null),this[zC]=!0,_w(this);try{n&&$C(this),nw.update.call(this,{type:`resize`,animation:M({duration:0},e&&e.animation)})}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(W(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Ow[e]){var n=Ow[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=Sw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(W(t)||(t={silent:!!t}),xw[e.type]&&this._model){if(this[zC])this._pendingActions.push(e);else{var n=t.silent;aw.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&i.browser.weChat&&this._throttledZrFlush(),ow.call(this,n),sw.call(this,n)}}},t.prototype.updateLabelLayout=function(){tS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){$C=function(e){lS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),ew(e,!0),ew(e,!1),t.plan()},ew=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=Pc(e.type);u=new(t?Xb.getClass(d.main,d.sub):ex.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},tw=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){F([].concat(e._componentsViews,e._chartsViews),l);return}var o=ac(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),F(As(s),function(e){var t=Ws(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Ff(n)){if(t instanceof Vb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&gf(t,n,e._api);else{var r=_f(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&hf(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?of(e):sf(e)})}}else Pf(n)&&t instanceof Vb&&(bf(t,n,e._api),xf(t),hw(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},nw={prepareAndUpdate:function(e){$C(this),nw.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){uS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),tS.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),iw(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),uw(this,r,i,e,n),tS.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),fw(t,n,r,e,{},a),tS.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ex.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),uw(this,n,this._api,e,{}),tS.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()}),ex.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)}),tS.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){nw.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed)e.id;else for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ec(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}}rw=e,iw=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},aw=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=xw[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Pc(s[0]);this[zC]=!0,_w(this);var u=[e],d=!1;e.batch&&(d=!0,u=I(e.batch,function(t){return t=N(M({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Pf(e),_=Ff(e);if(_&&pf(this._api),F(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=M({},t),p.type=h,f.push(p),_){var a=tc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;tw(n,c,t,u),hw(n)}else g?(tw(n,c,t,`series`),hw(n)):l&&tw(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[VC]?($C(this),nw.update.call(this,e),this[VC]=null):nw[c].call(this,e)}catch(e){throw this[zC]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[zC]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Ce(W(y)),v=N({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)}},ow=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();aw.call(this,n,e)}},sw=function(e){!e&&this.trigger(`updated`)},cw=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[VC]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},lw=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=eS(n,jf);r&&(vf(r,e,t._api),hw(t))}).on(`mouseout`,function(e){var n=e.target,r=eS(n,jf);r&&(yf(r,e,t._api),hw(t))}).on(`click`,function(e){var n=e.target,r=eS(n,function(e){return fd(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=fd(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 r(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;Kn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),F(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)})}}uw=function(e,t,n,i,a){r(t),dw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive=!1}),fw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},dw=function(e,t,n,r,i,a){F(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),c(i,e),u(i,e)})},fw=function(e,t,n,r,i,a){var d=e._scheduler;i=M(i||{},{updatedSeries:t.getSeries()}),tS.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),a&&a.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),s(t,n),xf(t)}),d.unfinished=f||d.unfinished,tS.trigger(`series:layoutlabels`,t,n,i),tS.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];c(t,n),u(t,n)}),o(e,t),tS.trigger(`series:afterupdate`,t,n,i)},hw=function(e){e[HC]=!0,e.getZr().wakeUp()},_w=function(e){e[BC]=(e[BC]+1)%1e6},gw=function(e){e[HC]&&(e.getZr().storage.traverse(function(e){um(e)||a(e)}),e[HC]=!1)};function a(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 o(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,a=0;r.traverse(function(e){e.isGroup||a++});var o=a>G(t.get(`hoverLayerThreshold`),H_.hoverLayerThreshold)&&!i.node&&!i.worker;(e._usingTHL||o)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!o)})}}),e._usingTHL=o)}}function s(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function c(e,t){if(!e.preventAutoZ){var n=nh(e);t.eachRendered(function(e){return ih(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!um(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 u(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),i=n.get(`duration`),o=i>0?{duration:i,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(um(e))return;if(e instanceof Z&&If(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),i=e.getTextGuideLine();n&&(n.stateTransition=o),i&&(i.stateTransition=o)}e.__dirty&&a(e)}})}pw=function(e){return new(function(t){n(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){of(t,n),hw(e)},r.prototype.leaveEmphasis=function(t,n){sf(t,n),hw(e)},r.prototype.enterBlur=function(t){cf(t),hw(e)},r.prototype.leaveBlur=function(t){lf(t),hw(e)},r.prototype.enterSelect=function(t){uf(t),hw(e)},r.prototype.leaveSelect=function(t){df(t),hw(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r.prototype.getECUpdateCycleVersion=function(){return e[BC]},r.prototype.usingTHL=function(){return e._usingTHL},r}(Ed))(e)},mw=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[WC]=t}}F(Sw,function(n,r){e._messageCenter.on(r,function(n){if(Aw[e.group]&&e[WC]!==GC){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];F(kw,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,GC),F(i,function(e){e[WC]!==KC&&e.dispatchAction(r)}),t(i,qC)}})})}}(),t}(mt),yw=vw.prototype;yw.on=JC(`on`),yw.off=JC(`off`),yw.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var bw=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],xw={},Sw={},Cw={},ww=[],Tw=[],Ew=[],Dw={},Ow={},kw={},Aw={},jw=new Date-0,Mw=new Date-0,Nw=`_echarts_instance_`;function Pw(e,t,n){var r=!(n&&n.ssr);if(r){var i=zw(e);if(i)return i}var a=new vw(e,t,n);return a.id=`ec_`+jw++,kw[a.id]=a,r&&oc(e,Nw,a.id),mw(a),tS.trigger(`afterinit`,a),a}function Fw(e){if(V(e)){var t=e;e=null,F(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+Mw++,F(t,function(t){t.group=e})}return Aw[e]=!0,e}function Iw(e){Aw[e]=!1}var Lw=Iw;function Rw(e){U(e)?e=kw[e]:e instanceof vw||(e=zw(e)),e instanceof vw&&!e.isDisposed()&&e.dispose()}function zw(e){return kw[sc(e,Nw)]}function Bw(e){return kw[e]}function Vw(e,t){Dw[e]=t}function Hw(e){P(Tw,e)<0&&Tw.push(e)}function Uw(e,t){eT(ww,e,t,EC)}function Ww(e){Kw(`afterinit`,e)}function Gw(e){Kw(`afterupdate`,e)}function Kw(e,t){tS.on(e,t)}function qw(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(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;xw[r]||(Ce(UC.test(r)&&UC.test(i)),a&&Ce(i!==r),xw[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Cw[i]=1,a&&s&&(Cw[l]=1),Sw[l]=r)}function Jw(e,t){a_.register(e,t)}function Yw(e){var t=a_.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Xw(e,t){oS(e,t)}function Zw(e,t){eT(Ew,e,t,OC,`layout`,!0)}function Qw(e,t){eT(Ew,e,t,jC,`visual`,!0)}var $w=[];function eT(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),!(P($w,n)>=0)){$w.push(n);var o=Cx.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function tT(e,t){Ow[e]=t}function nT(e){m({createCanvas:e})}function rT(e,t,n){var r=iS(`registerMap`);r&&r(e,t,n)}function iT(e){var t=iS(`getMap`);return t&&t(e)}var aT=Zy;Qw(AC,_x),Qw(NC,yx),Qw(NC,bx),Qw(AC,Kx),Qw(NC,qx),Qw(LC,_C),Hw(Jv),Uw(CC,Yv),tT(`default`,Sx),qw({type:Pd,event:Pd,update:Pd},Ie),qw({type:Fd,event:Fd,update:Fd},Ie),qw({type:Id,event:zd,update:Id,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Ld,event:zd,update:Ld,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Rd,event:zd,update:Rd,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0});function oT(e,t,n,r){return{eventContent:{selected:Sf(n),isFromClick:t.isFromClick||!1}}}Vw(`default`,{}),Vw(`dark`,Hx);var sT={},cT=[],lT={registerPreprocessor:Hw,registerProcessor:Uw,registerPostInit:Ww,registerPostUpdate:Gw,registerUpdateLifecycle:Kw,registerAction:qw,registerCoordinateSystem:Jw,registerLayout:Zw,registerVisual:Qw,registerTransform:aT,registerLoading:tT,registerMap:rT,registerImpl:rS,PRIORITY:RC,ComponentModel:M_,ComponentView:Xb,SeriesModel:Vb,ChartView:ex,registerComponentModel:function(e){M_.registerClass(e)},registerComponentView:function(e){Xb.registerClass(e)},registerSeriesModel:function(e){Vb.registerClass(e)},registerChartView:function(e){ex.registerClass(e)},registerCustomSeries:function(e,t){oS(e,t)},registerSubTypeDefaulter:function(e,t){M_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wo(e,t)}};function uT(e){V(e)?F(e,function(e){uT(e)}):P(cT,e)>=0||(cT.push(e),H(e)&&(e={install:e}),e.install(lT))}function dT(e){return e==null?0:e.length||1}function fT(e){return e}var pT=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||fT,this._newKeyGetter=r||fT,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=dT(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=dT(c),d=dT(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=dT(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=dT(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),mT=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 hT(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};F(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;gT(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),vT(n.type)&&(a[0]=t),gT(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}gd.each(function(e,t){var i=gT(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=I(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 mT(s,t),n}function gT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _T(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function vT(e){return e!==`ordinal`&&e!==`time`}var yT=function(){function e(e){this.otherDims={},e!=null&&M(this,e)}return e}(),bT=Qs(),xT={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},ST=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||=TT(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(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=cy(this.source),n=!ET(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+=xT[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 CT(e){return e instanceof ST}function wT(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function TT(e){var t=bT(e);return t.dimNameMap||=wT(e.dimensionsDefine)}function ET(e){return e>30}var DT=W,OT=I,kT=typeof Int32Array>`u`?Array:Int32Array,AT=`e\0\0`,jT=-1,MT=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],NT=[`_approximateExtent`],PT,FT,IT,LT,RT,zT,BT,VT=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;CT(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=U(u)?new yT({name:u}):u instanceof yT?u:new yT(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]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();F(a,function(e){m.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(de(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},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 ub&&(i=e),!i){var a=this.dimensions,o=$v(e)||oe(e)?new hy(e,a.length):e;i=new ub;var s=OT(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=hT(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&&BT(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&&Ps(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Ws(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Ws(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)BT(this,o);PT(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},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){DT(e)?M(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=IT(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 FT(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),null)},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 V(e)?r.getValues(OT(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],r=n&&n[t];return r==null||isNaN(r)?jT:r},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);this._store.each(i,r?B(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?B(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=z(e),i=[];return F(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){H(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=OT(LT(e),this._getStoreDimIndex,this),o=zT(this);return o._store=this._store.map(a,i?B(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=OT(LT(e),this._getStoreDimIndex,this);this._store.modify(a,i?B(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=zT(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=zT(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=zT(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 Rh(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return FT(e,t)},function(e){return FT(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||{},DT(e)?M(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),V(i)?i=i.slice():DT(i)&&(i=M({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,DT(t)?M(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){DT(e)?M(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?M(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){pd(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){F(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:OT(this.dimensions,this._getDimInfo,this),this.hostModel),RT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xe(arguments)))})},e.internalField=function(){PT=function(e){var t=e._invertedIndicesMap;F(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new kT(a.categories.length);for(var s=0;s<n.length;s++)n[s]=jT;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},IT=function(e,t,n){return Ws(e._getCategory(t,n),null)},FT=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=IT(e,e._idDimIdx,t)),n??=AT+t,n},LT=function(e){return V(e)||(e=e==null?[]:[e]),e},zT=function(t){var n=new e(t._schema?t._schema:OT(t.dimensions,t._getDimInfo,t),t.hostModel);return RT(n,t),n},RT=function(e,t){F(MT.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(NT,function(n){e[n]=A(t[n])}),e._calculationInfo=M({},t._calculationInfo)},BT=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=IT(e,i,t)),s==null&&a!=null&&(r[t]=s=IT(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 HT(e,t){return UT(e,t).dimensions}function UT(e,t){$v(e)||(e=ty(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=WT(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ET(o),c=r===e.dimensionsDefine,l=c?TT(e):wT(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new rb(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=W(n)?n:{name:n},o=new yT,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=As(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);F(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;F(n,function(e){var t,n,r,i;if(U(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=M({},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=As(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++)}F(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(N(o,i),t,a),o.name==null&&n){var s=n[a];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&N(o.otherDims,r)})}});function g(e,t,n){gd.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)F(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=GT(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(X_(e,S)===U_.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return wc(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new ST({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function WT(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function GT(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 KT=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function qT(e){var t=e.get(`coordinateSystem`),n=new KT(t),r=JT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var JT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,nc).models[0],a=e.getReferringComponents(`yAxis`,nc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),YT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),YT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,nc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),YT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,nc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),YT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),YT(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();F(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),YT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,nc).models[0];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 YT(e){return e.get(`type`)===`category`}function XT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ZT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(F(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),F(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!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 h=u.coordDim,g=u.type,_=0;F(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ZT(e){return!CT(e.schema)}function QT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function $T(e,t){return QT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function eE(e,t){var n=e.get(`coordinateSystem`),r=a_.get(n),i;return t&&t.coordSysDims&&(i=I(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_T(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function tE(e,t,n){var r,i;return n&&F(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 nE(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=ty(e)):(i=r.getSource(),a=i.sourceFormat===_d);var o=qT(t),s=eE(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?le(K_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=UT(i,u),f=tE(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=XT(t,{schema:d,store:p}),h=new VT(d,t);h.setCalculationInfo(m);var g=f!=null&&rE(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 rE(e){if(e.sourceFormat===`original`)return!V(Ns(iE(e.data||[])))}function iE(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var aE=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Wc(aE);var oE=0,sE=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++oE,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,cE);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(!U(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||=K(this.categories)},e}();function cE(e){return W(e)&&e.value!=null?e.value:e+``}var lE=z({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function uE(e,t,n){var r;e||={};var i=ig();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(F(lE,function(t){a[t]&&(e[t]=B(a[t],a))}),r=a)}return r??_E(e,n),{brk:r,mapper:e}}function dE(e,t){F(lE,function(n){e[n]=t[n]})}function fE(e,t){e.freeze=Ie}function pE(e){return e.getExtentUnsafe(0,2)}function mE(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function hE(e){var t=mE(e,3);return t[1]-t[0]}function gE(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function _E(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():pc(),M(n,vE),n}var vE={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=mE(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){yE(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),yE(r,e,t,n)},freeze:function(){}};function yE(e,t,n,r){yc(n,r)&&(e[t][0]=n,e[t][1]=r)}function bE(e){return xE(e)||CE(e)}function xE(e){return e.type===`interval`}function SE(e){return e.type===`time`}function CE(e){return e.type===`log`}function wE(e){return e.type===`ordinal`}function TE(e){var t=ds(e),n=Ro(10,t),r=Fo(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yo(r*n,-t)}function EE(e){return Qo(e)+2}function DE(e,t){return zo(e)/zo(t)}function OE(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Ro(t,e)}function kE(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Po(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!vc(r[0])||!vc(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function AE(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function jE(e,t){return e||=t,Fo(No(e,1))}function ME(e,t,n){var r=pE(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var NE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,dE(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new sE({}),V(i)&&(i=new sE({categories:I(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=uE(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,fE(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Fo(e),e},t.prototype.getTicks=function(){var e=[];return ME(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Mo(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=pE(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Fo(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(aE);aE.registerClass(NE);function PE(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=EE(f);u<t-1;){var m=Yo(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=ig();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var FE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=uE(r,ag(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return A(this._cfg)},t.prototype.setConfig=function(e){var t=pE(this);this._cfg=e=A(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=EE(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=pE(this),i=t.niceExtent,a=t.intervalPrecision,o=ig(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Yo(i[0]-n,a):r[0]});for(var d=function(e,t){return Fo((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Mo(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Yo(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Yo(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Yo(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Qo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Wg(Yo(e.value,n,!0))},t.type=`interval`,t}(aE);aE.registerClass(FE);var IE=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},LE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=uE(r,ag(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Eg(e.value,_g[Tg(Cg(this._minLevelUnit))]||_g.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Dg(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=pE(this),r=ig(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return ig().addBreaksToTicks(o,i.breaks,n),o;o=qE(this._minLevelUnit,this._approxInterval,s,n,gE(this),i);var c=vg.length-1,l=0;return F(o,function(e){e.time&&(c=Math.min(c,P(vg,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&ig().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&ig().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(P(vg,Og(e.vmin,s)),P(vg,Og(e.vmax,s))),n=0,r=0;r<vg.length;r++)if(!zE(vg[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:vg[Math.max(i,t)],upperTimeUnit:vg[i]}}),o},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return de(e)?Math.round(e):+ls(e)},t.type=`time`,t}(aE),RE=[[`second`,cg],[`minute`,lg],[`hour`,ug],[`quarter-day`,ug*6],[`half-day`,ug*12],[`day`,dg*1.2],[`half-week`,dg*3.5],[`week`,dg*7],[`month`,dg*31],[`quarter`,dg*95],[`half-year`,fg/2],[`year`,fg]];function zE(e,t,n,r){return kg(new Date(t),e,r).getTime()===kg(new Date(n),e,r).getTime()}function BE(e,t){return e/=dg,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function VE(e){var t=30*dg;return e/=t,e>6?6:e>3?3:e>2?2:1}function HE(e){return e/=ug,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function UE(e,t){return e/=t?lg:cg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WE(e){return No(fs(e,!0),1)}function GE(e,t,n){var r=Math.max(0,P(vg,t)-1);return kg(new Date(e),vg[r],n).getTime()}function KE(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 qE(e,t,n,r,i,a){var o=yg,s=0;function c(e,t,n,i,o,c,l){for(var u=KE(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!zE(Cg(e),r[0],r[1],n)){s&&(i=[{value:GE(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/dg/365)),p=Ag(n),m=Lg(n);break;case`half-year`:case`quarter`:case`month`:f=VE(t),p=jg(n),m=Rg(n);break;case`week`:case`half-week`:case`day`:f=BE(t,31),p=Mg(n),m=zg(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=HE(t),p=Ng(n),m=Bg(n);break;case`minute`:f=UE(t,!0),p=Pg(n),m=Vg(n);break;case`second`:f=UE(t,!1),p=Fg(n),m=Hg(n);break;case`millisecond`:f=WE(t),p=Ig(n),m=Ug(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Cg(o[m]);if(wg(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Cg(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=L(I(u,function(e){return L(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=Og(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}wc(S,Tc,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],ee=Og(r[0],n),O=Og(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:ee,lowerTimeUnit:ee},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),S}var JE=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=dg,n[1]+=dg),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-dg}e.setExtent(n[0],n[1]);var i=jE(t.splitNumber,10),a=gE(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=RE.length,l=Math.min(IE(RE,a,0,c),c-1),u=RE[l][1],d=RE[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};aE.registerClass(LE);var YE=0,XE=1,ZE=2,QE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=FE.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[YE]=i[XE]=a[YE]=a[XE]=NaN,dE(r,t.mapperMethods);var s=ig(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},ZE,l),r.powStub=new FE({breakParsed:l.original}),r.intervalStub=new FE({breakParsed:l.transformed}),fE(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=ig(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return I(i.getTicks(e||{}),function(e){var i=e.value,o=OE(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,og(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(DE(e,this.base))},scale:function(e){return OE(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=DE(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return $E.depth=n,eD.lookup=this._lookup,OE(n===2?e:this.intervalStub.transformOut(e,$E),this.base,eD)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!yc(t,n)||t<=0||n<=0)){var r=tD,i=tD;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[YE]=t,r[XE]=n);var o=this.base;this.intervalStub.setExtent2(e,i[YE]=DE(t,o),i[XE]=DE(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return yc(t[0],t[1])&&bs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(aE);aE.registerClass(QE);var $E={},eD={},tD=[],nD={value:1,category:1,time:1,log:1},rD=Qs();function iD(e){var t=e.get(`type`);return(t==null||!Fe(nD,t)&&!aE.getClass(t))&&(t=`value`),t}function aD(e,t,n){var r=ig(),i;switch(r&&(i=gD(e,t,n)),t){case`category`:return new NE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:pc()});case`time`:return new LE({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new QE({logBase:e.get(`logBase`),breakOption:i});case`value`:return new FE({breakOption:i});default:return new((aE.getClass(t))||FE)({})}}function oD(e,t,n){var r=n?mE(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return yc(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function sD(e){rD(e).noOnMyZero=!0}function cD(e){return rD(e).noOnMyZero}function lD(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(H(t)){if(e.type===`category`)return function(n,r){return t(uD(e,n),n.value-e.scale.getExtent()[0],null)};var r=ig();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(uD(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function uD(e,t){var n=e.scale;return wE(n)?n.getLabel(t):t.value}function dD(e){return e.get(`interval`)??`auto`}function fD(e){return e.type===`category`&&dD(e.getLabelModel())===0}function pD(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[$T(e,t)]=!0}),z(n)}function mD(e){return e===`middle`||e===`center`}function hD(e){return e.getShallow(`show`)}function gD(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!ig()||!n||!_D(t)?void 0:r}function _D(e){return e!==`category`}function vD(e,t,n,r,i,a){var o=CE(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=AE(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function yD(e,t){return wE(e)?e.getRawOrdinalNumber(t.value):t.value}function bD(e,t){return wE(e)&&!!t.get(`boundaryGap`)}var xD=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),SD=Sc(),CD=Qs(),wD=Qs();function TD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function ED(e,t){return kD(TD(e,t))}function DD(e,t){var n=[];return OD(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(kD(e))}),n}function OD(e,t){var n=CD(fS(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function kD(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function AD(e,t){var n=e.model.ecModel,r=CD(fS(n)).axSer;r&&MD(n,r.get(e.model.uid),t)}function jD(e,t,n){var r=TD(e,t);r&&MD(e.model.ecModel,r.sers,n)}function MD(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function ND(e,t){var n=TD(e,t);if(!n||!n.sers.length)return 0;var r=0;return MD(e.model.ecModel,n.sers,function(){r++}),r}function PD(e,t,n){var r=CD(fS(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function FD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keys;r&&F(r.get(n.uid),function(e){t(e)})}function ID(e){var t=wD(dS(e)),n=t.keyed||=K();OD(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&RD.liPosMinGap(e,t,o)})}function LD(e,t){RD[e]=t}var RD={};function zD(e,t,n){if(e){var r=t.ecModel,i=CD(fS(r)),a=e.model.uid,o=i.axSer||=K();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=HD.get(BD(s,c,n))||HD.get(BD(s,c,null));if(l){var u=i.keyed||=K(),d=i.keys||=K(),f=l.key,p=u.get(f)||u.set(f,K()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function BD(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function VD(e,t){var n=BD(t.seriesType,t.baseAxis,t.coordSysType);HD.set(n,t),SD(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:ID})})}var HD=K(),UD=Qs(),WD=3,GD=function(){function e(e,t,n,r,i){var a=wE(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(xE(e)||CE(e)||SE(e))&&(hc(l,qD(e,t.get(`dataMin`,!0))),gc(l,qD(e,t.get(`dataMax`,!0)))),bc(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=qD(e,H(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=qD(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JD(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!vc(u[0])&&(u[0]=NaN),!vc(u[1])&&(u[1]=NaN);var g=s||ve(u[0])||ve(u[1])||a&&!o,_=xE(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=qD(e,t.get(`startValue`,!0)),x=b!=null;!bs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),bs(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),KD(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),KD(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function KD(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),xc(t))}function qD(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function JD(e,t){var n;if(wE(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=V(r)?r:[r,r]}return[YD(n[0]),YD(n[1])]}function YD(e){return qa(typeof e==`boolean`?0:e,1)||0}function XD(e){var t=UD(e.scale);return t.extent||=pc(),t}function ZD(e,t){XD(e).dimIdxInCoord=t.get(e.dim)}function QD(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||$D(n,e,i,r,t)}function $D(e,t,n,r,i){var a=XD(t),o=a.extent,s=!1;AD(t,function(r){if(r.boxCoordinateSystem){var i=l_(r).coord,c=a.dimIdxInCoord;if(c>=0&&V(i)){var l=i[c];l!=null&&!V(l)&&mc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;F(pD(u,n),function(e){_c(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=aO(e,t,r);tO(e,new GD(e,r,o,s,c),i),a.extent=null}function eO(e,t){var n=e.scale;tO(n,new GD(n,e.model,t,!1,!1),WD)}function tO(e,t,n){e.rawExtentInfo=t,t.from=n}function nO(e,t){rO.set(e,t)}var rO=K();function iO(e,t,n,r,i){e.rawExtentInfo||eO({scale:e,model:t},i||pc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function aO(e,t,n){var r=bD(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return FD(t,function(e){a=!!rO.get(e)||a}),a}function oO(e,t,n,r){if(n.ctnShp){var i;if(FD(e,function(t){var n=rO.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],hc(i,a[0]),gc(i,a[1]),sD(e))}}),i){var a=t.getExtent();if(wE(t))e.onBand||t.setExtent2(1,Mo(a[0],a[0]+i[0]),No(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Mo(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=No(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function sO(e,t){var n=CE(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=kE(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?lO(r,t):cO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=EE(d)),i[0]||(s[0]=Yo(Io(s[0]/u)*u,l)),i[1]||(s[1]=Yo(Lo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),vD(e,i,o,s,a,c)}function cO(e,t){var n=jE(t.splitNumber,5),r=gE(e),i=t.minInterval,a=t.maxInterval,o=fs(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=EE(o),c=e.getExtent(),l=[Yo(Lo(c[0]/o)*o,s),Yo(Io(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function lO(e,t){var n=jE(t.splitNumber,10),r=e.getExtent(),i=gE(e),a=No(us(i),1);n/i*a<=.5&&(a*=10);var o=EE(a),s=[Yo(Lo(r[0]/a)*a,o),Yo(Io(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function uO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;dO(t,n,r,i,null)}function dO(e,t,n,r,i){var a=iO(e,t,r,n,i),o=xE(e)||SE(e);fO(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&oO(n,e,a,r)}function fO(e,t){pO[e.type](e,t)}var pO={interval:sO,log:sO,time:JE,ordinal:Ie},mO=1e-8;function hO(e,t){return Math.abs(e-t)<mO}function gO(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+=_u(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!hO(i[0],s[0])||!hO(i[1],s[1]))&&(r+=_u(i[0],i[1],s[0],s[1],t,n)),r!==0}var _O=[];function vO(e,t){for(var n=0;n<e.length;n++)lt(e[n],e[n],t)}function yO(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])&&(ut(t,t,a),dt(n,n,a))}}function bO(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 xO=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}(),SO=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),CO=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),wO=function(e){n(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 bO(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 F(i,function(t){t.type===`polygon`?yO(t.exterior,n,r,e):F(t.points,function(t){yO(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 Y(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(gO(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(gO(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 Y(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(vO(u.exterior,s),F(u.interiors,function(e){vO(e,s)})):F(u.points,function(e){vO(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}(xO),TO=function(e){n(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=qt(_O),i=e;i&&!i.isGeoSVGGraphicRoot;)Yt(r,i.getLocalTransform(),r),i=i.parent;return $t(r,r),lt(n,n,r),n},t}(xO);function EO(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return F(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=OO(i,r,n);break;case`Polygon`:DO(i,r,n);break;case`MultiLineString`:DO(i,r,n);break;case`MultiPolygon`:F(i,function(e,t){return DO(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function DO(e,t,n){for(var r=0;r<e.length;r++)e[r]=OO(e[r],t[r],n)}function OO(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 kO(e,t){return e=EO(e),I(L(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 SO(a[0],a.slice(1)));break;case`MultiPolygon`:F(r.coordinates,function(e){e[0]&&i.push(new SO(e[0],e.slice(1)))});break;case`LineString`:i.push(new CO([r.coordinates]));break;case`MultiLineString`:i.push(new CO(r.coordinates))}var o=new wO(n[t||`name`],i,n.cp);return o.properties=n,o})}var AO=Qs(),jO=Qs(),MO={estimate:1,determine:2};function NO(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function PO(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:I(IO(n,r),function(t,n){return{formattedLabel:lD(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?LO(e,t):BO(e)}function FO(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:IO(i,r)}:e.type===`category`?zO(e,t):{ticks:r.getTicks(n)}}function IO(e,t){var n=t.getExtent(),r=[];return F(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),wc(r,Ec,null),Zo(r),I(r,function(e){return{value:e}})}function LO(e,t){var n=e.getLabelModel(),r=RO(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function RO(e,t,n){var r=HO(e),i=dD(t),a=n.kind===MO.estimate;if(!a){var o=WO(r,i);if(o)return o}var s,c;H(i)?s=ZO(e,i,!1):(c=i===`auto`?KO(e,n):i,s=ZO(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return GO(r,i,l),!0}):GO(r,i,l),l}function zO(e,t){var n=VO(e),r=dD(t),i=WO(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=ZO(e,r,!0);else if(r===`auto`){var s=RO(e,e.getLabelModel(),NO(MO.determine));o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tick})}else o=r,a=ZO(e,o,!0);return GO(n,r,{ticks:a,tickCategoryInterval:o})}function BO(e){var t=e.scale.getTicks(),n=lD(e);return{labels:I(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var VO=UO(`axisTick`),HO=UO(`axisLabel`);function UO(e){return function(t){return jO(t)[e]||(jO(t)[e]={list:[]})}}function WO(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function GO(e,t,n){return e.list.push({key:t,value:n}),n}function KO(e,t){if(t.kind===MO.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return jO(e).autoInterval=n,!0}),n}return jO(e).autoInterval??(jO(e).autoInterval=e.calculateCategoryInterval(t))}function qO(e,t){var n=t.kind,r=XO(e),i=lD(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=Ua(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===MO.estimate?(t.out.noPxChangeTryDetermine.push(B(JO,null,e,S,c)),S):YO(e,S,c)??S}function JO(e,t,n){return YO(e,t,n)==null}function YO(e,t,n){var r=AO(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 XO(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 ZO(e,t,n){var r=lD(e),i=e.scale,a=[],o=H(t);return ME(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var QO=.8;function $O(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=hE(r);bs(o)||(o=NaN);var s=e.getExtent(),c=Po(s[1]-s[0]);return wE(r)?ek(n,e,o,c):i&&tk(n,e,o,c,i),a!=null&&(n.w=bs(n.w)?No(a,n.w):a),n}function ek(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function tk(e,t,n,r,i){var a=!1,o=-1/0;F(i.key?[ED(t,i.key)]:DD(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),bs(n)&&n>0&&bs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*QO,e.w2=e.w*n/r)}var nk=[0,1],rk=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Uo(e,nk,ik(this),t)},e.prototype.coordToData=function(e,t){var n=Uo(e,ik(this),nk,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=I(FO(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(yD(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ak(this,n,r);return I(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(wE(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),I(this.scale.getMinorTicks(e),function(e){return I(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=NO(MO.determine),PO(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return $O(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=NO(MO.determine),qO(this,e)},e}();function ik(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ak(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=$O(e).w;if(!i)return!1;F(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ok=Math.PI*2,sk=lu.CMD,ck=[`top`,`right`,`bottom`,`left`];function lk(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function uk(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)%ok<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=mu(i),i=mu(f)}else r=mu(r),i=mu(i);r>i&&(i+=ok);var p=Math.atan2(s,o);if(p<0&&(p+=ok),p>=r&&p<=i||p+ok>=r&&p+ok<=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 dk(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 fk(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 pk=[];function mk(e,t,n){var r=fk(t.x,t.y,t.width,t.height,e.x,e.y,pk);return n.set(pk[0],pk[1]),r}function hk(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 sk.M:a=u[p++],o=u[p++],r=a,i=o;break;case sk.L:h=dk(r,i,u[p],u[p+1],d,f,pk,!0),r=u[p++],i=u[p++];break;case sk.C:h=hr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.Q:h=Sr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.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=uk(g,_,y,b,b+x,S,C,f,pk),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case sk.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=fk(a,o,w,T,d,f,pk);break;case sk.Z:h=dk(r,i,a,o,d,f,pk,!0),r=a,i=o}h<l&&(l=h,n.set(pk[0],pk[1]))}return l}var gk=new J,$=new J,_k=new J,vk=new J,yk=new J;function bk(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||ck,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&$t([],u),f=t.get(`length2`)||0;l&&_k.copy(l);for(var p=0;p<o.length;p++){var m=o[p];lk(m,0,s,gk,vk),J.scaleAndAdd($,gk,vk,f),$.transform(d);var h=e.getBoundingRect(),g=l?l.distance($):e instanceof Z?hk($,e.path,_k):mk($,h,_k);g<c&&(c=g,$.transform(u),_k.transform(u),_k.toArray(a[0]),$.toArray(a[1]),gk.toArray(a[2]))}Ck(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var xk=[],Sk=new J;function Ck(e,t){if(t<=180&&t>0){t=t/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,gk,$),J.sub(yk,_k,$);var n=vk.len(),r=yk.len();if(!(n<.001||r<.001)){vk.scale(1/n),yk.scale(1/r);var i=vk.dot(yk);if(Math.cos(t)<i){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk),Sk.scaleAndAdd(yk,a/Math.tan(Math.PI-t));var o=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(o))return;o<0?J.copy(Sk,$):o>1&&J.copy(Sk,_k),Sk.toArray(e[1])}}}}function wk(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,$,gk),J.sub(yk,_k,$);var r=vk.len(),i=yk.len();if(!(r<.001||i<.001)&&(vk.scale(1/r),yk.scale(1/i),vk.dot(t)<Math.cos(n))){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk);var o=Math.PI/2,s=o+Math.acos(yk.dot(t))-n;if(s>=o)J.copy(Sk,_k);else{Sk.scaleAndAdd(yk,a/Math.tan(Math.PI/2-s));var c=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(c))return;c<0?J.copy(Sk,$):c>1&&J.copy(Sk,_k)}Sk.toArray(e[1])}}}function Tk(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function Ek(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=it(r[0],r[1]),a=it(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=ct([],r[1],r[0],o/i),c=ct([],r[1],r[2],o/a),l=ct([],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 Dk(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i)r&&e.removeTextGuideLine();else{for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Nd.length;c++){var l=Nd[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Tk(r,!0,l,u);continue}r||(r=new Pp,e.setTextGuideLine(r),!d&&(s||!o)&&Tk(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Tk(r,!1,l,u)}}if(r){N(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Ek}}}function Ok(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Md.length;r++){var i=Md[r];n[i]=e.getModel([i,t])}return n}var kk=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Ak=1,jk=2,Mk=Ak|jk;function Nk(e,t,n){n||=Mk,t?e.dirty|=n:e.dirty&=~n}function Pk(e,t){return t||=Mk,e.dirty==null||!!(e.dirty&t)}function Fk(e){if(e)return Pk(e)&&Ik(e,e.label,e),e}function Ik(e,t,n){var r=t.getComputedTransform();e.transform=th(e.transform,r);var i=e.localRect=eh(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=Dh.textMargin);for(var d=0;d<4;d++)Lk[d]=u===Dh.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Dh.textMargin&&Km(i,Lk,!1,!1);var f=e.rect=eh(e.rect,i);return r&&f.applyTransform(r),u===Dh.minMargin&&Km(f,Lk,!1,!1),e.axisAligned=Qm(r),(e.label=e.label||{}).ignore=t.ignore,Nk(e,!1),Nk(e,!0,jk),e}var Lk=[0,0,0,0];function Rk(e,t,n){return e.transform=th(e.transform,n),e.localRect=eh(e.localRect,t),e.rect=eh(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Qm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function zk(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 Bk(e,t){for(var n=0;n<kk.length;n++){var r=kk[n];e[r]??(e[r]=t[r])}return Fk(e)}function Vk(e){var t=e.obb;return(!t||Pk(e,jk))&&(e.obb=t||=new nm,t.fromBoundingRect(e.localRect,e.transform),Nk(e,!1,jk)),t}function Hk(e,t,n,r,i){var a=e.length,o=vm[t],s=ym[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 Uk(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 Wk(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=Fk(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Gk(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Gk(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:Vk(e).intersect(Vk(t),n,r)}function Kk(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function qk(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:Kk(r&&r.shape.points)}}var Jk=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],Yk=new Aa,Xk=Qs(),Zk=Qs();function Qk(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var $k=[`x`,`y`,`rotation`],eA=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();Y.applyTransform(c,c,s),s?Yk.setLocalTransform(s):(Yk.x=Yk.y=Yk.rotation=Yk.originX=Yk.originY=0,Yk.scaleX=Yk.scaleY=1),Yk.rotation=mu(Yk.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Y.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:Yk.x,y:Yk.y,scaleX:Yk.scaleX,scaleY:Yk.scaleY,rotation:Yk.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`);(H(r)||z(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=fd(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(){bk(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=H(a.layoutOptionOrCb)?a.layoutOptionOrCb(qk(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=Wo(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Wo(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=Xk(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<Jk.length;m++){var h=Jk[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=[];F(this._labelList,function(e){e.defaultAttr.ignore||r.push(Bk({},e))});var i=L(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=L(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});Hk(i,0,0,t),Hk(a,1,0,n);var o=L(r,function(e){return e.layoutOption.hideOverlap});Uk(o),Wk(o)},e.prototype.processLabelsOverall=function(){var e=this;F(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=Xk(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=fd(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`);Dk(e,Ok(o),s),bk(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&&!um(e))){var i=Xk(n),a=i.oldLayout,o=fd(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&&(P(u,`select`)>=0&&n.attr(i.oldLayoutSelect),P(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),cm(n,c,t,s)}else if(n.attr(c),!wh(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,lm(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};Qk(f,c,$k),Qk(f,n.states.select,$k)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Qk(p,c,$k),Qk(p,n.states.emphasis,$k)}Eh(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=Zk(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),cm(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,lm(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),tA=Qs();function nA(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=tA(t).labelManager;r||=tA(t).labelManager=new eA,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=tA(t).labelManager;F(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function rA(e,t,n){var r=p.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function iA(e){return!e.__cursors.get(0)}function aA(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var oA=function(e){q(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=va,typeof t==`string`?a=rA(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Pe(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=aA(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=rA(`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 Y(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new Y(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 Y(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=aA(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;)if(i[u].isZero())i.splice(u,1);else{for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;he(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||OS(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):ge(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=BS(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&&F(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(mt),sA=1e5,cA=314159,lA=void 0,uA=1,dA=2;function fA(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function pA(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function mA(e,t,n,r){var i=new oA(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,hA(i),i}function hA(e){e.__cursorStack=[],e.__cursors=K()}function gA(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function _A(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,gA({key:r})))}function vA(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function yA(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function bA(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&xA)||s.__builtin__)&&(!(n&SA)||!s.__builtin__)&&(!(n&CA)||s!==e.hoverlayer))&&t(s,a,o,i)}}var xA=1,SA=2,CA=4,wA=xA|CA,TA=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||va,this._singleCanvas=i,this.root=e,e.style&&(Pe(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=mA(a,this,cA,0);c.initContext(),this._insertLayer(c,cA,0,!0),this._domRoot=e}else{this._width=jS(e,0,n),this._height=jS(e,1,n);var l=this._domRoot=pA(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=dA),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return bA(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},SA),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=lA,n!==lA&&(!t&&n===dA&&(t=this._i.hoverlayer=this._ensureLayer(sA)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),aC(i,s,r),c&&(s.style=l)}}i&&(oC(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(sA)},e.prototype.paintOne=function(e,t){iC(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)bA(this._i,function(e){e.afterBrush&&e.afterBrush()},wA),this._paintHoverList(e);else{var i=this;Zn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(cA).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),bA(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},xA)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return bA(this._i,function(i){var a=!1;if(vA(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!iA(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}vA(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},wA),i.wxa&&bA(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=iA(e),c=s&&p.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=dA),r!=null){var m=f.getPaintRect();m&&m.intersect(r)&&(aC(o,f,a),f.setPrevPaintRect(m))}else aC(o,f,a);if(s&&p.getTime()-c>15){d++;break}}}oC(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=cA,t=0);var i=yA(this._i,e)[t];return i||(i=mA(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&j(i,this._layerConfig[e],!0),(n||r&&e!==cA)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&fA(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=yA(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),yA(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},xA)},e.prototype.eachOtherLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},SA)},e.prototype.getLayers=function(){var e={};return bA(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}bA(n._i,function(e){e.__dirty=!1,vA(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},wA);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__))k(`ZLevel `+d+` has been used by unknown layer `+o.id);else{if((!s||f!==s.key)&&(s=_A(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}}bA(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(iA(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(vA(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===lA&&(n._hoverLayerDirty=uA))},wA)},e.prototype.clear=function(){return bA(this._i,function(e){e.clear(),hA(e)},xA),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,bA(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?j(n[e],t,!0):n[e]=t,bA(this._i,function(e,t){j(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=jS(i,0,r),t=jS(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,bA(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(cA).resize(e,t)}return this},e.prototype.clearLayer=function(e){F(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[cA][0].dom;var t=new oA(`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;bA(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];aC(n,l,a)}oC(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function EA(e){e.registerPainter(`canvas`,TA)}var DA=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 I(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),L(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}(),OA={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function kA(e,t){if(e===`china`){var n=OA[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var AA=Qs();function jA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,RA(t,n,e),F(n,function(n){F(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,le(MA,e))})}),t.wrapMethod(`cloneShallow`,le(PA,e)),F(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,le(NA,e))}),Ce(n[t.dataType]===t)}function MA(e,t){if(LA(this)){var n=M({},AA(this).datas);n[this.dataType]=t,RA(t,n,e)}else zA(t,this.dataType,AA(this).mainData,e);return t}function NA(e,t){return e.struct&&e.struct.update(),t}function PA(e,t){return F(AA(t).datas,function(n,r){n!==t&&zA(n.cloneShallow(),r,t,e)}),t}function FA(e){var t=AA(this).mainData;return e==null||t==null?t:AA(t).datas[e]}function IA(){var e=AA(this).mainData;return e==null?[{data:e}]:I(z(AA(e).datas),function(t){return{type:t,data:AA(e).datas[t]}})}function LA(e){return AA(e).mainData===e}function RA(e,t,n){AA(e).datas={},F(t,function(t,r){zA(t,r,e,n)})}function zA(e,t,n,r){AA(n).datas[t]=e,AA(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=FA,e.getLinkedDataAll=IA}function BA(e){return`_EC_`+e}var VA=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[BA(e)]){var r=new HA(e,t);return r.hostGraph=this,this.nodes.push(r),n[BA(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[BA(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(de(e)&&(e=this.nodes[e]),de(t)&&(t=this.nodes[t]),e instanceof HA||(e=r[BA(e)]),t instanceof HA||(t=r[BA(t)]),e&&t){var a=e.id+`-`+t.id,o=new UA(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 HA&&(e=e.id),t instanceof HA&&(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 HA||(t=this._nodesMap[BA(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}(),HA=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=K(),t=K(),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}(),UA=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=K(),t=K();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 WA(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)}}}ae(HA,WA(`hostGraph`,`data`)),ae(UA,WA(`hostGraph`,`edgeData`));var GA=function(e){n(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 db(this),fb(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),fb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Cd},t}(M_),KA=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(Xb);function qA(e){e.registerComponentModel(GA),e.registerComponentView(KA)}export{gD as $,Oc as $a,ye as $c,Dd as $i,D_ as $n,pi as $o,Nm as $r,Bt as $s,aT as $t,dO as A,fc as Aa,ve as Ac,Pp as Ai,bb as An,Ko as Ao,Uh as Ar,mr as As,RC as At,jD as B,lc as Ba,H as Bc,Mf as Bi,Ay as Bn,mo as Bo,ym as Br,hn as Bs,iT as Bt,MO as C,Dl as Ca,B as Cc,im as Ci,Zb as Cn,Mo as Co,kg as Cr,Wr as Cs,HT as Ct,TO as D,dc as Da,le as Dc,Up as Di,Ib as Dn,hs as Do,eg as Dr,Tr as Ds,_T as Dt,wO as E,Gc as Ea,K as Ec,Wp as Ei,Vb as En,fs as Eo,rg as Er,kr as Es,wT as Et,ZD as F,js as Fa,P as Fc,sp as Fi,Iy as Fn,os as Fo,Ch as Fr,Y as Fs,Iw as Ft,iD as G,Sc as Ga,z as Gc,jf as Gi,q_ as Gn,qa as Go,Bm as Gr,qt as Gs,Zw as Gt,VD as H,uc as Ha,W as Hc,Ef as Hi,iv as Hn,Ja as Ho,Pm as Hr,en as Hs,qw as Ht,zD as I,xc as Ia,ie as Ic,ap as Ii,Py as In,Yo as Io,mh as Ir,yn as Is,Rw as It,yD as J,ac as Ja,te as Jc,Af as Ji,m_ as Jn,Pa as Jo,Km as Jr,Yt as Js,Ww as Jt,uD as K,Qs as Ka,I as Kc,lf as Ki,P_ as Kn,Na as Ko,Vm as Kr,$t as Ks,tT as Kt,ND as L,Ns as La,V as Lc,np as Li,Hy as Ln,Xo as Lo,wh as Lr,vn as Ls,Yw as Lt,iO as M,Ws as Ma,L as Mc,Op as Mi,Nb as Mn,us as Mo,Eh as Mr,vr as Ms,sT as Mt,nO as N,kc as Na,R as Nc,Ep as Ni,zy as Nn,ds as No,gh as Nr,xr as Ns,bC as Nt,gO as O,rc as Oa,N as Oc,Vp as Oi,Fb as On,ls as Oo,Qh as Or,ur as Os,pT as Ot,QD as P,Ac as Pa,Fe as Pc,lp as Pi,Vy as Pn,ms as Po,hh as Pr,Zn as Ps,Lw as Pt,lD as Q,tc as Qa,se as Qc,Tf as Qi,w_ as Qn,Fi as Qo,wm as Qr,Lt as Qs,Vw as Qt,PD as R,Dc as Ra,oe as Rc,Nd as Ri,Uy as Rn,Eo as Ro,ph as Rr,bn as Rs,zw as Rt,$O as S,zl as Sa,Ce as Sc,cm as Si,ex as Sn,No as So,Eg as Sr,$r as Ss,QT as St,kO as T,Xc as Ta,Me as Tc,Kp as Ti,Bb as Tn,Fo as To,sg as Tr,ti as Ts,VT as Tt,xD as U,Gs as Ua,_e as Uc,cf as Ui,$_ as Un,Ua as Uo,rh as Ur,Jt as Us,Jw as Ut,LD as V,pc as Va,de as Vc,Cf as Vi,Dy as Vn,po as Vo,vm as Vr,J as Vs,Pw as Vt,aD as W,yc as Wa,U as Wc,of as Wi,K_ as Wn,Ka as Wo,zm as Wr,Kt as Ws,Xw as Wt,mD as X,As as Xa,Ie as Xc,Xd as Xi,__ as Xn,ja as Xo,bm as Xr,Qt as Xs,Hw as Xt,bD as Y,Fs as Ya,ae as Yc,nf as Yi,S_ as Yn,Ma as Yo,Sm as Yr,Zt as Ys,Gw as Yt,cD as Z,ec as Za,Se as Zc,kf as Zi,A_ as Zn,Yi as Zo,lh as Zr,Xt as Zs,Uw as Zt,Ok as _,mu as _a,tt as _c,hm as _i,Yx as _n,ss as _o,Zg as _r,Yr as _s,_E as _t,DA as a,fd as aa,mt as ac,Om as ai,o as al,iC as an,as as ao,T_ as ar,Ti as as,NE as at,Dk as b,lu as ba,qe as bc,pm as bi,ux as bn,Lo as bo,Gg as br,ai as bs,XT as bt,Ik as c,id as ca,He as cc,km as ci,i as cl,SS as cn,ts as co,u_ as cr,li as cs,TE as ct,Wk as d,Wu as da,ot as dc,Mm as di,yS as dn,es as do,f_ as dr,bi as ds,CE as dt,hd as ea,Ft as ec,gm as ei,G as el,Kw as en,Zs as eo,v_ as er,mi as es,hD as et,Gk as f,Hu as fa,Je as fc,Am as fi,dS as fn,Qo as fo,Wg as fr,yi as fs,wE as ft,Hk as g,Z as ga,nt as gc,om as gi,Jx as gn,qo as go,Xg as gr,Ar as gs,mE as gt,Nk as h,ju as ha,ut as hc,ih as hi,Zx as hn,gs as ho,$g as hr,di as hs,fE as ht,kA as i,md as ia,xt as ic,Tm as ii,s as il,dC as in,Es as io,O_ as ir,wi as is,FE as it,fO as j,Xs as ja,M as jc,Mp as ji,Pb as jn,ps as jo,Rh as jr,_r as js,Fw as jt,uO as k,nc as ka,F as kc,Lp as ki,Eb as kn,Wo as ko,Bh as kr,fr as ks,uT as kt,Rk as l,nd as la,Ve as lc,nh as li,n as ll,wS as ln,rs as lo,d_ as lr,Si as ls,kE as lt,Bk as m,Fu as ma,dt as mc,Zm as mi,eS as mn,bs as mo,t_ as mr,si as ms,dE as mt,VA as n,vd as na,Ot as nc,Hm as ni,we as nl,nT as nn,wc as no,k_ as nr,Ci as ns,vD as nt,EA as o,pd as oa,lt as oc,oh as oi,p as ol,NS as on,is as oo,E_ as or,gi as os,jE as ot,zk as p,zu as pa,ct as pc,Fm as pi,sS as pn,$o as po,e_ as pr,xi as ps,SE as pt,oD as q,qs as qa,j as qc,sf as qi,M_ as qn,Aa as qo,sh as qr,Gt as qs,rT as qt,jA as r,yd as ra,bt as rc,Em as ri,h as rl,yC as rn,mc as ro,x_ as rr,fi as rs,nD as rt,nA as s,Qu as sa,Ue as sc,Cm as si,m as sl,jS as sn,Zo as so,a_ as sr,hi as ss,EE as st,qA as t,wd as ta,zt as tc,Rm as ti,be as tl,Qw as tn,ic as to,b_ as tr,Ei as ts,fD as tt,Fk as u,qu as ua,it as uc,Ym as ui,CS as un,ns as uo,s_ as ur,_i as us,bE as ut,wk as v,fu as va,Ke as vc,lm as vi,Xx as vn,Uo as vo,Qg as vr,Zr as vs,sE as vt,NO as w,el as wa,A as wc,qp as wi,Xb as wn,Vo as wo,ig as wr,Ir as ws,UT as wt,rk as x,cu as xa,Be as xc,mm as xi,lx as xn,Io as xo,n_ as xr,ei as xs,$T as xt,Ck as y,uu as ya,We as yc,dm as yi,dx as yn,Po as yo,Kg as yr,qr as ys,nE as yt,MD as z,cc as za,me as zc,Md as zi,ky as zn,bo as zo,Th as zr,_n as zs,Bw as zt};
|
|
15
|
+
`];function bb(e,t){return t.type=e,t}function xb(e){return e.type===`section`}function Sb(e){return xb(e)?wb:Tb}function Cb(e){if(xb(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=Cb(e);n>=t&&(t=n+ +(r&&(!n||xb(e)&&!e.noHeader)))}),t}return 0}function wb(e,t,n,r){var i=t.noHeader,a=Db(Cb(t)),o=[],s=t.blocks||[];Ce(!s||V(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Fe(l,c)){var u=new zy(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}F(s,function(n,i){var s=t.valueFormatter,c=Sb(n)(s?M(M({},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):Ob(r,o.join(``),i?n:a.html);if(i)return d;var f=qg(t.header,`ordinal`,e.useUTC),p=_b(r,e.renderMode).nameStyle,m=gb(r);return e.renderMode===`richText`?jb(e,f,p)+a.richText+d:Ob(r,`<div style="`+p+`;`+m+`;">`+Ot(f)+`</div>`+d,n)}function Tb(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=V(e)?e:[e],I(e,function(e,t){return qg(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||P_.color.secondary,i),f=a?``:qg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=_b(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:jb(e,f,v))+(o?``:Mb(e,m,h,g,y)):Ob(r,(s?``:d)+(a?``:kb(f,!s,v))+(o?``:Ab(m,h,g,y)),n)}}function Eb(e,t,n,r,i,a){if(e)return Sb(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Db(e){return{html:vb[e],richText:yb[e]}}function Ob(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=gb(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function kb(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Ot(e)+`</span>`}function Ab(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return Ot(e)}).join(` `)+`</span>`}function jb(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Mb(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(V(t)?t.join(` `):t,a)}function Nb(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return t_(n)}function Pb(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Fb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_s()}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=Qg({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?F(t,function(e){return M(n,e)}):M(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Ib(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=V(s),l=Nb(t,n),u,d,f,p;if(o>1||c&&!o){var m=Lb(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=Dy(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Gs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return bb(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[bb(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!we(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Lb(e,t,n,r,i){var a=t.getData(),o=se(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?F(r,function(e){u(Dy(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(bb(`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 Rb=Qs();function zb(e,t){return e.getName(t)||e.getId(t)}var Bb=`__universalTransitionEnabled`,Vb=function(e){n(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=jy({count:Wb,reset:Gb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Rb(this).sourceManager=new db(this)).prepareSource();var r=this.getInitialData(e,n);qb(r,this),this.dataTask.context.data=r,Rb(this).dataBeforeProcessed=r,Hb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=D_(this),r=n?k_(e):{},i=this.subType;M_.hasClass(i)&&(i+=`Series`),j(e,t.getTheme().get(this.subType)),j(e,this.getDefaultOption()),js(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&O_(e,r,n)},t.prototype.mergeOption=function(e,t){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var n=D_(this);n&&O_(this.option,e,n);var r=Rb(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);qb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Rb(this).dataBeforeProcessed=i,Hb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!pe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&js(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=Yb(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Rb(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=Yb(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Rb(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Rb(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Rb(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Ib({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(i.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=rv.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={};else for(var a=0;a<e.length;a++){var o=e[a],s=zb(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=z(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[zb(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=zb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=zb(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 M_.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}(M_);ae(Vb,ky),ae(Vb,rv),zc(Vb,M_);function Hb(e){var t=e.name;Gs(e)||(e.name=Ub(e)||t)}function Ub(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return F(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Wb(e){return e.model.getRawData().count()}function Gb(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Kb}function Kb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function qb(e,t){F(Me(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,le(Jb,t))})}function Jb(e,t){var n=Yb(e);return n&&n.setOutputEnd((t||this).count()),t}function Yb(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 Xb=function(){function e(){this.group=new po,this.uid=Bh(`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}();Lc(Xb),Wc(Xb);function Zb(){var e=Qs();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 Qb=Qs(),$b=Zb(),ex=function(){function e(){this.group=new po,this.uid=Bh(`viewChart`),this.renderTask=jy({plan:rx,reset:ix}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&nx(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Zm(this.group,e)},e.markUpdateMethod=function(e,t){Qb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function tx(e,t,n){e&&jf(e)&&(t===`emphasis`?of:sf)(e,n)}function nx(e,t,n){var r=Zs(e,t),i=t&&t.highlightKey!=null?Nf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){tx(e,n,i)}):F(As(r),function(t){tx(e.getItemGraphicEl(t),n,i)})}Lc(ex,[`dispose`]),Wc(ex);function rx(e){return $b(e.model)}function ix(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Qb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),ax[c]}var ax={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)}}},ox=`\0__throttleOriginMethod`,sx=`\0__throttleRate`,cx=`\0__throttleType`;function lx(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function ux(e,t,n,r){var i=e[t];if(i){var a=i[ox]||i,o=i[cx];if(i[sx]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=lx(a,n,r===`debounce`),i[ox]=a,i[cx]=r,i[sx]=n}return i}}function dx(e,t){var n=e[t];n&&n[ox]&&(n.clear&&n.clear(),e[t]=n[ox])}var fx=Qs(),px={itemStyle:Gc(Fh,!0),lineStyle:Gc(Mh,!0)},mx={lineStyle:`stroke`,itemStyle:`fill`};function hx(e,t){return e.visualStyleMapper||px[t]||(console.warn(`Unknown style type '`+t+`'.`),px.itemStyle)}function gx(e,t){return e.visualDrawType||mx[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var _x={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=hx(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=gx(e,r),c=a[s],l=H(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`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(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=M({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},vx=new Rh,yx={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=hx(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){vx.option=n[r];var o=i(vx);M(e.ensureUniqueItemVisual(t,`style`),o),vx.option.decal&&(e.setItemVisual(t,`decal`,vx.option.decal),vx.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},bx={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();fx(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=fx(e).scope,a=gx(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},xx=Math.PI;function Sx(e,t){t||={},N(t,{text:`loading`,textColor:P_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:P_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new po,r=new qu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Qu({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 qu({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 Up({shape:{startAngle:-xx/2,endAngle:-xx/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:xx*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:xx*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 Cx=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Oc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Ce(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;F(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=K(),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)||jy({plan:kx,reset:Ax,count:Nx}));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||jy({reset:Tx});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Ce(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):F(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,jy({reset:Ex,onDirty:Ox})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:Px(e)}),e.uid=Bh(`stageHandler`),t&&(e.visualType=t),e},e}();function Tx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ex(e){return e.dirtyOnOverallProgress&&Dx}function Dx(){this.agent.dirty(),this.getDownstream().dirty()}function Ox(){this.agent&&this.agent.dirty()}function kx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ax(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=As(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return Mx(t)}):jx}var jx=Mx(0);function Mx(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 Nx(e){return e.data.count()}function Px(e){Lx=null;try{e(Fx,Ix)}catch{}return Lx}var Fx={},Ix={},Lx;Rx(Fx,pv),Rx(Ix,Ed),Fx.eachSeriesByType=Fx.eachRawSeriesByType=function(e){Lx=e},Fx.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Lx=e.subType)};function Rx(e,t){for(var n in t.prototype)e[n]=Ie}var Q=P_.darkColor,zx=Q.background,Bx=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},Vx={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},Hx={darkMode:!0,color:Q.theme,backgroundColor:zx,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:zx,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:Vx,y:Vx,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:Bx(),logAxis:Bx(),valueAxis:Bx(),categoryAxis:Bx(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=Bx();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};Hx.categoryAxis.splitLine.show=!1;var Ux=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=Pc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};F(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}(),Wx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Gx=Wx.concat([`symbolKeepAspect`]),Kx={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<Wx.length;o++){var s=Wx[o],c=e.get(s);H(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(M({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=z(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}}},qx={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<Gx.length;r++){var i=Gx[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Jx(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function Yx(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function Xx(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)}}function Zx(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}F([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=M({},t),i.dispatchAction(M(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Qx(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Zs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:M({},r)})}})}function $x(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Qx(`map`,`selectchanged`,t,r,e),Qx(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Qx(`map`,`selected`,t,r,e),Qx(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Qx(`map`,`unselected`,t,r,e),Qx(`pie`,`unselected`,t,r,e))})}function eS(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var tS=new mt,nS={};function rS(e,t){nS[e]=t}function iS(e){return nS[e]}var aS={};function oS(e,t){aS[e]=t}function sS(e){return aS[e]}var cS=Qs();function lS(e){cS(e).prepare={}}function uS(e){cS(e).fullUpdate={}}function dS(e){return cS(e).prepare}function fS(e){return cS(e).fullUpdate}var pS=Math.round(Math.random()*9),mS=typeof Object.defineProperty==`function`,hS=function(){function e(){this._id=`__ec_inner_`+pS++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return mS?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}(),gS=Z.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()}}),_S={line:Lp,rect:qu,roundRect:qu,square:qu,circle:sp,diamond:Z.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:Z.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:Z.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:gS},vS={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}},yS={};F(_S,function(e,t){yS[t]=new e});var bS=Z.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Ja(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=yS[r];i||=(r=`rect`,yS[r]),vS[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function xS(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||P_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function SS(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?Em(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Tm(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new bS({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=xS,a&&c.setColor(a),c}function CS(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function wS(e,t){if(e!=null)return V(e)||(e=[e,e]),[Wo(e[0],t[0])||0,Wo(G(e[1],e[0]),t[1])||0]}function TS(e){return isFinite(e)}function ES(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=TS(r)?r:0,i=TS(i)?i:1,a=TS(a)?a:0,o=TS(o)?o:0,e.createLinearGradient(r,a,i,o)}function DS(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=TS(o)?o:.5,s=TS(s)?s:.5,c=c>=0&&TS(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function OS(e,t,n){for(var r=t.type===`radial`?DS(e,t,n):ES(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function kS(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 AS(e){return parseInt(e,10)}function jS(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]||AS(s[r])||AS(e.style[r]))-(AS(s[a])||0)-(AS(s[o])||0)||0}function MS(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:de(e)?[e]:V(e)?e:null}function NS(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&MS(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=I(n,function(e){return e/i}),r/=i)}return[n,r]}var PS=new lu(!0);function FS(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function IS(e){return typeof e==`string`&&e!==`none`}function LS(e){var t=e.fill;return t!=null&&t!==`none`}function RS(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 zS(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 BS(e,t,n){var r=Xc(t.image,t.__image,n);if(Qc(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)*Le),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function VS(e,t,n,r,i){var a,o=FS(n),s=LS(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||PS,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?OS(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?OS(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?BS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?BS(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=NS(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&zS(e,n),s&&RS(e,n)):(s&&RS(e,n),o&&zS(e,n)),T&&e.setLineDash([])}function HS(e,t,n){var r=t.__image=Xc(n.image,t.__image,t,t.onload);if(r&&Qc(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 US(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=NS(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(FS(n)&&e.strokeText(i,n.x,n.y),LS(n)&&e.fillText(i,n.x,n.y)):(LS(n)&&e.fillText(i,n.x,n.y),FS(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var WS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],GS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function KS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){rC(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Cl.opacity:o}(r||t.blend!==n.blend)&&(a||=(rC(e,i),!0),e.globalCompositeOperation=t.blend||Cl.blend);for(var s=0;s<WS.length;s++){var c=WS[s];(r||t[c]!==n[c])&&(a||=(rC(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(rC(e,i),!0),e.shadowColor=t.shadowColor||Cl.shadowColor),a}function qS(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=KS(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(rC(e,i),!0),IS(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(rC(e,i),!0),IS(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(rC(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||=(rC(e,i),!0),e.lineWidth=c)}for(var l=0;l<GS.length;l++){var u=GS[l],d=u[0];(r||a[d]!==o[d])&&(s||=(rC(e,i),!0),e[d]=a[d]||u[1])}return s}function JS(e,t,n,r,i){return KS(e,t.style,n&&n.style,r,i)}function YS(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 XS(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),YS(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function ZS(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 QS=1,$S=2,eC=3,tC=4;function nC(e){var t=LS(e),n=FS(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 rC(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function iC(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};aC(e,t,n),oC(e,n)}function aC(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))t.__dirty&=-2,t.__isRendered=!1;else{var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||kS(i,a))&&(a&&(rC(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(rC(e,n),e.save(),XS(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)t.__dirty&=-2,t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Z&&t.autoBatch&&nC(o);s||ZS(r,l.transform)?(rC(e,n),YS(e,t)):u||rC(e,n),t instanceof Z?(n.lastDrawType!==QS&&(c=!0,n.lastDrawType=QS),qS(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),VS(e,t,o,u,n)):t instanceof Fu?(n.lastDrawType!==eC&&(c=!0,n.lastDrawType=eC),qS(e,t,l,c,n),US(e,t,o)):t instanceof zu?(n.lastDrawType!==$S&&(c=!0,n.lastDrawType=$S),JS(e,t,l,c,n),HS(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==tC&&(c=!0,n.lastDrawType=tC),sC(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&rC(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}}function oC(e,t){rC(e,t),t.prevElClipPaths&&e.restore()}function sC(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),aC(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}oC(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var cC=new hS,lC=new kr(100),uC=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function dC(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&cC.delete(e);var a=cC.get(e);if(a)return a;var o=N(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,cC.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<uC.length;++s){var c=o[uC[s]];if(c!=null&&!V(c)&&!U(c)&&!de(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=lC.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=pC(o.dashArrayX),f=mC(o.dashArrayY),m=fC(o.symbol),h=hC(d),g=gC(f),_=!i&&p.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&lC.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=ys(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=ys(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,p=0,h=0,x=0;p<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=p+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,ee=x/2%m[u].length;O(w,T,E,D,m[u][ee])}p+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function O(e,t,a,s,c){var l=i?1:n,u=SS(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else iC(b,u)}}}}function fC(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return fC([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function pC(e){if(!e||e.length===0)return[[0,0]];if(de(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!de(e[r])){n=!1;break}if(n)return pC([e]);for(var i=[],r=0;r<e.length;++r)if(de(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=I(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function mC(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(de(e)){var t=Math.ceil(e);return[t,t]}var n=I(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function hC(e){return I(e,function(e){return gC(e)})}function gC(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var _C=Ac(vC);function vC(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=dC(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=dC(i,t)}}})}var yC=`6.1.0`,bC={zrender:`6.1.0`},xC=1,SC=800,CC=900,wC=920,TC=1e3,EC=2e3,DC=5e3,OC=1e3,kC=1100,AC=2e3,jC=3e3,MC=4e3,NC=4500,PC=4600,FC=5e3,IC=6e3,LC=7e3,RC={PROCESSOR:{SERIES_FILTER:SC,AXIS_STATISTICS:wC,FILTER:TC,STATISTIC:DC,STATISTICS:DC},VISUAL:{LAYOUT:OC,PROGRESSIVE_LAYOUT:kC,GLOBAL:AC,CHART:jC,POST_CHART_LAYOUT:PC,COMPONENT:MC,BRUSH:FC,CHART_ITEM:NC,ARIA:IC,DECAL:LC}},zC=`__flagInMainProcess`,BC=`__mainProcessVersion`,VC=`__pendingUpdate`,HC=`__needsUpdateStatus`,UC=/^[a-zA-Z0-9_]+$/,WC=`__connectUpdateStatus`,GC=0,KC=1,qC=2;function JC(e){return function(){var t=[...arguments];if(this.isDisposed())this.id;else return XC(this,e,t)}}function YC(e){return function(){var t=[...arguments];return XC(this,e,t)}}function XC(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),mt.prototype[t].apply(e,n)}var ZC=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mt),QC=ZC.prototype;QC.on=YC(`on`),QC.off=YC(`off`);var $C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,hw,gw,_w,vw=function(e){n(t,e);function t(t,n,r){var i=e.call(this,new Ux)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[BC]=1,r.ssr&&Do(function(e){var t=fd(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=bo(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=lx(B(c.flush,c),17),i._updateTheme(n),i._locale=$h(r.locale||Zh),i._coordSysMgr=new a_;var l=i._api=pw(i);function u(e,t){return e.__prio-t.__prio}return Kn(Ew,u),Kn(ww,u),i._scheduler=new Cx(i,l,ww,Ew),i._messageCenter=new ZC,i._initEvents(),i.resize=B(i.resize,i),c.animation.on(`frame`,i._onframe,i),cw(c,i),lw(c,i),Ee(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(gw(this),this[VC]){var r=this[VC].silent;this[zC]=!0,_w(this);try{$C(this),nw.update.call(this,null,this[VC].updateParams)}catch(e){throw this[zC]=!1,this[VC]=null,e}this._zr.flush(),this[zC]=!1,this[VC]=null,ow.call(this,r),sw.call(this,r)}else if(e.unfinished){var i=xC;do{e.unfinished=!1;var a=p.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),iw(this,t),e.performVisualTasks(t),fw(this,this._model,n,`remain`,{}),i-=p.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[zC]){if(this._disposed)this.id;else{var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[zC]=!0,_w(this),!this._model||t){var o=new bv(this._api),s=this._theme,c=this._model=new pv;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},Tw);var l={seriesTransition:a,optionChanged:!0};if(n)this[VC]={silent:r,updateParams:l},this[zC]=!1,this.getZr().wakeUp();else{try{$C(this),nw.update.call(this,null,l)}catch(e){throw this[VC]=null,this[zC]=!1,e}this._ssr||this._zr.flush(),this[VC]=null,this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[zC]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[VC]&&(r??=this[VC].silent,i=this[VC].updateParams,this[VC]=null),this[zC]=!0,_w(this);try{this._updateTheme(e),n.setTheme(this._theme),$C(this),nw.update.call(this,{type:`setTheme`},i)}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype._updateTheme=function(e){U(e)&&(e=Dw[e]),e&&(e=A(e),e&&Jv(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||i.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;F(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 F(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(Aw[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();F(kw,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(A(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,m=l-s,h=p.createCanvas(),g=bo(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:m}),t){var _=``;return F(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new qu({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new zu({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return rw(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return rw(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return rw(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return F(ec(n,e),function(e,n){n.indexOf(`Models`)>=0&&F(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=ec(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Yx(i,t):Jx(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;F(bw,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&eS(i,function(e){var t=fd(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=M({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;F(Cw,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),$x(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&oc(this.getDom(),Nw,``);var e=this,t=e._api,n=e._model;F(e._componentsViews,function(e){e.dispose(n,t)}),F(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 kw[e.id]}},t.prototype.resize=function(e){if(!this[zC]){if(this._disposed)this.id;else{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[VC]&&(r??=this[VC].silent,n=!0,this[VC]=null),this[zC]=!0,_w(this);try{n&&$C(this),nw.update.call(this,{type:`resize`,animation:M({duration:0},e&&e.animation)})}catch(e){throw this[zC]=!1,e}this[zC]=!1,ow.call(this,r),sw.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(W(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),Ow[e]){var n=Ow[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=M({},e);return t.type=Sw[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(W(t)||(t={silent:!!t}),xw[e.type]&&this._model){if(this[zC])this._pendingActions.push(e);else{var n=t.silent;aw.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&i.browser.weChat&&this._throttledZrFlush(),ow.call(this,n),sw.call(this,n)}}},t.prototype.updateLabelLayout=function(){tS.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){$C=function(e){lS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),ew(e,!0),ew(e,!1),t.plan()},ew=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=Pc(e.type);u=new(t?Xb.getClass(d.main,d.sub):ex.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},tw=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){F([].concat(e._componentsViews,e._chartsViews),l);return}var o=ac(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),F(As(s),function(e){var t=Ws(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Ff(n)){if(t instanceof Vb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&gf(t,n,e._api);else{var r=_f(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&hf(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?of(e):sf(e)})}}else Pf(n)&&t instanceof Vb&&(bf(t,n,e._api),xf(t),hw(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},nw={prepareAndUpdate:function(e){$C(this),nw.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){uS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),tS.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),iw(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),uw(this,r,i,e,n),tS.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),fw(t,n,r,e,{},a),tS.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ex.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),uw(this,n,this._api,e,{}),tS.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()}),ex.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)}),tS.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){nw.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed)e.id;else for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ec(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}}rw=e,iw=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},aw=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=xw[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Pc(s[0]);this[zC]=!0,_w(this);var u=[e],d=!1;e.batch&&(d=!0,u=I(e.batch,function(t){return t=N(M({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Pf(e),_=Ff(e);if(_&&pf(this._api),F(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=M({},t),p.type=h,f.push(p),_){var a=tc(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;tw(n,c,t,u),hw(n)}else g?(tw(n,c,t,`series`),hw(n)):l&&tw(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[VC]?($C(this),nw.update.call(this,e),this[VC]=null):nw[c].call(this,e)}catch(e){throw this[zC]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[zC]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Ce(W(y)),v=N({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)}},ow=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();aw.call(this,n,e)}},sw=function(e){!e&&this.trigger(`updated`)},cw=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[VC]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},lw=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=eS(n,jf);r&&(vf(r,e,t._api),hw(t))}).on(`mouseout`,function(e){var n=e.target,r=eS(n,jf);r&&(yf(r,e,t._api),hw(t))}).on(`click`,function(e){var n=e.target,r=eS(n,function(e){return fd(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=fd(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 r(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;Kn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),F(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)})}}uw=function(e,t,n,i,a){r(t),dw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive=!1}),fw(e,t,n,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},dw=function(e,t,n,r,i,a){F(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),c(i,e),u(i,e)})},fw=function(e,t,n,r,i,a){var d=e._scheduler;i=M(i||{},{updatedSeries:t.getSeries()}),tS.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),a&&a.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),s(t,n),xf(t)}),d.unfinished=f||d.unfinished,tS.trigger(`series:layoutlabels`,t,n,i),tS.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];c(t,n),u(t,n)}),o(e,t),tS.trigger(`series:afterupdate`,t,n,i)},hw=function(e){e[HC]=!0,e.getZr().wakeUp()},_w=function(e){e[BC]=(e[BC]+1)%1e6},gw=function(e){e[HC]&&(e.getZr().storage.traverse(function(e){um(e)||a(e)}),e[HC]=!1)};function a(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 o(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,a=0;r.traverse(function(e){e.isGroup||a++});var o=a>G(t.get(`hoverLayerThreshold`),H_.hoverLayerThreshold)&&!i.node&&!i.worker;(e._usingTHL||o)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!o)})}}),e._usingTHL=o)}}function s(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function c(e,t){if(!e.preventAutoZ){var n=nh(e);t.eachRendered(function(e){return ih(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!um(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 u(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),i=n.get(`duration`),o=i>0?{duration:i,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(um(e))return;if(e instanceof Z&&If(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),i=e.getTextGuideLine();n&&(n.stateTransition=o),i&&(i.stateTransition=o)}e.__dirty&&a(e)}})}pw=function(e){return new(function(t){n(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){of(t,n),hw(e)},r.prototype.leaveEmphasis=function(t,n){sf(t,n),hw(e)},r.prototype.enterBlur=function(t){cf(t),hw(e)},r.prototype.leaveBlur=function(t){lf(t),hw(e)},r.prototype.enterSelect=function(t){uf(t),hw(e)},r.prototype.leaveSelect=function(t){df(t),hw(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r.prototype.getECUpdateCycleVersion=function(){return e[BC]},r.prototype.usingTHL=function(){return e._usingTHL},r}(Ed))(e)},mw=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[WC]=t}}F(Sw,function(n,r){e._messageCenter.on(r,function(n){if(Aw[e.group]&&e[WC]!==GC){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];F(kw,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,GC),F(i,function(e){e[WC]!==KC&&e.dispatchAction(r)}),t(i,qC)}})})}}(),t}(mt),yw=vw.prototype;yw.on=JC(`on`),yw.off=JC(`off`),yw.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var bw=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],xw={},Sw={},Cw={},ww=[],Tw=[],Ew=[],Dw={},Ow={},kw={},Aw={},jw=new Date-0,Mw=new Date-0,Nw=`_echarts_instance_`;function Pw(e,t,n){var r=!(n&&n.ssr);if(r){var i=zw(e);if(i)return i}var a=new vw(e,t,n);return a.id=`ec_`+jw++,kw[a.id]=a,r&&oc(e,Nw,a.id),mw(a),tS.trigger(`afterinit`,a),a}function Fw(e){if(V(e)){var t=e;e=null,F(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+Mw++,F(t,function(t){t.group=e})}return Aw[e]=!0,e}function Iw(e){Aw[e]=!1}var Lw=Iw;function Rw(e){U(e)?e=kw[e]:e instanceof vw||(e=zw(e)),e instanceof vw&&!e.isDisposed()&&e.dispose()}function zw(e){return kw[sc(e,Nw)]}function Bw(e){return kw[e]}function Vw(e,t){Dw[e]=t}function Hw(e){P(Tw,e)<0&&Tw.push(e)}function Uw(e,t){eT(ww,e,t,EC)}function Ww(e){Kw(`afterinit`,e)}function Gw(e){Kw(`afterupdate`,e)}function Kw(e,t){tS.on(e,t)}function qw(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(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;xw[r]||(Ce(UC.test(r)&&UC.test(i)),a&&Ce(i!==r),xw[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},Cw[i]=1,a&&s&&(Cw[l]=1),Sw[l]=r)}function Jw(e,t){a_.register(e,t)}function Yw(e){var t=a_.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Xw(e,t){oS(e,t)}function Zw(e,t){eT(Ew,e,t,OC,`layout`,!0)}function Qw(e,t){eT(Ew,e,t,jC,`visual`,!0)}var $w=[];function eT(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),!(P($w,n)>=0)){$w.push(n);var o=Cx.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function tT(e,t){Ow[e]=t}function nT(e){m({createCanvas:e})}function rT(e,t,n){var r=iS(`registerMap`);r&&r(e,t,n)}function iT(e){var t=iS(`getMap`);return t&&t(e)}var aT=Zy;Qw(AC,_x),Qw(NC,yx),Qw(NC,bx),Qw(AC,Kx),Qw(NC,qx),Qw(LC,_C),Hw(Jv),Uw(CC,Yv),tT(`default`,Sx),qw({type:Pd,event:Pd,update:Pd},Ie),qw({type:Fd,event:Fd,update:Fd},Ie),qw({type:Id,event:zd,update:Id,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Ld,event:zd,update:Ld,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0}),qw({type:Rd,event:zd,update:Rd,action:Ie,refineEvent:oT,publishNonRefinedEvent:!0});function oT(e,t,n,r){return{eventContent:{selected:Sf(n),isFromClick:t.isFromClick||!1}}}Vw(`default`,{}),Vw(`dark`,Hx);var sT={},cT=[],lT={registerPreprocessor:Hw,registerProcessor:Uw,registerPostInit:Ww,registerPostUpdate:Gw,registerUpdateLifecycle:Kw,registerAction:qw,registerCoordinateSystem:Jw,registerLayout:Zw,registerVisual:Qw,registerTransform:aT,registerLoading:tT,registerMap:rT,registerImpl:rS,PRIORITY:RC,ComponentModel:M_,ComponentView:Xb,SeriesModel:Vb,ChartView:ex,registerComponentModel:function(e){M_.registerClass(e)},registerComponentView:function(e){Xb.registerClass(e)},registerSeriesModel:function(e){Vb.registerClass(e)},registerChartView:function(e){ex.registerClass(e)},registerCustomSeries:function(e,t){oS(e,t)},registerSubTypeDefaulter:function(e,t){M_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wo(e,t)}};function uT(e){V(e)?F(e,function(e){uT(e)}):P(cT,e)>=0||(cT.push(e),H(e)&&(e={install:e}),e.install(lT))}function dT(e){return e==null?0:e.length||1}function fT(e){return e}var pT=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||fT,this._newKeyGetter=r||fT,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=dT(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=dT(c),d=dT(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=dT(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=dT(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),mT=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 hT(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};F(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;gT(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),vT(n.type)&&(a[0]=t),gT(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}gd.each(function(e,t){var i=gT(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=I(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 mT(s,t),n}function gT(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _T(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function vT(e){return e!==`ordinal`&&e!==`time`}var yT=function(){function e(e){this.otherDims={},e!=null&&M(this,e)}return e}(),bT=Qs(),xT={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},ST=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||=TT(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(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=cy(this.source),n=!ET(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+=xT[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 CT(e){return e instanceof ST}function wT(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function TT(e){var t=bT(e);return t.dimNameMap||=wT(e.dimensionsDefine)}function ET(e){return e>30}var DT=W,OT=I,kT=typeof Int32Array>`u`?Array:Int32Array,AT=`e\0\0`,jT=-1,MT=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],NT=[`_approximateExtent`],PT,FT,IT,LT,RT,zT,BT,VT=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;CT(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=U(u)?new yT({name:u}):u instanceof yT?u:new yT(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]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();F(a,function(e){m.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(de(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},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 ub&&(i=e),!i){var a=this.dimensions,o=$v(e)||oe(e)?new hy(e,a.length):e;i=new ub;var s=OT(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=hT(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&&BT(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&&Ps(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Ws(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Ws(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)BT(this,o);PT(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},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){DT(e)?M(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=IT(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 FT(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),null)},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 V(e)?r.getValues(OT(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],r=n&&n[t];return r==null||isNaN(r)?jT:r},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);this._store.each(i,r?B(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=OT(LT(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?B(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=z(e),i=[];return F(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){H(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=OT(LT(e),this._getStoreDimIndex,this),o=zT(this);return o._store=this._store.map(a,i?B(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=OT(LT(e),this._getStoreDimIndex,this);this._store.modify(a,i?B(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=zT(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=zT(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=zT(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 Rh(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return FT(e,t)},function(e){return FT(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||{},DT(e)?M(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),V(i)?i=i.slice():DT(i)&&(i=M({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,DT(t)?M(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){DT(e)?M(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?M(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){pd(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){F(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:OT(this.dimensions,this._getDimInfo,this),this.hostModel),RT(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xe(arguments)))})},e.internalField=function(){PT=function(e){var t=e._invertedIndicesMap;F(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new kT(a.categories.length);for(var s=0;s<n.length;s++)n[s]=jT;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},IT=function(e,t,n){return Ws(e._getCategory(t,n),null)},FT=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=IT(e,e._idDimIdx,t)),n??=AT+t,n},LT=function(e){return V(e)||(e=e==null?[]:[e]),e},zT=function(t){var n=new e(t._schema?t._schema:OT(t.dimensions,t._getDimInfo,t),t.hostModel);return RT(n,t),n},RT=function(e,t){F(MT.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(NT,function(n){e[n]=A(t[n])}),e._calculationInfo=M({},t._calculationInfo)},BT=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=IT(e,i,t)),s==null&&a!=null&&(r[t]=s=IT(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 HT(e,t){return UT(e,t).dimensions}function UT(e,t){$v(e)||(e=ty(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=WT(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ET(o),c=r===e.dimensionsDefine,l=c?TT(e):wT(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new rb(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=W(n)?n:{name:n},o=new yT,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=As(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);F(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;F(n,function(e){var t,n,r,i;if(U(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=M({},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=As(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++)}F(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(N(o,i),t,a),o.name==null&&n){var s=n[a];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&N(o.otherDims,r)})}});function g(e,t,n){gd.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)F(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=GT(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(X_(e,S)===U_.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return wc(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new ST({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function WT(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function GT(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 KT=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function qT(e){var t=e.get(`coordinateSystem`),n=new KT(t),r=JT[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var JT={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,nc).models[0],a=e.getReferringComponents(`yAxis`,nc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),YT(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),YT(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,nc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),YT(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,nc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),YT(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),YT(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();F(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),YT(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,nc).models[0];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 YT(e){return e.get(`type`)===`category`}function XT(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ZT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(F(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),F(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!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 h=u.coordDim,g=u.type,_=0;F(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ZT(e){return!CT(e.schema)}function QT(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function $T(e,t){return QT(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function eE(e,t){var n=e.get(`coordinateSystem`),r=a_.get(n),i;return t&&t.coordSysDims&&(i=I(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_T(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function tE(e,t,n){var r,i;return n&&F(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 nE(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=ty(e)):(i=r.getSource(),a=i.sourceFormat===_d);var o=qT(t),s=eE(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?le(K_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=UT(i,u),f=tE(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=XT(t,{schema:d,store:p}),h=new VT(d,t);h.setCalculationInfo(m);var g=f!=null&&rE(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 rE(e){if(e.sourceFormat===`original`)return!V(Ns(iE(e.data||[])))}function iE(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var aE=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Wc(aE);var oE=0,sE=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++oE,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,cE);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(!U(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||=K(this.categories)},e}();function cE(e){return W(e)&&e.value!=null?e.value:e+``}var lE=z({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function uE(e,t,n){var r;e||={};var i=ig();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(F(lE,function(t){a[t]&&(e[t]=B(a[t],a))}),r=a)}return r??_E(e,n),{brk:r,mapper:e}}function dE(e,t){F(lE,function(n){e[n]=t[n]})}function fE(e,t){e.freeze=Ie}function pE(e){return e.getExtentUnsafe(0,2)}function mE(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function hE(e){var t=mE(e,3);return t[1]-t[0]}function gE(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function _E(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():pc(),M(n,vE),n}var vE={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=mE(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){yE(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),yE(r,e,t,n)},freeze:function(){}};function yE(e,t,n,r){yc(n,r)&&(e[t][0]=n,e[t][1]=r)}function bE(e){return xE(e)||CE(e)}function xE(e){return e.type===`interval`}function SE(e){return e.type===`time`}function CE(e){return e.type===`log`}function wE(e){return e.type===`ordinal`}function TE(e){var t=ds(e),n=Ro(10,t),r=Fo(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Yo(r*n,-t)}function EE(e){return Qo(e)+2}function DE(e,t){return zo(e)/zo(t)}function OE(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Ro(t,e)}function kE(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Po(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!vc(r[0])||!vc(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function AE(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function jE(e,t){return e||=t,Fo(No(e,1))}function ME(e,t,n){var r=pE(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var NE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,dE(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new sE({}),V(i)&&(i=new sE({categories:I(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=uE(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,fE(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Fo(e),e},t.prototype.getTicks=function(){var e=[];return ME(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Mo(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=pE(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Fo(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(aE);aE.registerClass(NE);function PE(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=EE(f);u<t-1;){var m=Yo(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=ig();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var FE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=uE(r,ag(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return A(this._cfg)},t.prototype.setConfig=function(e){var t=pE(this);this._cfg=e=A(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=EE(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=pE(this),i=t.niceExtent,a=t.intervalPrecision,o=ig(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Yo(i[0]-n,a):r[0]});for(var d=function(e,t){return Fo((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Mo(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Yo(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Yo(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Yo(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Qo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Wg(Yo(e.value,n,!0))},t.type=`interval`,t}(aE);aE.registerClass(FE);var IE=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},LE=function(e){n(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=uE(r,ag(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Eg(e.value,_g[Tg(Cg(this._minLevelUnit))]||_g.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Dg(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=pE(this),r=ig(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return ig().addBreaksToTicks(o,i.breaks,n),o;o=qE(this._minLevelUnit,this._approxInterval,s,n,gE(this),i);var c=vg.length-1,l=0;return F(o,function(e){e.time&&(c=Math.min(c,P(vg,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&ig().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&ig().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(P(vg,Og(e.vmin,s)),P(vg,Og(e.vmax,s))),n=0,r=0;r<vg.length;r++)if(!zE(vg[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:vg[Math.max(i,t)],upperTimeUnit:vg[i]}}),o},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return de(e)?Math.round(e):+ls(e)},t.type=`time`,t}(aE),RE=[[`second`,cg],[`minute`,lg],[`hour`,ug],[`quarter-day`,ug*6],[`half-day`,ug*12],[`day`,dg*1.2],[`half-week`,dg*3.5],[`week`,dg*7],[`month`,dg*31],[`quarter`,dg*95],[`half-year`,fg/2],[`year`,fg]];function zE(e,t,n,r){return kg(new Date(t),e,r).getTime()===kg(new Date(n),e,r).getTime()}function BE(e,t){return e/=dg,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function VE(e){var t=30*dg;return e/=t,e>6?6:e>3?3:e>2?2:1}function HE(e){return e/=ug,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function UE(e,t){return e/=t?lg:cg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WE(e){return No(fs(e,!0),1)}function GE(e,t,n){var r=Math.max(0,P(vg,t)-1);return kg(new Date(e),vg[r],n).getTime()}function KE(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 qE(e,t,n,r,i,a){var o=yg,s=0;function c(e,t,n,i,o,c,l){for(var u=KE(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!zE(Cg(e),r[0],r[1],n)){s&&(i=[{value:GE(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/dg/365)),p=Ag(n),m=Lg(n);break;case`half-year`:case`quarter`:case`month`:f=VE(t),p=jg(n),m=Rg(n);break;case`week`:case`half-week`:case`day`:f=BE(t,31),p=Mg(n),m=zg(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=HE(t),p=Ng(n),m=Bg(n);break;case`minute`:f=UE(t,!0),p=Pg(n),m=Vg(n);break;case`second`:f=UE(t,!1),p=Fg(n),m=Hg(n);break;case`millisecond`:f=WE(t),p=Ig(n),m=Ug(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Cg(o[m]);if(wg(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Cg(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=L(I(u,function(e){return L(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=Og(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}wc(S,Tc,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],ee=Og(r[0],n),O=Og(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:ee,lowerTimeUnit:ee},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),S}var JE=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=dg,n[1]+=dg),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-dg}e.setExtent(n[0],n[1]);var i=jE(t.splitNumber,10),a=gE(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=RE.length,l=Math.min(IE(RE,a,0,c),c-1),u=RE[l][1],d=RE[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};aE.registerClass(LE);var YE=0,XE=1,ZE=2,QE=function(e){n(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=FE.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[YE]=i[XE]=a[YE]=a[XE]=NaN,dE(r,t.mapperMethods);var s=ig(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},ZE,l),r.powStub=new FE({breakParsed:l.original}),r.intervalStub=new FE({breakParsed:l.transformed}),fE(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=ig(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return I(i.getTicks(e||{}),function(e){var i=e.value,o=OE(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,og(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return PE(this,e,og(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(DE(e,this.base))},scale:function(e){return OE(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=DE(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return $E.depth=n,eD.lookup=this._lookup,OE(n===2?e:this.intervalStub.transformOut(e,$E),this.base,eD)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!yc(t,n)||t<=0||n<=0)){var r=tD,i=tD;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[YE]=t,r[XE]=n);var o=this.base;this.intervalStub.setExtent2(e,i[YE]=DE(t,o),i[XE]=DE(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return yc(t[0],t[1])&&bs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(aE);aE.registerClass(QE);var $E={},eD={},tD=[],nD={value:1,category:1,time:1,log:1},rD=Qs();function iD(e){var t=e.get(`type`);return(t==null||!Fe(nD,t)&&!aE.getClass(t))&&(t=`value`),t}function aD(e,t,n){var r=ig(),i;switch(r&&(i=gD(e,t,n)),t){case`category`:return new NE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:pc()});case`time`:return new LE({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new QE({logBase:e.get(`logBase`),breakOption:i});case`value`:return new FE({breakOption:i});default:return new((aE.getClass(t))||FE)({})}}function oD(e,t,n){var r=n?mE(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return yc(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function sD(e){rD(e).noOnMyZero=!0}function cD(e){return rD(e).noOnMyZero}function lD(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(H(t)){if(e.type===`category`)return function(n,r){return t(uD(e,n),n.value-e.scale.getExtent()[0],null)};var r=ig();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(uD(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function uD(e,t){var n=e.scale;return wE(n)?n.getLabel(t):t.value}function dD(e){return e.get(`interval`)??`auto`}function fD(e){return e.type===`category`&&dD(e.getLabelModel())===0}function pD(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[$T(e,t)]=!0}),z(n)}function mD(e){return e===`middle`||e===`center`}function hD(e){return e.getShallow(`show`)}function gD(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!ig()||!n||!_D(t)?void 0:r}function _D(e){return e!==`category`}function vD(e,t,n,r,i,a){var o=CE(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=AE(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function yD(e,t){return wE(e)?e.getRawOrdinalNumber(t.value):t.value}function bD(e,t){return wE(e)&&!!t.get(`boundaryGap`)}var xD=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),SD=Sc(),CD=Qs(),wD=Qs();function TD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function ED(e,t){return kD(TD(e,t))}function DD(e,t){var n=[];return OD(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(kD(e))}),n}function OD(e,t){var n=CD(fS(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function kD(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function AD(e,t){var n=e.model.ecModel,r=CD(fS(n)).axSer;r&&MD(n,r.get(e.model.uid),t)}function jD(e,t,n){var r=TD(e,t);r&&MD(e.model.ecModel,r.sers,n)}function MD(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function ND(e,t){var n=TD(e,t);if(!n||!n.sers.length)return 0;var r=0;return MD(e.model.ecModel,n.sers,function(){r++}),r}function PD(e,t,n){var r=CD(fS(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function FD(e,t){var n=e.model,r=CD(fS(n.ecModel)).keys;r&&F(r.get(n.uid),function(e){t(e)})}function ID(e){var t=wD(dS(e)),n=t.keyed||=K();OD(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&RD.liPosMinGap(e,t,o)})}function LD(e,t){RD[e]=t}var RD={};function zD(e,t,n){if(e){var r=t.ecModel,i=CD(fS(r)),a=e.model.uid,o=i.axSer||=K();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=HD.get(BD(s,c,n))||HD.get(BD(s,c,null));if(l){var u=i.keyed||=K(),d=i.keys||=K(),f=l.key,p=u.get(f)||u.set(f,K()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function BD(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function VD(e,t){var n=BD(t.seriesType,t.baseAxis,t.coordSysType);HD.set(n,t),SD(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:ID})})}var HD=K(),UD=Qs(),WD=3,GD=function(){function e(e,t,n,r,i){var a=wE(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(xE(e)||CE(e)||SE(e))&&(hc(l,qD(e,t.get(`dataMin`,!0))),gc(l,qD(e,t.get(`dataMax`,!0)))),bc(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=qD(e,H(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=qD(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JD(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!vc(u[0])&&(u[0]=NaN),!vc(u[1])&&(u[1]=NaN);var g=s||ve(u[0])||ve(u[1])||a&&!o,_=xE(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=qD(e,t.get(`startValue`,!0)),x=b!=null;!bs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),bs(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),KD(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),KD(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function KD(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),xc(t))}function qD(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function JD(e,t){var n;if(wE(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=V(r)?r:[r,r]}return[YD(n[0]),YD(n[1])]}function YD(e){return qa(typeof e==`boolean`?0:e,1)||0}function XD(e){var t=UD(e.scale);return t.extent||=pc(),t}function ZD(e,t){XD(e).dimIdxInCoord=t.get(e.dim)}function QD(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||$D(n,e,i,r,t)}function $D(e,t,n,r,i){var a=XD(t),o=a.extent,s=!1;AD(t,function(r){if(r.boxCoordinateSystem){var i=l_(r).coord,c=a.dimIdxInCoord;if(c>=0&&V(i)){var l=i[c];l!=null&&!V(l)&&mc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;F(pD(u,n),function(e){_c(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=aO(e,t,r);tO(e,new GD(e,r,o,s,c),i),a.extent=null}function eO(e,t){var n=e.scale;tO(n,new GD(n,e.model,t,!1,!1),WD)}function tO(e,t,n){e.rawExtentInfo=t,t.from=n}function nO(e,t){rO.set(e,t)}var rO=K();function iO(e,t,n,r,i){e.rawExtentInfo||eO({scale:e,model:t},i||pc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function aO(e,t,n){var r=bD(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return FD(t,function(e){a=!!rO.get(e)||a}),a}function oO(e,t,n,r){if(n.ctnShp){var i;if(FD(e,function(t){var n=rO.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],hc(i,a[0]),gc(i,a[1]),sD(e))}}),i){var a=t.getExtent();if(wE(t))e.onBand||t.setExtent2(1,Mo(a[0],a[0]+i[0]),No(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Mo(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=No(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function sO(e,t){var n=CE(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=kE(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?lO(r,t):cO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=EE(d)),i[0]||(s[0]=Yo(Io(s[0]/u)*u,l)),i[1]||(s[1]=Yo(Lo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),vD(e,i,o,s,a,c)}function cO(e,t){var n=jE(t.splitNumber,5),r=gE(e),i=t.minInterval,a=t.maxInterval,o=fs(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=EE(o),c=e.getExtent(),l=[Yo(Lo(c[0]/o)*o,s),Yo(Io(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function lO(e,t){var n=jE(t.splitNumber,10),r=e.getExtent(),i=gE(e),a=No(us(i),1);n/i*a<=.5&&(a*=10);var o=EE(a),s=[Yo(Lo(r[0]/a)*a,o),Yo(Io(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function uO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;dO(t,n,r,i,null)}function dO(e,t,n,r,i){var a=iO(e,t,r,n,i),o=xE(e)||SE(e);fO(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&oO(n,e,a,r)}function fO(e,t){pO[e.type](e,t)}var pO={interval:sO,log:sO,time:JE,ordinal:Ie},mO=1e-8;function hO(e,t){return Math.abs(e-t)<mO}function gO(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+=_u(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!hO(i[0],s[0])||!hO(i[1],s[1]))&&(r+=_u(i[0],i[1],s[0],s[1],t,n)),r!==0}var _O=[];function vO(e,t){for(var n=0;n<e.length;n++)lt(e[n],e[n],t)}function yO(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])&&(ut(t,t,a),dt(n,n,a))}}function bO(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 xO=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}(),SO=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),CO=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),wO=function(e){n(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 bO(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 F(i,function(t){t.type===`polygon`?yO(t.exterior,n,r,e):F(t.points,function(t){yO(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 Y(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(gO(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(gO(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 Y(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(vO(u.exterior,s),F(u.interiors,function(e){vO(e,s)})):F(u.points,function(e){vO(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}(xO),TO=function(e){n(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=qt(_O),i=e;i&&!i.isGeoSVGGraphicRoot;)Yt(r,i.getLocalTransform(),r),i=i.parent;return $t(r,r),lt(n,n,r),n},t}(xO);function EO(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return F(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=OO(i,r,n);break;case`Polygon`:DO(i,r,n);break;case`MultiLineString`:DO(i,r,n);break;case`MultiPolygon`:F(i,function(e,t){return DO(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function DO(e,t,n){for(var r=0;r<e.length;r++)e[r]=OO(e[r],t[r],n)}function OO(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 kO(e,t){return e=EO(e),I(L(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 SO(a[0],a.slice(1)));break;case`MultiPolygon`:F(r.coordinates,function(e){e[0]&&i.push(new SO(e[0],e.slice(1)))});break;case`LineString`:i.push(new CO([r.coordinates]));break;case`MultiLineString`:i.push(new CO(r.coordinates))}var o=new wO(n[t||`name`],i,n.cp);return o.properties=n,o})}var AO=Qs(),jO=Qs(),MO={estimate:1,determine:2};function NO(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function PO(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:I(IO(n,r),function(t,n){return{formattedLabel:lD(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?LO(e,t):BO(e)}function FO(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:IO(i,r)}:e.type===`category`?zO(e,t):{ticks:r.getTicks(n)}}function IO(e,t){var n=t.getExtent(),r=[];return F(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),wc(r,Ec,null),Zo(r),I(r,function(e){return{value:e}})}function LO(e,t){var n=e.getLabelModel(),r=RO(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function RO(e,t,n){var r=HO(e),i=dD(t),a=n.kind===MO.estimate;if(!a){var o=WO(r,i);if(o)return o}var s,c;H(i)?s=ZO(e,i,!1):(c=i===`auto`?KO(e,n):i,s=ZO(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return GO(r,i,l),!0}):GO(r,i,l),l}function zO(e,t){var n=VO(e),r=dD(t),i=WO(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=ZO(e,r,!0);else if(r===`auto`){var s=RO(e,e.getLabelModel(),NO(MO.determine));o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tick})}else o=r,a=ZO(e,o,!0);return GO(n,r,{ticks:a,tickCategoryInterval:o})}function BO(e){var t=e.scale.getTicks(),n=lD(e);return{labels:I(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var VO=UO(`axisTick`),HO=UO(`axisLabel`);function UO(e){return function(t){return jO(t)[e]||(jO(t)[e]={list:[]})}}function WO(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function GO(e,t,n){return e.list.push({key:t,value:n}),n}function KO(e,t){if(t.kind===MO.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return jO(e).autoInterval=n,!0}),n}return jO(e).autoInterval??(jO(e).autoInterval=e.calculateCategoryInterval(t))}function qO(e,t){var n=t.kind,r=XO(e),i=lD(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=Ua(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===MO.estimate?(t.out.noPxChangeTryDetermine.push(B(JO,null,e,S,c)),S):YO(e,S,c)??S}function JO(e,t,n){return YO(e,t,n)==null}function YO(e,t,n){var r=AO(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 XO(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 ZO(e,t,n){var r=lD(e),i=e.scale,a=[],o=H(t);return ME(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var QO=.8;function $O(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=hE(r);bs(o)||(o=NaN);var s=e.getExtent(),c=Po(s[1]-s[0]);return wE(r)?ek(n,e,o,c):i&&tk(n,e,o,c,i),a!=null&&(n.w=bs(n.w)?No(a,n.w):a),n}function ek(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function tk(e,t,n,r,i){var a=!1,o=-1/0;F(i.key?[ED(t,i.key)]:DD(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),bs(n)&&n>0&&bs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*QO,e.w2=e.w*n/r)}var nk=[0,1],rk=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Uo(e,nk,ik(this),t)},e.prototype.coordToData=function(e,t){var n=Uo(e,ik(this),nk,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=I(FO(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(yD(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ak(this,n,r);return I(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(wE(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),I(this.scale.getMinorTicks(e),function(e){return I(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=NO(MO.determine),PO(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return $O(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=NO(MO.determine),qO(this,e)},e}();function ik(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ak(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=$O(e).w;if(!i)return!1;F(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ok=Math.PI*2,sk=lu.CMD,ck=[`top`,`right`,`bottom`,`left`];function lk(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0)}}function uk(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)%ok<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=mu(i),i=mu(f)}else r=mu(r),i=mu(i);r>i&&(i+=ok);var p=Math.atan2(s,o);if(p<0&&(p+=ok),p>=r&&p<=i||p+ok>=r&&p+ok<=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 dk(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 fk(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 pk=[];function mk(e,t,n){var r=fk(t.x,t.y,t.width,t.height,e.x,e.y,pk);return n.set(pk[0],pk[1]),r}function hk(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 sk.M:a=u[p++],o=u[p++],r=a,i=o;break;case sk.L:h=dk(r,i,u[p],u[p+1],d,f,pk,!0),r=u[p++],i=u[p++];break;case sk.C:h=hr(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.Q:h=Sr(r,i,u[p++],u[p++],u[p],u[p+1],d,f,pk),r=u[p++],i=u[p++];break;case sk.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=uk(g,_,y,b,b+x,S,C,f,pk),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case sk.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=fk(a,o,w,T,d,f,pk);break;case sk.Z:h=dk(r,i,a,o,d,f,pk,!0),r=a,i=o}h<l&&(l=h,n.set(pk[0],pk[1]))}return l}var gk=new J,$=new J,_k=new J,vk=new J,yk=new J;function bk(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||ck,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&$t([],u),f=t.get(`length2`)||0;l&&_k.copy(l);for(var p=0;p<o.length;p++){var m=o[p];lk(m,0,s,gk,vk),J.scaleAndAdd($,gk,vk,f),$.transform(d);var h=e.getBoundingRect(),g=l?l.distance($):e instanceof Z?hk($,e.path,_k):mk($,h,_k);g<c&&(c=g,$.transform(u),_k.transform(u),_k.toArray(a[0]),$.toArray(a[1]),gk.toArray(a[2]))}Ck(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var xk=[],Sk=new J;function Ck(e,t){if(t<=180&&t>0){t=t/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,gk,$),J.sub(yk,_k,$);var n=vk.len(),r=yk.len();if(!(n<.001||r<.001)){vk.scale(1/n),yk.scale(1/r);var i=vk.dot(yk);if(Math.cos(t)<i){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk),Sk.scaleAndAdd(yk,a/Math.tan(Math.PI-t));var o=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(o))return;o<0?J.copy(Sk,$):o>1&&J.copy(Sk,_k),Sk.toArray(e[1])}}}}function wk(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,gk.fromArray(e[0]),$.fromArray(e[1]),_k.fromArray(e[2]),J.sub(vk,$,gk),J.sub(yk,_k,$);var r=vk.len(),i=yk.len();if(!(r<.001||i<.001)&&(vk.scale(1/r),yk.scale(1/i),vk.dot(t)<Math.cos(n))){var a=dk($.x,$.y,_k.x,_k.y,gk.x,gk.y,xk,!1);Sk.fromArray(xk);var o=Math.PI/2,s=o+Math.acos(yk.dot(t))-n;if(s>=o)J.copy(Sk,_k);else{Sk.scaleAndAdd(yk,a/Math.tan(Math.PI/2-s));var c=_k.x===$.x?(Sk.y-$.y)/(_k.y-$.y):(Sk.x-$.x)/(_k.x-$.x);if(isNaN(c))return;c<0?J.copy(Sk,$):c>1&&J.copy(Sk,_k)}Sk.toArray(e[1])}}}function Tk(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function Ek(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=it(r[0],r[1]),a=it(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=ct([],r[1],r[0],o/i),c=ct([],r[1],r[2],o/a),l=ct([],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 Dk(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i)r&&e.removeTextGuideLine();else{for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Nd.length;c++){var l=Nd[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&Tk(r,!0,l,u);continue}r||(r=new Pp,e.setTextGuideLine(r),!d&&(s||!o)&&Tk(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Tk(r,!1,l,u)}}if(r){N(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=Ek}}}function Ok(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Md.length;r++){var i=Md[r];n[i]=e.getModel([i,t])}return n}var kk=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Ak=1,jk=2,Mk=Ak|jk;function Nk(e,t,n){n||=Mk,t?e.dirty|=n:e.dirty&=~n}function Pk(e,t){return t||=Mk,e.dirty==null||!!(e.dirty&t)}function Fk(e){if(e)return Pk(e)&&Ik(e,e.label,e),e}function Ik(e,t,n){var r=t.getComputedTransform();e.transform=th(e.transform,r);var i=e.localRect=eh(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=Dh.textMargin);for(var d=0;d<4;d++)Lk[d]=u===Dh.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Dh.textMargin&&Km(i,Lk,!1,!1);var f=e.rect=eh(e.rect,i);return r&&f.applyTransform(r),u===Dh.minMargin&&Km(f,Lk,!1,!1),e.axisAligned=Qm(r),(e.label=e.label||{}).ignore=t.ignore,Nk(e,!1),Nk(e,!0,jk),e}var Lk=[0,0,0,0];function Rk(e,t,n){return e.transform=th(e.transform,n),e.localRect=eh(e.localRect,t),e.rect=eh(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Qm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function zk(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 Bk(e,t){for(var n=0;n<kk.length;n++){var r=kk[n];e[r]??(e[r]=t[r])}return Fk(e)}function Vk(e){var t=e.obb;return(!t||Pk(e,jk))&&(e.obb=t||=new nm,t.fromBoundingRect(e.localRect,e.transform),Nk(e,!1,jk)),t}function Hk(e,t,n,r,i){var a=e.length,o=vm[t],s=ym[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 Uk(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 Wk(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=Fk(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Gk(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Gk(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:Vk(e).intersect(Vk(t),n,r)}function Kk(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function qk(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:Kk(r&&r.shape.points)}}var Jk=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],Yk=new Aa,Xk=Qs(),Zk=Qs();function Qk(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var $k=[`x`,`y`,`rotation`],eA=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();Y.applyTransform(c,c,s),s?Yk.setLocalTransform(s):(Yk.x=Yk.y=Yk.rotation=Yk.originX=Yk.originY=0,Yk.scaleX=Yk.scaleY=1),Yk.rotation=mu(Yk.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Y.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:Yk.x,y:Yk.y,scaleX:Yk.scaleX,scaleY:Yk.scaleY,rotation:Yk.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`);(H(r)||z(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=fd(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(){bk(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=H(a.layoutOptionOrCb)?a.layoutOptionOrCb(qk(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=Wo(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Wo(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=Xk(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<Jk.length;m++){var h=Jk[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=[];F(this._labelList,function(e){e.defaultAttr.ignore||r.push(Bk({},e))});var i=L(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=L(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});Hk(i,0,0,t),Hk(a,1,0,n);var o=L(r,function(e){return e.layoutOption.hideOverlap});Uk(o),Wk(o)},e.prototype.processLabelsOverall=function(){var e=this;F(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=Xk(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=fd(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`);Dk(e,Ok(o),s),bk(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&&!um(e))){var i=Xk(n),a=i.oldLayout,o=fd(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&&(P(u,`select`)>=0&&n.attr(i.oldLayoutSelect),P(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),cm(n,c,t,s)}else if(n.attr(c),!wh(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,lm(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};Qk(f,c,$k),Qk(f,n.states.select,$k)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Qk(p,c,$k),Qk(p,n.states.emphasis,$k)}Eh(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=Zk(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),cm(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,lm(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),tA=Qs();function nA(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=tA(t).labelManager;r||=tA(t).labelManager=new eA,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=tA(t).labelManager;F(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function rA(e,t,n){var r=p.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function iA(e){return!e.__cursors.get(0)}function aA(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var oA=function(e){q(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=va,typeof t==`string`?a=rA(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Pe(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=aA(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=rA(`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 Y(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new Y(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 Y(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=aA(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;)if(i[u].isZero())i.splice(u,1);else{for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;he(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||OS(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):ge(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=BS(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&&F(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(mt),sA=1e5,cA=314159,lA=void 0,uA=1,dA=2;function fA(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function pA(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function mA(e,t,n,r){var i=new oA(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,hA(i),i}function hA(e){e.__cursorStack=[],e.__cursors=K()}function gA(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function _A(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,gA({key:r})))}function vA(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function yA(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function bA(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&xA)||s.__builtin__)&&(!(n&SA)||!s.__builtin__)&&(!(n&CA)||s!==e.hoverlayer))&&t(s,a,o,i)}}var xA=1,SA=2,CA=4,wA=xA|CA,TA=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=M({},n||{}),this.dpr=n.devicePixelRatio||va,this._singleCanvas=i,this.root=e,e.style&&(Pe(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=mA(a,this,cA,0);c.initContext(),this._insertLayer(c,cA,0,!0),this._domRoot=e}else{this._width=jS(e,0,n),this._height=jS(e,1,n);var l=this._domRoot=pA(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=dA),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return bA(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},SA),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=lA,n!==lA&&(!t&&n===dA&&(t=this._i.hoverlayer=this._ensureLayer(sA)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),aC(i,s,r),c&&(s.style=l)}}i&&(oC(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(sA)},e.prototype.paintOne=function(e,t){iC(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)bA(this._i,function(e){e.afterBrush&&e.afterBrush()},wA),this._paintHoverList(e);else{var i=this;Zn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(cA).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),bA(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},xA)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return bA(this._i,function(i){var a=!1;if(vA(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!iA(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}vA(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},wA),i.wxa&&bA(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=iA(e),c=s&&p.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=dA),r!=null){var m=f.getPaintRect();m&&m.intersect(r)&&(aC(o,f,a),f.setPrevPaintRect(m))}else aC(o,f,a);if(s&&p.getTime()-c>15){d++;break}}}oC(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=cA,t=0);var i=yA(this._i,e)[t];return i||(i=mA(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&j(i,this._layerConfig[e],!0),(n||r&&e!==cA)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&fA(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=yA(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),yA(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},xA)},e.prototype.eachOtherLayer=function(e,t){return bA(this._i,function(n,r){e.call(t,n,r)},SA)},e.prototype.getLayers=function(){var e={};return bA(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}bA(n._i,function(e){e.__dirty=!1,vA(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},wA);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__))k(`ZLevel `+d+` has been used by unknown layer `+o.id);else{if((!s||f!==s.key)&&(s=_A(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}}bA(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(iA(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(vA(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===lA&&(n._hoverLayerDirty=uA))},wA)},e.prototype.clear=function(){return bA(this._i,function(e){e.clear(),hA(e)},xA),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,bA(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?j(n[e],t,!0):n[e]=t,bA(this._i,function(e,t){j(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=jS(i,0,r),t=jS(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,bA(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(cA).resize(e,t)}return this},e.prototype.clearLayer=function(e){F(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[cA][0].dom;var t=new oA(`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;bA(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];aC(n,l,a)}oC(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function EA(e){e.registerPainter(`canvas`,TA)}var DA=function(e){n(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 db(this),fb(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),fb(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Cd},t}(M_),OA=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(Xb);function kA(e){e.registerComponentModel(DA),e.registerComponentView(OA)}export{nD as $,mc as $a,h as $c,yd as $i,x_ as $n,fi as $o,Em as $r,bt as $s,yC as $t,QD as A,Ac as Aa,Fe as Ac,lp as Ai,Vy as An,ms as Ao,hh as Ar,Zn as As,Lw as At,aD as B,yc as Ba,U as Bc,of as Bi,K_ as Bn,Ka as Bo,zm as Br,Kt as Bs,Xw as Bt,TO as C,dc as Ca,le as Cc,Up as Ci,Ib as Cn,hs as Co,eg as Cr,Tr as Cs,_T as Ct,fO as D,Xs as Da,M as Dc,Mp as Di,Pb as Dn,ps as Do,Rh as Dr,_r as Ds,Fw as Dt,dO as E,fc as Ea,ve as Ec,Pp as Ei,bb as En,Ko as Eo,Uh as Er,mr as Es,RC as Et,MD as F,cc as Fa,me as Fc,Md as Fi,ky as Fn,bo as Fo,Th as Fr,_n as Fs,Bw as Ft,bD as G,Fs as Ga,ae as Gc,nf as Gi,S_ as Gn,Ma as Go,Sm as Gr,Zt as Gs,Gw as Gt,uD as H,Qs as Ha,I as Hc,lf as Hi,P_ as Hn,Na as Ho,Vm as Hr,$t as Hs,tT as Ht,jD as I,lc as Ia,H as Ic,Mf as Ii,Ay as In,mo as Io,ym as Ir,hn as Is,iT as It,lD as J,tc as Ja,se as Jc,Tf as Ji,w_ as Jn,Fi as Jo,wm as Jr,Lt as Js,Vw as Jt,mD as K,As as Ka,Ie as Kc,Xd as Ki,__ as Kn,ja as Ko,bm as Kr,Qt as Ks,Hw as Kt,LD as L,pc as La,de as Lc,Cf as Li,Dy as Ln,po as Lo,vm as Lr,J as Ls,Pw as Lt,zD as M,xc as Ma,ie as Mc,ap as Mi,Py as Mn,Yo as Mo,mh as Mr,yn as Ms,Rw as Mt,ND as N,Ns as Na,V as Nc,np as Ni,Hy as Nn,Xo as No,wh as Nr,vn as Ns,Yw as Nt,iO as O,Ws as Oa,L as Oc,Op as Oi,Nb as On,us as Oo,Eh as Or,vr as Os,sT as Ot,PD as P,Dc as Pa,oe as Pc,Nd as Pi,Uy as Pn,Eo as Po,ph as Pr,bn as Ps,zw as Pt,vD as Q,wc as Qa,we as Qc,vd as Qi,k_ as Qn,Ci as Qo,Hm as Qr,Ot as Qs,nT as Qt,VD as R,uc as Ra,W as Rc,Ef as Ri,iv as Rn,Ja as Ro,Pm as Rr,en as Rs,qw as Rt,wO as S,Gc as Sa,K as Sc,Wp as Si,Vb as Sn,fs as So,rg as Sr,kr as Ss,wT as St,uO as T,nc as Ta,F as Tc,Lp as Ti,Eb as Tn,Wo as To,Bh as Tr,fr as Ts,uT as Tt,oD as U,qs as Ua,j as Uc,sf as Ui,M_ as Un,Aa as Uo,sh as Ur,Gt as Us,rT as Ut,iD as V,Sc as Va,z as Vc,jf as Vi,q_ as Vn,qa as Vo,Bm as Vr,qt as Vs,Zw as Vt,yD as W,ac as Wa,te as Wc,Af as Wi,m_ as Wn,Pa as Wo,Km as Wr,Yt as Ws,Ww as Wt,hD as X,Zs as Xa,G as Xc,hd as Xi,v_ as Xn,mi as Xo,gm as Xr,Ft as Xs,Kw as Xt,gD as Y,Oc as Ya,ye as Yc,Dd as Yi,D_ as Yn,pi as Yo,Nm as Yr,Bt as Ys,aT as Yt,fD as Z,ic as Za,be as Zc,wd as Zi,b_ as Zn,Ei as Zo,Rm as Zr,zt as Zs,Qw as Zt,rk as _,cu as _a,Be as _c,mm as _i,lx as _n,Io as _o,n_ as _r,ei as _s,$T as _t,Rk as a,nd as aa,Ve as ac,nh as ai,n as al,wS as an,rs as ao,d_ as ar,Si as as,kE as at,NO as b,el as ba,A as bc,qp as bi,Xb as bn,Vo as bo,ig as br,Ir as bs,UT as bt,Gk as c,Hu as ca,Je as cc,Am as ci,dS as cn,Qo as co,Wg as cr,yi as cs,wE as ct,Nk as d,ju as da,ut as dc,ih as di,Zx as dn,gs as do,$g as dr,di as ds,fE as dt,md as ea,xt as ec,Tm as ei,s as el,dC as en,Es as eo,O_ as er,wi as es,FE as et,Hk as f,Z as fa,nt as fc,om as fi,Jx as fn,qo as fo,Xg as fr,Ar as fs,mE as ft,Dk as g,lu as ga,qe as gc,pm as gi,ux as gn,Lo as go,Gg as gr,ai as gs,XT as gt,Ck as h,uu as ha,We as hc,dm as hi,dx as hn,Po as ho,Kg as hr,qr as hs,nE as ht,Ik as i,id as ia,He as ic,km as ii,i as il,SS as in,ts as io,u_ as ir,li as is,TE as it,ZD as j,js as ja,P as jc,sp as ji,Iy as jn,os as jo,Ch as jr,Y as js,Iw as jt,nO as k,kc as ka,R as kc,Ep as ki,zy as kn,ds as ko,gh as kr,xr as ks,bC as kt,zk as l,zu as la,ct as lc,Fm as li,sS as ln,$o as lo,e_ as lr,xi as ls,SE as lt,wk as m,fu as ma,Ke as mc,lm as mi,Xx as mn,Uo as mo,Qg as mr,Zr as ms,sE as mt,EA as n,pd as na,lt as nc,oh as ni,p as nl,NS as nn,is as no,E_ as nr,gi as ns,jE as nt,Fk as o,qu as oa,it as oc,Ym as oi,CS as on,ns as oo,s_ as or,_i as os,bE as ot,Ok as p,mu as pa,tt as pc,hm as pi,Yx as pn,ss as po,Zg as pr,Yr as ps,_E as pt,cD as q,ec as qa,Se as qc,kf as qi,A_ as qn,Yi as qo,lh as qr,Xt as qs,Uw as qt,nA as r,Qu as ra,Ue as rc,Cm as ri,m as rl,jS as rn,Zo as ro,a_ as rr,hi as rs,EE as rt,Wk as s,Wu as sa,ot as sc,Mm as si,yS as sn,es as so,f_ as sr,bi as ss,CE as st,kA as t,fd as ta,mt as tc,Om as ti,o as tl,iC as tn,as as to,T_ as tr,Ti as ts,NE as tt,Bk as u,Fu as ua,dt as uc,Zm as ui,eS as un,bs as uo,t_ as ur,si as us,dE as ut,$O as v,zl as va,Ce as vc,cm as vi,ex as vn,No as vo,Eg as vr,$r as vs,QT as vt,gO as w,rc as wa,N as wc,Vp as wi,Fb as wn,ls as wo,Qh as wr,ur as ws,pT as wt,kO as x,Xc as xa,Me as xc,Kp as xi,Bb as xn,Fo as xo,sg as xr,ti as xs,VT as xt,MO as y,Dl as ya,B as yc,im as yi,Zb as yn,Mo as yo,kg as yr,Wr as ys,HT as yt,xD as z,Gs as za,_e as zc,cf as zi,$_ as zn,Ua as zo,rh as zr,Jt as zs,Jw as zt};
|