@ovalbee/reportifact 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Chart-Cmh3H_Wv.js +5634 -0
- package/dist/Chart-jF5jqxGZ.cjs +1 -0
- package/dist/ImageGallery-CPZM1tc_.cjs +1 -0
- package/dist/ImageGallery-DQzba-4p.js +163 -0
- package/dist/MetricCallout-C7SUQTrj.js +39 -0
- package/dist/MetricCallout-CxhVOiqg.cjs +1 -0
- package/dist/MetricCards-DW-_QLhI.cjs +1 -0
- package/dist/MetricCards-JR4hUW4_.js +61 -0
- package/dist/MetricsTable-CH8vIbWG.cjs +1 -0
- package/dist/MetricsTable-OXsVygq0.js +98 -0
- package/dist/Reportifact.vue.d.ts +3 -2
- package/dist/ReportifactWidgetHost-DIlz4TxO.js +13 -0
- package/dist/ReportifactWidgetHost-xDT1ykZc.cjs +1 -0
- package/dist/Timeline-DSGSvRjj.js +295 -0
- package/dist/Timeline-P3CpGmBD.cjs +1 -0
- package/dist/WidgetWrapper-AmnP99H8.js +62 -0
- package/dist/WidgetWrapper-C0lc1m0V.cjs +1 -0
- package/dist/components/TableOfContents.vue.d.ts +3 -4
- package/dist/dist-DBIuOmpr.cjs +27 -0
- package/dist/dist-DEKe39T1.js +23629 -0
- package/dist/markdownTable-BCLRoyPL.cjs +2 -0
- package/dist/markdownTable-DHdS_81b.js +40 -0
- package/dist/middleware.cjs +1 -1
- package/dist/middleware.js +146 -175
- package/dist/portable/ReportifactWidgetHost.vue.d.ts +7 -11
- package/dist/portable/usePortableSource.d.ts +18 -0
- package/dist/reportifact.cjs +63 -64
- package/dist/reportifact.d.ts +1 -1
- package/dist/reportifact.js +4909 -5228
- package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
- package/dist/style.css +2 -13
- package/dist/usePortableSource--y_qMDXB.js +55 -0
- package/dist/usePortableSource-CN5URH4d.cjs +1 -0
- package/dist/utils/tfeventsParser.cjs +1 -1
- package/dist/utils/tfeventsParser.js +298 -327
- package/dist/widgets/Card.vue.d.ts +2 -1
- package/dist/widgets/Chart.vue.d.ts +9 -14
- package/dist/widgets/HelpTooltip.vue.d.ts +2 -1
- package/dist/widgets/ImageGallery.vue.d.ts +9 -15
- package/dist/widgets/Markdown.vue.d.ts +3 -2
- package/dist/widgets/MetricCallout.vue.d.ts +7 -13
- package/dist/widgets/MetricCards.vue.d.ts +7 -10
- package/dist/widgets/MetricTable.vue.d.ts +2 -1
- package/dist/widgets/MetricsTable.vue.d.ts +9 -14
- package/dist/widgets/ModelClassComparison.vue.d.ts +3 -2
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +3 -2
- package/dist/widgets/Notice.vue.d.ts +2 -1
- package/dist/widgets/ReportifactWidget.vue.d.ts +3 -4
- package/dist/widgets/Scope.vue.d.ts +2 -3
- package/dist/widgets/Table.vue.d.ts +3 -2
- package/dist/widgets/Tensorboard.vue.d.ts +3 -2
- package/dist/widgets/Timeline.vue.d.ts +9 -14
- package/dist/widgets/WidgetWrapper.vue.d.ts +18 -20
- package/dist/widgets/chart-config/range.d.ts +2 -0
- package/dist/widgets/chart-config/shared.d.ts +25 -0
- package/dist/widgets/chart-config/types.d.ts +12 -3
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.d.ts +3 -3
- package/dist/widgets/chart.js +2 -5
- package/dist/widgets/chartSizing.d.ts +10 -0
- package/dist/widgets/contracts.cjs +1 -1
- package/dist/widgets/contracts.d.ts +1 -1
- package/dist/widgets/contracts.js +0 -1
- package/dist/widgets/host.cjs +1 -1
- package/dist/widgets/host.d.ts +3 -3
- package/dist/widgets/host.js +2 -5
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.d.ts +3 -3
- package/dist/widgets/image-gallery.js +2 -5
- package/dist/widgets/markdownTable.d.ts +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.d.ts +3 -3
- package/dist/widgets/metric-callout.js +2 -5
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.d.ts +3 -3
- package/dist/widgets/metric-cards.js +2 -5
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.d.ts +3 -3
- package/dist/widgets/metrics-table.js +2 -5
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.d.ts +3 -3
- package/dist/widgets/timeline.js +2 -5
- package/package.json +5 -5
- package/dist/Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js +0 -5956
- package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +0 -197
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +0 -1
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +0 -62
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +0 -46
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +0 -140
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +0 -1
- package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +0 -1
- package/dist/ReportifactWidgetHost-BjKBwCWI.js +0 -17
- package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +0 -2646
- package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +0 -2
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +0 -72
- package/dist/index-3DTuh2Dr.cjs +0 -47
- package/dist/index-DevYhXSC.js +0 -22104
- package/dist/markdownTable-B5207r3E.js +0 -32
- package/dist/markdownTable-Cbn1Du3L.cjs +0 -2
- package/dist/useFetch-BfOAq-Kg.cjs +0 -1
- package/dist/useFetch-CHQm_TmB.js +0 -35
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DF3sbh8G.cjs");let t=require("vue");var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),a=new(function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(a.wxa=!0,a.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?a.worker=!0:!a.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(a.node=!0,a.svgSupported=!0):o(navigator.userAgent,a);function o(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var s=`12px sans-serif`,c=20,l=100,u=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function d(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-c)/l}return t}var f=d(u),p={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=p.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=f[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},m=re([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),h=re([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),g=Object.prototype.toString,_=Array.prototype,v=_.forEach,y=_.filter,b=_.slice,x=_.map,S=function(){}.constructor,C=S?S.prototype:null,w=`__proto__`,T=2311,E=2**53-1;function D(){return T>=E&&(T=0),T++}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function k(e){if(typeof e!=`object`||!e)return e;var t=e,n=g.call(e);if(n===`[object Array]`){if(!Ce(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=k(e[r])}}else if(h[n]){if(!Ce(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!m[n]&&!Ce(e)&&!de(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==w&&(t[o]=k(e[o]));return t}function A(e,t,n){if(!U(t)||!U(e))return n?k(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==w){var i=e[r],a=t[r];U(a)&&U(i)&&!B(a)&&!B(i)&&!de(a)&&!de(i)&&!le(a)&&!le(i)&&!Ce(a)&&!Ce(i)?A(i,a,n):(n||!(r in e))&&(e[r]=k(t[r]))}return e}function j(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==w&&(e[n]=t[n]);return e}function ee(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function M(e,t,n){for(var r=L(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}p.createCanvas;function N(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function te(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function ne(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else M(e,t,n)}function P(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function F(e,t,n){if(e&&t){if(e.forEach&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function I(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.map&&e.map===x)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function re(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ie(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.filter&&e.filter===y)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ae(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function L(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function oe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(b.call(arguments)))}}var R=C&&V(C.bind)?C.call.bind(C.bind):oe;function z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(b.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):g.call(e)===`[object Array]`}function V(e){return typeof e==`function`}function H(e){return typeof e==`string`}function se(e){return g.call(e)===`[object String]`}function ce(e){return typeof e==`number`}function U(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function le(e){return!!m[g.call(e)]}function ue(e){return!!h[g.call(e)]}function de(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function fe(e){return e.colorStops!=null}function pe(e){return e.image!=null}function me(e){return g.call(e)===`[object RegExp]`}function he(e){return e!==e}function ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function W(e,t){return e??t}function _e(e,t,n){return e??t??n}function ve(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return b.apply(e,t)}function ye(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function G(e,t){if(!e)throw Error(t)}function be(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var xe=`__ec_primitive__`;function Se(e){e[xe]=!0}function Ce(e){return e[xe]}var we=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return L(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Te=typeof Map==`function`;function Ee(){return Te?new Map:new we}var De=function(){function e(t){var n=B(t);this.data=Ee();var r=this;t instanceof e?t.each(i):t&&F(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Te?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new De(e)}function Oe(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function ke(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&j(n,t),n}function Ae(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function q(e,t){return e.hasOwnProperty(t)}function je(){}var Me=180/Math.PI;function Ne(e,t){return e??=0,t??=0,[e,t]}function Pe(e,t){return e[0]=t[0],e[1]=t[1],e}function Fe(e){return[e[0],e[1]]}function Ie(e,t,n){return e[0]=t,e[1]=n,e}function Le(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Re(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ze(e){return Math.sqrt(Be(e))}function Be(e){return e[0]*e[0]+e[1]*e[1]}function Ve(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function He(e,t){var n=ze(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ue(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var We=Ue;function Ge(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ke=Ge;function qe(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Je(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ye(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Xe(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ze=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Qe=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ze(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Ze(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Ze(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Ze(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ze(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Ze(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),$e=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var c=r[s];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,t[0]);break;case 2:c.h.call(c.ctx,t[0],t[1]);break;default:c.h.apply(c.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,c=0;c<s;c++){var l=r[c];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(a){case 0:l.h.call(o);break;case 1:l.h.call(o,t[0]);break;case 2:l.h.call(o,t[0],t[1]);break;default:l.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),et=Math.log(2);function tt(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/et);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*tt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function nt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=tt(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*tt(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var rt=`___zrEVENTSAVED`,it=[];function at(e,t,n,r,i){return st(it,t,r,i,!0)&&st(e,n,it[0],it[1])}function ot(e,t){e&&n(e),t&&n(t);function n(e){var t=e[rt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[rt])}}function st(e,t,n,r,i){if(t.getBoundingClientRect&&a.domSupported&&!ut(t)){var o=t[rt]||(t[rt]={}),s=lt(ct(t,o),o,i);if(s)return s(e,n,r),!0}return!1}function ct(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){F(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function lt(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?nt(s,o):nt(o,s))}function ut(e){return e.nodeName.toUpperCase()===`CANVAS`}var dt=/([&<>"'])/g,ft={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function pt(e){return e==null?``:(e+``).replace(dt,function(e,t){return ft[t]})}var mt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ht=[],gt=a.browser.firefox&&+a.browser.version.split(`.`)[0]<39;function _t(e,t,n,r){return n||={},r?vt(e,t,n):gt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?vt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function vt(e,t,n){if(a.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ut(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}if(st(ht,e,r,i)){n.zrX=ht[0],n.zrY=ht[1];return}}n.zrX=n.zrY=0}function yt(e){return e||window.event}function bt(e,t,n){if(t=yt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&_t(e,i,t,n)}else{_t(e,t,t,n);var a=xt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&mt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function xt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function St(e,t,n,r){e.addEventListener(t,n,r)}function Ct(e,t,n,r){e.removeEventListener(t,n,r)}var wt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Tt(e){return e.which===2||e.which===3}var Et=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=_t(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in kt)if(kt.hasOwnProperty(t)){var n=kt[t](this._track,e);if(n)return n}},e}();function Dt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ot(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Dt(r)/Dt(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ot(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function At(){return[1,0,0,1,0,0]}function jt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Mt(e,t){return 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}function Nt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Pt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ft(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function It(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Lt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Rt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),zt=Math.min,Bt=Math.max,Vt=Math.abs,Ht=[`x`,`y`],Ut=[`width`,`height`],Wt=new Rt,Gt=new Rt,Kt=new Rt,qt=new Rt,Jt=ln(),Yt=Jt.minTv,Xt=Jt.maxTv,Zt=[0,0],J=function(){function e(e,t,n,r){$t(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=zt(e.x,this.x),n=zt(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Bt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Bt(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return tn(At(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Rt.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=$t(an,t.x,t.y,t.width,t.height)),n instanceof e||(n=$t(on,n.x,n.y,n.width,n.height));var s=!!r;Jt.reset(i,s);var c=Jt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Zt[0]=1/0,Zt[1]=0,cn(l,u,p,m,0,s,a,o),cn(d,f,h,g,1,s,a,o),s&&Rt.copy(r,_?Jt.useDir?Jt.dirMinTv:Yt:Xt)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){en(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&en(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Wt.x=Kt.x=t.x,Wt.y=qt.y=t.y,Gt.x=qt.x=t.x+t.width,Gt.y=Kt.y=t.y+t.height,Wt.transform(n),qt.transform(n),Gt.transform(n),Kt.transform(n),e.x=zt(Wt.x,Gt.x,Kt.x,qt.x),e.y=zt(Wt.y,Gt.y,Kt.y,qt.y);var s=Bt(Wt.x,Gt.x,Kt.x,qt.x),c=Bt(Wt.y,Gt.y,Kt.y,qt.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=jt(e||[]),Pt(e,e,Ie(sn,-t.x,-t.y)),It(e,e,Ie(sn,r,i)),Pt(e,e,Ie(sn,n.x,n.y)),e},e}(),Qt=J.create,$t=J.set,en=J.copy,tn=J.calculateTransform,nn=J.applyTransform,rn=J.contain,an=new J(0,0,0,0),on=new J(0,0,0,0),sn=[];function cn(e,t,n,r,i,a,o,s){var c=Vt(t-n),l=Vt(r-e),u=zt(c,l),d=Ht[i],f=Ht[1-i],p=Ut[i];t<n||r<e?c<l?(a&&(Xt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Xt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Bt(e,n),o[p]=zt(t,r)-o[d]),a&&(u<Zt[0]||Jt.useDir)&&(Zt[0]=zt(u,Zt[0]),(c<l||!Jt.bidirectional)&&(Yt[d]=c,Yt[f]=0,Jt.useDir&&Jt.calcDirMTV()),(c>=l||!Jt.bidirectional)&&(Yt[d]=-l,Yt[f]=0,Jt.useDir&&Jt.calcDirMTV())))}function ln(){var e=0,t=new Rt,n=new Rt,r={minTv:new Rt,maxTv:new Rt,useDir:!1,dirMinTv:new Rt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Bt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Vt(e)<1e-10}return r}var un=`silent`;function dn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:fn}}function fn(){wt(this.event)}var pn=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}($e),mn=function(){function e(e,t){this.x=e,this.y=t}return e}(),hn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],gn=new J(0,0,0,0),_n=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new mn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new pn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Qe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(F(hn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=bn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new mn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new mn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=dn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new mn(e,t);if(yn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(gn.copy(u.getBoundingRect()),u.transform&&gn.applyTransform(u.transform),gn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(yn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Et;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new mn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}($e);F([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){_n.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=bn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||We(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function vn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||un}return!1}function yn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=vn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==un)){t.target=o;break}}}function bn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var xn=32,Sn=7;function Cn(e){for(var t=0;e>=xn;)t|=e&1,e>>=1;return e+t}function wn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Tn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Tn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function En(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Dn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function On(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function kn(e,t){var n=Sn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=On(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Dn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=On(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Dn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Sn||m>=Sn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-On(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Dn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Sn||g>=Sn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function An(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<xn){a=wn(e,n,r,t),En(e,n,r,n+a,t);return}var o=kn(e,t),s=Cn(i);do{if(a=wn(e,n,r,t),a<s){var c=i;c>s&&(c=s),En(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var jn=!1;function Mn(){jn||(jn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Nn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Pn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Nn}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,An(n,Nn)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Mn(),p.z=0),isNaN(p.z2)&&(Mn(),p.z2=0),isNaN(p.zlevel)&&(Mn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=N(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Fn=a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},In={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-In.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?In.bounceIn(e*2)*.5:In.bounceOut(e*2-1)*.5+.5}},Ln=Math.pow,Rn=Math.sqrt,zn=1e-8,Bn=1e-4,Vn=Rn(3),Hn=1/3,Un=Ne(),Wn=Ne(),Gn=Ne();function Kn(e){return e>-zn&&e<zn}function qn(e){return e>zn||e<-zn}function Jn(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Yn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Xn(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Kn(u)&&Kn(d)){if(Kn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Kn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Rn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Ln(-y,Hn):Ln(y,Hn),b=b<0?-Ln(-b,Hn):Ln(b,Hn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Rn(u*u*u)),S=Math.acos(x)/3,C=Rn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Vn*Math.sin(S)))/(3*o),T=(-s+C*(w-Vn*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Zn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Kn(o)){if(qn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Kn(u))i[0]=-a/(2*o);else if(u>0){var d=Rn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Qn(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function $n(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Un[0]=c,Un[1]=l;for(var v=0;v<1;v+=.05)Wn[0]=Jn(e,n,i,o,v),Wn[1]=Jn(t,r,a,s,v),g=Ke(Un,Wn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Bn);y++)m=d-f,h=d+f,Wn[0]=Jn(e,n,i,o,m),Wn[1]=Jn(t,r,a,s,m),g=Ke(Wn,Un),m>=0&&g<p?(d=m,p=g):(Gn[0]=Jn(e,n,i,o,h),Gn[1]=Jn(t,r,a,s,h),_=Ke(Gn,Un),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Jn(e,n,i,o,d),u[1]=Jn(t,r,a,s,d)),Rn(p)}function er(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Jn(e,n,i,o,m),g=Jn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function tr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function nr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function rr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Kn(a)){if(qn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Kn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Rn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ir(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function ar(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function or(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Un[0]=o,Un[1]=s;for(var f=0;f<1;f+=.05){Wn[0]=tr(e,n,i,f),Wn[1]=tr(t,r,a,f);var p=Ke(Un,Wn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Bn);m++){var h=l-u,g=l+u;Wn[0]=tr(e,n,i,h),Wn[1]=tr(t,r,a,h);var p=Ke(Wn,Un);if(h>=0&&p<d)l=h,d=p;else{Gn[0]=tr(e,n,i,g),Gn[1]=tr(t,r,a,g);var _=Ke(Gn,Un);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=tr(e,n,i,l),c[1]=tr(t,r,a,l)),Rn(d)}function sr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=tr(e,n,i,f),m=tr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function lr(e){var t=e&&cr.exec(e);if(t){var n=t[1].split(`,`),r=+be(n[0]),i=+be(n[1]),a=+be(n[2]),o=+be(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Xn(0,r,a,1,e,s)&&Jn(0,i,o,1,s[0])}}}var ur=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||je,this.ondestroy=e.ondestroy||je,this.onrestart=e.onrestart||je,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:In[e]||lr(e)},e}(),dr=function(){function e(e){this.value=e}return e}(),fr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new dr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),pr=function(){function e(e){this._list=new fr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new dr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),mr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function hr(e){return e=Math.round(e),e<0?0:e>255?255:e}function gr(e){return e=Math.round(e),e<0?0:e>360?360:e}function _r(e){return e<0?0:e>1?1:e}function vr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?hr(parseFloat(t)/100*255):hr(parseInt(t,10))}function yr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?_r(parseFloat(t)/100):_r(parseFloat(t))}function br(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function xr(e,t,n){return e+(t-e)*n}function Sr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Cr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var wr=new pr(20),Tr=null;function Er(e,t){Tr&&Cr(Tr,t),Tr=wr.put(e,Tr||t.slice())}function Dr(e,t){if(e){t||=[];var n=wr.get(e);if(n)return Cr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in mr)return Cr(t,mr[r]),Er(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Sr(t,0,0,0,1);return}return Sr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Er(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Sr(t,0,0,0,1);return}return Sr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Er(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Sr(t,+l[0],+l[1],+l[2],1):Sr(t,0,0,0,1);u=yr(l.pop());case`rgb`:if(l.length>=3)return Sr(t,vr(l[0]),vr(l[1]),vr(l[2]),l.length===3?u:yr(l[3])),Er(e,t),t;Sr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Sr(t,0,0,0,1);return}return l[3]=yr(l[3]),Or(l,t),Er(e,t),t;case`hsl`:if(l.length!==3){Sr(t,0,0,0,1);return}return Or(l,t),Er(e,t),t;default:return}}Sr(t,0,0,0,1)}}function Or(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=yr(e[1]),i=yr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Sr(t,hr(br(o,a,n+1/3)*255),hr(br(o,a,n)*255),hr(br(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function kr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Ar(e,t){var n=Dr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Fr(n,n.length===4?`rgba`:`rgb`)}}function jr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=hr(xr(o[0],s[0],c)),n[1]=hr(xr(o[1],s[1],c)),n[2]=hr(xr(o[2],s[2],c)),n[3]=_r(xr(o[3],s[3],c)),n}}function Mr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Dr(t[i]),s=Dr(t[a]),c=r-i,l=Fr([hr(xr(o[0],s[0],c)),hr(xr(o[1],s[1],c)),hr(xr(o[2],s[2],c)),_r(xr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Nr(e,t,n,r){var i=Dr(e);if(e)return i=kr(i),t!=null&&(i[0]=gr(V(t)?t(i[0]):t)),n!=null&&(i[1]=yr(V(n)?n(i[1]):n)),r!=null&&(i[2]=yr(V(r)?r(i[2]):r)),Fr(Or(i),`rgba`)}function Pr(e,t){var n=Dr(e);if(n&&t!=null)return n[3]=_r(t),Fr(n,`rgba`)}function Fr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Ir(e,t){var n=Dr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Lr=new pr(100);function Rr(e){if(H(e)){var t=Lr.get(e);return t||(t=Ar(e,-.1),Lr.put(e,t)),t}if(fe(e)){var n=j({},e);return n.colorStops=I(e.colorStops,function(e){return{offset:e.offset,color:Ar(e.color,-.1)}}),n}return e}function zr(e){return e.type===`linear`}function Br(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return process.env.NODE_ENV!==`production`&&O(`Base64 isn't natively supported in the current environment.`),null}})();var Vr=Array.prototype.slice;function Hr(e,t,n){return(t-e)*n+e}function Ur(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Hr(t[a],n[a],r);return e}function Wr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Hr(t[o][s],n[o][s],r)}return e}function Gr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Kr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function qr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Jr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Vr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Yr(e){if(P(e)){var t=e.length;if(P(e[0])){for(var n=[],r=0;r<t;r++)n.push(Vr.call(e[r]));return n}return Vr.call(e)}return e}function Xr(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Zr(e){return P(e&&e[0])?2:1}var Qr=0,$r=1,ei=2,ti=3,ni=4,ri=5,ii=6;function ai(e){return e===ni||e===ri}function oi(e){return e===$r||e===ei}var si=[0,0,0,0],ci=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ii,s=t;if(P(t)){var c=Zr(t);o=c,(c===1&&!ce(t[0])||c===2&&!ce(t[0][0]))&&(a=!0)}else if(ce(t)&&!he(t))o=Qr;else if(H(t)){if(!isNaN(+t))o=Qr;else{var l=Dr(t);l&&(s=l,o=ti)}}else if(fe(t)){var u=j({},s);u.colorStops=I(t.colorStops,function(e){return{offset:e.offset,color:Dr(e.color)}}),zr(t)?o=ni:Br(t)&&(o=ri),s=u}i===0?this.valType=o:(o!==this.valType||o===ii)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:In[n]||lr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=oi(r),c=ai(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Jr(d,f,r):c&&qr(d.colorStops,f.colorStops))}if(!o&&r!==ri&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Qr?n[l].additiveValue=n[l].value-p:r===ti?n[l].additiveValue=Gr([],n[l].value,p,-1):oi(r)&&(n[l].additiveValue=r===$r?Gr([],n[l].value,p,-1):Kr([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ti,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?si:e[s];if((oi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(oi(i))i===$r?Ur(g,f[r],p[r],h):Wr(g,f[r],p[r],h);else if(ai(i)){var _=f[r],v=p[r],y=i===ni;e[s]={type:y?`linear`:`radial`,x:Hr(_.x,v.x,h),y:Hr(_.y,v.y,h),colorStops:I(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Hr(e.offset,n.offset,h),color:Xr(Ur([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Hr(_.x2,v.x2,h),e[s].y2=Hr(_.y2,v.y2,h)):e[s].r=Hr(_.r,v.r,h)}else if(c)Ur(g,f[r],p[r],h),n||(e[s]=Xr(g));else{var b=Hr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Qr?e[n]=e[n]+r:t===ti?(Dr(e[n],si),Gr(si,si,r,1),e[n]=Xr(si)):t===$r?Gr(e[n],e[n],r,1):t===ei&&Kr(e[n],e[n],r,1)},e}(),li=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){O(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,L(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ci(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ti&&c&&(c=Xr(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Yr(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Yr(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new ur({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return I(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Yr(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=L(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function ui(){return new Date().getTime()}var di=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=ui()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Fn(t),!e._paused&&e.update())}Fn(t)},t.prototype.start=function(){this._running||(this._time=ui(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=ui(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=ui()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new li(e,t.loop);return this.addAnimator(n),n},t}($e),fi=300,pi=a.domSupported,mi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:I(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),hi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},gi=!1;function _i(e){var t=e.pointerType;return t===`pen`||t===`touch`}function vi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function yi(e){e&&(e.zrByTouch=!0)}function bi(e,t){return bt(e.dom,new Si(e,t),!0)}function xi(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Si=function(){function e(e,t){this.stopPropagation=je,this.stopImmediatePropagation=je,this.preventDefault=je,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ci={mousedown:function(e){e=bt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=bt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=bt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=bt(this.dom,e);var t=e.toElement||e.relatedTarget;xi(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){gi=!0,e=bt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){gi||(e=bt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=bt(this.dom,e),yi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ci.mousemove.call(this,e),Ci.mousedown.call(this,e)},touchmove:function(e){e=bt(this.dom,e),yi(e),this.handler.processGesture(e,`change`),Ci.mousemove.call(this,e)},touchend:function(e){e=bt(this.dom,e),yi(e),this.handler.processGesture(e,`end`),Ci.mouseup.call(this,e),new Date-+this.__lastTouchMoment<fi&&Ci.click.call(this,e)},pointerdown:function(e){Ci.mousedown.call(this,e)},pointermove:function(e){_i(e)||Ci.mousemove.call(this,e)},pointerup:function(e){Ci.mouseup.call(this,e)},pointerout:function(e){_i(e)||Ci.mouseout.call(this,e)}};F([`click`,`dblclick`,`contextmenu`],function(e){Ci[e]=function(t){t=bt(this.dom,t),this.trigger(e,t)}});var wi={pointermove:function(e){_i(e)||wi.mousemove.call(this,e)},pointerup:function(e){wi.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Ti(e,t){var n=t.domHandlers;a.pointerEventsSupported?F(mi.pointer,function(r){Di(t,r,function(t){n[r].call(e,t)})}):(a.touchEventsSupported&&F(mi.touch,function(r){Di(t,r,function(i){n[r].call(e,i),vi(t)})}),F(mi.mouse,function(r){Di(t,r,function(i){i=yt(i),t.touching||n[r].call(e,i)})}))}function Ei(e,t){a.pointerEventsSupported?F(hi.pointer,n):a.touchEventsSupported||F(hi.mouse,n);function n(n){function r(r){r=yt(r),xi(e,r.target)||(r=bi(e,r),t.domHandlers[n].call(e,r))}Di(t,n,r,{capture:!0})}}function Di(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,St(e.domTarget,t,n,r)}function Oi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Ct(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var ki=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Ai=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ki(t,Ci),pi&&(r._globalHandlerScope=new ki(document,wi)),Ti(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Oi(this._localHandlerScope),pi&&Oi(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,pi&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ei(this,t):Oi(t)}},t}($e),ji=1;a.hasGlobalWindow&&(ji=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Mi=ji,Ni=.4,Pi=`#333`,Fi=`#ccc`,Ii=`#eee`,Li=jt,Ri=5e-5;function zi(e){return e>Ri||e<-Ri}var Bi=[],Vi=[],Hi=At(),Ui=Math.abs,Wi=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Gi(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return zi(this.rotation)||zi(this.x)||zi(this.y)||zi(this.scaleX-1)||zi(this.scaleY-1)||zi(this.skewX)||zi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Li(n),this.invTransform=null);return}n||=At(),t?this.getLocalTransform(n):Li(n),e&&(t?Nt(n,e,n):Mt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||At(),Lt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Bi);var n=Bi[0]<0?-1:1,r=Bi[1]<0?-1:1,i=((Bi[0]-n)*t+n)/Bi[0]||0,a=((Bi[1]-r)*t+r)/Bi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||At(),Nt(Vi,e.invTransform,t),t=Vi);var n=this.originX,r=this.originY;(n||r)&&(Hi[4]=n,Hi[5]=r,Nt(Vi,t,Hi),Vi[4]-=n,Vi[5]-=r,t=Vi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Je(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Je(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Ui(e[0]-1)>1e-10&&Ui(e[3]-1)>1e-10?Math.sqrt(Ui(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Ji(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Ft(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Gi=Wi.getLocalTransform;function Ki(){return new Wi}var qi=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Ji(e,t){return ee(e,t,qi)}function Yi(e){Xi||=new pr(100),e||=`12px sans-serif`;var t=Xi.get(e);return t||(t={font:e,strWidthCache:new pr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:p.measureText(`国`,e).width,asciiCharWidth:p.measureText(`a`,e).width},Xi.put(e,t)),t}var Xi;function Zi(e){if(!(Qi>=$i)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=p.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Qi=$i:i>2&&Qi++,t}}var Qi=0,$i=5;function ea(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Zi(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ta(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=p.measureText(t,e.font).width,n.put(t,r)),r}function na(e,t,n,r){var i=ta(Yi(t),e),a=oa(t);return new J(ia(0,i,n),aa(0,a,r),i,a)}function ra(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return na(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=na(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ia(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function aa(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function oa(e){return Yi(e).stWideCharWidth}function sa(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function ca(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=sa(r[0],n.width),l+=sa(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var la=`__zr_normal__`,ua=qi.concat([`ignore`]),da=re(qi,function(e,t){return e[t]=!0,e},{ignore:!1}),fa={},pa=new J(0,0,0,0),ma=[],ha=function(){function e(e){this.id=D(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=pa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(fa,n,d):ca(fa,n,d),i.x=fa.x,i.y=fa.y,a=fa.align,o=fa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=sa(f[0],d.width),m=sa(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(ma),Lt(ma,ma),J.copy(_,d),_.applyTransform(ma)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fi:Pi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Dr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Fr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},j(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=L(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ua)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(la,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===la;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(N(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){O(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Ca(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ta(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Ca(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ta(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=N(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=N(r,e),a=N(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];j(t,i),i.textConfig&&(n||={},j(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=j({},r?this.textConfig:n.textConfig),j(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ua.length;l++){var u=ua[l],d=i&&da[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!==`production`)throw Error(`Text element has been added to zrender.`);return}if(e===this){if(process.env.NODE_ENV!==`production`)throw Error(`Recursive component attachment.`);return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!==`production`&&e.__zr&&!e.__hostTarget)throw Error(`Text element has been added to zrender.`);e.innerTransformable=new Wi,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},j(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if(process.env.NODE_ENV!==`production`&&!r){O(`Property "`+e+`" is not existed in element `+this.id);return}var i=new li(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=N(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ga(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ga(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ga(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(console.warn(`DEPRECATED: '`+e+`' has been deprecated. use '`+t+`', '`+r+`' instead`),n[e+t+r]=!0)}function i(e,n,i,a){Object.defineProperty(t,e,{get:function(){if(process.env.NODE_ENV!==`production`&&r(e,i,a),!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){process.env.NODE_ENV!==`production`&&r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}});function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}}Object.defineProperty&&(i(`position`,`_legacyPos`,`x`,`y`),i(`scale`,`_legacyScale`,`scaleX`,`scaleY`),i(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();ne(ha,$e),ne(ha,Wi);function ga(e,t,n,r,i){n||={};var a=[];Sa(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function _a(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function va(e){return P(e[0])}function ya(e,t,n){if(P(t[n])){if(P(e[n])||(e[n]=[]),ue(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),_a(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(va(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?_a(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else _a(a,i,o);a.length=i.length}}else e[n]=t[n]}function ba(e,t){return e===t||P(e)&&P(t)&&xa(e,t)}function xa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Sa(e,t,n,r,i,a,o,s){for(var c=L(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!U(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(U(v)&&!P(v)&&!fe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Sa(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=N(m,x);m.splice(S,1)}}if(i.force||(h=ie(h,function(e){return!ba(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Yr(n[_]),ya(n,r,_)}}var x=new li(n,!1,!1,d?ie(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Ca(e,t,n,r){return!(n&&n.hoverLayer||r)||wa(e)||t&&wa(t)?0:1}function wa(e){return e.type===`text`||e.type===`tspan`}function Ta(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ea=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),process.env.NODE_ENV!==`production`&&e.__hostTarget))throw`This elemenet has been used as an attachment`;return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=N(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=N(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ha);Ea.prototype.type=`group`;var Da={},Oa={};function ka(e){delete Oa[e]}function Aa(e){if(!e)return!1;if(typeof e==`string`)return Ir(e,1)<Ni;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ir(t[i].color,1);return n/=r,n<Ni}return!1}var ja=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Pn,o=n.renderer||`canvas`;if(Da[o]||(o=L(Da)[0]),process.env.NODE_ENV!==`production`&&!Da[o])throw Error(`Renderer '`+o+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var s=new Da[o](t,i,n,e),c=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!a.node&&!a.worker&&!c?new Ai(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?a.touchEventsSupported:!!u,f=44,p;d&&(p=W(n.pointerSize,f)),this.handler=new _n(i,s,l,s.root,p),this.animation=new di({stage:{update:c?null:function(){return r._flush(!1)}}}),c||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Aa(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=ui(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=ui();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ea&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ka(this.id))},e}();function Ma(e,t){var n=new ja(D(),e,t);return Oa[n.id]=n,n}function Na(e,t){Da[e]=t}var Pa=1e-4,Fa=20;function Ia(e){return e.replace(/^\s+|\s+$/g,``)}var La=Math.min,Ra=Math.max,za=Math.abs,Ba=Math.round,Va=Math.floor,Ha=Math.ceil,Ua=Math.pow,Wa=Math.log,Ga=Math.LN10,Ka=Math.PI,qa=Math.random;function Ja(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Ya=Xa;function Xa(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Za(e,t,n)}function Za(e,t,n){return H(e)?Qa(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Qa(e){return!!Ia(e).match(/%$/)}function Y(e,t,n){return process.env.NODE_ENV!==`production`&&G(t!=null),isNaN(t)?n?``+e:+e:(t=La(Ra(0,t),Fa),e=(+e).toFixed(t),n?e:+e)}function $a(e){return e.sort(function(e,t){return e-t}),e}function eo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Ba(e*t)/t===e)return n}return to(e)}function to(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Ra(0,(a<0?0:i-1-a)-r)}function no(e,t,n){var r=za(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Wa(2*za(n||1)*za(r))/Ga,a=Wa(za(t))/Ga,o=Ra(0,Ha(-i+a));return isFinite(o)||(o=NaN),o}function ro(e,t){var n=re(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Ua(10,t),i=I(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=I(i,function(e){return Va(e)}),s=re(o,function(e,t){return e+t},0),c=I(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return I(o,function(e){return e/r})}function io(e,t){var n=Ra(eo(e),eo(t)),r=e+t;return n>Fa?r:Y(r,n)}var ao=Ua(2,53)-1;function oo(e){var t=Ka*2;return(e%t+t)%t}function so(e){return e>-Pa&&e<Pa}var co=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function lo(e){if(e instanceof Date)return e;if(H(e)){var t=co.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Ba(e))}function uo(e){return Ua(10,fo(e))}function fo(e){if(e===0)return 0;var t=Va(Wa(e)/Ga);return e/Ua(10,t)>=10&&t++,t}function po(e,t){var n=fo(e),r=Ua(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Y(e,-n)}function mo(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ho(e){var t=parseFloat(e);return t==e&&(t!==0||!H(e)||e.indexOf(`x`)<=0)?t:NaN}function go(e){return!isNaN(ho(e))}function _o(){return Ba(qa()*9)}function vo(e,t){return t===0?e:vo(t,e%t)}function yo(e,t){return e==null?t:t==null?e:e*t/vo(e,t)}function bo(e){return e!=null&&isFinite(e)}var xo=`[ECharts] `,So={},Co=typeof console<`u`&&console.warn&&console.log;function wo(e,t,n){if(Co){if(n){if(So[t])return;So[t]=!0}console[e](xo+t)}}function To(e,t){wo(`log`,e,t)}function Eo(e,t){wo(`warn`,e,t)}function Do(e,t){wo(`error`,e,t)}function Oo(e){process.env.NODE_ENV!==`production`&&wo(`warn`,`DEPRECATED: `+e,!0)}function ko(e,t,n){process.env.NODE_ENV!==`production`&&Oo((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Ao(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=``;if(process.env.NODE_ENV!==`production`){var r=function(e){return e===void 0?`undefined`:e===1/0?`Infinity`:e===-1/0?`-Infinity`:he(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:V(e)?`function () { ... }`:me(e)?e+``:null};n=I(e,function(e){if(H(e))return e;var t=r(e);if(t!=null)return t;if(typeof JSON<`u`&&JSON.stringify)try{return JSON.stringify(e,function(e,t){return r(t)??t})}catch{return`?`}return`?`}).join(` `)}return n}function jo(e){throw Error(e)}function Mo(e,t,n){return(t-e)*n+e}var No=`series\0`,Po=`\0_ec_\0`;function Fo(e){return e instanceof Array?e:e==null?[]:[e]}function Io(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Lo=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function Ro(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function zo(e){return U(e)&&!(e instanceof Array)}function Bo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();F(t,function(e,n){if(!U(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!Zo(e.id)&&Xo(e.id),e.name!=null&&!Zo(e.name)&&Xo(e.name))});var s=Vo(e,o,n);return(r||i)&&Ho(s,e,o,t),r&&Uo(s,t),r||i?Wo(s,t,i):a&&Go(s,t),Ko(s),s}function Vo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||$o(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Ho(e,t,n,r){F(r,function(i,a){if(!(!i||i.id==null)){var o=Jo(i.id),s=n.get(o);if(s!=null){var c=e[s];G(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Uo(e,t){F(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!$o(n)&&!$o(a)&&qo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Wo(e,t,n){F(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||$o(r.existing)||r.existing&&t.id!=null&&!qo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Go(e,t){F(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ko(e){var t=K();F(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),F(e,function(e){var n=e.newOption;G(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),F(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(U(i)){if(a.name=i.name==null?r?r.name:No+n:Jo(i.name),r)a.id=Jo(r.id);else if(i.id!=null)a.id=Jo(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function qo(e,t,n){var r=Yo(t[e],null),i=Yo(n[e],null);return r!=null&&i!=null&&r===i}function Jo(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return Yo(e,``)}function Yo(e,t){return e==null?t:H(e)?e:ce(e)||se(e)?e+``:t}function Xo(e){process.env.NODE_ENV!==`production`&&Eo("`"+e+"` is invalid id or name. Must be a string or number.")}function Zo(e){return se(e)||go(e)}function Qo(e){var t=e.name;return!!(t&&t.indexOf(No))}function $o(e){return e&&e.id!=null&&Jo(e.id).indexOf(Po)===0}function es(e,t,n){F(e,function(e){var r=e.newOption;U(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=ts(t,r,e.existing,n))})}function ts(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function ns(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Yo(e[r].seriesId,null);if(a==null)return;for(var o=Fo(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null){if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}}return n}}function rs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?I(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?I(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function X(){var e=`__ec_inner_`+is++;return function(t){return t[e]||(t[e]={})}}var is=_o();function as(e,t,n){var r=os(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ls(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function os(e,t){var n;if(H(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return F(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&N(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ss={useDefault:!0,enableAll:!1,enableNone:!1},cs={useDefault:!1,enableAll:!0,enableNone:!0};function ls(e,t,n,r){r||=ss;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;process.env.NODE_ENV!==`production`&&Do('`"none"` or `false` is not a valid value on index option.'),i=-1}return i===`all`&&(r.enableAll?i=a=o=null:(process.env.NODE_ENV!==`production`&&Do('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function us(e,t,n){process.env.NODE_ENV!==`production`&&G(t);var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function ds(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function fs(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ps(e){return e===`auto`?a.domSupported?`html`:`richText`:e||`html`}function ms(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(ce(r)){var o=Mo(n||0,r,i);return Y(o,a?Math.max(eo(n||0),eo(r)):t)}if(H(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Mo(p,m,i);s[d]=Y(o,a?Math.max(eo(p),eo(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function hs(){return[1/0,-1/0]}function gs(e,t){bs(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function _s(e,t){bs(t)&&t<e[0]&&(e[0]=t)}function vs(e,t){bs(t)&&t>e[1]&&(e[1]=t)}function ys(e,t){xs(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function bs(e){return e!=null&&isFinite(e)}function xs(e,t){return bs(e)&&bs(t)&&e<=t}function Ss(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Cs(e){xs(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function ws(){var e=`__ec_once_`+Ts++;return function(t,n){process.env.NODE_ENV!==`production`&&G(t),q(t,e)||(t[e]=1,n())}}var Ts=_o();function Es(e,t,n){var r=K(),i=0;F(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&G(H(o));var s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Ds(e){return process.env.NODE_ENV!==`production`&&G(e.value!=null),e.value+``}function Os(e){return process.env.NODE_ENV!==`production`&&G(e!=null),e+``}function ks(e,t){return W(t,!0)?e.seriesIndex+2:0}function As(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function js(e,t){return{seriesType:e,overallReset:t}}function Ms(e){return{overallReset:e}}var Ns=`.`,Ps=`___EC__COMPONENT__CONTAINER___`,Fs=`___EC__EXTENDED_CLASS___`;function Is(e){var t={main:``,sub:``};if(e){var n=e.split(Ns);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ls(e){G(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Rs(e){return!!(e&&e[Fs])}function zs(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&F(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,i;return Bs(n)?i=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},te(i,this)),j(i.prototype,e),i[Fs]=!0,i.extend=this.extend,i.superCall=Ws,i.superApply=Gs,i.superClass=n,i}}function Bs(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Vs(e,t){e.extend=t.extend}var Hs=Math.round(Math.random()*10);function Us(e){var t=[`__\0is_clz`,Hs++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&G(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function Ws(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Gs(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ks(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ls(r),e.prototype.type=r;var i=Is(r);if(!i.sub)process.env.NODE_ENV!==`production`&&t[i.main]&&console.warn(i.main+` exists.`),t[i.main]=e;else if(i.sub!==Ps){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Ps]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Is(e),r=[],i=t[n.main];return i&&i[Ps]?F(i,function(e,t){t!==Ps&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Is(e).main]},e.getAllClassMainTypes=function(){var e=[];return F(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Is(e).main];return n&&n[Ps]};function n(e){var n=t[e.main];return(!n||!n[Ps])&&(n=t[e.main]={},n[Ps]=!0),n}}function qs(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&N(r,s)>=0||i&&N(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Js=qs([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Ys=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Js(this,e,t)},e}(),Xs=new pr(50);function Zs(e){if(typeof e==`string`){var t=Xs.get(e);return t&&t.image}return e}function Qs(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Xs.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!ec(t)&&a.pending.push(o)):(t=p.loadImage(e,$s,$s),t.__zrImageSrc=e,Xs.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function $s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ec(e){return e&&e.width&&e.height}var tc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
+
`);a=rc(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)ic(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function rc(e,t,n,r){r||={};var i=j({},r);n=W(n,`...`),i.maxIterations=W(r.maxIterations,2);var a=i.minChar=W(r.minChar,0),o=i.fontMeasureInfo=Yi(t),s=o.asciiCharWidth;i.placeholder=W(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=ta(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function ic(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ta(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?ac(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ta(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ac(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=ea(n,e.charCodeAt(i));return i}function oc(e,t,n,r){var i=yc(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=oa(l),f=W(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?hc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=rc(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)ic(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Yi(l),S=0;S<_.length;S++)w=Math.max(ta(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var sc=function(){function e(){}return e}(),cc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),lc=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function uc(e,t,n,r,i){var a=new lc,o=yc(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=tc.lastIndex=0,h;(h=tc.exec(o))!=null;){var g=h.index;g>m&&dc(a,o.substring(m,g),t,p),dc(a,h[2],t,p,h[1]),m=tc.lastIndex}m<o.length&&dc(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,M=k.font=A.font||t.font;k.contentHeight=oa(M);var N=W(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=_e(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var te=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<te;break outer}var ne=A.width,P=ne==null||ne===`auto`;if(typeof ne==`string`&&ne.charAt(ne.length-1)===`%`)k.percentWidth=ne,_.push(k),k.contentWidth=ta(Yi(M),k.text);else{if(P){var F=A.backgroundColor,I=F&&F.image;I&&(I=Zs(I),ec(I)&&(k.width=Math.max(k.width,I.width*N/I.height)))}var re=b&&u!=null?u-D:null;re!=null&&re<k.width?!P||re<ee?(k.text=``,k.width=k.contentWidth=0):(nc(S,k.text,re-ee,M,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=ta(Yi(M),k.text)):k.contentWidth=ta(Yi(M),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=W(u,y),a.outerHeight=a.height=W(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ie=k.percentWidth;k.width=parseInt(ie,10)/100*a.width}return a}function dc(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=sa(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=hc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
7
|
+
`);for(var g=Yi(c),_=0;_<u.length;_++){var v=u[_],y=new sc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:ta(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new cc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new cc([y]))}}function fc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var pc=re(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function mc(e){return!fc(e)||!!pc[e]}function hc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Yi(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=ea(d,p.charCodeAt(0)),h=!r&&!mc(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function gc(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(_c,ia(n,o,i),aa(r,s,a),o,s),J.intersect(t,_c,null,vc);var c=vc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ia(c.x,c.width,i,!0),e.baseY=aa(c.y,c.height,a,!0)}}var _c=new J(0,0,0,0),vc={outIntersectRect:{},clamp:!0};function yc(e){return e==null?e=``:e+=``}function bc(e){var t=yc(e.text),n=e.font;return xc(e,ta(Yi(n),t),oa(n),null)}function xc(e,t,n,r){var i=new J(ia(e.x||0,t,e.textAlign),aa(e.y||0,n,e.textBaseline),t,n),a=r??(Sc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Sc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Cc=`__zr_style_`+Math.round(Math.random()*10),wc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Tc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wc[Cc]=!0;var Ec=[`z`,`z2`,`invisible`],Dc=[`invisible`],Oc=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&jc(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new J(0,0,0,0),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:j(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ke(wc,e)},t.prototype.useStyle=function(e){e[Cc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Cc]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ec)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=L(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=L(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Dc:Ec,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return j(e,t),e},t.prototype.getAnimationStyleProps=function(){return Tc},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(ha),kc=new J(0,0,0,0),Ac=new J(0,0,0,0);function jc(e,t,n){return kc.copy(e.getBoundingRect()),e.transform&&kc.applyTransform(e.transform),Ac.width=t,Ac.height=n,!kc.intersect(Ac)}var Mc=Math.min,Nc=Math.max,Pc=Math.sin,Fc=Math.cos,Ic=Math.PI*2,Lc=Ne(),Rc=Ne(),zc=Ne();function Bc(e,t,n,r,i,a){i[0]=Mc(e,n),i[1]=Mc(t,r),a[0]=Nc(e,n),a[1]=Nc(t,r)}var Vc=[],Hc=[];function Uc(e,t,n,r,i,a,o,s,c,l){var u=Zn,d=Jn,f=u(e,n,i,o,Vc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Vc[p]);c[0]=Mc(m,c[0]),l[0]=Nc(m,l[0])}f=u(t,r,a,s,Hc);for(var p=0;p<f;p++){var h=d(t,r,a,s,Hc[p]);c[1]=Mc(h,c[1]),l[1]=Nc(h,l[1])}c[0]=Mc(e,c[0]),l[0]=Nc(e,l[0]),c[0]=Mc(o,c[0]),l[0]=Nc(o,l[0]),c[1]=Mc(t,c[1]),l[1]=Nc(t,l[1]),c[1]=Mc(s,c[1]),l[1]=Nc(s,l[1])}function Wc(e,t,n,r,i,a,o,s){var c=ir,l=tr,u=Nc(Mc(c(e,n,i),1),0),d=Nc(Mc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Mc(e,i,f),o[1]=Mc(t,a,p),s[0]=Nc(e,i,f),s[1]=Nc(t,a,p)}function Gc(e,t,n,r,i,a,o,s,c){var l=Ye,u=Xe,d=Math.abs(i-a);if(d%Ic<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Lc[0]=Fc(i)*n+e,Lc[1]=Pc(i)*r+t,Rc[0]=Fc(a)*n+e,Rc[1]=Pc(a)*r+t,l(s,Lc,Rc),u(c,Lc,Rc),i%=Ic,i<0&&(i+=Ic),a%=Ic,a<0&&(a+=Ic),i>a&&!o?a+=Ic:i<a&&o&&(i+=Ic),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(zc[0]=Fc(p)*n+e,zc[1]=Pc(p)*r+t,l(s,zc,s),u(c,zc,c))}var Kc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qc=[],Jc=[],Yc=[],Xc=[],Zc=[],Qc=[],$c=Math.min,el=Math.max,tl=Math.cos,nl=Math.sin,rl=Math.abs,il=Math.PI,al=il*2,ol=typeof Float32Array<`u`,sl=[];function cl(e){return Math.round(e/il*1e8)/1e8%2*il}function ll(e,t){var n=cl(e[0]);n<0&&(n+=al);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=al?i=n+al:t&&n-i>=al?i=n-al:!t&&n>i?i=n+(al-cl(n-i)):t&&n<i&&(i=n-(al-cl(i-n))),e[0]=n,e[1]=i}var ul=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=rl(n/Mi/e)||0,this._uy=rl(n/Mi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Kc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=rl(e-this._xi),r=rl(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Kc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Kc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Kc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),sl[0]=r,sl[1]=i,ll(sl,a),r=sl[0],i=sl[1];var o=i-r;return this.addData(Kc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=tl(i)*n+e,this._yi=nl(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Kc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Kc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&ol&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(ol&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ol&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Yc[0]=Yc[1]=Zc[0]=Zc[1]=Number.MAX_VALUE,Xc[0]=Xc[1]=Qc[0]=Qc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Kc.M:t=r=e[a++],n=i=e[a++],Zc[0]=r,Zc[1]=i,Qc[0]=r,Qc[1]=i;break;case Kc.L:Bc(t,n,e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Kc.C:Uc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Kc.Q:Wc(t,n,e[a++],e[a++],e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Kc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=tl(f)*u+c,i=nl(f)*d+l),Gc(c,l,u,d,f,p,m,Zc,Qc),t=tl(p)*u+c,n=nl(p)*d+l;break;case Kc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Bc(r,i,r+h,i+g,Zc,Qc);break;case Kc.Z:t=r,n=i}Ye(Yc,Yc,Zc),Xe(Xc,Xc,Qc)}return a===0&&(Yc[0]=Yc[1]=Xc[0]=Xc[1]=0),new J(Yc[0],Yc[1],Xc[0]-Yc[0],Xc[1]-Yc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Kc.M:i=o=e[d++],a=s=e[d++];break;case Kc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(rl(_)>n||rl(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Kc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=er(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Kc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=sr(i,a,y,b,h,g,10),i=h,a=g;break;case Kc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=tl(D)*T+C,s=nl(D)*E+w),m=el(T,E)*$c(al,Math.abs(O)),i=tl(k)*T+C,a=nl(k)*E+w;break;case Kc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Kc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Kc.L&&v>0&&(e.lineTo(y,b),v=0),S){case Kc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Kc.L:u=n[x++],d=n[x++];var w=rl(u-c),T=rl(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Kc.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Qn(c,k,j,M,D,qc),Qn(l,A,ee,N,D,Jc),e.bezierCurveTo(qc[1],Jc[1],qc[2],Jc[2],qc[3],Jc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case Kc.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ar(c,k,j,D,qc),ar(l,A,ee,D,Jc),e.quadraticCurveTo(qc[1],Jc[1],qc[2],Jc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Kc.A:var te=n[x++],ne=n[x++],P=n[x++],F=n[x++],I=n[x++],re=n[x++],ie=n[x++],ae=!n[x++],L=P>F?P:F,oe=rl(P-F)>.001,R=I+re,z=!1;if(f){var E=p[g++];h+E>_&&(R=I+re*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,ne,P,F,ie,I,R,ae):e.arc(te,ne,L,I,R,ae),z)break lo;C&&(o=tl(I)*P+te,s=nl(I)*F+ne),c=tl(R)*P+te,l=nl(R)*F+ne;break;case Kc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],V=n[x++];if(f){var E=p[g++];if(h+E>_){var H=_-h;e.moveTo(u,d),e.lineTo(u+$c(H,B),d),H-=B,H>0&&e.lineTo(u+B,d+$c(H,V)),H-=V,H>0&&e.lineTo(u+el(B-H,0),d+V),H-=B,H>0&&e.lineTo(u,d+el(V-H,0));break lo}h+=E}e.rect(u,d,B,V);break;case Kc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Kc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function dl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function fl(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:$n(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function pl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:or(e,t,n,r,i,a,s,c,null)<=l/2}var ml=Math.PI*2;function hl(e){return e%=ml,e<0&&(e+=ml),e}var gl=Math.PI*2;function _l(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%gl<1e-4)return!0;if(a){var d=r;r=hl(i),i=hl(d)}else r=hl(r),i=hl(i);r>i&&(i+=gl);var f=Math.atan2(c,s);return f<0&&(f+=gl),f>=r&&f<=i||f+gl>=r&&f+gl<=i}function vl(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var yl=ul.CMD,bl=Math.PI*2,xl=1e-4;function Sl(e,t){return Math.abs(e-t)<xl}var Cl=[-1,-1,-1],wl=[-1,-1];function Tl(){var e=wl[0];wl[0]=wl[1],wl[1]=e}function El(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Xn(t,r,a,s,l,Cl);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Cl[h],_=g===0||g===1?.5:1;Jn(e,n,i,o,g)<c||(f<0&&(f=Zn(t,r,a,s,wl),wl[1]<wl[0]&&f>1&&Tl(),p=Jn(t,r,a,s,wl[0]),f>1&&(m=Jn(t,r,a,s,wl[1]))),f===2?g<wl[0]?d+=p<t?_:-_:g<wl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<wl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Dl(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=rr(t,r,a,s,Cl);if(c===0)return 0;var l=ir(t,r,a);if(l>=0&&l<=1){for(var u=0,d=tr(t,r,a,l),f=0;f<c;f++){var p=Cl[f]===0||Cl[f]===1?.5:1,m=tr(e,n,i,Cl[f]);m<o||(Cl[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Cl[0]===0||Cl[0]===1?.5:1,m=tr(e,n,i,Cl[0]);return m<o?0:a<t?p:-p}function Ol(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Cl[0]=-c,Cl[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=bl-1e-4){r=0,i=bl;var u=a?1:-1;return o>=Cl[0]+e&&o<=Cl[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=bl,i+=bl);for(var f=0,p=0;p<2;p++){var m=Cl[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=bl+h),(h>=r&&h<=i||h+bl>=r&&h+bl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function kl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===yl.M&&m>1&&(n||(s+=vl(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case yl.M:u=a[m++],d=a[m++],c=u,l=d;break;case yl.L:if(n){if(dl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=vl(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.C:if(n){if(fl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=El(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.Q:if(n){if(pl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Dl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=vl(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(_l(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ol(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case yl.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(dl(u,d,f,d,t,r,i)||dl(f,d,f,p,t,r,i)||dl(f,p,u,p,t,r,i)||dl(u,p,u,d,t,r,i))return!0}else s+=vl(f,d,f,p,r,i),s+=vl(u,p,u,d,r,i);break;case yl.Z:if(n){if(dl(c,l,u,d,t,r,i))return!0}else s+=vl(c,l,u,d,r,i);c=u,l=d}}return!n&&!Sl(l,d)&&(s+=vl(c,l,u,d,r,i)||0),s!==0}function Al(e,t,n){return kl(e,0,!1,t,n)}function jl(e,t,n,r){return kl(e,t,!0,n,r)}var Ml=M({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wc),Nl={style:M({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Tc.style)},Pl=qi.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Fl=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Pl.length;++s)i[Pl[s]]=this[Pl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=L(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?j(this.style,o):this.useStyle(o):a===`shape`?j(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(H(e)){var t=Ir(e,0);return t>.5?Pi:t>.2?Ii:Fi}if(e)return Fi}return Pi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Ir(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ul(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),jl(a,o/s,e,t)))return!0}if(this.hasFill())return Al(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:j(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ke(Ml,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=j({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=j({},r.shape),j(c,n.shape)):(c=j({},i?this.shape:r.shape),j(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=j({},this.shape);for(var l={},u=L(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Nl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){r(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return k(e.style)},n.prototype.getDefaultShape=function(){return k(e.shape)},n}(t);for(var i in e)typeof e[i]==`function`&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Oc),Il=M({strokeFirst:!0,font:s,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ml),Ll=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Sc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return ke(Il,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=bc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Oc);Ll.prototype.type=`tspan`;var Rl=M({x:0,y:0},wc),zl={style:M({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Tc.style)};function Bl(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Vl=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ke(Rl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Bl(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return zl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Oc);Vl.prototype.type=`image`;function Hl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Ul=Math.round;function Wl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Ul(r*2)===Ul(i*2)&&(e.x1=e.x2=Kl(r,s,!0)),Ul(a*2)===Ul(o*2)&&(e.y1=e.y2=Kl(a,s,!0)),e):e}}function Gl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Kl(r,s,!0),e.y=Kl(i,s,!0),e.width=Math.max(Kl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Kl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Kl(e,t,n){if(!t)return e;var r=Ul(e*2);return(r+Ul(t))%2==0?r/2:(r+(n?1:-1))/2}var ql=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Jl={},Yl=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ql},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Gl(Jl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Hl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Fl);Yl.prototype.type=`rect`;var Xl={fill:`#000`},Zl=2,Ql={},$l={style:M({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Tc.style)},eu=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Xl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,su(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Xl},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!==`production`)throw Error(`Can't attach text on another text`)},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return j(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},j(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return $l},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;gc(Ql,r.overflowRect,i,a,o,s),i=Ql.baseX,a=Ql.baseY;var c=oc(fu(e),e,Ql.outerWidth,Ql.outerHeight),l=pu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=aa(a,c.contentHeight,s);if(l||n){var _=ia(i,f,o),v=aa(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=du(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=uu(`fill`in e?e.fill:(x=!0,r.fill)),C=lu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Zl,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Ll),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,au(D,e),g+=m,E.setBoundingRect(xc(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;gc(Ql,t.overflowRect,i,a,n,r),i=Ql.baseX,a=Ql.baseY;var o=uc(fu(e),e,Ql.outerWidth,Ql.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ia(i,c,n),f=aa(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;pu(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&pu(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=du(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Ll),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=uu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=lu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Zl,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=_e(s.opacity,t.opacity,1),au(p,s),y&&(p.lineWidth=_e(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(xc(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Yl),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Vl),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=_e(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return ou(e)&&(t=[e.fontStyle,e.fontWeight,iu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&be(t)||e.textFont||e.font},t}(Oc),tu={left:!0,right:1,center:1},nu={top:1,bottom:1,middle:1},ru=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function iu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function au(e,t){for(var n=0;n<ru.length;n++){var r=ru[n],i=t[r];i!=null&&(e[r]=i)}}function ou(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function su(e){return cu(e),F(e.rich,cu),e}function cu(e){if(e){e.font=eu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||tu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||nu[n]?n:`top`,e.padding&&=ye(e.padding)}}function lu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function uu(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function du(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function fu(e){var t=e.text;return t!=null&&(t+=``),t}function pu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var mu=X(),hu=function(e,t,n,r){if(r){var i=mu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=mu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},gu=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),_u=`original`,vu=`arrayRows`,yu=`objectRows`,bu=`keyedColumns`,xu=`typedArray`,Su=`unknown`,Cu=`column`,wu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Tu=function(){function e(e){F(wu,function(t){this[t]=R(e[t],e)},this)}return e}();function Eu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Du=1,Ou={},ku=X(),Au=X(),ju=[`emphasis`,`blur`,`select`],Mu=[`normal`,`emphasis`,`blur`,`select`],Nu=`highlight`,Pu=`downplay`,Fu=`select`,Iu=`unselect`,Lu=`toggleSelect`,Ru=`selectchanged`;function zu(e){return e!=null&&e!==`none`}function Bu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Vu(e){Bu(e,`emphasis`,2)}function Hu(e){e.hoverState===2&&Bu(e,`normal`,0)}function Uu(e){Bu(e,`blur`,1)}function Wu(e){e.hoverState===1&&Bu(e,`normal`,0)}function Gu(e){e.selected=!0}function Ku(e){e.selected=!1}function qu(e,t,n){t(e,n)}function Ju(e,t,n){qu(e,t,n),e.isGroup&&e.traverse(function(e){qu(e,t,n)})}function Yu(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Xu(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Zu(e,t,n,r){var i=n&&N(n,`select`)>=0,a=!1;if(e instanceof Fl){var o=ku(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(zu(s)||zu(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=j({},r),l=j({},l),l.fill=s):!zu(l.fill)&&zu(s)?(a=!0,r=j({},r),l=j({},l),l.fill=Rr(s)):!zu(l.stroke)&&zu(c)&&(a||(r=j({},r),l=j({},l)),l.stroke=Rr(c)),r.style=l}}if(r&&r.z2==null){a||(r=j({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Qu(e,t,n){if(n&&n.z2==null){n=j({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function $u(e,t,n){var r=N(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Xu(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=j({},n),o=j({opacity:r?i:a.opacity*.1},o),n.style=o),n}function ed(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Zu(this,e,t,n);if(e===`blur`)return $u(this,e,n);if(e===`select`)return Qu(this,e,n)}return n}function td(e){e.stateProxy=ed;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ed),n&&(n.stateProxy=ed)}function nd(e,t){!ud(e,t)&&!e.__highByOuter&&Ju(e,Vu)}function rd(e,t){!ud(e,t)&&!e.__highByOuter&&Ju(e,Hu)}function id(e,t){e.__highByOuter|=1<<(t||0),Ju(e,Vu)}function ad(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ju(e,Hu)}function od(e){Ju(e,Uu)}function sd(e){Ju(e,Wu)}function cd(e){Ju(e,Gu)}function ld(e){Ju(e,Ku)}function ud(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Au(i),o=Eu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Wu(e)}),s&&n.push(i)),a.isBlured=!1}),F(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function fd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&sd(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Uu(e)}),P(t))a(e.getData(),t);else if(U(t))for(var u=L(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Au(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function pd(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Au(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Uu(e)})}}}function md(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&Do(`Unknown dataType `+t.dataType);return}var a=rs(i,t);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=mu(o);fd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&fd(r,u,d,n)}}function hd(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(process.env.NODE_ENV!==`production`&&!kd(s[l])&&Do(`param should be highDownDispatcher`),mu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function gd(e,t,n){process.env.NODE_ENV!==`production`&&!kd(e)&&Do(`param should be highDownDispatcher`);var r=mu(e),i=hd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&pd(r.componentMainType,r.componentIndex,n),F(a,function(e){return nd(e,t)})):(fd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&pd(r.componentMainType,r.componentIndex,n),nd(e,t))}function _d(e,t,n){process.env.NODE_ENV!==`production`&&!kd(e)&&Do(`param should be highDownDispatcher`),dd(n);var r=mu(e),i=hd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?F(i,function(e){return rd(e,t)}):rd(e,t)}function vd(e,t,n){if(jd(t)){var r=t.dataType,i=rs(e.getData(r),t);B(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function yd(e){F(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?cd(t):ld(t)})})}function bd(e){var t=[];return e.eachSeries(function(e){F(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function xd(e,t,n){Od(e,!0),Ju(e,td),wd(e,t,n)}function Sd(e){Od(e,!1)}function Cd(e,t,n,r){r?Sd(e):xd(e,t,n)}function wd(e,t,n){var r=mu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Td=[`emphasis`,`blur`,`select`],Ed={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Dd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Td.length;i++){var a=Td[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Ed[n]]()}}function Od(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function kd(e){return!!(e&&e.__highDownDispatcher)}function Ad(e){var t=Ou[e];return t==null&&Du<=32&&(t=Ou[e]=Du++),t}function jd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Md(e){var t=e.type;return t===`highlight`||t===`downplay`}function Nd(e){var t=ku(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Pd=ul.CMD,Fd=[[],[],[]],Id=Math.sqrt,Ld=Math.atan2;function Rd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Pd.M,d=Pd.C,f=Pd.L,p=Pd.R,m=Pd.A,h=Pd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Id(t[0]*t[0]+t[1]*t[1]),y=Id(t[2]*t[2]+t[3]*t[3]),b=Ld(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Je(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Je(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Fd[c];x[0]=n[o++],x[1]=n[o++],Je(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var zd=Math.sqrt,Bd=Math.sin,Vd=Math.cos,Hd=Math.PI;function Ud(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Wd(e,t){return(e[0]*t[0]+e[1]*t[1])/(Ud(e)*Ud(t))}function Gd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Wd(e,t))}function Kd(e,t,n,r,i,a,o,s,c,l,u){var d=Hd/180*c,f=Vd(d)*(e-n)/2+Bd(d)*(t-r)/2,p=-1*Bd(d)*(e-n)/2+Vd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=zd(m),s*=zd(m));var h=(i===a?-1:1)*zd((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Vd(d)*g-Bd(d)*_,y=(t+r)/2+Bd(d)*g+Vd(d)*_,b=Gd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Gd(x,S);if(Wd(x,S)<=-1&&(C=Hd),Wd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Hd*1e6)/1e6;C=Hd*2+w%2*Hd}u.addData(l,v,y,o,s,b,C,d,a)}var qd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Jd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Yd(e){var t=new ul;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ul.CMD,c=e.match(qd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Jd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Kd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Kd(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Xd=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Fl);function Zd(e){return e.setData!=null}function Qd(e,t){var n=Yd(e),r=j({},t);return r.buildPath=function(e){var t=Zd(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Rd(n,e),this.dirtyShape()},r}function $d(e,t){return new Xd(Qd(e,t))}function ef(e,t){var n=Qd(e,t);return function(e){r(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Xd)}function tf(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Fl(t);return o.createPathProxy(),o.buildPath=function(e){if(Zd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var nf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),rf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nf},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Fl);rf.prototype.type=`circle`;var af=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),of=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new af},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Fl);of.prototype.type=`ellipse`;var sf=Math.PI,cf=sf*2,lf=Math.sin,uf=Math.cos,df=Math.acos,ff=Math.atan2,pf=Math.abs,mf=Math.sqrt,hf=Math.max,gf=Math.min,_f=1e-4;function vf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<_f))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function yf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/mf(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*mf(hf(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function bf(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function xf(e,t){var n,r=hf(t.r,0),i=hf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=pf(c-s),p=f>cf&&f%cf;if(p>_f&&(f=p),!(r>_f))e.moveTo(l,u);else if(f>cf-_f)e.moveTo(l+r*uf(s),u+r*lf(s)),e.arc(l,u,r,s,c,!d),i>_f&&(e.moveTo(l+i*uf(c),u+i*lf(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*uf(s),j=r*lf(s),ee=i*uf(c),M=i*lf(c),N=f>_f;if(N){var te=t.cornerRadius;te&&(n=bf(te),m=n[0],h=n[1],g=n[2],_=n[3]);var ne=pf(r-i)/2;if(v=gf(ne,g),y=gf(ne,_),b=gf(ne,m),x=gf(ne,h),w=S=hf(v,y),T=C=hf(b,x),(S>_f||C>_f)&&(E=r*uf(c),D=r*lf(c),O=i*uf(s),k=i*lf(s),f<sf)){var P=vf(A,j,O,k,E,D,ee,M);if(P){var F=A-P[0],I=j-P[1],re=E-P[0],ie=D-P[1],ae=1/lf(df((F*re+I*ie)/(mf(F*F+I*I)*mf(re*re+ie*ie)))/2),L=mf(P[0]*P[0]+P[1]*P[1]);w=gf(S,(r-L)/(ae+1)),T=gf(C,(i-L)/(ae-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>_f){var oe=gf(g,w),R=gf(_,w),z=yf(O,k,A,j,r,oe,d),B=yf(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&oe===R?e.arc(l+z.cx,u+z.cy,w,ff(z.y0,z.x0),ff(B.y0,B.x0),!d):(oe>0&&e.arc(l+z.cx,u+z.cy,oe,ff(z.y0,z.x0),ff(z.y1,z.x1),!d),e.arc(l,u,r,ff(z.cy+z.y1,z.cx+z.x1),ff(B.cy+B.y1,B.cx+B.x1),!d),R>0&&e.arc(l+B.cx,u+B.cy,R,ff(B.y1,B.x1),ff(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>_f)||!N)e.lineTo(l+ee,u+M);else if(T>_f){var oe=gf(m,T),R=gf(h,T),z=yf(ee,M,E,D,i,-R,d),B=yf(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&oe===R?e.arc(l+z.cx,u+z.cy,T,ff(z.y0,z.x0),ff(B.y0,B.x0),!d):(R>0&&e.arc(l+z.cx,u+z.cy,R,ff(z.y0,z.x0),ff(z.y1,z.x1),!d),e.arc(l,u,i,ff(z.cy+z.y1,z.cx+z.x1),ff(B.cy+B.y1,B.cx+B.x1),d),oe>0&&e.arc(l+B.cx,u+B.cy,oe,ff(B.y1,B.x1),ff(B.y0,B.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Sf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Cf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Sf},t.prototype.buildPath=function(e,t){xf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Fl);Cf.prototype.type=`sector`;var wf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Tf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new wf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Fl);Tf.prototype.type=`ring`;function Ef(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Ye(u,u,e[f]),Xe(d,d,e[f]);Ye(u,u,r[0]),Xe(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Fe(e[f]));continue}else c=e[f-1],l=e[f+1];Re(a,l,c),Ve(a,a,t);var h=Ue(m,c),g=Ue(m,l),_=h+g;_!==0&&(h/=_,g/=_),Ve(o,a,-h),Ve(s,a,g);var v=Le([],m,o),y=Le([],m,s);r&&(Xe(v,v,u),Ye(v,v,d),Xe(y,y,u),Ye(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Df(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Ef(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Of=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),kf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Of},t.prototype.buildPath=function(e,t){Df(e,t,!0)},t}(Fl);kf.prototype.type=`polygon`;var Af=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),jf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Af},t.prototype.buildPath=function(e,t){Df(e,t,!1)},t}(Fl);jf.prototype.type=`polyline`;var Mf={},Nf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Pf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Nf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Wl(Mf,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Fl);Pf.prototype.type=`line`;var Ff=[],If=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Lf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Yn:Jn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Yn:Jn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?nr:tr)(e.x1,e.cpx1,e.x2,t),(n?nr:tr)(e.y1,e.cpy1,e.y2,t)]}var Rf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new If},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(ar(n,o,i,u,Ff),o=Ff[1],i=Ff[2],ar(r,s,a,u,Ff),s=Ff[1],a=Ff[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Qn(n,o,c,i,u,Ff),o=Ff[1],c=Ff[2],i=Ff[3],Qn(r,s,l,a,u,Ff),s=Ff[1],l=Ff[2],a=Ff[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Lf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Lf(this.shape,e,!0);return He(t,t)},t}(Fl);Rf.prototype.type=`bezier-curve`;var zf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Bf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new zf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Fl);Bf.prototype.type=`arc`;var Vf=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fl.prototype.getBoundingRect.call(this)},t}(Fl),Hf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Uf=function(e){r(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Hf),Wf=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Hf),Gf=Math.min,Kf=Math.max,qf=Math.abs,Jf=[0,0],Yf=[0,0],Xf=ln(),Zf=Xf.minTv,Qf=Xf.maxTv,$f=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Rt;for(var n=0;n<2;n++)this._axes[n]=new Rt;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Rt.sub(r[0],n[1],n[0]),Rt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Rt.set(t,0,0),Xf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Xf.negativeSize&&Rt.copy(t,r?Xf.useDir?Xf.dirMinTv:Zf:Qf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Jf),e._getProjMinMaxOnAxis(a,t._corners,Yf),Xf.negativeSize||Jf[1]<Yf[0]||Jf[0]>Yf[1]){if(i=!1,Xf.negativeSize||n)return i;var s=qf(Yf[0]-Jf[1]),c=qf(Jf[0]-Yf[1]);Gf(s,c)>Qf.len()&&(s<c?Rt.scale(Qf,o,-s*r):Rt.scale(Qf,o,c*r))}else if(!n){var s=qf(Yf[0]-Jf[1]),c=qf(Jf[0]-Yf[1]);(Xf.useDir||Gf(s,c)<Zf.len())&&((s<c||!Xf.bidirectional)&&(Rt.scale(Zf,o,s*r),Xf.useDir&&Xf.calcDirMTV()),(s>=c||!Xf.bidirectional)&&(Rt.scale(Zf,o,-c*r),Xf.useDir&&Xf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Gf(l,o),s=Kf(l,s)}n[0]=o+Xf.touchThreshold,n[1]=s-Xf.touchThreshold,Xf.negativeSize=n[1]<n[0]},e}(),ep=[],tp=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ep)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Oc),np=X();function rp(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=W(r.duration,200),u=W(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),V(d)&&(d=d(n,i)),V(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function ip(e,t,n,r,i,a,o){var s=!1,c;V(i)?(o=a,a=i,i=null):U(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=rp(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function ap(e,t,n,r,i,a){ip(`update`,e,t,n,r,i,a)}function op(e,t,n,r,i,a){ip(`enter`,e,t,n,r,i,a)}function sp(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function cp(e,t,n,r,i,a){sp(e)||ip(`leave`,e,t,n,r,i,a)}function lp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),cp(e,{style:{opacity:0}},t,n,r)}function up(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||lp(e,t,n,r)}):lp(e,t,n,r)}function dp(e){np(e).oldStyle=e.style}var fp=e.n({Arc:()=>Bf,BezierCurve:()=>Rf,BoundingRect:()=>J,Circle:()=>rf,CompoundPath:()=>Vf,Ellipse:()=>of,Group:()=>Ea,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Vl,IncrementalDisplayable:()=>tp,Line:()=>Pf,LinearGradient:()=>Uf,OrientedBoundingRect:()=>$f,Path:()=>Fl,Point:()=>Rt,Polygon:()=>kf,Polyline:()=>jf,RadialGradient:()=>Wf,Rect:()=>Yl,Ring:()=>Tf,Sector:()=>Cf,Text:()=>eu,WH:()=>hp,XY:()=>mp,applyTransform:()=>Ap,calcZ2Range:()=>$p,clipPointsByRect:()=>Fp,clipRectByRect:()=>Ip,createIcon:()=>Lp,decomposeTransform:()=>rm,ensureCopyRect:()=>Xp,ensureCopyTransform:()=>Zp,expandOrShrinkRect:()=>Hp,extendPath:()=>vp,extendShape:()=>gp,getCurrentCanvasPainter:()=>am,getShapeClass:()=>bp,getTransform:()=>kp,groupTransition:()=>Pp,initProps:()=>op,isBoundingRectAxisAligned:()=>Jp,isElementRemoved:()=>sp,lineLineIntersect:()=>zp,linePolygonIntersect:()=>Rp,makeImage:()=>Sp,makePath:()=>xp,mergePath:()=>wp,payloadDisableAnimation:()=>nm,registerShape:()=>yp,removeElement:()=>cp,removeElementWithFadeOut:()=>up,resizePath:()=>Tp,retrieveZInfo:()=>Qp,setTooltipConfig:()=>Gp,subPixelOptimize:()=>Op,subPixelOptimizeLine:()=>Ep,subPixelOptimizeRect:()=>Dp,transformDirection:()=>jp,traverseElements:()=>qp,traverseUpdateZ:()=>em,updateProps:()=>ap}),pp={},mp=[`x`,`y`],hp=[`width`,`height`];function gp(e){return Fl.extend(e)}var _p=ef;function vp(e,t){return _p(e,t)}function yp(e,t){pp[e]=t}function bp(e){if(pp.hasOwnProperty(e))return pp[e]}function xp(e,t,n,r){var i=$d(e,t);return n&&(r===`center`&&(n=Cp(n,i.getBoundingRect())),Tp(i,n)),i}function Sp(e,t,n){var r=new Vl({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Cp(t,i))}}});return r}function Cp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var wp=tf;function Tp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Ep(e,t){return Wl(e,e,{lineWidth:t}),e}function Dp(e,t){return Gl(e,e,t),e}var Op=Kl;function kp(e,t){for(var n=jt([]);e&&e!==t;)Nt(n,e.getLocalTransform(),n),e=e.parent;return n}function Ap(e,t,n){return t&&!P(t)&&(t=Wi.getLocalTransform(t)),n&&(t=Lt([],t)),Je([],e,t)}function jp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:za(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:za(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Ap(a,t,n),za(a[0])>za(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Mp(e){return!e.isGroup}function Np(e){return e.shape!=null}function Pp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Mp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Np(e)&&(t.shape=k(e.shape)),t}var a=r(e);t.traverse(function(e){if(Mp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),ap(e,r,n,mu(e).dataIndex)}}})}function Fp(e,t){return I(e,function(e){var n=e[0];n=Ra(n,t.x),n=La(n,t.x+t.width);var r=e[1];return r=Ra(r,t.y),r=La(r,t.y+t.height),[n,r]})}function Ip(e,t){var n=Ra(e.x,t.x),r=La(e.x+e.width,t.x+t.width),i=Ra(e.y,t.y),a=La(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Lp(e,t,n){var r=j({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),M(i,n),new Vl(r)):xp(e.replace(`path://`,``),r,n,`center`)}function Rp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(zp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function zp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Bp(u,d,c,l);if(Vp(f))return!1;var p=e-i,m=t-a,h=Bp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Bp(p,m,u,d)/f;return!(g<0||g>1)}function Bp(e,t,n,r){return e*r-n*t}function Vp(e){return e<=1e-6&&e>=-1e-6}function Hp(e,t,n,r,i){return t==null?e:(ce(t)?Up[0]=Up[1]=Up[2]=Up[3]=t:(process.env.NODE_ENV!==`production`&&G(t.length===4),Up[0]=t[0],Up[1]=t[1],Up[2]=t[2],Up[3]=t[3]),r&&(Up[0]=Ra(0,Up[0]),Up[1]=Ra(0,Up[1]),Up[2]=Ra(0,Up[2]),Up[3]=Ra(0,Up[3])),n&&(Up[0]=-Up[0],Up[1]=-Up[1],Up[2]=-Up[2],Up[3]=-Up[3]),Wp(e,Up,`x`,`width`,3,1,i&&i[0]||0),Wp(e,Up,`y`,`height`,0,2,i&&i[1]||0),e)}var Up=[0,0,0,0];function Wp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Ra(0,La(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:za(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Gp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&F(L(c),function(e){q(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=mu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:M({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Kp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function qp(e,t){if(e){if(B(e))for(var n=0;n<e.length;n++)Kp(e[n],t);else Kp(e,t)}}function Jp(e){return!e||za(e[1])<Yp&&za(e[2])<Yp||za(e[0])<Yp&&za(e[3])<Yp}var Yp=1e-5;function Xp(e,t){return e?J.copy(e,t):t.clone()}function Zp(e,t){return t?Mt(e||At(),t):void 0}function Qp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function $p(e){var t=-1/0,n=1/0;Kp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function em(e,t,n){tm(e,t,n,-1/0)}function tm(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Ra(tm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Ra(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function nm(e){return e.animation={duration:0},e}function rm(e,t){return t?Mt(im.transform,t):jt(im.transform),im.decomposeTransform(),Ji(e,im),e}var im=new Wi;im.transform=At();function am(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}yp(`circle`,rf),yp(`ellipse`,of),yp(`sector`,Cf),yp(`ring`,Tf),yp(`polygon`,kf),yp(`polyline`,jf),yp(`rect`,Yl),yp(`line`,Pf),yp(`bezierCurve`,Rf),yp(`arc`,Bf);var om={};function sm(e,t){for(var n=0;n<ju.length;n++){var r=ju[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function cm(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=V(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<ju.length;l++){var u=ju[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function lm(e,t,n,r){n||=om;for(var i=e instanceof eu,a=!1,o=0;o<Mu.length;o++){var s=t[Mu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new eu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=cm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=dm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(fm(u,n,!1));for(var o=0;o<ju.length;o++){var p=ju[o],s=t[p];if(s){var m=c.ensureState(p),h=!!W(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=dm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=fm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(bm(c).setLabelText=function(e){var r=cm(n,t,e);sm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function um(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<ju.length;r++){var i=ju[r];n[i]=e.getModel([i,t])}return n}function dm(e,t,n,r,i){var a={};return pm(a,e,n,r,i),t&&j(a,t),a}function fm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=W(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function pm(e,t,n,r,i){n||=om;var a=t.ecModel,o=a&&a.option.textStyle,s=mm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=W(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);vm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=ce(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Cm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=ye(_),h.__marginType=Cm.textMargin)}vm(e,t,o,null,null,n,r,i,!0,!1)}function mm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||om).rich;if(n){t||={};for(var r=L(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var hm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],gm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],_m=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function vm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||om;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=W(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&ko(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&ko(`color: 'auto'`,`color: 'inherit'`),f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=W(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=W(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=W(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<hm.length;_++){var v=hm[_],y=i!==!1&&r?_e(t.getShallow(v),r.getShallow(v),n[v]):W(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<gm.length;_++){var v=gm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<_m.length;_++){var v=_m[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.backgroundColor===`auto`&&ko(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&ko(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function ym(e,t){var n=t&&t.getModel(`textStyle`);return be([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var bm=X();function xm(e,t,n,r){if(e){var i=bm(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Sm(e,t,n,r,i){var a=bm(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=W(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=ms(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,sm(e,cm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?op:ap)(e,{percent:1},r,t,null,l)}var Cm={minMargin:1,textMargin:2},wm=[`textStyle`,`color`],Tm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Em=new eu,Dm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(wm):null)},e.prototype.getFont=function(){return ym({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Tm.length;n++)t[Tm[n]]=this.getShallow(Tm[n]);return Em.useStyle(t),Em.update(),Em.getBoundingRect()},e}(),Om=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],km=qs(Om),Am=function(){function e(){}return e.prototype.getLineStyle=function(e){return km(this,e)},e}(),jm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Mm=qs(jm),Nm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Mm(this,e,t)},e}(),Pm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){A(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(k(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!a.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();zs(Pm),Us(Pm),ne(Pm,Am),ne(Pm,Nm),ne(Pm,Ys),ne(Pm,Dm);var Fm=Math.round(Math.random()*10);function Im(e){return[e||``,Fm++].join(`_`)}function Lm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Is(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Is(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Rm(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(F(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),F(u.successor,d?p:f)}F(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Ao(`Circular dependency may exists: `,c,e,t)),Error(n)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return F(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),F(c,function(e){N(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);N(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return F(e,function(e){N(t,e)>=0&&n.push(e)}),n}}function zm(e,t){return A(A({},e,!0),t,!0)}var Bm={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Vm={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Hm=`ZH`,Um=`EN`,Wm=Um,Gm={},Km={},qm=a.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Wm).toUpperCase().indexOf(Hm)>-1?Hm:Wm}():Wm;function Jm(e,t){e=e.toUpperCase(),Km[e]=new Pm(t),Gm[e]=t}function Ym(e){if(H(e)){var t=Gm[e.toUpperCase()]||{};return e===Hm||e===Um?k(t):A(k(t),k(Gm[Wm]),!1)}return A(k(e),k(Gm[Wm]),!1)}function Xm(e){return Km[e]}function Zm(){return Km[Wm]}Jm(Um,Bm),Jm(Hm,Vm);var Qm=null;function $m(){return Qm}function eh(e,t){var n=$m(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function th(e){var t=e.brk;return t?t.breaks:[]}function nh(e){var t=e.brk;return t?t.hasBreaks():!1}var rh=1e3,ih=rh*60,ah=ih*60,oh=ah*24,sh=oh*365,ch={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},lh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},uh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,dh=`{yyyy}-{MM}-{dd}`,fh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:dh,hour:dh+` `+lh.hour,minute:dh+` `+lh.minute,second:dh+` `+lh.second,millisecond:uh},ph=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],mh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function hh(e){return!H(e)&&!V(e)?gh(e):e}function gh(e){e||={};var t={},n=!0;return F(ph,function(t){n&&=e[t]==null}),F(ph,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=ph[s],l=U(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):H(l)?(o=l,u=[o]):(o==null?o=lh[r]:ch[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function _h(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function vh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function yh(e){return e===vh(e)}function bh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function xh(e,t,n,r){var i=lo(e),a=i[Th(n)](),o=i[Eh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Dh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Oh(n)](),d=(u-1)%12+1,f=i[kh(n)](),p=i[Ah(n)](),m=i[jh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Pm?r:Xm(r||qm)||Zm()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,_h(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,_h(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,_h(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,_h(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,_h(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,_h(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,_h(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,_h(m,3)).replace(/{S}/g,m+``)}function Sh(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n)){var o={time:e.time,level:e.time?e.time.level:0},s=$m();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Ch(e.value,i);a=n[u][u][0]}}return xh(new Date(e.value),a,i,r)}function Ch(e,t){var n=lo(e),r=n[Eh(t)]()+1,i=n[Dh(t)](),a=n[Oh(t)](),o=n[kh(t)](),s=n[Ah(t)](),c=n[jh(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function wh(e,t,n){switch(t){case`year`:e[Nh(n)](0);case`month`:e[Ph(n)](1);case`day`:e[Fh(n)](0);case`hour`:e[Ih(n)](0);case`minute`:e[Lh(n)](0);case`second`:e[Rh(n)](0)}return e}function Th(e){return e?`getUTCFullYear`:`getFullYear`}function Eh(e){return e?`getUTCMonth`:`getMonth`}function Dh(e){return e?`getUTCDate`:`getDate`}function Oh(e){return e?`getUTCHours`:`getHours`}function kh(e){return e?`getUTCMinutes`:`getMinutes`}function Ah(e){return e?`getUTCSeconds`:`getSeconds`}function jh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Mh(e){return e?`setUTCFullYear`:`setFullYear`}function Nh(e){return e?`setUTCMonth`:`setMonth`}function Ph(e){return e?`setUTCDate`:`setDate`}function Fh(e){return e?`setUTCHours`:`setHours`}function Ih(e){return e?`setUTCMinutes`:`setMinutes`}function Lh(e){return e?`setUTCSeconds`:`setSeconds`}function Rh(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function zh(e){if(!go(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Bh(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Vh=ye;function Hh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&be(e)?e:`-`}function a(e){return bo(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?lo(e):e;if(!isNaN(+c))return xh(c,r,n);if(s)return`-`}if(t===`ordinal`)return se(e)?i(e):ce(e)&&a(e)?e+``:`-`;var l=ho(e);return a(l)?zh(l):se(e)?i(e):typeof e==`boolean`?e+``:`-`}var Uh=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Wh=function(e,t){return`{`+e+(t??``)+`}`};function Gh(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Uh[a];e=e.replace(Wh(o),Wh(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Wh(Uh[c],s),n?pt(l):l)}return e}function Kh(e,t){var n=H(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+pt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+pt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function qh(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Jh(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Yh={},Xh={},Zh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Yh,!0),this._normalMasterList=n(Xh,!1);function n(n,r){var i=[];return F(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&F(o,function(e){return G(!e.update)})}),i}},e.prototype.update=function(e,t){F(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Yh[e]=t;return}Xh[e]=t},e.get=function(e){return Xh[e]||Yh[e]},e}();function Qh(e){return!!Yh[e]}function $h(e){process.env.NODE_ENV!==`production`&&G(!eg.get(e.fullType)),eg.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var eg=K();function tg(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=eg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function ng(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=r!=null,a=0;if(n){var o=e.mainType===`series`;r??=o?`data`:`box`,r===`data`?(a=1,o||(process.env.NODE_ENV!==`production`&&i&&t&&Do(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!Qh(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&Do(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function rg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&G(!!n);var o=ng(t,!0),s=o.kind,c=o.coordSysType;if(i&&s!==1&&(s=1,c=n),s===0||c!==n)return 0;var l=r(n,t);return l?(s===1?(process.env.NODE_ENV!==`production`&&G(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||Do(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var ig=F,ag=[`left`,`right`,`top`,`bottom`,`width`,`height`],og=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function sg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var cg=sg;z(sg,`vertical`),z(sg,`horizontal`);function lg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function ug(e,t){var n=mg(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===pg.point)a=n.refPoint,i=fg(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=B(o)?o:[o,o];i=fg(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Ya(s[0],i.width)+i.x,Ya(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function dg(e,t){var n=ug(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);B(a)||(a=[0,a]);var o=Ya(r.width,t.getWidth()),s=Ya(r.height,t.getHeight()),c=Math.min(o,s),l=Ya(a[0],c/2),u=Ya(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function fg(e,t,n){n=Vh(n||0);var r=t.width,i=t.height,a=Ya(e.left,r),o=Ya(e.top,i),s=Ya(e.right,r),c=Ya(e.bottom,i),l=Ya(e.width,r),u=Ya(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var pg={rect:1,point:2};function mg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=tg(e),l=c.coord,u=c.from;if(o.dataToLayout){a=pg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=pg.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&Do(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=pg.rect,a===pg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function hg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=fg(M({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function gg(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function _g(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(og[0],0),a=o(og[1],1);c(og[0],e,i),c(og[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(ig(n,function(t){c[t]=e[t]}),ig(n,function(e){q(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!q(a,f)&&q(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){ig(e,function(e){t[e]=n[e]})}}function vg(e){return yg({},e)}function yg(e,t){return t&&e&&ig(ag,function(n){q(t,n)&&(e[n]=t[n])}),e}var bg=X(),Z=function(e){r(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Im(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=gg(this),r=n?vg(e):{};A(e,t.getTheme().get(this.mainType)),A(e,this.getDefaultOption()),n&&_g(e,r,n)},t.prototype.mergeOption=function(e,t){A(this.option,e,!0);var n=gg(this);n&&_g(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Rs(e))return e.defaultOption;var t=bg(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=A(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ls(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return lg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Pm);Vs(Z,Pm),Ks(Z),Lm(Z),Rm(Z,xg);function xg(e){var t=[];return F(Z.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=I(t,function(e){return Is(e).main}),e!==`dataset`&&N(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},Sg=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Cg in j(Sg,{primary:Sg.neutral80,secondary:Sg.neutral70,tertiary:Sg.neutral60,quaternary:Sg.neutral50,disabled:Sg.neutral20,border:Sg.neutral30,borderTint:Sg.neutral20,borderShade:Sg.neutral40,background:Sg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Sg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Sg.neutral70,axisLineTint:Sg.neutral40,axisTick:Sg.neutral70,axisTickMinor:Sg.neutral60,axisLabel:Sg.neutral70,axisSplitLine:Sg.neutral15,axisMinorSplitLine:Sg.neutral05}),Sg)if(Sg.hasOwnProperty(Cg)){var wg=Sg[Cg];Cg===`theme`?Q.darkColor.theme=Sg.theme.slice():Cg===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:Cg.indexOf(`accent`)===0?Q.darkColor[Cg]=Nr(wg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Cg]=Nr(wg,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Tg=``;typeof navigator<`u`&&(Tg=navigator.platform||``);var Eg=`rgba(0, 0, 0, 0.2)`,Dg=Q.color.theme[0],Og=Nr(Dg,null,null,.9),kg={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[Og,Dg],aria:{decal:{decals:[{color:Eg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Tg.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Ag={Must:1,Might:2,Not:3},jg=X();function Mg(e){jg(e).datasetMap=K()}function Ng(e,t,n){var r={},i=Fg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=jg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),F(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});F(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Pg(e,t,n){var r={};if(!Fg(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&F(a,function(e,t){(U(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Rg(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Ag.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Ag.Not)&&(e.n=c),f(e)&&s[e.n]!==Ag.Not)return e;d||(u===Ag.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Fg(e){if(!e.get(`data`,!0))return ls(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},ss).models[0]}function Ig(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:ls(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},ss).models}function Lg(e,t){return Rg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Rg(e,t,n,r,i,a){var o,s=5;if(ue(e))return Ag.Not;var c,l;if(r){var u=r[a];U(u)?(c=u.name,l=u.type):H(u)&&(c=u)}if(l!=null)return l===`ordinal`?Ag.Must:Ag.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Ag.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Ag.Not;var f=_[c];if(!f||ue(f))return Ag.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Ro(g);if(!B(y))return Ag.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=H(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Ag.Might:Ag.Not;if(t&&e!==`-`)return Ag.Must}return Ag.Not}var zg=K();function Bg(e,t,n){var r=zg.get(t);if(!r)return n;var i=r(e);if(!i)return n;if(process.env.NODE_ENV!==`production`)for(var a=0;a<i.length;a++)G($o(i[a]));return n.concat(i)}var Vg=X();X();var Hg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Fo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Wg(this,Vg,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Gg(this,Vg)},e}();function Ug(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Wg(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Ug(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Gg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Kg,qg,Jg,Yg=`\0_ec_inner`,Xg=1,Zg={grid:`GridComponent`,polar:`PolarComponent`,geo:`GeoComponent`,singleAxis:`SingleAxisComponent`,parallel:`ParallelComponent`,calendar:`CalendarComponent`,matrix:`MatrixComponent`,graphic:`GraphicComponent`,toolbox:`ToolboxComponent`,tooltip:`TooltipComponent`,axisPointer:`AxisPointerComponent`,brush:`BrushComponent`,title:`TitleComponent`,timeline:`TimelineComponent`,markPoint:`MarkPointComponent`,markLine:`MarkLineComponent`,markArea:`MarkAreaComponent`,legend:`LegendComponent`,dataZoom:`DataZoomComponent`,visualMap:`VisualMapComponent`,xAxis:`GridComponent`,yAxis:`GridComponent`,angleAxis:`PolarComponent`,radiusAxis:`PolarComponent`},Qg={line:`LineChart`,bar:`BarChart`,pie:`PieChart`,scatter:`ScatterChart`,radar:`RadarChart`,map:`MapChart`,tree:`TreeChart`,treemap:`TreemapChart`,graph:`GraphChart`,chord:`ChordChart`,gauge:`GaugeChart`,funnel:`FunnelChart`,parallel:`ParallelChart`,sankey:`SankeyChart`,boxplot:`BoxplotChart`,candlestick:`CandlestickChart`,effectScatter:`EffectScatterChart`,lines:`LinesChart`,heatmap:`HeatmapChart`,pictorialBar:`PictorialBarChart`,themeRiver:`ThemeRiverChart`,sunburst:`SunburstChart`,custom:`CustomChart`},$g={};function e_(e){F(e,function(e,t){if(!Z.hasClass(t)){var n=Zg[t];n&&!$g[n]&&(Do(`Component `+t+` is used but not imported.
|
|
9
|
+
import { `+n+` } from 'echarts/components';
|
|
10
|
+
echarts.use([`+n+`]);`),$g[n]=!0)}})}var t_=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Pm(r),this._locale=new Pm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(G(e!=null,`option is null/undefined`),G(e[Yg]!==Xg,`please use chart.getOption()`));var r=o_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,o_(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);process.env.NODE_ENV!==`production`&&e_(i),!this.option||e===`recreate`?Jg(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&F(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=K(),s=t&&t.replaceMergeMainTypeMap;Mg(this),F(e,function(e,t){e!=null&&(Z.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?k(e):A(n[t],e,!0))}),s&&s.each(function(e,t){Z.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),c,this);function c(t){var a=Bg(this,t,Fo(e[t])),o=r.get(t),c=Bo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);es(c,t,Z),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;F(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=Z.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=Qg[s];$g[s]||($g[s]=!0,Do(c?`Series `+s+` is used but not imported.
|
|
11
|
+
import { `+c+` } from 'echarts/charts';
|
|
12
|
+
echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Eo(`Currently only one tooltip component is allowed.`),!0));return}f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var m=j({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),j(r,m),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Kg(this)}this._seriesIndices||Kg(this)},t.prototype.getOption=function(){var e=k(this.option);return F(e,function(t,n){if(Z.hasClass(n)){for(var r=Fo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!$o(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Yg],e},t.prototype.setTheme=function(e){this._theme=new Pm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ie(a,function(e){return!!e}):i_(`name`,i,a):i_(`id`,r,a):(o=[],F(Fo(n),function(e){a[e]&&o.push(a[e])})),a_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(a_(r?this.queryComponents(r):ie(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ie(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(V(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=H(e)?r.get(e):U(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Yo(e,null);return ie(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ie(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ie(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){qg(this),F(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){F(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){qg(this),F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return F(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return qg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){qg(this);var n=[];F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){Kg(this);var t=this._componentsMap,n=[];t.each(function(e,t){Z.hasClass(t)&&n.push(t)}),Z.topologicalTravel(n,Z.getAllClassMainTypes(),function(n){F(t.get(n),function(t){t&&(n!==`series`||!n_(t,e))&&t.restoreData()})})},t.internalField=function(){Kg=function(e){var t=e._seriesIndices=[];F(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},qg=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},Jg=function(e,t){e.option={},e.option[Yg]=Xg,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;U(n)&&n.enabled==null&&(n.enabled=!0),r_(t,e._theme.option),A(t,kg,!1),e._mergeOption(t,null)}}(),t}(Pm);function n_(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function r_(e,t){var n=e.color&&!e.colorLayer;F(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Z.hasClass(r)||(typeof t==`object`?e[r]=e[r]?A(e[r],t,!1):k(t):e[r]??(e[r]=t))})}function i_(e,t,n){if(B(t)){var r=K();return F(t,function(e){e!=null&&Yo(e,null)!=null&&r.set(e,!0)}),ie(n,function(t){return t&&r.get(t[e])})}var i=Yo(t,null);return ie(n,function(t){return t&&i!=null&&t[e]===i})}function a_(e,t){return t.hasOwnProperty(`subType`)?ie(e,function(e){return e&&e.subType===t.subType}):e}function o_(e){var t=K();return e&&F(Fo(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&G(Z.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ne(t_,Hg);var s_=/^(min|max)?(.+)$/,c_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(F(Fo(e.series),function(e){e&&e.data&&ue(e.data)&&Se(e.data)}),F(Fo(e.dataset),function(e){e&&e.source&&ue(e.source)&&Se(e.source)})),e=k(e);var r=this._optionBackup,i=l_(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],k(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=k(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)u_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!f_(a,this._currentMediaIndices)&&(o=I(a,function(e){return k(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function l_(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&(B(l)?F(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&U(e.query)&&U(e.query.option)&&Do(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&Do(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),F(c,function(e){return f(e)}),F(r,function(e){return f(e.option)});function f(e){F(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function u_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return F(e,function(e,t){var n=t.match(s_);if(!(!n||!n[1]||!n[2])){var a=n[1];d_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function d_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function f_(e,t){return e.join(`,`)===t.join(`,`)}var p_=F,m_=U,h_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function g_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=h_.length;n<r;n++){var i=h_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&ko(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?A(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&ko(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?A(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function __(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(process.env.NODE_ENV!==`production`&&Oo(`'normal' hierarchy in `+t+` has been removed since 4.0. All style properties are configured in `+t+` directly now.`),n?(e[t].normal=e[t].emphasis=null,M(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&Oo(t+`.emphasis has been changed to emphasis.`+t+` since 4.0`),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function v_(e){__(e,`itemStyle`),__(e,`lineStyle`),__(e,`areaStyle`),__(e,`label`),__(e,`labelLine`),__(e,`upperLabel`),__(e,`edgeLabel`)}function y_(e,t){var n=m_(e)&&e[t],r=m_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Oo(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=Lo.length;i<a;i++){var o=Lo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function b_(e){e&&(v_(e),y_(e,`label`),e.emphasis&&y_(e.emphasis,`label`))}function x_(e){if(m_(e)){g_(e),v_(e),y_(e,`label`),y_(e,`upperLabel`),y_(e,`edgeLabel`),e.emphasis&&(y_(e.emphasis,`label`),y_(e.emphasis,`upperLabel`),y_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(g_(t),b_(t));var n=e.markLine;n&&(g_(n),b_(n));var r=e.markArea;r&&b_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ue(a))for(var o=0;o<a.length;o++)b_(a[o]);F(e.categories,function(e){v_(e)})}if(i&&!ue(i))for(var o=0;o<i.length;o++)b_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)b_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)B(c[o])?(b_(c[o][0]),b_(c[o][1])):b_(c[o]);e.type===`gauge`?(y_(e,`axisLabel`),y_(e,`title`),y_(e,`detail`)):e.type===`treemap`?(__(e.breadcrumb,`itemStyle`),F(e.levels,function(e){v_(e)})):e.type===`tree`&&v_(e.leaves)}}function S_(e){return B(e)?e:e?[e]:[]}function C_(e){return(B(e)?e[0]:e)||{}}function w_(e,t){p_(S_(e.series),function(e){m_(e)&&x_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),p_(n,function(t){p_(S_(e[t]),function(e){e&&(y_(e,`axisLabel`),y_(e.axisPointer,`label`))})}),p_(S_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;y_(t,`axisLabel`),y_(t&&t.axisPointer,`label`)}),p_(S_(e.calendar),function(e){__(e,`itemStyle`),y_(e,`dayLabel`),y_(e,`monthLabel`),y_(e,`yearLabel`)}),p_(S_(e.radar),function(e){y_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Oo(`name property in radar component has been changed to axisName`)),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap,process.env.NODE_ENV!==`production`&&Oo(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&p_(e.indicator,function(e){e.text&&ko(`text`,`name`,`radar.indicator`)})}),p_(S_(e.geo),function(e){m_(e)&&(b_(e),p_(S_(e.regions),function(e){b_(e)}))}),p_(S_(e.timeline),function(e){b_(e),__(e,`label`),__(e,`itemStyle`),__(e,`controlStyle`,!0);var t=e.data;B(t)&&F(t,function(e){U(e)&&(__(e,`label`),__(e,`itemStyle`))})}),p_(S_(e.toolbox),function(e){__(e,`iconStyle`),p_(e.feature,function(e){__(e,`iconStyle`)})}),y_(C_(e.axisPointer),`label`),y_(C_(e.tooltip).axisPointer,`label`)}function T_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function E_(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function D_(e){e&&F(O_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var O_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],k_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],A_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function j_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<A_.length;n++){var r=A_[n][1],i=A_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&ko(r,i))}}function M_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&ko(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function N_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&ko(`downplay`,`blur`,`sunburst`))}function P_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&ko(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function F_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&F_(e[n].children,t)}function I_(e,t){w_(e,t),e.series=Fo(e.series),F(e.series,function(e){if(U(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&ko(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&ko(`clockWise`,`clockwise`)),M_(e.label);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)M_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&ko(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=T_(e,`pointer.color`);i!=null&&E_(e,`itemStyle.color`,i)}else if(t===`bar`){j_(e),j_(e.backgroundStyle),j_(e.emphasis);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(j_(n[r]),j_(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a,process.env.NODE_ENV!==`production`&&ko(`highlightPolicy`,`emphasis.focus`,`sunburst`))),N_(e),F_(e.data,N_)}else t===`graph`||t===`sankey`?P_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&ko(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Oo("`mapLocation` is not used anymore."),M(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&ko(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),D_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),F(k_,function(t){var n=e[t];n&&(B(n)||(n=[n]),F(n,function(e){D_(e)}))})}var L_=Ms(R_);function R_(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),F(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),z_(e))})}function z_(e){F(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=io(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var B_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Lg(this,n)===Ag.Must&&(r.type=`ordinal`)}}return e}();function V_(e){return e instanceof B_}function H_(e,t,n){n||=G_(e);var r=t.seriesLayoutBy,i=K_(e,n,r,t.sourceHeader,t.dimensions);return new B_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:k(t)})}function U_(e){return new B_({data:e,sourceFormat:ue(e)?xu:_u})}function W_(e){return new B_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:k(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function G_(e){var t=Su;if(ue(e))t=xu;else if(B(e)){e.length===0&&(t=vu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(B(i)||ue(i)){t=vu;break}if(U(i)){t=yu;break}}}}else if(U(e)){for(var a in e)if(q(e,a)&&P(e[a])){t=bu;break}}return t}function K_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:J_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Y_(function(e){e!=null&&e!==`-`&&(H(e)?o??=1:o=0)},n,s,10):o=ce(r)?r:+!!r,!i&&o===1&&(i=[],Y_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=q_(e);else if(t===`keyedColumns`)i||(i=[],F(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Ro(e[0]);a=B(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&G(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:J_(i),dimensionsDetectedCount:a}}function q_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return L(n)}function J_(e){if(e){var t=K();return I(e,function(e,n){e=U(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Y_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function X_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Z_,Q_,$_,ev,tv,nv,rv=function(){function e(e,t){var n=V_(e)?e:U_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat,a=n.seriesLayoutBy;if(i===`typedArray`){if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Typed array data must specify dimension size`);this._offset=0,this._dimSize=t,this._data=r}if(process.env.NODE_ENV!==`production`){var o=av[hv(i,a)];o&&o(r,n.dimensionsDefine)}nv(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;nv=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=tv[hv(o,s)];process.env.NODE_ENV!==`production`&&G(u,`Invalide sourceFormat: `+o),j(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=R(cv(o,s),null,i,c,l),e.count=R(dv(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};tv=(e={},e[vu+`_`+Cu]={pure:!0,appendData:i},e[vu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[yu]={pure:!0,appendData:i},e[bu]={pure:!0,appendData:function(e){var t=this._data;F(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[_u]={appendData:i},e[xu]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&G(ue(e),`Added data must be TypedArray if data in initialization is TypedArray`),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),iv=function(e){B(e)||Do(`series.data or dataset.source must be an array.`)},av=(Z_={},Z_[vu+`_`+Cu]=iv,Z_[vu+`_row`]=iv,Z_[yu]=iv,Z_[bu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Do(`dimension name must not be null/undefined.`)},Z_[_u]=iv,Z_),ov=function(e,t,n,r){return e[r]},sv=(Q_={},Q_[vu+`_`+Cu]=function(e,t,n,r){return e[r+t]},Q_[vu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Q_[yu]=ov,Q_[bu]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Q_[_u]=ov,Q_);function cv(e,t){var n=sv[hv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var lv=function(e,t,n){return e.length},uv=($_={},$_[vu+`_`+Cu]=function(e,t,n){return Math.max(0,e.length-t)},$_[vu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},$_[yu]=lv,$_[bu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},$_[_u]=lv,$_);function dv(e,t){var n=uv[hv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support count on "`+e+`", "`+t+`".`),n}var fv=function(e,t,n){return e[t]},pv=(ev={},ev[vu]=fv,ev[yu]=function(e,t,n){return e[n]},ev[bu]=fv,ev[_u]=function(e,t,n){var r=Ro(e);return r instanceof Array?r[t]:r},ev[xu]=fv,ev);function mv(e){var t=pv[e];return process.env.NODE_ENV!==`production`&&G(t,`Do not support get value on "`+e+`".`),t}function hv(e,t){return e===`arrayRows`?e+`_`+t:e}function gv(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return mv(a)(r,o,s)}var c=r;return a===`original`&&(c=Ro(r)),c}}}var _v=/\{@(.+?)\}/g,vv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),V(i))return s.status=t,s.dimensionIndex=r,i(s);if(H(i))return Gh(i,s).replace(_v,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1),process.env.NODE_ENV!==`production`&&isNaN(i)&&Do(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=gv(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return gv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function yv(e){var t,n;return U(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Ao(e)):t=e,{text:t,frag:n}}function bv(e){return new xv(e)}var xv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?(process.env.NODE_ENV!==`production`&&G(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&G(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(B(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;process.env.NODE_ENV!==`production`&&G(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Sv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Sv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){process.env.NODE_ENV!==`production`&&G(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Sv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function Cv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ce(e)&&e!=null&&e!==`-`&&(e=+lo(e)),e==null||e===``?NaN:Number(e))}K({number:function(e){return parseFloat(e)},time:function(e){return+lo(e)},trim:function(e){return H(e)?be(e):e}});var wv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){if(!ce(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),jo(n)}this._opFn=wv[e],this._rvalFloat=ho(t)}return e.prototype.evaluate=function(e){return ce(e)?this._opFn(e,this._rvalFloat):this._opFn(ho(e),this._rvalFloat)},e})();var Tv=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ce(e)?e:ho(e),r=ce(t)?t:ho(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ho(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ho(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Ev(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Dv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Ov=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Cv(e,t)},e}();function kv(e,t){var n=new Ov,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o=``;e.seriesLayoutBy!==`column`&&(process.env.NODE_ENV!==`production`&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),jo(o));var s=[],c={},l=e.dimensionsDefine;if(l)F(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;q(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),jo(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=cv(i,Cu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=R(Av,null,e)),n.cloneRawData=R(jv,null,e),n.count=R(dv(i,Cu),null,r,a,s);var f=mv(i);n.retrieveValue=function(e,t){return p(d(r,a,s,e),t)};var p=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=s[t];if(n)return f(e,t,n.name)}};return n.getDimensionInfo=R(Mv,null,s,c),n.cloneAllDimensionInfo=R(Nv,null,s),n}function Av(e){var t=e.sourceFormat;if(!Rv(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),jo(n)}return e.data}function jv(e){var t=e.sourceFormat,n=e.data;if(!Rv(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),jo(r)}if(t===`arrayRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===`objectRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(j({},n[a]));return i}}function Mv(e,t,n){if(n!=null){if(ce(n)||!isNaN(n)&&!q(t,n))return e[n];if(q(t,n))return t[n]}}function Nv(e){return k(e)}var Pv=K();function Fv(e){e=k(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),jo(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),jo(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Pv.set(t,e)}function Iv(e,t,n){var r=Fo(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),jo(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=Lv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Lv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),jo(i)),U(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),jo(i));var a=e.type,o=Pv.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),jo(i));var s=I(t,function(e){return kv(e,o)}),c=Fo(o.transform({upstream:s[0],upstreamList:s,config:k(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&To(I(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Ao(e.data),`- transform result dimensions:`,Ao(e.dimensions)].join(`
|
|
13
|
+
`)}).join(`
|
|
14
|
+
`)),I(c,function(e,n){var r=``;U(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),jo(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),jo(r)),Rv(G_(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),jo(r));var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Cu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Cu,sourceHeader:0,dimensions:e.dimensions};return H_(e.data,i,null)})}function Rv(e){return e===`arrayRows`||e===`objectRows`}var zv=typeof Uint32Array>`u`?Array:Uint32Array,Bv=typeof Uint16Array>`u`?Array:Uint16Array,Vv=typeof Int32Array>`u`?Array:Int32Array,Hv=typeof Float64Array>`u`?Array:Float64Array,Uv={float:Hv,int:Vv,ordinal:Array,number:Array,time:Hv},Wv;function Gv(e){return e>65535?zv:Bv}function Kv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function qv(e,t,n,r,i){var a=Uv[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Jv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&G(V(e.getItem)&&V(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Wv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=X_(r);this._dimensions=I(t,function(e){return process.env.NODE_ENV!==`production`&&a&&G(e.property!=null),{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Uv[t||`float`](this._rawCount),this._rawExtent[i]=hs(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=hs());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){process.env.NODE_ENV!==`production`&&G(!this._indices,`appendData can only be called on raw data.`);var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];qv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Wv.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=I(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=hs()),qv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),$a(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Gv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Gv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=L(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Gv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=hs();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Gv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Gv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=hs(),d=new(Gv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=hs();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Ev(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||Dv(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&re(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Kv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=k(this._extent),e._rawExtent=k(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Cv(e[r],this._dimensions[r])}Wv={arrayRows:e,objectRows:function(e,t,n,r){return Cv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Cv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Yv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Xv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ue(o)?xu:_u,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[H_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[H_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&G(r&&i),this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);if(process.env.NODE_ENV!==`production`&&G(r!=null||n!=null),r!=null){var i=``;e.length!==1&&(process.env.NODE_ENV!==`production`&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),Zv(i))}var a,o=[],s=[];return F(e,function(e){e.prepareSource();var t=e.getSource(r||0),n=``;r!=null&&!t&&(process.env.NODE_ENV!==`production`&&(n="Can not retrieve result by `fromTransformResult`: "+r),Zv(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Iv(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[W_(o[0])]),{sourceList:a,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!==`production`&&G(Xv(this._sourceHost),`Can only call getDataStore on series source manager.`);var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Xv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Jv,o.initData(new rv(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xv(e)){var t=Fg(e);return t?[t.getSourceManager()]:[]}return I(Ig(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Xv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Xv(e){return e.mainType===`series`}function Zv(e){throw Error(e)}var Qv=`line-height:1`;function $v(e){var t=e.lineHeight;return t==null?Qv:`line-height:`+pt(t+``)+`px`}function ey(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+pt(r+``)+`px;color:`+pt(n)+`;font-weight:`+pt(i+``),valueStyle:`font-size:`+pt(o+``)+`px;color:`+pt(a)+`;font-weight:`+pt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ty=[0,10,20,30],ny=[``,`
|
|
15
|
+
`,`
|
|
16
|
+
|
|
17
|
+
`,`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`];function ry(e,t){return t.type=e,t}function iy(e){return e.type===`section`}function ay(e){return iy(e)?sy:cy}function oy(e){if(iy(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=oy(e);n>=t&&(t=n+ +(r&&(!n||iy(e)&&!e.noHeader)))}),t}return 0}function sy(e,t,n,r){var i=t.noHeader,a=uy(oy(t)),o=[],s=t.blocks||[];G(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(q(l,c)){var u=new Tv(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=ay(n)(s?j(j({},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):dy(r,o.join(``),i?n:a.html);if(i)return d;var f=Hh(t.header,`ordinal`,e.useUTC),p=ey(r,e.renderMode).nameStyle,m=$v(r);return e.renderMode===`richText`?my(e,f,p)+a.richText+d:dy(r,`<div style="`+p+`;`+m+`;">`+pt(f)+`</div>`+d,n)}function cy(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=B(e)?e:[e],I(e,function(e,t){return Hh(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Hh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=ey(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:my(e,f,v))+(o?``:hy(e,m,h,g,y)):dy(r,(s?``:d)+(a?``:fy(f,!s,v))+(o?``:py(m,h,g,y)),n)}}function ly(e,t,n,r,i,a){if(e)return ay(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function uy(e){return{html:ty[e],richText:ny[e]}}function dy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=$v(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function fy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+pt(e)+`</span>`}function py(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return pt(e)}).join(` `)+`</span>`}function my(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function hy(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(B(t)?t.join(` `):t,a)}function gy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return qh(n)}function _y(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var vy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_o()}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=Kh({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(process.env.NODE_ENV!==`production`&&G(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?F(t,function(e){return j(n,e)}):j(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function yy(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=B(s),l=gy(t,n),u,d,f,p;if(o>1||c&&!o){var m=by(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=gv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Qo(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return ry(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[ry(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!be(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function by(e,t,n,r,i){var a=t.getData(),o=re(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(gv(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(ry(`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 xy=X();function Sy(e,t){return e.getName(t)||e.getId(t)}var Cy=function(e){r(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=bv({count:Ey,reset:Dy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(xy(this).sourceManager=new Yv(this)).prepareSource();var r=this.getInitialData(e,n);ky(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&G(r,`getInitialData returned invalid data.`),xy(this).dataBeforeProcessed=r,wy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=gg(this),r=n?vg(e):{},i=this.subType;Z.hasClass(i)&&(i+=`Series`),A(e,t.getTheme().get(this.subType)),A(e,this.getDefaultOption()),Io(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&_g(e,r,n)},t.prototype.mergeOption=function(e,t){e=A(this.option,e,!0),this.fillDataTextStyle(e.data);var n=gg(this);n&&_g(this.option,e,n);var r=xy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);ky(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,xy(this).dataBeforeProcessed=i,wy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ue(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Io(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=jy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return xy(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=jy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}xy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return xy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xy(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 yy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(a.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=Hg.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=Sy(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=L(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[Sy(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`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=Sy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=Sy(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Z.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(Z);ne(Cy,vv),ne(Cy,Hg),Vs(Cy,Z);function wy(e){var t=e.name;Qo(e)||(e.name=Ty(e)||t)}function Ty(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 Ey(e){return e.model.getRawData().count()}function Dy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Oy}function Oy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ky(e,t){F(Oe(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,z(Ay,t))})}function Ay(e,t){var n=jy(e);return n&&n.setOutputEnd((t||this).count()),t}function jy(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 My=function(){function e(){this.group=new Ea,this.uid=Im(`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}();zs(My),Ks(My);function Ny(){var e=X();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 Py=X(),Fy=Ny(),Iy=function(){function e(){this.group=new Ea,this.uid=Im(`viewChart`),this.renderTask=bv({plan:zy,reset:By}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Do(`Unknown dataType `+r.dataType);return}Ry(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Do(`Unknown dataType `+r.dataType);return}Ry(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){qp(this.group,e)},e.markUpdateMethod=function(e,t){Py(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Ly(e,t,n){e&&kd(e)&&(t===`emphasis`?id:ad)(e,n)}function Ry(e,t,n){var r=rs(e,t),i=t&&t.highlightKey!=null?Ad(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Ly(e,n,i)}):F(Fo(r),function(t){Ly(e.getItemGraphicEl(t),n,i)})}zs(Iy,[`dispose`]),Ks(Iy);function zy(e){return Fy(e.model)}function By(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Py(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Vy[c]}var Vy={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)}}},Hy=`\0__throttleOriginMethod`,Uy=`\0__throttleRate`,Wy=`\0__throttleType`;function Gy(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Ky(e,t,n,r){var i=e[t];if(i){var a=i[Hy]||i,o=i[Wy];if(i[Uy]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Gy(a,n,r===`debounce`),i[Hy]=a,i[Wy]=r,i[Uy]=n}return i}}function qy(e,t){var n=e[t];n&&n[Hy]&&(n.clear&&n.clear(),e[t]=n[Hy])}var Jy=X(),Yy={itemStyle:qs(jm,!0),lineStyle:qs(Om,!0)},Xy={lineStyle:`stroke`,itemStyle:`fill`};function Zy(e,t){return e.visualStyleMapper||Yy[t]||(console.warn(`Unknown style type '`+t+`'.`),Yy.itemStyle)}function Qy(e,t){return e.visualDrawType||Xy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var $y={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Zy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Qy(e,r),c=a[s],l=V(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`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(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=j({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},eb=new Pm,tb={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Zy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){eb.option=n[r];var o=i(eb);j(e.ensureUniqueItemVisual(t,`style`),o),eb.option.decal&&(e.setItemVisual(t,`decal`,eb.option.decal),eb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},nb={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Jy(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Jy(e).scope,a=Qy(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)}})}})}},rb=Math.PI;function ib(e,t){t||={},M(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ea,r=new Yl({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new eu({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 Yl({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 Bf({shape:{startAngle:-rb/2,endAngle:-rb/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:rb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:rb*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 ab=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):As(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,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),G(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;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)||bv({plan:ub,reset:db,count:mb}));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||bv({reset:ob});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,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),G(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):F(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,bv({reset:sb,onDirty:lb})));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 V(e)&&(e={overallReset:e,seriesType:hb(e)}),e.uid=Im(`stageHandler`),t&&(e.visualType=t),e},e}();function ob(e){e.overallReset(e.ecModel,e.api,e.payload)}function sb(e){return e.dirtyOnOverallProgress&&cb}function cb(){this.agent.dirty(),this.getDownstream().dirty()}function lb(){this.agent&&this.agent.dirty()}function ub(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function db(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Fo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return pb(t)}):fb}var fb=pb(0);function pb(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 mb(e){return e.data.count()}function hb(e){vb=null;try{e(gb,_b)}catch{}return vb}var gb={},_b={},vb;yb(gb,t_),yb(_b,Tu),gb.eachSeriesByType=gb.eachRawSeriesByType=function(e){vb=e},gb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(vb=e.subType)};function yb(e,t){for(var n in t.prototype)e[n]=je}var $=Q.darkColor,bb=$.background,xb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Sb={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Cb={darkMode:!0,color:$.theme,backgroundColor:bb,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:bb,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:Sb,y:Sb,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:xb(),logAxis:xb(),valueAxis:xb(),categoryAxis:xb(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=xb();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};Cb.categoryAxis.splitLine.show=!1;var wb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(H(e)){var i=Is(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}(),Tb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Eb=Tb.concat([`symbolKeepAspect`]),Db={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<Tb.length;o++){var s=Tb[o],c=e.get(s);V(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(j({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=L(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}}},Ob={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<Eb.length;r++){var i=Eb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function kb(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function Ab(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}function jb(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function Mb(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=j({},t),process.env.NODE_ENV!==`production`&&ko(t.type,e[1]),i.dispatchAction(j(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Nb(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Oo(`event `+a+` is deprecated.`),r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=rs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:B(l)?c.getName(l[0]):c.getName(l),selected:H(r)?r:j({},r)})}}))}function Pb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Nb(`map`,`selectchanged`,t,r,e),Nb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Nb(`map`,`selected`,t,r,e),Nb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Nb(`map`,`unselected`,t,r,e),Nb(`pie`,`unselected`,t,r,e))})}function Fb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Ib=new $e,Lb={};function Rb(e,t){process.env.NODE_ENV!==`production`&&Lb[e]&&Do(`Already has an implementation of `+e+`.`),Lb[e]=t}function zb(e){return process.env.NODE_ENV!==`production`&&(Lb[e]||Do(`Implementation of `+e+` doesn't exists.`)),Lb[e]}var Bb={};function Vb(e,t){Bb[e]=t}function Hb(e){return Bb[e]}var Ub=X();function Wb(e){Ub(e).prepare={}}function Gb(e){Ub(e).fullUpdate={}}function Kb(e){return Ub(e).prepare}function qb(e){return Ub(e).fullUpdate}var Jb=Math.round(Math.random()*9),Yb=typeof Object.defineProperty==`function`,Xb=function(){function e(){this._id=`__ec_inner_`+Jb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Yb?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}(),Zb=Fl.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()}}),Qb={line:Pf,rect:Yl,roundRect:Yl,square:Yl,circle:rf,diamond:Fl.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:Fl.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:Fl.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:Zb},$b={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}},ex={};F(Qb,function(e,t){ex[t]=new e});var tx=Fl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=ca(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=ex[r];i||=(r=`rect`,ex[r]),$b[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function nx(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function rx(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?Sp(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?xp(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new tx({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=nx,a&&c.setColor(a),c}function ix(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function ax(e,t){if(e!=null)return B(e)||(e=[e,e]),[Ya(e[0],t[0])||0,Ya(W(e[1],e[0]),t[1])||0]}function ox(e){return isFinite(e)}function sx(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=ox(r)?r:0,i=ox(i)?i:1,a=ox(a)?a:0,o=ox(o)?o:0,e.createLinearGradient(r,a,i,o)}function cx(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=ox(o)?o:.5,s=ox(s)?s:.5,c=c>=0&&ox(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function lx(e,t,n){for(var r=t.type===`radial`?cx(e,t,n):sx(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function ux(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 dx(e){return parseInt(e,10)}function fx(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]||dx(s[r])||dx(e.style[r]))-(dx(s[a])||0)-(dx(s[o])||0)||0}function px(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ce(e)?[e]:B(e)?e:null}function mx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&px(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 hx=new ul(!0);function gx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function _x(e){return typeof e==`string`&&e!==`none`}function vx(e){var t=e.fill;return t!=null&&t!==`none`}function yx(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 bx(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 xx(e,t,n){var r=Qs(t.image,t.__image,n);if(ec(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)*Me),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Sx(e,t,n,r,i){var a,o=gx(n),s=vx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||hx,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?lx(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?lx(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?xx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?xx(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=mx(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&&bx(e,n),s&&yx(e,n)):(s&&yx(e,n),o&&bx(e,n)),T&&e.setLineDash([])}function Cx(e,t,n){var r=t.__image=Qs(n.image,t.__image,t,t.onload);if(!(!r||!ec(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 Tx(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=mx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(gx(n)&&e.strokeText(i,n.x,n.y),vx(n)&&e.fillText(i,n.x,n.y)):(vx(n)&&e.fillText(i,n.x,n.y),gx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Ex=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Dx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Ox(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){zx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?wc.opacity:o}(r||t.blend!==n.blend)&&(a||=(zx(e,i),!0),e.globalCompositeOperation=t.blend||wc.blend);for(var s=0;s<Ex.length;s++){var c=Ex[s];(r||t[c]!==n[c])&&(a||=(zx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(zx(e,i),!0),e.shadowColor=t.shadowColor||wc.shadowColor),a}function kx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Ox(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(zx(e,i),!0),_x(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(zx(e,i),!0),_x(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(zx(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||=(zx(e,i),!0),e.lineWidth=c)}for(var l=0;l<Dx.length;l++){var u=Dx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(zx(e,i),!0),e[d]=a[d]||u[1])}return s}function Ax(e,t,n,r,i){return Ox(e,t.style,n&&n.style,r,i)}function jx(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 Mx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),jx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Nx(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 Px=1,Fx=2,Ix=3,Lx=4;function Rx(e){var t=vx(e),n=gx(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 zx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Bx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Vx(e,t,n),Hx(e,n)}function Vx(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||ux(i,a))&&(a&&(zx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(zx(e,n),e.save(),Mx(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Fl&&t.autoBatch&&Rx(o);s||Nx(r,l.transform)?(zx(e,n),jx(e,t)):u||zx(e,n),t instanceof Fl?(n.lastDrawType!==Px&&(c=!0,n.lastDrawType=Px),kx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Sx(e,t,o,u,n)):t instanceof Ll?(n.lastDrawType!==Ix&&(c=!0,n.lastDrawType=Ix),kx(e,t,l,c,n),Tx(e,t,o)):t instanceof Vl?(n.lastDrawType!==Fx&&(c=!0,n.lastDrawType=Fx),Ax(e,t,l,c,n),Cx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Lx&&(c=!0,n.lastDrawType=Lx),Ux(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&zx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Hx(e,t){zx(e,t),t.prevElClipPaths&&e.restore()}function Ux(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Vx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Hx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Vx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Hx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wx=new Xb,Gx=new pr(100),Kx=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function qx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Wx.delete(e);var a=Wx.get(e);if(a)return a;var o=M(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,Wx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Kx.length;++s){var c=o[Kx[s]];if(c!=null&&!B(c)&&!H(c)&&!ce(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Gx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Yx(o.dashArrayX),f=Xx(o.dashArrayY),m=Jx(o.symbol),h=Zx(d),g=Qx(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&&Gx.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=yo(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=yo(r,m[t].length);e*=r;var i=g*h.length*m.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function 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,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}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 k(e,t,a,s,c){var l=i?1:n,u=rx(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 Bx(b,u)}}}}function Jx(e){if(!e||e.length===0)return[[`rect`]];if(H(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!H(e[n])){t=!1;break}if(t)return Jx([e]);for(var r=[],n=0;n<e.length;++n)H(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Yx(e){if(!e||e.length===0)return[[0,0]];if(ce(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ce(e[r])){n=!1;break}if(n)return Yx([e]);for(var i=[],r=0;r<e.length;++r)if(ce(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 Xx(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ce(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 Zx(e){return I(e,function(e){return Qx(e)})}function Qx(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var $x=Ms(eS);function eS(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=qx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=qx(i,t)}}})}var tS=1,nS=800,rS=900,iS=920,aS=1e3,oS=2e3,sS=5e3,cS=1e3,lS=1100,uS=2e3,dS=3e3,fS=4e3,pS=4500,mS=4600,hS=5e3,gS=6e3,_S=7e3,vS={PROCESSOR:{SERIES_FILTER:nS,AXIS_STATISTICS:iS,FILTER:aS,STATISTIC:sS,STATISTICS:sS},VISUAL:{LAYOUT:cS,PROGRESSIVE_LAYOUT:lS,GLOBAL:uS,CHART:dS,POST_CHART_LAYOUT:mS,COMPONENT:fS,BRUSH:hS,CHART_ITEM:pS,ARIA:gS,DECAL:_S}},yS=`__flagInMainProcess`,bS=`__mainProcessVersion`,xS=`__pendingUpdate`,SS=`__needsUpdateStatus`,CS=/^[a-zA-Z0-9_]+$/,wS=`__connectUpdateStatus`,TS=0,ES=1,DS=2;function OS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){tC(this.id);return}return AS(this,e,t)}}function kS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return AS(this,e,t)}}function AS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),$e.prototype[t].apply(e,n)}var jS=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($e),MS=jS.prototype;MS.on=kS(`on`),MS.off=kS(`off`);var NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS=function(e){r(t,e);function t(t,n,r){var i=e.call(this,new wb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var o=`canvas`,s=`auto`,c=!1;if(i[bS]=1,process.env.NODE_ENV!==`production`){var l=a.hasGlobalWindow?window:global;l&&(o=W(l.__ECHARTS__DEFAULT__RENDERER__,o),s=W(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),c=W(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,c))}r.ssr;var u=i._zr=Ma(t,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:W(r.useDirtyRect,c),useCoarsePointer:W(r.useCoarsePointer,s),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Gy(R(u.flush,u),17),i._updateTheme(n),i._locale=Ym(r.locale||qm),i._coordSysMgr=new Zh;var d=i._api=qS(i);function f(e,t){return e.__prio-t.__prio}return An(sC,f),An(aC,f),i._scheduler=new ab(i,d,aC,sC),i._messageCenter=new jS,i._initEvents(),i.resize=R(i.resize,i),u.animation.on(`frame`,i._onframe,i),HS(u,i),US(u,i),Se(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(XS(this),this[xS]){var r=this[xS].silent;this[yS]=!0,ZS(this);try{NS(this),IS.update.call(this,null,this[xS].updateParams)}catch(e){throw this[yS]=!1,this[xS]=null,e}this._zr.flush(),this[yS]=!1,this[xS]=null,BS.call(this,r),VS.call(this,r)}else if(e.unfinished){var i=tS;do{e.unfinished=!1;var a=p.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),RS(this,t),e.performVisualTasks(t),KS(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[yS]){process.env.NODE_ENV!==`production`&&Do("`setOption` should not be called during main process.");return}if(this._disposed){tC(this.id);return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[yS]=!0,ZS(this),!this._model||t){var o=new c_(this._api),s=this._theme,c=this._model=new t_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},oC);var l={seriesTransition:a,optionChanged:!0};if(n)this[xS]={silent:r,updateParams:l},this[yS]=!1,this.getZr().wakeUp();else{try{NS(this),IS.update.call(this,null,l)}catch(e){throw this[xS]=null,this[yS]=!1,e}this._ssr||this._zr.flush(),this[xS]=null,this[yS]=!1,BS.call(this,r),VS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[yS]){process.env.NODE_ENV!==`production`&&Do("`setTheme` should not be called during main process.");return}if(this._disposed){tC(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[xS]&&(r??=this[xS].silent,i=this[xS].updateParams,this[xS]=null),this[yS]=!0,ZS(this);try{this._updateTheme(e),n.setTheme(this._theme),NS(this),IS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[yS]=!1,e}this[yS]=!1,BS.call(this,r),VS.call(this,r)}},t.prototype._updateTheme=function(e){H(e)&&(e=cC[e]),e&&(e=k(e),e&&I_(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||a.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&ko(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){tC(this.id);return}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){tC(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(dC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();F(uC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(k(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=Ma(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 Yl({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new Vl({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 LS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return LS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return LS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){tC(this.id);return}var n=this._model,r;return F(as(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):process.env.NODE_ENV!==`production`&&Eo(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Eo(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=as(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Eo(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?Ab(a,t):kb(a,o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;F(eC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Fb(i,function(e){var t=mu(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=j({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&Eo(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;F(iC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Pb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){tC(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){tC(this.id);return}this._disposed=!0,this.getDom()&&ds(this.getDom(),pC,``);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 uC[e.id]},t.prototype.resize=function(e){if(this[yS]){process.env.NODE_ENV!==`production`&&Do("`resize` should not be called during main process.");return}if(this._disposed){tC(this.id);return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[xS]&&(r??=this[xS].silent,n=!0,this[xS]=null),this[yS]=!0,ZS(this);try{n&&NS(this),IS.update.call(this,{type:`resize`,animation:j({duration:0},e&&e.animation)})}catch(e){throw this[yS]=!1,e}this[yS]=!1,BS.call(this,r),VS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){tC(this.id);return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!lC[e]){process.env.NODE_ENV!==`production`&&Eo(`Loading effects `+e+` not exists.`);return}var n=lC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){tC(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=j({},e);return t.type=rC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){tC(this.id);return}if(U(t)||(t={silent:!!t}),nC[e.type]&&this._model){if(this[yS]){this._pendingActions.push(e);return}var n=t.silent;zS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&a.browser.weChat&&this._throttledZrFlush(),BS.call(this,n),VS.call(this,n)}},t.prototype.updateLabelLayout=function(){Ib.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){tC(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&G(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){NS=function(e){Wb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),PS(e,!0),PS(e,!1),t.plan()},PS=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=Is(e.type),f=t?My.getClass(d.main,d.sub):Iy.getClass(d.sub);process.env.NODE_ENV!==`production`&&G(f,d.sub+` does not exist.`),u=new f,u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},FS=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=us(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),F(Fo(s),function(e){var t=Yo(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Md(n)){if(t instanceof Cy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&md(t,n,e._api);else{var r=hd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&pd(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?id(e):ad(e)})}}else jd(n)&&t instanceof Cy&&(vd(t,n,e._api),yd(t),YS(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)}},IS={prepareAndUpdate:function(e){NS(this),IS.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){Gb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Ib.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),RS(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),WS(this,r,i,e,n),Ib.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}),KS(t,n,r,e,{},a),Ib.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Iy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),WS(this,n,this._api,e,{}),Ib.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()}),Iy.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)}),Ib.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){IS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){tC(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=as(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}process.env.NODE_ENV!==`production`&&Eo(`No coordinate system that supports `+t+` found by the given finder.`)}LS=e,RS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},zS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=nC[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Is(s[0]);this[yS]=!0,ZS(this);var u=[e],d=!1;e.batch&&(d=!0,u=I(e.batch,function(t){return t=M(j({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=jd(e),_=Md(e);if(_&&dd(this._api),F(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=j({},t),p.type=h,f.push(p),_){var a=os(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;FS(n,c,t,u),YS(n)}else g?(FS(n,c,t,`series`),YS(n)):l&&FS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[xS]?(NS(this),IS.update.call(this,e),this[xS]=null):IS[c].call(this,e)}catch(e){throw this[yS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[yS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;G(U(y)),v=M({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)}},BS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();zS.call(this,n,e)}},VS=function(e){!e&&this.trigger(`updated`)},HS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[xS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},US=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Fb(n,kd);r&&(gd(r,e,t._api),YS(t))}).on(`mouseout`,function(e){var n=e.target,r=Fb(n,kd);r&&(_d(r,e,t._api),YS(t))}).on(`click`,function(e){var n=e.target,r=Fb(n,function(e){return mu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=mu(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;An(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)})}}WS=function(e,t,r,i,a){n(t),GS(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive=!1}),KS(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},GS=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)})},KS=function(e,t,n,r,i,a){var d=e._scheduler;i=j(i||{},{updatedSeries:t.getSeries()}),Ib.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),yd(t)}),d.unfinished=f||d.unfinished,Ib.trigger(`series:layoutlabels`,t,n,i),Ib.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),Ib.trigger(`series:afterupdate`,t,n,i)},YS=function(e){e[SS]=!0,e.getZr().wakeUp()},ZS=function(e){e[bS]=(e[bS]+1)%1e6},XS=function(e){e[SS]&&(e.getZr().storage.traverse(function(e){sp(e)||i(e)}),e[SS]=!1)};function i(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,i=0;r.traverse(function(e){e.isGroup||i++});var o=i>W(t.get(`hoverLayerThreshold`),kg.hoverLayerThreshold)&&!a.node&&!a.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=Qp(e);t.eachRendered(function(e){return em(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!sp(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(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(sp(e))return;if(e instanceof Fl&&Nd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&i(e)}})}qS=function(e){return new(function(t){r(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){id(t,n),YS(e)},n.prototype.leaveEmphasis=function(t,n){ad(t,n),YS(e)},n.prototype.enterBlur=function(t){od(t),YS(e)},n.prototype.leaveBlur=function(t){sd(t),YS(e)},n.prototype.enterSelect=function(t){cd(t),YS(e)},n.prototype.leaveSelect=function(t){ld(t),YS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[bS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Tu))(e)},JS=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[wS]=t}}F(rC,function(n,r){e._messageCenter.on(r,function(n){if(dC[e.group]&&e[wS]!==TS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];F(uC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,TS),F(i,function(e){e[wS]!==ES&&e.dispatchAction(r)}),t(i,DS)}})})}}(),t}($e),$S=QS.prototype;$S.on=OS(`on`),$S.off=OS(`off`),$S.one=function(e,t,n){var r=this;Oo(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var eC=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function tC(e){process.env.NODE_ENV!==`production`&&Eo(`Instance `+e+` has been disposed`)}var nC={},rC={},iC={},aC=[],oC=[],sC=[],cC={},lC={},uC={},dC={},fC=new Date-0;new Date-0;var pC=`_echarts_instance_`;function mC(e,t,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!==`production`&&!e)throw Error(`Initialize failed: invalid dom.`);var i=hC(e);if(i)return process.env.NODE_ENV!==`production`&&Eo(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&de(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Eo(`Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.`)}var a=new QS(e,t,n);return a.id=`ec_`+fC++,uC[a.id]=a,r&&ds(e,pC,a.id),JS(a),Ib.trigger(`afterinit`,a),a}function hC(e){return uC[fs(e,pC)]}function gC(e,t){cC[e]=t}function _C(e){N(oC,e)<0&&oC.push(e)}function vC(e,t){DC(aC,e,t,oS)}function yC(e){xC(`afterinit`,e)}function bC(e){xC(`afterupdate`,e)}function xC(e,t){Ib.on(e,t)}function SC(e,t,n){var r,i,a,o,s;V(t)&&(n=t,t=``),U(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;nC[r]||(G(CS.test(r)&&CS.test(i)),a&&G(i!==r),nC[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},iC[i]=1,a&&s&&(iC[l]=1),process.env.NODE_ENV!==`production`&&rC[l]&&Do(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),rC[l]=r)}function CC(e,t){Zh.register(e,t)}function wC(e,t){DC(sC,e,t,cS,`layout`,!0)}function TC(e,t){DC(sC,e,t,dS,`visual`,!0)}var EC=[];function DC(e,t,n,r,i,a){if((V(t)||U(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);F(e,function(e){G(e.__raw!==n)})}if(!(N(EC,n)>=0)){EC.push(n);var o=ab.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&G(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function OC(e,t){lC[e]=t}function kC(e,t,n){var r=zb(`registerMap`);r&&r(e,t,n)}var AC=Fv;TC(uS,$y),TC(pS,tb),TC(pS,nb),TC(uS,Db),TC(pS,Ob),TC(_S,$x),_C(I_),vC(rS,L_),OC(`default`,ib),SC({type:Nu,event:Nu,update:Nu},je),SC({type:Pu,event:Pu,update:Pu},je),SC({type:Fu,event:Ru,update:Fu,action:je,refineEvent:jC,publishNonRefinedEvent:!0}),SC({type:Iu,event:Ru,update:Iu,action:je,refineEvent:jC,publishNonRefinedEvent:!0}),SC({type:Lu,event:Ru,update:Lu,action:je,refineEvent:jC,publishNonRefinedEvent:!0});function jC(e,t,n,r){return{eventContent:{selected:bd(n),isFromClick:t.isFromClick||!1}}}gC(`default`,{}),gC(`dark`,Cb);function MC(e){return e==null?0:e.length||1}function NC(e){return e}var PC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||NC,this._newKeyGetter=r||NC,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=MC(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=MC(c),d=MC(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=MC(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=MC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),FC=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 IC(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){process.env.NODE_ENV!==`production`&&G(gu.get(c)==null);var l=n.coordDimIndex;LC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),zC(n.type)&&(a[0]=t),LC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}gu.each(function(e,t){var i=LC(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 FC(s,t),n}function LC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function RC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function zC(e){return e!==`ordinal`&&e!==`time`}var BC=function(){function e(e){this.otherDims={},e!=null&&j(this,e)}return e}(),VC=X(),HC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},UC=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||=KC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return W(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=X_(this.source),n=!qC(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+=HC[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 WC(e){return e instanceof UC}function GC(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=U(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function KC(e){var t=VC(e);return t.dimNameMap||=GC(e.dimensionsDefine)}function qC(e){return e>30}var JC=U,YC=I,XC=typeof Int32Array>`u`?Array:Int32Array,ZC=`e\0\0`,QC=-1,$C=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],ew=[`_approximateExtent`],tw,nw,rw,iw,aw,ow,sw,cw=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;WC(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=H(u)?new BC({name:u}):u instanceof BC?u:new BC(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]=[]),process.env.NODE_ENV!==`production`&&G(r||d.storeDimIndex>=0),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(ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Jv&&(i=e),!i){var a=this.dimensions,o=V_(e)||P(e)?new rv(e,a.length):e;i=new Jv;var s=YC(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=IC(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&&sw(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&&zo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Yo(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Yo(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)sw(this,o);tw(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){JC(e)?j(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=rw(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 nw(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 B(e)?r.getValues(YC(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?QC:r},e.prototype.each=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=YC(iw(e),this._getStoreDimIndex,this);this._store.each(i,r?R(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=YC(iw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=L(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){"use strict";V(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){"use strict";var i=n||r||this,a=YC(iw(e),this._getStoreDimIndex,this),o=ow(this);return o._store=this._store.map(a,i?R(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&F(iw(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=YC(iw(e),this._getStoreDimIndex,this);this._store.modify(o,a?R(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=ow(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=ow(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=ow(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 Pm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new PC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return nw(e,t)},function(e){return nw(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||{},JC(e)?j(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),B(i)?i=i.slice():JC(i)&&(i=j({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,JC(t)?j(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){JC(e)?j(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?j(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){hu(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:YC(this.dimensions,this._getDimInfo,this),this.hostModel),aw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ve(arguments)))})},e.internalField=function(){tw=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 XC(a.categories.length);for(var s=0;s<n.length;s++)n[s]=QC;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},rw=function(e,t,n){return Yo(e._getCategory(t,n),null)},nw=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=rw(e,e._idDimIdx,t)),n??=ZC+t,n},iw=function(e){return B(e)||(e=e==null?[]:[e]),e},ow=function(t){var n=new e(t._schema?t._schema:YC(t.dimensions,t._getDimInfo,t),t.hostModel);return aw(n,t),n},aw=function(e,t){F($C.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(ew,function(n){e[n]=k(t[n])}),e._calculationInfo=j({},t._calculationInfo)},sw=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=rw(e,i,t)),s==null&&a!=null&&(r[t]=s=rw(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 lw(e,t){V_(e)||(e=U_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=uw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qC(o),c=r===e.dimensionsDefine,l=c?KC(e):GC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new Vv(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=U(n)?n:{name:n},o=new BC,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=Fo(e).slice();if(n.length===1&&!H(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);F(n,function(e,n){var i=H(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(H(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=j({},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=Fo(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(M(o,i),t,a),o.name==null&&n){var s=n[a];!U(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&M(o.otherDims,r)})}});function g(e,t,n){gu.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=dw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Lg(e,S)===Ag.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Es(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new UC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function uw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function dw(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 fw=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function pw(e){var t=e.get(`coordinateSystem`),n=new fw(t),r=mw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var mw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,ss).models[0],a=e.getReferringComponents(`yAxis`,ss).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+ge(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+ge(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),hw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),hw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,ss).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),hw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,ss).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),hw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),hw(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),hw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,ss).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function hw(e){return e.get(`type`)===`category`}function gw(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;_w(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){H(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 _w(e){return!WC(e.schema)}function vw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function yw(e,t){return vw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function bw(e,t){var n=e.get(`coordinateSystem`),r=Zh.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=RC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function xw(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 Sw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=U_(e)):(i=r.getSource(),a=i.sourceFormat===_u);var o=pw(t),s=bw(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?z(Ng,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=lw(i,u),f=xw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=gw(t,{schema:d,store:p}),h=new cw(d,t);h.setCalculationInfo(m);var g=f!=null&&Cw(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 Cw(e){if(e.sourceFormat===`original`)return!B(Ro(ww(e.data||[])))}function ww(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Tw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Ks(Tw);var Ew=0,Dw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Ew,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,Ow);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(!H(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 Ow(e){return U(e)&&e.value!=null?e.value:e+``}var kw=L({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 Aw(e,t,n){var r;e||={};var i=$m();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(F(kw,function(t){a[t]&&(e[t]=R(a[t],a))}),r=a)}return r??Lw(e,n),{brk:r,mapper:e}}function jw(e,t){F(kw,function(n){e[n]=t[n]})}function Mw(e,t){e.freeze=je,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function Nw(e){return e.getExtentUnsafe(0,2)}function Pw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Fw(e){var t=Pw(e,3);return t[1]-t[0]}function Iw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Lw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():hs(),j(n,Rw),n}var Rw={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=Pw(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){process.env.NODE_ENV!==`production`&&G(!this._frozen),zw(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&G(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),zw(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function zw(e,t,n,r){xs(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&Do(`Invalid setExtent call - start: `+n+`, end: `+r)}function Bw(e){return Vw(e)||Uw(e)}function Vw(e){return e.type===`interval`}function Hw(e){return e.type===`time`}function Uw(e){return e.type===`log`}function Ww(e){return e.type===`ordinal`}function Gw(e){var t=fo(e),n=Ua(10,t),r=Ba(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Y(r*n,-t)}function Kw(e){return eo(e)+2}function qw(e,t){return Wa(e)/Wa(t)}function Jw(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 Ua(t,e)}function Yw(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=za(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!bs(r[0])||!bs(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Xw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Zw(e,t){return e||=t,Ba(Ra(e,1))}function Qw(e,t,n){var r=Nw(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 $w=function(e){r(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,jw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Dw({}),B(i)&&(i=new Dw({categories:I(i,function(e){return U(e)?e.value:e})})),r._ordinalMeta=i;var a=Aw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Mw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:H(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Ba(e),e},t.prototype.getTicks=function(){var e=[];return Qw(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=La(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=Nw(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(Ba(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}(Tw);Tw.registerClass($w);function eT(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=Kw(f);u<t-1;){var m=Y(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=$m();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var tT=function(e){r(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Aw(r,eh(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 k(this._cfg)},t.prototype.setConfig=function(e){var t=Nw(this);process.env.NODE_ENV!==`production`&&(G(e.interval!=null),e.intervalCount!=null&&G(e.intervalCount>=-1&&e.intervalPrecision!=null&&!nh(this)),e.niceExtent!=null&&(G(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),G(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),G(Y(e.niceExtent[0]-e.niceExtent[1],eo(e.interval))<=e.interval))),this._cfg=e=k(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Kw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Nw(this),i=t.niceExtent,a=t.intervalPrecision,o=$m(),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;process.env.NODE_ENV!==`production`&&G(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Y(i[0]-n,a):r[0]});for(var d=function(e,t){return Ba((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=La(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Y(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Y(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return process.env.NODE_ENV!==`production`&&Eo(`Exceed safe limit in IntervalScale["getTicks"].`),[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Y(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 eT(this,e,th(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=eo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),zh(Y(e.value,n,!0))},t.type=`interval`,t}(Tw);Tw.registerClass(tT);var nT=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},rT=function(e){r(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=Aw(r,eh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return xh(e.value,fh[bh(vh(this._minLevelUnit))]||fh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Sh(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Nw(this),r=$m(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return $m().addBreaksToTicks(o,i.breaks,n),o;o=pT(this._minLevelUnit,this._approxInterval,s,n,Iw(this),i);var c=ph.length-1,l=0;return F(o,function(e){e.time&&(c=Math.min(c,N(ph,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&$m().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&$m().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(N(ph,Ch(e.vmin,s)),N(ph,Ch(e.vmax,s))),n=0,r=0;r<ph.length;r++)if(!aT(ph[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:ph[Math.max(i,t)],upperTimeUnit:ph[i]}}),o},t.prototype.getMinorTicks=function(e){return eT(this,e,th(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 ce(e)?Math.round(e):+lo(e)},t.type=`time`,t}(Tw),iT=[[`second`,rh],[`minute`,ih],[`hour`,ah],[`quarter-day`,ah*6],[`half-day`,ah*12],[`day`,oh*1.2],[`half-week`,oh*3.5],[`week`,oh*7],[`month`,oh*31],[`quarter`,oh*95],[`half-year`,sh/2],[`year`,sh]];function aT(e,t,n,r){return wh(new Date(t),e,r).getTime()===wh(new Date(n),e,r).getTime()}function oT(e,t){return e/=oh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function sT(e){var t=30*oh;return e/=t,e>6?6:e>3?3:e>2?2:1}function cT(e){return e/=ah,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function lT(e,t){return e/=t?ih:rh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function uT(e){return Ra(po(e,!0),1)}function dT(e,t,n){var r=Math.max(0,N(ph,t)-1);return wh(new Date(e),ph[r],n).getTime()}function fT(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 pT(e,t,n,r,i,a){var o=mh,s=0;function c(e,t,n,i,o,c,l){for(var u=fT(o,e),d=t,f=new Date(d);d<n&&d<=r[1];){if(l.push({value:d}),s++>3e3){process.env.NODE_ENV!==`production`&&Eo(`Exceed safe limit in TimeScale["getTicks"].`);break}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(!aT(vh(e),r[0],r[1],n)){s&&(i=[{value:dT(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/oh/365)),p=Th(n),m=Mh(n);break;case`half-year`:case`quarter`:case`month`:f=sT(t),p=Eh(n),m=Nh(n);break;case`week`:case`half-week`:case`day`:f=oT(t,31),p=Dh(n),m=Ph(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=cT(t),p=Oh(n),m=Fh(n);break;case`minute`:f=lT(t,!0),p=kh(n),m=Ih(n);break;case`second`:f=lT(t,!1),p=Ah(n),m=Lh(n);break;case`millisecond`:f=uT(t),p=jh(n),m=Rh(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=vh(o[m]);if(yh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?vh(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=ie(I(u,function(e){return ie(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=Ch(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Es(S,Ds,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=Ch(r[0],n),k=Ch(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var mT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=oh,n[1]+=oh),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]-oh}e.setExtent(n[0],n[1]);var i=Zw(t.splitNumber,10),a=Iw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=iT.length,l=Math.min(nT(iT,a,0,c),c-1),u=iT[l][1],d=iT[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Tw.registerClass(rT);var hT=0,gT=1,_T=2,vT=function(e){r(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=tT.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[hT]=i[gT]=a[hT]=a[gT]=NaN,jw(r,t.mapperMethods);var s=$m(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},_T,l),r.powStub=new tT({breakParsed:l.original}),r.intervalStub=new tT({breakParsed:l.transformed}),Mw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=$m(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return I(i.getTicks(e||{}),function(e){var i=e.value,o=Jw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,th(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return eT(this,e,th(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(qw(e,this.base))},scale:function(e){return Jw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=qw(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return yT.depth=n,bT.lookup=this._lookup,Jw(n===2?e:this.intervalStub.transformOut(e,yT),this.base,bT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!xs(t,n)||t<=0||n<=0)){var r=xT,i=xT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[hT]=t,r[gT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[hT]=qw(t,o),i[gT]=qw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return xs(t[0],t[1])&&bo(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}(Tw);Tw.registerClass(vT);var yT={},bT={},xT=[],ST={value:1,category:1,time:1,log:1},CT=X();function wT(e){var t=e.get(`type`);return(t==null||!q(ST,t)&&!Tw.getClass(t))&&(t=`value`),t}function TT(e,t,n){var r=$m(),i;switch(r&&(i=IT(e,t,n)),t){case`category`:return new $w({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:hs()});case`time`:return new rT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new vT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new tT({breakOption:i});default:return new((Tw.getClass(t))||tT)({})}}function ET(e,t,n){var r=n?Pw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return xs(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function DT(e){CT(e).noOnMyZero=!0}function OT(e){return CT(e).noOnMyZero}function kT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=hh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(H(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(V(t)){if(e.type===`category`)return function(n,r){return t(AT(e,n),n.value-e.scale.getExtent()[0],null)};var r=$m();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(AT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function AT(e,t){var n=e.scale;return Ww(n)?n.getLabel(t):t.value}function jT(e){return e.get(`interval`)??`auto`}function MT(e){return e.type===`category`&&jT(e.getLabelModel())===0}function NT(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[yw(e,t)]=!0}),L(n)}function PT(e){return e===`middle`||e===`center`}function FT(e){return e.getShallow(`show`)}function IT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!$m()){process.env.NODE_ENV!==`production`&&Do('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!LT(t)){process.env.NODE_ENV!==`production`&&Do(`Axis`+(e instanceof Z?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function LT(e){return e!==`category`}function RT(e,t,n,r,i,a){var o=Uw(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=Xw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function zT(e,t){return Ww(e)?e.getRawOrdinalNumber(t.value):t.value}function BT(e,t){return Ww(e)&&!!t.get(`boundaryGap`)}var VT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),HT=ws(),UT=X(),WT=X(),GT;process.env.NODE_ENV!==`production`&&(GT=function(e){G(e&&e.model&&e.model.uid&&e.model.ecModel)});function KT(e,t){var n=e.model,r=UT(qb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function qT(e,t){return process.env.NODE_ENV!==`production`&&(G(t!=null),GT(e)),XT(KT(e,t))}function JT(e,t){process.env.NODE_ENV!==`production`&>(e);var n=[];return YT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(XT(e))}),n}function YT(e,t){var n=UT(qb(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function XT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function ZT(e,t){process.env.NODE_ENV!==`production`&>(e);var n=e.model.ecModel,r=UT(qb(n)).axSer;r&&$T(n,r.get(e.model.uid),t)}function QT(e,t,n){process.env.NODE_ENV!==`production`&&(G(t!=null),GT(e));var r=KT(e,t);r&&$T(e.model.ecModel,r.sers,n)}function $T(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function eE(e,t,n){process.env.NODE_ENV!==`production`&&G(t!=null);var r=UT(qb(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&G(e.sers.length>0),n(e.axis)})}function tE(e,t){process.env.NODE_ENV!==`production`&>(e);var n=e.model,r=UT(qb(n.ecModel)).keys;r&&F(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=KT(e,n);G(r&&r.sers.length>0)}t(n)})}function nE(e){var t=WT(Kb(e)),n=t.keyed||=K();YT(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&iE.liPosMinGap(e,t,o)})}function rE(e,t){iE[e]=t}var iE={};function aE(e,t,n){if(e){var r=t.ecModel,i=UT(qb(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){GT(e);var o=i.axSerPairCheck||=K(),s=``+a+`|&`+t.uid;G(!o.get(s)),o.set(s,1)}var c=i.axSer||=K(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&G(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=lE.get(oE(d,f,n))||lE.get(oE(d,f,null));if(p){var m=i.keyed||=K(),h=i.keys||=K(),g=p.key,_=m.get(g)||m.set(g,K()),v=_.get(a);v||(v=_.set(a,{axis:e,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(e),(h.get(a)||h.set(a,[])).push(g)),v.sers.push(t),v.serByIdx[t.seriesIndex]=t}}}function oE(e,t,n){return e+`|&`+W(t,!0)+`|&`+(n||``)}function sE(e,t){var n=oE(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(G(t.seriesType&&t.key&&!cE.get(t.key)&&!lE.get(n)),cE.set(t.key,1)),lE.set(n,t),HT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:nE})})}var cE;process.env.NODE_ENV!==`production`&&(cE=K());var lE=K(),uE=X(),dE=3,fE=function(){function e(e,t,n,r,i){var a=Ww(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Vw(e)||Uw(e)||Hw(e))&&(_s(l,mE(e,t.get(`dataMin`,!0))),vs(l,mE(e,t.get(`dataMax`,!0)))),Ss(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]=mE(e,V(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]=mE(e,V(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=hE(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,!bs(u[0])&&(u[0]=NaN),!bs(u[1])&&(u[1]=NaN);var g=s||he(u[0])||he(u[1])||a&&!o,_=Vw(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=mE(e,t.get(`startValue`,!0)),x=b!=null;!bo(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),bo(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)),pE(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),pE(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 pE(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),Cs(t))}function mE(e,t){return t==null?null:he(t)?NaN:e.parse(t)}function hE(e,t){var n;if(Ww(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(process.env.NODE_ENV!==`production`&&r===!0&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.`),r=null),n=B(r)?r:[r,r]}return[gE(n[0]),gE(n[1])]}function gE(e){return sa(typeof e==`boolean`?0:e,1)||0}function _E(e){var t=uE(e.scale);return t.extent||=hs(),t}function vE(e,t){_E(e).dimIdxInCoord=t.get(e.dim)}function yE(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&G(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&G(n.rawExtentInfo.from!==t||t===2);return}bE(n,e,i,r,t)}function bE(e,t,n,r,i){var a=_E(t),o=a.extent,s=!1;ZT(t,function(r){if(r.boxCoordinateSystem){var i=tg(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&Do(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(B(i)){var l=i[c];l!=null&&!B(l)&&gs(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;F(NT(u,n),function(e){ys(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=EE(e,t,r);SE(e,new fE(e,r,o,s,c),i),a.extent=null}function xE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&G(!n.rawExtentInfo),SE(n,new fE(n,e.model,t,!1,!1),dE)}function SE(e,t,n){e.rawExtentInfo=t,t.from=n}function CE(e,t){process.env.NODE_ENV!==`production`&&G(!wE.get(e)),wE.set(e,t)}var wE=K();function TE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(!i||!e.rawExtentInfo),e.rawExtentInfo||xE({scale:e,model:t},i||hs());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 EE(e,t,n){var r=BT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return tE(t,function(e){a=!!wE.get(e)||a}),a}function DE(e,t,n,r){if(n.ctnShp){var i;if(tE(e,function(t){var n=wE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],_s(i,a[0]),vs(i,a[1]),DT(e))}}),i){var a=t.getExtent();if(Ww(t))e.onBand||t.setExtent2(1,La(a[0],a[0]+i[0]),Ra(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=La(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Ra(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 OE(e,t){var n=Uw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Yw(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?AE(r,t):kE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Kw(d)),i[0]||(s[0]=Y(Va(s[0]/u)*u,l)),i[1]||(s[1]=Y(Ha(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),RT(e,i,o,s,a,c)}function kE(e,t){var n=Zw(t.splitNumber,5),r=Iw(e);process.env.NODE_ENV!==`production`&&G(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=po(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Kw(o),c=e.getExtent(),l=[Y(Ha(c[0]/o)*o,s),Y(Va(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function AE(e,t){var n=Zw(t.splitNumber,10),r=e.getExtent(),i=Iw(e);process.env.NODE_ENV!==`production`&&G(isFinite(i)&&i>0);var a=Ra(uo(i),1);n/i*a<=.5&&(a*=10);var o=Kw(a),s=[Y(Ha(r[0]/a)*a,o),Y(Va(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function jE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&G(r&&i),ME(t,n,r,i,null)}function ME(e,t,n,r,i){var a=TE(e,t,r,n,i),o=Vw(e)||Hw(e);NE(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&&DE(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function NE(e,t){PE[e.type](e,t)}var PE={interval:OE,log:OE,time:mT,ordinal:je},FE=[],IE={registerPreprocessor:_C,registerProcessor:vC,registerPostInit:yC,registerPostUpdate:bC,registerUpdateLifecycle:xC,registerAction:SC,registerCoordinateSystem:CC,registerLayout:wC,registerVisual:TC,registerTransform:AC,registerLoading:OC,registerMap:kC,registerImpl:Rb,PRIORITY:vS,ComponentModel:Z,ComponentView:My,SeriesModel:Cy,ChartView:Iy,registerComponentModel:function(e){Z.registerClass(e)},registerComponentView:function(e){My.registerClass(e)},registerSeriesModel:function(e){Cy.registerClass(e)},registerChartView:function(e){Iy.registerClass(e)},registerCustomSeries:function(e,t){Vb(e,t)},registerSubTypeDefaulter:function(e,t){Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Na(e,t)}};function LE(e){if(B(e)){F(e,function(e){LE(e)});return}N(FE,e)>=0||(FE.push(e),V(e)&&(e={install:e}),e.install(IE))}var RE=X(),zE=X(),BE={estimate:1,determine:2};function VE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function HE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:I(WE(n,r),function(t,n){return{formattedLabel:kT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?GE(e,t):JE(e)}function UE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:WE(i,r)}:e.type===`category`?qE(e,t):{ticks:r.getTicks(n)}}function WE(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)}),Es(r,Os,null),$a(r),I(r,function(e){return{value:e}})}function GE(e,t){var n=e.getLabelModel(),r=KE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function KE(e,t,n){var r=XE(e),i=jT(t),a=n.kind===BE.estimate;if(!a){var o=QE(r,i);if(o)return o}var s,c;V(i)?s=aD(e,i,!1):(c=i===`auto`?eD(e,n):i,s=aD(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return $E(r,i,l),!0}):$E(r,i,l),l}function qE(e,t){var n=YE(e),r=jT(t),i=QE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=aD(e,r,!0);else if(r===`auto`){var s=KE(e,e.getLabelModel(),VE(BE.determine));o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tick})}else o=r,a=aD(e,o,!0);return $E(n,r,{ticks:a,tickCategoryInterval:o})}function JE(e){var t=e.scale.getTicks(),n=kT(e);return{labels:I(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var YE=ZE(`axisTick`),XE=ZE(`axisLabel`);function ZE(e){return function(t){return zE(t)[e]||(zE(t)[e]={list:[]})}}function QE(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function $E(e,t,n){return e.list.push({key:t,value:n}),n}function eD(e,t){if(t.kind===BE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return zE(e).autoInterval=n,!0}),n}return zE(e).autoInterval??(zE(e).autoInterval=e.calculateCategoryInterval(t))}function tD(e,t){var n=t.kind,r=iD(e),i=kT(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=ra(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===BE.estimate?(t.out.noPxChangeTryDetermine.push(R(nD,null,e,S,c)),S):rD(e,S,c)??S}function nD(e,t,n){return rD(e,t,n)==null}function rD(e,t,n){var r=RE(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 iD(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 aD(e,t,n){var r=kT(e),i=e.scale,a=[],o=V(t);return Qw(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 oD=.8;function sD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Fw(r);bo(o)||(o=NaN);var s=e.getExtent(),c=za(s[1]-s[0]);return Ww(r)?cD(n,e,o,c):i?lD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&G(!1),a!=null&&(n.w=bo(n.w)?Ra(a,n.w):a),n}function cD(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 lD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(i);var a=!1,o=-1/0;F(i.key?[qT(t,i.key)]:JT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),bo(n)&&n>0&&bo(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*oD,e.w2=e.w*n/r)}var uD=[0,1],dD=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)),Ja(e,uD,fD(this),t)},e.prototype.coordToData=function(e,t){var n=Ja(e,fD(this),uD,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(UE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(zT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=pD(this,n,r);return I(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Ww(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||=VE(BE.determine),HE(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 sD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=VE(BE.determine),tD(this,e)},e}();function fD(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 pD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=sD(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 mD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],hD=1,gD=2,_D=hD|gD;function vD(e,t,n){n||=_D,t?e.dirty|=n:e.dirty&=~n}function yD(e,t){return t||=_D,e.dirty==null||!!(e.dirty&t)}function bD(e){if(e)return yD(e)&&xD(e,e.label,e),e}function xD(e,t,n){var r=t.getComputedTransform();e.transform=Zp(e.transform,r);var i=e.localRect=Xp(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=Cm.textMargin);for(var d=0;d<4;d++)SD[d]=u===Cm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Cm.textMargin&&Hp(i,SD,!1,!1);var f=e.rect=Xp(e.rect,i);return r&&f.applyTransform(r),u===Cm.minMargin&&Hp(f,SD,!1,!1),e.axisAligned=Jp(r),(e.label=e.label||{}).ignore=t.ignore,vD(e,!1),vD(e,!0,gD),e}var SD=[0,0,0,0];function CD(e,t,n){return e.transform=Zp(e.transform,n),e.localRect=Xp(e.localRect,t),e.rect=Xp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Jp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function wD(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 TD(e,t){for(var n=0;n<mD.length;n++){var r=mD[n];e[r]??(e[r]=t[r])}return bD(e)}function ED(e){var t=e.obb;return(!t||yD(e,gD))&&(e.obb=t||=new $f,t.fromBoundingRect(e.localRect,e.transform),vD(e,!1,gD)),t}function DD(e,t,n,r,i){var a=e.length,o=mp[t],s=hp[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 OD(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=bD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(kD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function kD(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:ED(e).intersect(ED(t),n,r)}function AD(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 jD(e){return!e.__cursors.get(0)}function MD(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var ND=function(e){r(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||=Mi,typeof t==`string`?a=AD(t,n,r):U(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Ae(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=MD(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=AD(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=MD(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;fe(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||lx(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):pe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=xx(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}($e),PD=1e5,FD=314159,ID=void 0,LD=1,RD=2;function zD(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function BD(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 VD(e,t,n,r){var i=new ND(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,HD(i),i}function HD(e){e.__cursorStack=[],e.__cursors=K()}function UD(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function WD(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,UD({key:r})))}function GD(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function KD(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function qD(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&JD)||s.__builtin__)&&(!(n&YD)||!s.__builtin__)&&(!(n&XD)||s!==e.hoverlayer))&&t(s,a,o,i)}}var JD=1,YD=2,XD=4,ZD=JD|XD,QD=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=j({},n||{}),this.dpr=n.devicePixelRatio||Mi,this._singleCanvas=i,this.root=e,e.style&&(Ae(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=VD(a,this,FD,0);c.initContext(),this._insertLayer(c,FD,0,!0),this._domRoot=e}else{this._width=fx(e,0,n),this._height=fx(e,1,n);var l=this._domRoot=BD(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&&!U(e)?{paintAll:!!e}:e||{},n=W(t.refresh,!0),r=W(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=RD),!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 qD(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},YD),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=ID,n!==ID&&(!t&&n===RD&&(t=this._i.hoverlayer=this._ensureLayer(PD)),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),Vx(i,s,r),c&&(s.style=l)}}i&&(Hx(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(PD)},e.prototype.paintOne=function(e,t){Bx(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)qD(this._i,function(e){e.afterBrush&&e.afterBrush()},ZD),this._paintHoverList(e);else{var i=this;Fn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(FD).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),qD(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},JD)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return qD(this._i,function(i){var a=!1;if(GD(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!jD(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)}GD(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},ZD),a.wxa&&qD(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=jD(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=RD),r!=null){var m=f.getPaintRect();m&&m.intersect(r)&&(Vx(o,f,a),f.setPrevPaintRect(m))}else Vx(o,f,a);if(s&&p.getTime()-c>15){d++;break}}}Hx(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=FD,t=0);var i=KD(this._i,e)[t];return i||(i=VD(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&A(i,this._layerConfig[e],!0),(n||r&&e!==FD)&&(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]){process.env.NODE_ENV!==`production`&&O(`ZLevel `+t+`.`+n+` has been used already`);return}if(!zD(e)){process.env.NODE_ENV!==`production`&&O(`Layer of zlevel `+t+` is not valid`);return}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=KD(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),KD(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 qD(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return qD(this._i,function(n,r){e.call(t,n,r)},JD)},e.prototype.eachOtherLayer=function(e,t){return qD(this._i,function(n,r){e.call(t,n,r)},YD)},e.prototype.getLayers=function(){var e={};return qD(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}}qD(n._i,function(e){e.__dirty=!1,GD(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},ZD);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__)){O(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=WD(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))}qD(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;(jD(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&&(GD(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===ID&&(n._hoverLayerDirty=LD))},ZD)},e.prototype.clear=function(){return qD(this._i,function(e){e.clear(),HD(e)},JD),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,qD(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?A(n[e],t,!0):n[e]=t,qD(this._i,function(e,t){A(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=fx(i,0,r),t=fx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,qD(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(FD).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[FD][0].dom;var t=new ND(`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;qD(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];Vx(n,l,a)}Hx(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function $D(e){e.registerPainter(`canvas`,QD)}function eO(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=gv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(gv(e,t,n[o]));return a.join(` `)}}function tO(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!B(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var nO=typeof Float32Array<`u`?Float32Array:void 0,rO=typeof Float64Array<`u`?Float64Array:void 0;function iO(e){return aO({ctor:nO},e).arr}function aO(e,t){process.env.NODE_ENV!==`production`&&G(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>ao&&(t=ao),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch(e){process.env.NODE_ENV!==`production`&&Do(e)}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function oO(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Yl({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=V(i)?function(e){i(e,d)}:null;op(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function sO(e,t,n){var r=e.getArea(),i=Y(r.r0,1),a=Y(r.r,1),o=new Cf({shape:{cx:Y(e.cx,1),cy:Y(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,op(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function cO(e,t,n,r,i){return e?e.type===`polar`?sO(e,t,n):e.type===`cartesian2d`?oO(e,t,n,r,i):null:null}var lO={};function uO(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||q(e,`text`)))}function dO(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},q(r,`text`)&&(o.text=r.text),q(r,`rich`)&&(o.rich=r.rich),q(r,`textFill`)&&(o.fill=r.textFill),q(r,`textStroke`)&&(o.stroke=r.textStroke),q(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),q(r,`fontSize`)&&(o.fontSize=r.fontSize),q(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),q(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=q(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),q(r,`textPosition`)&&(i.position=r.textPosition),q(r,`textOffset`)&&(i.offset=r.textOffset),q(r,`textRotation`)&&(i.rotation=r.textRotation),q(r,`textDistance`)&&(i.distance=r.textDistance)}return fO(o,e),F(o.rich,function(e){fO(e,e)}),{textConfig:i,textContent:a}}function fO(e,t){t&&(t.font=t.textFont||t.font,q(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),q(t,`textAlign`)&&(e.align=t.textAlign),q(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),q(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),q(t,`textWidth`)&&(e.width=t.textWidth),q(t,`textHeight`)&&(e.height=t.textHeight),q(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),q(t,`textPadding`)&&(e.padding=t.textPadding),q(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),q(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),q(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),q(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),q(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),q(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),q(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function pO(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||Q.color.neutral99;mO(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,F(t.rich,function(e){mO(e,e)}),r}function mO(e,t){t&&(q(t,`fill`)&&(e.textFill=t.fill),q(t,`stroke`)&&(e.textStroke=t.fill),q(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),q(t,`font`)&&(e.font=t.font),q(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),q(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),q(t,`fontSize`)&&(e.fontSize=t.fontSize),q(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),q(t,`align`)&&(e.textAlign=t.align),q(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),q(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),q(t,`width`)&&(e.textWidth=t.width),q(t,`height`)&&(e.textHeight=t.height),q(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),q(t,`padding`)&&(e.textPadding=t.padding),q(t,`borderColor`)&&(e.textBorderColor=t.borderColor),q(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),q(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),q(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),q(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),q(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),q(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),q(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),q(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),q(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),q(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function hO(e,t){if(process.env.NODE_ENV!==`production`){var n=e+`^_^`+t;lO[n]||(console.warn(`[ECharts] DEPRECATED: "`+e+`" has been deprecated. `+t),lO[n]=!0)}}var gO=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(dD),_O=null;function vO(){return _O}var yO=`expandAxisBreak`,bO=Math.PI,xO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],CO=X(),wO=X(),TO=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function EO(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=XO(e.axisName)&&PT(e.nameLocation);F(r,function(e){var t=bD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Lt(DO,n.transform):jt(DO),t.transform&&Nt(DO,DO,t.transform),J.copy(OO,t.localRect),OO.applyTransform(DO),s?s.union(OO):J.copy(s=new J(0,0,0,0),OO))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var DO=At(),OO=new J(0,0,0,0),kO=function(e,t,n,r,i,a){if(PT(e.nameLocation)){var o=a.stOccupiedRect;o&&AO(CD({},o,a.transGroup.transform),r,i)}else jO(a.labelInfoList,a.dirVec,r,i)};function AO(e,t,n){var r=new Rt;kD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&wD(t,r)}function jO(e,t,n,r){for(var i=Rt.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||AO(s,n,r)}}var MO=function(){function e(e,t,n,r){this.group=new Ea,this._axisModel=e,this._api=t,this._local={},this._shared=r||new TO(kO),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;G(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=W(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=W(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:W(e.nameDirection,1),tickDirection:W(e.tickDirection,1),labelDirection:W(e.labelDirection,1),labelOffset:W(e.labelOffset,0),silent:W(e.silent,!0),axisName:r,nameLocation:_e(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:XO(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(G(a.position!=null),G(a.rotation!=null)),this._cfg=a;var o=new Ea({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Rt(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},F(NO,function(r){e[r]&&PO[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=oo(t-e),i,a;return so(r)?(a=n>0?`top`:`bottom`,i=`center`):so(r-bO)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<bO?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),NO=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],PO={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;G(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(Je(d,d,u),Je(f,f,u));var m=j({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&nh(r.axis.scale))vO().buildAxisBreakLine(r,i,a,h);else{var g=new Pf(j({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Ep(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);H(_)&&(_=[_,_]),(H(v)||ce(v))&&(v=[v,v]);var y=ax(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];F([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=rx(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;G(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}UO(t,i,s)&&FO(e,t,n,r,i,a,o,BE.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}UO(t,i,s)&&FO(e,t,n,r,i,a,o,BE.determine);var l=VO(e,i,a,r);RO(e,t.labelLayoutList,l),HO(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;G(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(XO(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new Rt(0,0),v=new Rt(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=At();v.transform(Ft(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*bO/180);var x,S;PT(d)?x=MO.innerTextLayout(e.rotation,b??e.rotation,f):(x=IO(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=ge(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new eu({x:_.x,y:_.y,rotation:x.rotation,silent:MO.isLabelSilent(r),style:dm(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(Gp({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=MO.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,mu(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=bD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:PT(d)?xO[D]:SO[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&G(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function FO(e,t,n,r,i,a,o,s){GO(t)||WO(e,t,i,s,r,o);var c=t.labelLayoutList;qO(e,r,c,a),QO(r,e.rotation,c);var l=e.optionHideOverlap;LO(r,c,l),l&&OD(ie(c,function(e){return e&&!e.label.ignore})),EO(e,n,r,c)}function IO(e,t,n,r){var i=oo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return so(i-bO/2)?(o=c?`bottom`:`top`,a=`center`):so(i-bO*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<bO*1.5&&i>bO/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function LO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(MT(r))return;function a(e,a,o){var s=bD(t[a]),c=bD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=CO(s.label).labelInfo.tick;if(Hw(l)&&u.notNice||Ww(l)&&u.offInterval){zO(s.label);return}}if(e===!1||s.suggestIgnore){zO(s.label);return}if(c.suggestIgnore){zO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=TD({marginForce:f},s),c=TD({marginForce:f},c)}kD(s,c,null,{touchThreshold:d})&&zO(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function RO(e,t,n){e.showMinorTicks||F(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=wO(r),a=CO(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){zO(r);return}}})}function zO(e){e&&(e.ignore=!0)}function BO(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Je(o,o,t),Je(s,s,t));var u=new Pf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ep(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=wO(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function VO(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=BO(i.getTicksCoords(),n.transform,c,M(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function HO(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=M(c.getLineStyle(),M(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=BO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function UO(e,t,n){if(GO(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&G(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),KO(e,null,null,null))}return!0}function WO(e,t,n,r,i,a){var o=i.axis,s=ge(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ea;n.add(c);var l=VE(r);if(!s||o.scale.isBlank()){KO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ge(e.raw.labelRotate,u.get(`rotate`))||0)*bO/180,p=MO.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;F(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=zT(o.scale,n);if(m&&m[f]){var y=m[f];U(y)&&y.textStyle&&(l=new Pm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=W(l.getShallow(`alignMinLabel`,!0),x),C=W(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=W(l.getShallow(`verticalAlignMinLabel`,!0),w),E=W(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new eu({x:0,y:0,rotation:0,silent:MO.isLabelSilent(i),z2:D,style:dm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:V(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=CO(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Gp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=MO.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),mu(O).eventData=A,j&&ZO(i,a,O,j)}h.push(O),c.add(O)}),KO(t,I(h,function(e){return{label:e,priority:CO(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function GO(e){return!!e.labelLayoutList}function KO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function qO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);F(n,function(n,a){var o=bD(n);if(o){var s=o.label,c=CO(s);o.suggestIgnore=s.ignore,s.ignore=!1,Ji(JO,YO);var l=t.axis;JO.x=l.dataToCoord(zT(l.scale,c.labelInfo.tick)),JO.y=e.labelOffset+e.labelDirection*i,JO.rotation=c.layoutRotation,r.add(JO),JO.updateTransform(),r.remove(JO),JO.decomposeTransform(),Ji(s,JO),s.markRedraw(),vD(o,!0),bD(o)}})}var JO=new Yl,YO=new Yl;function XO(e){return!!e}function ZO(e,t,n,r){n.on(`click`,function(n){var i={type:yO,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function QO(e,t,n){var r=$m();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&CO(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&F(i,function(r){vO().adjustBreakLabelPair(e.axis.inverse,t,[bD(n[r[0]]),bD(n[r[1]])])})}}function $O(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),ge(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function ek(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function tk(e){var t={xAxisModel:null,yAxisModel:null};return F(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,ss).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+_e(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function nk(e,t,n,r,i,a){for(var o=$O(e,n),s=!1,c=!1,l=0;l<t.length;l++)Bw(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new MO(n,r,o,i)}function rk(e,t,n){var r=$O(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();F(L(r),function(e){e!==`position`&&e!==`labelOffset`&&G(r[e]===i[e])})}e.updateCfg(r)}function ik(){rE(`liPosMinGap`,ak)}function ak(e,t,n){var r=K(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Ev(u);function f(n){$T(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}aO(ok,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||Dv(d,a))&&(l&&(a=c.transformIn(a,null)),ok.arr[m++]=a)}});var h=ok.typed?ok.arr.subarray(0,m):(ok.arr.length=m,ok.arr);ok.typed?h.sort():$a(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=bo(g)?g:m>0?-2:-1,n.serUids=r}var ok=aO({ctor:rO},50);function sk(e){return function(t,n){var r=sD(t,{fromStat:{key:e}});if(bo(r.w2))return[-r.w2/2,r.w2/2]}}function ck(e,t){return e+`|&`+t}function lk(e){return ik(),{liPosMinGap:!Ww(e.scale)}}function uk(e,t,n,r){sE(e,{key:t,seriesType:n,coordSysType:r,getMetrics:lk})}function dk(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&G(bo(t)),t}var fk={left:0,right:0,top:0,bottom:0},pk=[`25%`,`25%`],mk=`cartesian2d`,hk=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=vg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&_g(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&_g(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:fk,outerBoundsContain:`all`,outerBoundsClampWidth:pk[0],outerBoundsClampHeight:pk[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(Z),gk=ws(),_k=`__ec_stack_`;function vk(e){return e.get(`stack`)||_k+e.seriesIndex}function yk(e){if(Ww(e.axis.scale)){for(var t=sD(e.axis),n=[],r=0;r<e.count;r++)n.push(M({stackId:_k+r},e));for(var i=Sk({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[_k+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function bk(e,t){var n=xk(e,t);return n.columnMap=Sk(n),n}function xk(e,t){var n=ck(t,mk),r=[],i=sD(e,{fromStat:{key:n},min:1});return QT(e,n,function(e){r.push({barWidth:Ya(e.get(`barWidth`),i.w),barMaxWidth:Ya(e.get(`barMaxWidth`),i.w),barMinWidth:Ya(e.get(`barMinWidth`)||(Tk(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:vk(e)})}),{bandWidthResult:i,seriesInfo:r}}function Sk(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};F(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;q(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=La(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Ra(35-o.length*4,15)+`%`;var c=Ya(i,t),l=Ya(a,1),u=(n-c)/(r+(r-1)*l);u=Ra(u,0),F(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=La(o,i)),a&&(o=Ra(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=La(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Ra(u,0);var d=0,f;F(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return F(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function Ck(e){return{seriesType:e,overallReset:function(t){var n=ck(e,mk);eE(t,n,function(t){process.env.NODE_ENV!==`production`&&G(t instanceof gO);var r=bk(t,e);QT(t,n,function(e){var t=r.columnMap[vk(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function wk(e){return{seriesType:e,plan:Ny(),reset:function(e){if(ek(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=vw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(dk(i))),p=Tk(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&iO(r*3),c=p&&s&&iO(r*3),l=p&&iO(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,za(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,za(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Tk(e){return e.pipelineContext&&e.pipelineContext.large}function Ek(e){return sk(ck(e,mk))}function Dk(e){gk(e,function(){function t(t){var n=ck(t,mk);uk(e,n,t,mk),CE(n,Ek(t))}t(`bar`),t(`pictorialBar`)})}var Ok=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,ss).models[0]},t.type=`cartesian2dAxis`,t}(Z);ne(Ok,VT);var kk={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},Ak=A({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},kk),jk=A({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},kk),Mk={category:Ak,value:jk,time:A({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},jk),log:M({logBase:10},jk)};function Nk(e,t,n,i){F(ST,function(a,o){var s=A(A({},Mk[o],!0),i,!0),c=function(e){r(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+o,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=gg(this),r=n?vg(e):{};A(e,t.getTheme().get(o+`Axis`)),A(e,this.getDefaultOption()),e.type=Pk(e),n&&_g(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Dw.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=vO();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+o,n.defaultOption=s,n}(n);e.registerComponentModel(c)}),e.registerSubTypeDefaulter(t+`Axis`,Pk)}function Pk(e){return e.type||(e.data?`category`:`value`)}var Fk=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(),ie(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}(),Ik=[`x`,`y`];function Lk(e){return(e.type===`interval`||e.type===`time`)&&!nh(e)}var Rk=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=mk,t.dimensions=Ik,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!Lk(e)||!Lk(t))){var n=Pw(e,null),r=Pw(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Lt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Je(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Je(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Fk);function zk(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&G(n&&r&&(n instanceof tT||n instanceof vT)&&(t instanceof tT||t instanceof vT));var i=TE(n,r,r.ecModel,e,null),a=Uw(n),o=Uw(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1;process.env.NODE_ENV!==`production`&&(G(!nh(t)&&!nh(n)),G(d>0),G(u.length===l.length),G(l[0].value<=l[d].value),G(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(G(u[1].value===l[1].value),G(u[d-1].value===l[d-1].value)));var f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=za(l[0].value-l[1].value),g=za(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}process.env.NODE_ENV!==`production`&&G(m>=1);var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Yw(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*Ra(c,2):Gw(E),D=Kw(E);process.env.NODE_ENV!==`production`&&n>=t&&Eo("incorrect impl in `scaleCalcAlign`.")}function j(){w=Y(k-E*f,D)}function ee(){T=Y(O+E*p,D)}function M(){k=f?Y(w+E*f,D):w}function N(){O=p?Y(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var te=e.getExtent(),ne=za(te[1]-te[0]);D=no([T,w],ne,.5/m),M(),N(),bo(D)&&(E=Y(E,D))}else{var P=C[1]-C[0];E=a?Ra(uo(P),1):po(P/m,2),D=Kw(E),b[0]?(w=C[0],A(function(){if(M(),O=Y(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Y(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Y(Ha(C[0]/E)*E,D),O=Y(Va(C[1]/E)*E,D);var e=Ba((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Va(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Y(k-E*n[0],D),O=Y(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}RT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var Bk=[[3,1],[0,2]],Vk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ik,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;F(this._axesList,function(e){yE(e,1);var t=e.scale;Ww(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=L(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):jE(i)}F(n,function(e){Kk(e,e.__alignTo)?jE(e):zk(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};F(n.x,function(e){Uk(n,`y`,e,i)}),F(n.y,function(e){Uk(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=mg(e,t),i=this._rect=fg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Jk(a,i),!n){var c=Qk(i,o,a,s,t),l=void 0;if(s)Xk?(Xk(this._axesList,i),Jk(a,i)):(process.env.NODE_ENV!==`production`&&To("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=Zk(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=eA(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=Zk(d,f,p,i,a,c,r))}$k(i,a,BE.determine,null,l,r),F(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,ss).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,ss).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,N(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,F(o.x,function(t,n){F(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Rk(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),Gk(o.x),Gk(o.y);function c(t){return function(n,r){if(Hk(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=wT(n),u=new gO(t,TT(n,l,!0),[0,0],l,c);u.onBand=BT(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return F(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);N(t,i)<0&&t.push(i),N(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),F(o._axesList,function(t){vE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;rg({targetModel:e,coordSysType:mk,coordSysProvider:r});function r(){var r=tk(e),i=r.xAxisModel,a=r.yAxisModel;t=i.axis,n=a.axis;var o=i.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`Grid "`+_e(i.get(`gridIndex`),i.get(`gridId`),0)+`" not found`);if(i.getCoordSysModel()!==a.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return o.coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(aE(t,e,mk),aE(n,e,mk))},this),r},e.dimensions=Ik,e.dimIdxMap=GC(Ik),e}();function Hk(e,t){return e.getCoordSysModel()===t}function Uk(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)Wk(s,i[c])&&(a=i[c]);else for(var l in i)if(q(i,l)&&Wk(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function Wk(e,t){if(!t)return!1;var n=t.scale,r=ET(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&OT(t)&&(i=!1),i}function Gk(e){for(var t=L(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Bw(a.scale)&&IT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&F(r,function(e){e.__alignTo=n})}function Kk(e,t){return nh(e.scale)||nh(t.scale)||t.scale.getTicks().length<2}function qk(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Jk(e,t){F(e.x,function(e){return Yk(e,t.x,t.width)}),F(e.y,function(e){return Yk(e,t.y,t.height)})}function Yk(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),qk(e,t)}var Xk;function Zk(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&G(t===`all`||t===`axisLabel`),$k(r,i,BE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ae(s,function(e){return e>0})==null;return Hp(r,s,!0,!0,n),Jk(i,r),c;function l(e){F(i[mp[e]],function(t){if(FT(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(zT(t.scale,CO(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=PT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[mp[n]]-t[mp[n]],a=t[hp[n]]+t[mp[n]]-(e[hp[n]]+e[mp[n]]);i=d(i,1-r),a=d(a,r);var o=Bk[n][0],c=Bk[n][1];s[o]=Ra(s[o],i),s[c]=Ra(s[c],a)}function d(e,t){return e>0&&!he(t)&&t>1e-4&&(e/=t),e}}function Qk(e,t,n,r,i){var a=new TO(tA);return F(n,function(n){return F(n,function(n){if(FT(n.model)){var o=!r;n.axisBuilder=nk(e,t,n.model,i,a,o)}})}),a}function $k(e,t,n,r,i,a){var o=n===BE.determine;F(t,function(t){return F(t,function(t){FT(t.model)&&(rk(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[mp[1-t]]=e[hp[t]]<=a.refContainer[hp[t]]*.5?0:1-t==1?2:1}F(t,function(e,t){return F(e,function(e){FT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function eA(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=fg(e.get(`outerBounds`,!0)||fk,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Do(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:N([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Do(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[Za(W(e.get(`outerBoundsClampWidth`,!0),pk[0]),t.width),Za(W(e.get(`outerBoundsClampHeight`,!0),pk[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var tA=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;kO(e,t,n,r,i,a),PT(e.nameLocation)||F(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&jO(e.labelInfoList,e.dirVec,r,i)})};function nA(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rA(n,e,t),n.seriesInvolved&&aA(n,e),n}function rA(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];F(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=fA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(F(n.getAxes(),z(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&F(f.baseAxes,z(p,!d||`cross`,u)),d&&F(f.otherAxes,z(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!dA(d))){s??=d.get(`triggerTooltip`),d=r?iA(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=fA(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:dA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=oA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function iA(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};F(s,function(e){c[e]=k(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&M(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Pm(c,n,r))}function aA(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||F(e.coordSysAxesInfo[fA(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function oA(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(sA(a[r+`AxisId`],n.id)||sA(a[r+`AxisIndex`],n.componentIndex)||sA(a[r+`AxisName`],n.name))return i}}function sA(e,t){return e===`all`||B(e)&&N(e,t)>=0||e===t}function cA(e){var t=lA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=dA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function lA(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[fA(e)]}function uA(e){var t=lA(e);return t&&t.axisPointerModel}function dA(e){return!!e.get([`handle`,`show`])}function fA(e){return e.type+`||`+e.id}var pA={},mA=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&cA(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=uA(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(process.env.NODE_ENV!==`production`&&pA[e])throw Error(`axisPointer `+e+` exists`);pA[e]=t},t.getAxisPointerClass=function(e){return e&&pA[e]},t.type=`axis`,t}(My),hA=X();function gA(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=hA(e).splitAreaColors,f=K(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=B(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Yl({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:M({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}hA(e).splitAreaColors=f}}}function _A(e){hA(e).splitAreaColors=null}var vA=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],yA=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Ea,this.group.add(this._axisGroup),FT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),F(vA,function(e){t.get([e,`show`])&&bA[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Pp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){_A(this)},t.type=`cartesianAxis`,t}(mA),bA={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=B(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Pf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:M({stroke:c[x]},_),silent:!0});Ep(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Pf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Ep(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){gA(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=vO(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},xA=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(yA),SA=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=xA.type,t}return t.type=`yAxis`,t}(yA),CA=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Yl({shape:e.coordinateSystem.getRect(),style:M({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(My),wA={offset:0};function TA(e){e.registerComponentView(CA),e.registerComponentModel(hk),e.registerCoordinateSystem(`cartesian2d`,Vk),Nk(e,`x`,Ok,wA),Nk(e,`y`,Ok,wA),e.registerComponentView(xA),e.registerComponentView(SA),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var EA=X();function DA(e,t){return!!EA(e)[t]}SC({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},je);var OA={axisPointer:1,tooltip:1,brush:1};function kA(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||OA.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Qp(r),o=Qp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var AA=function(e){r(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=R(n._mousedownHandler,n),i=R(n._mousemoveHandler,n),a=R(n._mouseupHandler,n),o=R(n._mousewheelHandler,n),s=R(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Qp(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:W(c.z2,-1/0)},p=j({},n.triggerInfo);this._opt=M(j({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(PA(t,`mousedown`,r,f),PA(t,`mousemove`,i,f),PA(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(PA(t,`mousewheel`,o,f),PA(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,FA(t,`mousedown`,r),FA(t,`mousemove`,i),FA(t,`mouseup`,a),FA(t,`mousewheel`,o),FA(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(kA(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Tt(e)||jA(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||DA(t,`globalPan`)||jA(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!zA(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&wt(e.event),e.__ecRoamConsumed=!0,RA(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!jA(e)){var t=this._zr;if(!Tt(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!jA(e)){var t=zA(`zoomOnMouseWheel`,e,this._opt),n=zA(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(DA(this._zr,`globalPan`)||jA(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(wt(r.event),r.__ecRoamConsumed=!0,RA(e,t,n,r,i))},t}($e);function jA(e){return e.__ecRoamConsumed}var MA=X();function NA(e){var t=MA(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function PA(e,t,n,r){for(var i=NA(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),IA(e,t)}function FA(e,t,n){for(var r=NA(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||LA(e,t);return}}function IA(e,t){var n=NA(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function LA(e,t){var n=NA(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function RA(e,t,n,r,i){i.isAvailableBehavior=R(zA,null,n,r),e.trigger(t,i)}function zA(e,t,n){var r=n[e];return!e||r&&(!H(r)||t.event[r+`Key`])}function BA(e){return e}var VA=`view`;(function(e){r(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=VA,i.dimensions=[`x`,`y`];var a=BA(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=Ki(),o[1]=Ki(),o[2]=Ki(),a.mtRaw=At(),a.mtRawInv=At(),a.mtOverall=At(),a.mtOverallInv=At(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return WA(null,this)},t.prototype.getViewRect=function(){return GA(null,this)},t.prototype.getRoamTransform=function(){return Gi(BA(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?BA(this).mtRaw:BA(this).mtOverall;return n||=[],r?Je(n,e,r):Pe(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=BA(this).mtOverallInv;return r?Je(n,e,r):Pe(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=KA(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=KA(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=BA(this);return en(HA,t.dataRect),nn(HA,HA,t.mtOverall),rn(HA,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Wi);var HA=Qt();function UA(e){return BA(e).zoom}function WA(e,t){return en(e||Qt(),BA(t).dataRect)}function GA(e,t){return en(e||Qt(),BA(t).viewRect)}Qt();function KA(e){var t=e.seriesModel;return t?t.coordinateSystem:null}Ki(),Ki();function qA(e,t,n,r,i,a){e||=0;var o=io(n[1],-n[0]);if(i!=null&&(i=YA(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(io(t[1],-t[0]));s=YA(s,[0,o]),i=a=YA(s,[i,a]),r=0}t[0]=YA(t[0],n),t[1]=YA(t[1],n);var c=JA(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=io(u[0],l):u[1]=io(u[1],-l),t[r]=YA(t[r],u);var d=JA(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=io(t[r],c.sign*i)),d=JA(t,r),a!=null&&d.span>a&&(t[1-r]=io(t[r],d.sign*a)),t}function JA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function YA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var XA={color:`fill`,borderColor:`stroke`},ZA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},QA=X(),$A=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return Sw(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=QA(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(Cy);function ej(e,t){return t||=[0,0],I([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?sD(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function tj(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R(ej,e)}}}function nj(e,t){return t||=[0,0],I([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function rj(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:UA(t)},api:{coord:function(t){return e.dataToPoint(t)},size:R(nj,e)}}}function ij(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?sD(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function aj(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:R(ij,e)}}}function oj(e,t){return t||=[0,0],I([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?sD(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function sj(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:R(oj,e)}}}function cj(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function lj(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var uj={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},dj=L(uj),fj=re(qi,function(e,t){return e[t]=1,e},{}),pj=qi.join(`, `),mj=[``,`style`,`shape`,`extra`],hj=X();function gj(e,t,n,r,i){var a=e+`Animation`,o=rp(e,r,i)||{},s=hj(t).userDuring;return o.duration>0&&(o.during=s?R(Dj,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),j(o,n[a]),o}function _j(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=hj(e),l=t.style;c.userDuring=t.during;var u={},d={};if(jj(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];kj(`shape`,h,f[m])}else kj(`shape`,t,d),kj(`extra`,t,d);if(!a&&s&&(Aj(e,t,u),Oj(`shape`,e,t,u),Oj(`extra`,e,t,u),Mj(e,t,l,u)),d.style=l,xj(e,d,o),Cj(e,t),s){if(a){var g={};F(mj,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),j(e?g[e]:g,n.enterFrom))});var _=gj(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else Sj(e,t,i||0,n,u)}vj(e,t),l?e.dirty():e.markRedraw()}function vj(e,t){for(var n=hj(e).leaveToProps,r=0;r<mj.length;r++){var i=mj[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=hj(e).leaveToProps={},i&&(n[i]=n[i]||{}),j(i?n[i]:n,a.leaveTo))}}function yj(e,t,n,r){if(e){var i=e.parent,a=hj(e).leaveToProps;if(a){var o=gj(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function bj(e){return e===`all`}function xj(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function Sj(e,t,n,r,i){if(i){var a=gj(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function Cj(e,t){q(t,`silent`)&&(e.silent=t.silent),q(t,`ignore`)&&(e.ignore=t.ignore),e instanceof Oc&&q(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Fl&&q(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var wj={},Tj={setTransform:function(e,t){return process.env.NODE_ENV!==`production`&&G(q(fj,e),`Only `+pj+" available in `setTransform`."),wj.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!==`production`&&G(q(fj,e),`Only `+pj+" available in `getTransform`."),wj.el[e]},setShape:function(e,t){process.env.NODE_ENV!==`production`&&Ej(e);var n=wj.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!==`production`&&Ej(e);var t=wj.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!==`production`&&Ej(e);var n=wj.el,r=n.style;return r&&(process.env.NODE_ENV!==`production`&&he(t)&&Eo(`style.`+e+` must not be assigned with NaN.`),r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!==`production`&&Ej(e);var t=wj.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!==`production`&&Ej(e);var n=wj.el.extra||(wj.el.extra={});return n[e]=t,this},getExtra:function(e){process.env.NODE_ENV!==`production`&&Ej(e);var t=wj.el.extra;if(t)return t[e]}};function Ej(e){if(process.env.NODE_ENV!==`production`&&(e===`transition`||e===`enterFrom`||e===`leaveTo`))throw Error(`key must not be "`+e+`"`)}function Dj(){var e=this,t=e.el;if(t){var n=hj(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}wj.el=t,r(Tj)}}function Oj(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c){if(!o&&(o=r[e]={}),bj(c))j(o,a);else for(var l=Fo(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}}else if(bj(s)||N(s,e)>=0){!o&&(o=r[e]={});for(var p=L(a),u=0;u<p.length;u++){var d=p[u],f=a[d];Nj(i[d],f)&&(o[d]=f)}}}}}function kj(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=L(r),o=0;o<a.length;o++){var s=a[o];i[s]=Yr(r[s])}}function Aj(e,t,n){for(var r=t.transition,i=bj(r)?qi:Fo(r||[]),a=0;a<i.length;a++){var o=i[a];if(o!==`style`&&o!==`shape`&&o!==`extra`){var s=e[o];process.env.NODE_ENV!==`production`&&Pj(o,`el.transition`),n[o]=s}}}function jj(e,t,n){for(var r=0;r<dj.length;r++){var i=dj[r],a=uj[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<qi.length;r++){var s=qi[r];t[s]!=null&&(n[s]=t[s])}}function Mj(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!bj(o)){var c=Fo(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(bj(s)||bj(o)||N(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=L(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function Nj(e,t){return P(e)?e!==t:e!=null&&isFinite(e)}var Pj;process.env.NODE_ENV!==`production`&&(Pj=function(e,t){q(fj,e)||Eo("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+L(fj).join("`, `")+"` are permitted.")});var Fj=X(),Ij=[`percent`,`easing`,`shape`,`style`,`extra`];function Lj(e){e.stopAnimation(`keyframe`),e.attr(Fj(e))}function Rj(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(B(t)){F(t,function(t){Rj(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=rp(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=Fj(e);F(mj,function(n){if(!(n&&!e[n])){var a,s=!1;r.sort(function(e,t){return e.percent-t.percent}),F(r,function(r){var c=e.animators,l=n?r[n]:r;if(process.env.NODE_ENV!==`production`&&r.percent>=1&&(s=!0),l){var u=L(l);if(n||(u=ie(u,function(e){return N(Ij,e)<0})),u.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var d=0;d<c.length;d++)c[d]!==a&&c[d].targetName===a.targetName&&c[d].stopTracks(u);n&&(o[n]=o[n]||{});var f=n?o[n]:o;F(u,function(t){f[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,l,u,r.easing)}}}),a&&(process.env.NODE_ENV!==`production`&&(s||Eo(`End frame with percent: 1 is missing in the keyframeAnimation.`,!0)),a.delay(t.delay||0).duration(i).start(t.easing))}})}}}var zj=`emphasis`,Bj=`normal`,Vj=`blur`,Hj=`select`,Uj=[Bj,zj,Vj,Hj],Wj={normal:[`itemStyle`],emphasis:[zj,`itemStyle`],blur:[Vj,`itemStyle`],select:[Hj,`itemStyle`]},Gj={normal:[`label`],emphasis:[zj,`label`],blur:[Vj,`label`],select:[Hj,`label`]},Kj=[`x`,`y`],qj=`e\0\0`,Jj={normal:{},emphasis:{},blur:{},select:{}},Yj={cartesian2d:tj,geo:rj,single:aj,polar:sj,calendar:cj,matrix:lj};function Xj(e){return e instanceof Fl}function Zj(e){return e instanceof Oc}function Qj(e,t){t.copyTransform(e),Zj(t)&&Zj(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Xj(t)&&Xj(e)&&t.setShape(e.shape))}var $j=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=aM(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){sM(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yj(n,QA(n).option,e)}).update(function(t,c){sM(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?cO(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=aM(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=ks(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=sM(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){qp(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(Iy);function eM(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=xM(r);n=xp(a,null,i,r.layout||`center`),QA(n).customPathData=a}else if(t===`image`)n=new Vl({}),QA(n).customImagePath=e.style.image;else if(t===`text`)n=new eu({});else if(t===`group`)n=new Ea;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;process.env.NODE_ENV!==`production`&&(o=`shape.paths must be specified in compoundPath`),jo(o)}n=new Vf({shape:{paths:I(r.paths,function(e){if(e.type===`path`)return xp(e.shape.pathData,e,null);var n=bp(e.type);if(!n){var r=``;process.env.NODE_ENV!==`production`&&(r=`graphic type "`+t+`" can not be found.`),jo(r)}return new n})}})}else{var s=bp(t);if(!s){var o=``;process.env.NODE_ENV!==`production`&&(o=`graphic type "`+t+`" can not be found.`),jo(o)}n=new s}return QA(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function tM(e,t,n,r,i,a,o){Lj(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=Kj);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;q(l,`textFill`)&&(l.fill=l.textFill),q(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=Xj(t)?c.decal:null;e&&d&&(d.dirty=!0,u=qx(d,e)),c.__decalPattern=u}if(Zj(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}_j(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),Rj(t,r.keyframeAnimation,a)}function nM(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),td(a)}}function rM(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<Uj.length;s++)iM(r,t,Uj[s])}}function iM(e,t,n){var r=n===Bj,i=r?t:pM(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function aM(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=Hb(i);a?i=a:process.env.NODE_ENV!==`production`&&console.warn(`Custom series renderItem '`+i+`' not found.
|
|
21
|
+
Call 'echarts.registerCustomSeries' to register it.`)}var o=e.coordinateSystem,s={};o&&(process.env.NODE_ENV!==`production`&&(G(i,`series.render is required.`),G(o.prepareCustoms||Yj[o.type],`This coordSys does not support custom series.`)),s=o.prepareCustoms?o.prepareCustoms(o):Yj[o.type](o));for(var c=M({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:oM(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<Uj.length;g++){var _=Uj[g];m[_]=e.getModel(Wj[_]),h[_]=e.getModel(Gj[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(Wj[n])):v(e).getModel(Wj[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(Gj[n])):v(e).getModel(Gj[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(M({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){process.env.NODE_ENV!==`production`&&hO(`api.style`,`Please write literal style directly instead.`),r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,Bj).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:H(a)?a:Q.color.neutral99},l=b(r,Bj),d=dm(l,null,c,!1,!0);d.text=l.getShallow(`show`)?W(e.getFormattedLabel(r,Bj),eO(t,r)):null;var f=fm(l,c,!1);return E(n,s),s=pO(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){process.env.NODE_ENV!==`production`&&hO(`api.styleEmphasis`,`Please write literal style directly instead.`),r??=u;var i=y(r,zj).getItemStyle(),a=b(r,zj),o=dm(a,null,null,!0,!0);o.text=a.getShallow(`show`)?_e(e.getFormattedLabel(r,zj),e.getFormattedLabel(r,Bj),eO(t,r)):null;var s=fm(a,null,!0);return E(n,i),i=pO(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)q(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,q(XA,e)){var r=t.getItemVisual(n,`style`);return r?r[XA[e]]:null}if(q(ZA,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return yk(M({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return ym(e,n)}}function oM(e){var t={};return F(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function sM(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=cM(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Cd(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(e,t,n,r,i,a){process.env.NODE_ENV!==`production`&&G(r,`should not have an null/undefined element setting`);var o=-1,s=t;t&&lM(t,r,i)&&(o=N(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=eM(r),s&&Qj(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),r.tooltipDisabled&&(l.tooltipDisabled=!0),Jj.normal.cfg=Jj.normal.conOpt=Jj.emphasis.cfg=Jj.emphasis.conOpt=Jj.blur.cfg=Jj.blur.conOpt=Jj.select.cfg=Jj.select.conOpt=null,Jj.isLegacy=!1,dM(l,n,r,i,c,Jj),uM(l,n,r,i,c),tM(e,l,n,r,Jj,i,c),q(r,`info`)&&(QA(l).info=r.info);for(var u=0;u<Uj.length;u++){var d=Uj[u];if(d!==Bj){var f=pM(r,d),p=mM(r,f,d);nM(d,l,f,p,Jj)}}return rM(l,r,i),r.type===`group`&&hM(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function lM(e,t,n){var r=QA(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&SM(a)&&xM(a)!==r.customPathData||i===`image`&&q(o,`image`)&&o.image!==r.customImagePath}function uM(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&lM(o,a,r)&&(o=null),o||(o=eM(a),process.env.NODE_ENV!==`production`&&G(Xj(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+`.`),e.setClipPath(o)),tM(null,o,t,a,null,r,i)}}function dM(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){fM(n,null,a),fM(n,zj,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=eM(o),e.setTextContent(u)),tM(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<Uj.length;f++){var p=Uj[f];if(p!==Bj){var m=a[p].conOpt;nM(p,u,m,mM(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function fM(e,t,n){var r=t?pM(e,t):e,i=t?mM(e,r,zj):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?pM(s,t):s:null;if(i&&(n.isLegacy||uO(i,a,!!o,!!c))){n.isLegacy=!0;var l=dO(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`),process.env.NODE_ENV!==`production`&&G(u.type===`text`,`textContent.type must be "text"`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function pM(e,t){return t?e?e[t]:null:e}function mM(e,t,n){var r=t&&t.style;return r==null&&n===zj&&e&&(r=e.styleEmphasis),r}function hM(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){_M({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,cM(e,f,n,d,i,t)):(process.env.NODE_ENV!==`production`&&G(f,`renderItem should not return a group containing elements as null/undefined/{} if they do not exist before.`),f.ignore=!0)}for(var p=t.childCount()-1;p>=u;p--)gM(t,t.childAt(p),i)}}function gM(e,t,n){t&&yj(t,QA(e).option,n)}function _M(e){new PC(e.oldChildren,e.newChildren,vM,vM,e).add(yM).update(yM).remove(bM).execute()}function vM(e,t){return(e&&e.name)??qj+t}function yM(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];cM(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function bM(e){var t=this.context,n=t.oldChildren[e];n&&yj(n,QA(n).option,t.seriesModel)}function xM(e){return e&&(e.pathData||e.d)}function SM(e){return e&&(q(e,`pathData`)||q(e,`d`))}function CM(e){e.registerChartView($j),e.registerSeriesModel($A)}var wM=X(),TM=k,EM=R,DM=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Ea,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=z(OM,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}MM(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&sD(r).w>o)return!0;if(a){var s=lA(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=wM(e).pointerEl=new fp[i.type](TM(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=wM(e).labelEl=new eu(TM(t.label));e.add(i),AM(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=wM(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=wM(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),AM(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Lp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){wt(e.event)},onmousedown:EM(this._onHandleDragMove,this,0,0),drift:EM(this._onHandleDragMove,this),ondragend:EM(this._onHandleDragEnd,this)}),n.add(r)),MM(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ky(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){OM(this._axisPointerModel,!t&&this._moveAnimation,this._handle,jM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(jM(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(jM(r)),wM(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),qy(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function OM(e,t,n,r){kM(wM(n).lastProp,r)||(wM(n).lastProp=r,t?ap(n,r,e):(n.stopAnimation(),n.attr(r)))}function kM(e,t){if(U(e)&&U(t)){var n=!0;return F(t,function(t,r){n&&=kM(e[r],t)}),!!n}return e===t}function AM(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function jM(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function MM(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function NM(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function PM(e,t,n,r,i){var a=IM(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Vh(o.get(`padding`)||0),c=o.getFont(),l=ra(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),FM(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:dm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function FM(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function IM(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:AT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};F(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function LM(e,t,n){var r=At();return Ft(r,r,n.rotation),Pt(r,r,n.position),Ap([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function RM(e,t,n,r,i,a){var o=MO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),PM(t,r,i,a,{position:LM(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zM(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function BM(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function VM(e,t,n){return sD(e,{fromStat:{sers:I(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function HM(e,t,n){return[Ra(La(t[0],t[1]),e-n/2),La(e+n/2,Ra(t[0],t[1]))]}var UM=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=WM(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=NM(r),f=GM[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}RM(t,e,$O(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=$O(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=LM(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=WM(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=La(o[1],l[c]),l[c]=Ra(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(DM);function WM(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var GM={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:zM([t,r[0]],[t,r[1]],KM(e))}},shadow:function(e,t,n,r,i,a){var o=VM(e,i,a),s=r[1]-r[0],c=HM(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:BM([l,r[0]],[u-l,s],KM(e))}}};function KM(e){return e.dim===`x`?0:1}var qM=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(Z),JM=X(),YM=F;function XM(e,t,n){if(!a.node){var r=t.getZr();JM(r).records||(JM(r).records={}),ZM(r,t);var i=JM(r).records[e]||(JM(r).records[e]={});i.handler=n}}function ZM(e,t){if(JM(e).initialized)return;JM(e).initialized=!0,n(`click`,z(eN,`click`)),n(`mousemove`,z(eN,`mousemove`)),n(`mousewheel`,z(eN,`mousewheel`)),n(`globalout`,$M);function n(n,r){e.on(n,function(n){var i=tN(t);YM(JM(e).records,function(e){e&&r(e,n,i.dispatchAction)}),QM(i.pendings,t)})}}function QM(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function $M(e,t,n){e.handler(`leave`,null,n)}function eN(e,t,n,r){t.handler(e,n,r)}function tN(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function nN(e,t){if(!a.node){var n=t.getZr();(JM(n).records||{})[e]&&(JM(n).records[e]=null)}}var rN=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;XM(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){nN(`axisPointer`,t)},t.prototype.dispose=function(e,t){nN(`axisPointer`,t)},t.type=`axisPointer`,t}(My);function iN(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=rs(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(I(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var aN=X();function oN(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){gN(i)&&(i=iN({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=gN(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||gN(i),f={},p={},m={list:[],map:{}},h={showPointer:z(lN,p),showTooltip:z(uN,m)};F(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);F(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=mN(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&sN(e,o,h,!1,f)}})});var g={};return F(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&F(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,hN(t),hN(e)))),g[e.key]=a}})}),F(g,function(e,t){sN(u[t],e,h,!0,f)}),dN(p,u,f),fN(m,i,e,o),pN(u,o,n),f}}function sN(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=cN(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function cN(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return F(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(bo(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),F(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function lN(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function uN(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=fA(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function dN(e,t,n){var r=n.axesInfo=[];F(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function fN(e,t,n,r){if(gN(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function pN(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=aN(r)[i]||{},o=aN(r)[i]={};F(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&F(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}F(a,function(e,t){!o[t]&&c.push(l(e))}),F(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function mN(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function hN(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function gN(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function _N(e){mA.registerAxisPointerClass(`CartesianAxisPointer`,UM),e.registerComponentModel(qM),e.registerComponentView(rN),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=nA(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},oN)}function vN(e){LE(TA),LE(_N)}var yN=[`x`,`y`,`radius`,`angle`,`single`],bN=X(),xN=[`cartesian2d`,`polar`,`singleAxis`];function SN(e){return N(xN,e.get(`coordinateSystem`))>=0}function CN(e){return process.env.NODE_ENV!==`production`&&G(e),e+`Axis`}function wN(e,t){var n=K(),r=[],i=K();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function TN(e){var t=e.ecModel,n={infoList:[],infoMap:K()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(CN(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function EN(e){var t=bN(Kb(e));return t.axisProxyMap||=K()}function DN(e){if(e)return process.env.NODE_ENV!==`production`&&G(e.ecModel),EN(e.ecModel).get(e.uid)}function ON(e,t){process.env.NODE_ENV!==`production`&&G(e.ecModel),EN(e.ecModel).set(e.uid,t)}function kN(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?DN(n.model):null}var AN=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),jN=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=MN(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=MN(e);A(this.option,e,!0),A(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;F([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=K();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return F(yN,function(n){var r=this.getReferringComponents(CN(n),cs);if(r.specified){t=!0;var i=new AN;F(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new AN;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,ss).models[0];o&&F(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,ss).models[0]&&a.add(e.componentIndex)})}}}r&&F(yN,function(t){if(r){var i=n.findComponents({mainType:CN(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new AN;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);F([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(CN(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){F(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return DN(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&G(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(CN(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;F([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;F([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return DN(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!==`production`&&G(this._orient),this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(Z);function MN(e){var t={};return F([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var NN=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(My),PN=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return k(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(SN(t)){var n=CN(this._dimName),r=t.getReferringComponents(n,ss).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return k(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];F([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=Ja(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=Ja(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),$a(s),$a(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;qA(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=Ja(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);Cs(t)}var f=Ww(r)||Hw(r),p=n.getExtent(),m=za(p[1]-p[0]),h=f?0:no(s,m,.5);F([[0,Ha],[1,Va]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=Y(s[n],h),s[n]=La(t[1],Ra(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),Cs(s);var g=[Ja(s[0],t,a,!0),Ja(s[1],t,a,!0)];return Cs(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;yE(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=M({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;F(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=I(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else F(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});F(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;F([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=Ja(i,[0,100],n,!0)-n[0]):i=Ja(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),FN={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(CN(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!DN(i)){var o=new PN(t,r,a,e);n.push(o),ON(i,o)}});var r=K();return F(n,function(e){F(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=kN(e,i);a?n.push([i,a]):i.reset(e,null)}),F(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function IN(e){e.registerAction(`dataZoom`,function(e,t){F(wN(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var LN=ws();function RN(e){LN(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,FN),IN(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function zN(e,t){var n=Vh(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Yl({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var BN=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(Z);function VN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function HN(e){if(a.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var UN=HN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),WN=HN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function GN(e,t){if(!e)return t;t=Bh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function KN(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var qN=GN(WN,`transition`),JN=GN(UN,`transform`),YN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(a.transform3dSupported?`will-change:transform;`:``);function XN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function ZN(e,t,n){if(!H(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=qh(t);var a=XN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=JN+`:`,l;N([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function QN(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,o=``;return n&&(i=` `+e/2+`s `+r,o=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,o+=(o.length?`,`:``)+(a.transformSupported?``+JN+i:`,left`+i+`,top`+i)),qN+`:`+o}function $N(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!a.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var o=a.transform3dSupported,s=`translate`+(o?`3d`:``)+`(`+r+`,`+i+(o?`,0`:``)+`)`;return n?`top:0;left:0;`+JN+`:`+s+`;`:[[`top`,0],[`left`,0],[UN,s]]}function eP(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),F([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function tP(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=_y(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(QN(a,n,r)),o&&i.push(`background-color:`+o),F([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Bh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(eP(d)),f!=null&&i.push(`padding:`+Vh(f).join(`px `)+`px`),i.join(`;`)+`;`}function nP(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&at(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var rP=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,a.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(H(i)?document.querySelector(i):de(i)?i:V(i)&&i(e.getDom()));nP(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!s._enterable){var t=r.handler;bt(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=KN(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=YN+tP(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+$N(i[0],i[1],!0)+(`border-color:`+qh(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!VN(n)&&(o=ZN(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s<e.length;s++)de(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(nP(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;F($N(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,a.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;ot(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),iP=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),sP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;U(e)&&jo(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new eu({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:_y(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),F([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),F([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=oP(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;sP(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=aP(i.borderWidth||0),o=oP(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function aP(e){return Math.max(0,e)}function oP(e){var t=aP(e.shadowBlur||0),n=aP(e.shadowOffsetX||0),r=aP(e.shadowOffsetY||0);return{left:aP(t-n),right:aP(t+n),top:aP(t-r),bottom:aP(t+r)}}function sP(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var cP=new Yl({shape:{x:-1,y:-1,width:2,height:2}}),lP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(a.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=ps(n.get(`renderMode`));this._tooltipContent=r===`richText`?new iP(t):new rP(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(a.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Ky(this,`_updatePosition`,50,`fixRate`):qy(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);XM(`itemTooltip`,this._api,R(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||a.node||!n.getDom())){var i=dP(r,n);this._ticket=``;var o=r.dataByCoordSys,s=gP(r,t,n);if(s){var c=s.el.getBoundingRect().clone();c.applyTransform(s.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:s.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var l=cP;l.x=r.x,l.y=r.y,l.update(),mu(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=iN(r,t),d=u.point[0],f=u.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:u.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(dP(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&uP([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(mu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Fb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(mu(e).dataIndex==null?mu(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=R(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=uP([t.tooltipOption],r),o=this._renderMode,s=[],c=ry(`section`,{blocks:[],noHeader:!0}),l=[],u=new vy;F(e,function(e){F(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=IM(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=ry(`section`,{header:f,noHeader:!be(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),F(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=AT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,qh(m.color),o);var h=yv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=uP([a],r).get(`valueFormatter`);p.blocks.push(_?j({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=ly(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
22
|
+
|
|
23
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=mu(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=uP([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new vy;h.marker=g.makeTooltipMarker(`item`,qh(h.color),d);var _=yv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?ly(y?j({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=mu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=k(a),a.content=pt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=uP(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new vy;this._showOrMove(d,function(){var n=k(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=xh(m.axisValue,d,p)),d=Gh(d,n,!0)}else if(V(u)){var g=R(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Ya(t[0],s),r=Ya(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=fg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=mP(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=fP(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=hP(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=hP(d)?l[1]/2:d===`bottom`?l[1]:0),VN(e)){var h=pP(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&F(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&F(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&F(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&F(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){a.node||!t.getDom()||(qy(this,`_updatePosition`),this._tooltipContent.dispose(),nN(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(My);function uP(e,t,n){var r=t.ecModel,i;n?(i=new Pm(n,r,r),i=new Pm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Pm&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new Pm(o,i,r)))}return i}function dP(e,t){return e.dispatchAction||R(t.dispatchAction,t)}function fP(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function pP(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function mP(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function hP(e){return e===`center`||e===`middle`}function gP(e,t,n){var r=os(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=ls(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=mu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function _P(e){LE(_N),e.registerComponentModel(BN),e.registerComponentView(lP),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},je),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},je)}var vP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(Z),yP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new eu({style:dm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new eu({style:dm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Jh(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Jh(p,`_`+e.get(`subtarget`))}),mu(c).eventData=mu(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=fg(g,mg(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Yl({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(My);function bP(e){e.registerComponentModel(vP),e.registerComponentView(yP)}var xP=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},SP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&F(t,function(e,r){H(e)&&(e={type:e}),t[r]=A(e,xP(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Qo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=K(),a=I(r,function(e){return(H(e)||ce(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Pm(e,this,this.ecModel))},this);this._data=ie(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;F(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;F(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;F(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&N(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Z),CP=z,wP=F,TP=Ea,EP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new TP),this.group.add(this._selectorGroup=new TP),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=mg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=fg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=fg(M({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=zN(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=K(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),wP(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
|
24
|
+
`)){var p=new TP;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,CP(kP,f,null,r,d)).on(`mouseover`,CP(AP,m.name,null,r,d)).on(`mouseout`,CP(jP,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=mu(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Dr(h.fill);_&&_[3]===0&&(_[3]=.2,h=j(j({},h),{fill:Fr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,CP(kP,null,f,r,d)).on(`mouseover`,CP(AP,null,f,r,d)).on(`mouseout`,CP(jP,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=mu(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};mu(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();wP(e,function(e){var r=e.type,i=new eu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),lm(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),xd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=DP(c,r,o,s,d,m,u),y=new TP,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(OP({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t??``):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new eu({style:dm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Yl({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Gp({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),xd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();cg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){cg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(My);function DP(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),wP(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:qx(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function OP(e){var t=e.icon||`roundRect`,n=rx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function kP(e,t,n,r){jP(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),AP(e,t,n,r)}function AP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function jP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function MP(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),NP(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){F(i,function(t,n){e[t?`select`:`unSelect`](n)}),NP(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function NP(e,t){var n=t||{};return F(e.getData(),function(t){var r=t.get(`name`);if(r!==`
|
|
25
|
+
`&&r!==``){var i=e.isSelected(r);n[r]=q(n,r)?n[r]&&i:i}}),n}function PP(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,z(MP,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,z(MP,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,z(MP,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,z(MP,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,z(MP,`unSelect`))}var FP=Ms(IP);function IP(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function LP(e){e.registerComponentModel(SP),e.registerComponentView(EP),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,FP),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),PP(e)}var RP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=vg(t);e.prototype.init.call(this,t,n,r),zP(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),zP(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=zm(SP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(SP);function zP(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,_g(t,n,{type:`box`,ignoreSize:!!i})}var BP=Ea,VP=[`width`,`height`],HP=[`x`,`y`],UP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new BP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BP)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=B(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new eu({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Lp(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:R(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=VP[s],l=HP[s],u=VP[1-s],d=HP[1-s];i&&cg(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=k(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;cg(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),cg(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Yl({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&ap(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;F([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=VP[i],o=HP[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(EP);function WP(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function GP(e){LE(LP),e.registerComponentModel(RP),e.registerComponentView(UP),WP(e)}function KP(e){LE(LP),LE(GP)}var qP=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=zm(jN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(jN),JP=X();function YP(e,t,n){JP(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function XP(e,t){for(var n=JP(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||ZP(n,o))}}}function ZP(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function QP(e,t){var n={model:t,containsPoint:z(eF,t),dispatchAction:z($P,e),dataZoomInfoMap:null,controller:null},r=n.controller=new AA(e.getZr());return F([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function $P(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function eF(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function tF(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,c;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:!t.get(`zoomLock`,!0)||`move`;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=W(t.get(`cursorGrab`,!0),s),c=W(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function nF(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=JP(t),r=n.coordSysRecordMap||=K();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){F(TN(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,QP(t,n.model));(a.dataZoomInfoMap||=K()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){ZP(r,e);return}var s=tF(a,e,t);n.enable(s.controlType,s.opt),Ky(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var rF=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),YP(r,t,{pan:R(iF.pan,this),zoom:R(iF.zoom,this),scrollMove:R(iF.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){XP(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(NN),iF={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=oF[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(qA(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:aF(function(e,t,n,r,i,a){var o=oF[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:aF(function(e,t,n,r,i,a){return oF[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function aF(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(qA(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var oF={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function sF(e){RN(e),e.registerComponentModel(qP),e.registerComponentView(rF),nF(e)}var cF=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=zm(jN.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:Q.color.neutral00,borderColor:Q.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(jN),lF=Yl,uF=1,dF=30,fF=7,pF=`horizontal`,mF=`vertical`,hF=5,gF=[`line`,`bar`,`candlestick`,`scatter`],_F={easing:`cubicOut`,duration:100,delay:0},vF=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=R(this._onBrush,this),this._onBrushEnd=R(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Ky(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){qy(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ea;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?fF:0,r=mg(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===pF?{right:r.width-i.x-i.width,top:r.height-dF-a-n,width:i.width,height:dF}:{right:a,top:i.y,width:dF,height:i.height},s=vg(e.option);F([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=fg(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===mF&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===pF&&!i?{scaleY:o?1:-1,scaleX:1}:n===pF&&i?{scaleY:o?1:-1,scaleX:-1}:n===mF&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new lF({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new lF({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:R(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:Ja(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Ea,r=new kf({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new jf({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){F(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&N(gF,e.get(`type`))<0)){var o=r.getComponent(CN(i),a).axis,s=bF(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new lF({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new lF({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:uF,fill:Q.color.transparent}})),F([0,1],function(t){var a=o.get(`handleIcon`);!ex[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a,process.env.NODE_ENV!==`production`&&Oo(`handleIcon now needs 'path://' prefix when using a path string`));var s=rx(a,-1,0,2,2,null,!0);s.attr({cursor:xF(this._orient),draggable:!0,drift:R(this._onDragMove,this,t),ondragend:R(this._onDragEnd,this),onmouseover:R(this._onOverDataInfoTriggerArea,this,!0),onmouseout:R(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Ya(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),xd(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new eu({silent:!0,invisible:!f,style:dm(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Ya(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Yl({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=rx(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Yl({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:R(this._onActualMoveZoneDrift,this),ondragstart:R(this._onActualMoveZoneDragStart,this),ondragend:R(this._onActualMoveZoneDragEnd,this),onmouseover:R(this._onOverDataInfoTriggerArea,this,!0),onmouseout:R(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ja(e[0],[0,100],t,!0),Ja(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];qA(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:Ja(a.minSpan,o,i,!0),a.maxSpan==null?null:Ja(a.maxSpan,o,i,!0));var s=this._range,c=this._range=$a([Ja(r[0],i,o,!0),Ja(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=$a(n.slice()),i=this._size;F([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new Yl,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var c=this._range,l;if(e){var u={start:c[0],end:c[1]},d=kN(t,o);if(d){var f=d.calculateDataWindow(u).percentInverted;u={start:f[0],end:f[1]}}l=o.calculateDataWindow(u)}else l=o.getWindow();a=[yF(t,0,l,s),yF(t,1,l,s)]}}var p=$a(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=kp(n.handles[e].parent,this.group),o=jp(e===0?`right`:`left`,t),s=this._handleWidth/2+hF,c=Ap([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===pF?`middle`:o,align:i===pF?o:`center`,text:a[e]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,t,n){this.api.getZr().setCursorStyle(`grabbing`),this._onDragMove(`all`,e,t,n)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr(`cursor`,`grabbing`),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr(`cursor`,`grab`),this._onDragEnd()},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,wt(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Ap([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Rt(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();qA(0,a,r,0,o.minSpan==null?null:Ja(o.minSpan,i,r,!0),o.maxSpan==null?null:Ja(o.maxSpan,i,r,!0)),this._range=$a([Ja(a[0],r,i,!0),Ja(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(wt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new lF({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?_F:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=TN(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(NN);function yF(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:Ww(r)||Hw(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?Y(o,a,!0):o+``;return V(i)?i(o,s):H(i)?i.replace(`{value}`,s):s}function bF(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function xF(e){return e===`vertical`?`ns-resize`:`ew-resize`}function SF(e){e.registerComponentModel(cF),e.registerComponentView(vF),RN(e)}function CF(e){LE(sF),LE(SF)}var wF=[`getWidth`,`getHeight`,`getDom`,`getOption`,`resize`,`dispatchAction`,`convertToPixel`,`convertFromPixel`,`containPixel`,`getDataURL`,`getConnectedDataURL`,`appendData`,`clear`,`isDisposed`,`dispose`];function TF(e){function t(t){return function(...n){if(!e.value)throw Error(`ECharts is not initialized yet.`);return Reflect.apply(e.value[t],e.value,n)}}return wF.reduce((e,n)=>(e[n]=t(n),e),{})}function EF(e,n,r){(0,t.watch)([r,e,n],([e,t,n],r,i)=>{let a=null;if(e&&t&&n){let{offsetWidth:r,offsetHeight:i}=e,{throttle:o=100,onResize:s}=n===!0?{}:n,c=!1,l=()=>{t.resize(),s?.()},u=o?Gy(l,o):l;a=new ResizeObserver(()=>{!c&&(c=!0,e.offsetWidth===r&&e.offsetHeight===i)||e.offsetWidth!==0&&e.offsetHeight!==0&&u()}),a.observe(e)}i(()=>{a&&=(a.disconnect(),null)})})}var DF={autoresize:[Boolean,Object]},OF=Symbol();function kF(e,n,r){let i=(0,t.inject)(OF,{}),a=(0,t.computed)(()=>({...(0,t.toValue)(i),...r?.value}));(0,t.watchEffect)(()=>{let t=e.value;t&&(n.value?t.showLoading(a.value):t.hideLoading())})}var AF={loading:Boolean,loadingOptions:Object};function jF(){return typeof window<`u`&&typeof document<`u`}var MF=/^on[^a-z]/,NF=e=>MF.test(e);function PF(e){let t={};for(let n in e)NF(n)||(t[n]=e[n]);return t}function FF(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&t<2**32-1&&String(t)===e}function IF(e,t){let n=new Set(e),r=new Set(t);if(n.size!==r.size)return!1;for(let e of n)if(!r.has(e))return!1;return!0}function LF(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var RF=`[vue-echarts]`;function zF(e){(0,t.warn)(`${RF} ${e}`)}var BF={tooltip:[`tooltip`,`formatter`],dataView:[`toolbox`,`feature`,`dataView`,`optionToContent`]},VF=Object.keys(BF);function HF(e){return VF.some(t=>e===t||e.startsWith(t+`-`))}function UF(e,n){let r=jF()?document.createElement(`div`):void 0,i=(0,t.shallowReactive)({}),a=(0,t.shallowReactive)({}),o=(0,t.shallowReactive)({}),s=(0,t.shallowRef)(!1),c=()=>s.value&&r?(0,t.h)(t.Teleport,{to:r},Object.entries(e).filter(([e])=>HF(e)).map(([e,n])=>{let r=e;return(0,t.h)(`div`,{ref:e=>{e instanceof HTMLElement&&(i[r]=e)},style:{display:`contents`}},a[r]?n?.(o[r]):void 0)})):void 0;function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function u(t){let n={...t},r=(e,t)=>{let n=e[t];if(Array.isArray(n))return e[t]=[...n],e[t];if(l(n))return e[t]={...n},e[t];if(n===void 0)return e[t]=FF(t)?[]:{},e[t]};return Object.keys(e).filter(e=>{let t=HF(e);return t||zF(`Invalid slot name: ${e}`),t}).forEach(e=>{let[t,...s]=e.split(`-`),c=BF[t];if(!c)return;let l=[...s,...c];if(l.length===0)return;let u=n;for(let e=0;e<l.length-1;e++)if(u=r(u,l[e]),!u)return;u[l[l.length-1]]=t=>(a[e]=!0,o[e]=t,i[e])}),n}let d=[];return(0,t.onUpdated)(()=>{let t=Object.keys(e).filter(HF);IF(t,d)||(d.forEach(e=>{t.includes(e)||(delete o[e],delete a[e],delete i[e])}),d=t,n())}),(0,t.onMounted)(()=>{s.value=!0}),(0,t.onUnmounted)(()=>{r?.remove()}),{teleportedSlots:c,patchOption:u}}var WF=null,GF=`x-vue-echarts`;function KF(){if(WF!=null)return WF;let e=globalThis.customElements;if(!jF()||!e?.get)return WF=!1,WF;if(!e.get(GF))try{class t extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&=(this.__dispose(),null)}}e.define(GF,t)}catch{return WF=!1,WF}return WF=!0,WF}function qF(e){if(!LF(e))return;let t=e.id;if(typeof t==`string`)return t;if(typeof t==`number`&&Number.isFinite(t))return String(t)}function JF(e){let t=e,n=Array.isArray(t.options)?t.options.length:0,r=Array.isArray(t.media)?t.media.length:0,i=Object.create(null),a=[],o=[];for(let e of Object.keys(t)){if(e===`options`||e===`media`)continue;let n=t[e];if(Array.isArray(n)){let t=n,r=new Set,a=0;for(let e=0;e<t.length;e++){let n=qF(t[e]);n===void 0?a++:r.add(n)}i[e]={idsSorted:r.size>0?Array.from(r).sort():[],noIdCount:a}}else LF(n)?a.push(e):n!==void 0&&o.push(e)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:n,mediaLength:r,arrays:i,objects:a,scalars:o}}function YF(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();let n=new Set(t),r=[];for(let t=0;t<e.length;t++){let i=e[t];n.has(i)||r.push(i)}return r}function XF(e,t){if(e.length===0)return!1;if(t.length===0)return!0;let n=new Set(t);for(let t=0;t<e.length;t++)if(!n.has(e[t]))return!0;return!1}function ZF(e,t){let n=JF(t);if(!e)return{option:t,signature:n,plan:{notMerge:!1}};if(n.optionsLength<e.optionsLength||n.mediaLength<e.mediaLength||YF(e.scalars,n.scalars).length>0)return{option:t,signature:n,plan:{notMerge:!0}};let r=new Set,i=new Map,a=YF(e.objects,n.objects);for(let e=0;e<a.length;e++)i.set(a[e],null);for(let t of Object.keys(e.arrays)){let a=e.arrays[t];if(!a)continue;let o=n.arrays[t];if(!o){(a.idsSorted.length>0||a.noIdCount>0)&&(i.set(t,[]),r.add(t));continue}if(XF(a.idsSorted,o.idsSorted)){r.add(t);continue}o.noIdCount<a.noIdCount&&r.add(t)}let o=t,s=n;if(i.size>0){let e={...t};i.forEach((t,n)=>{e[n]=t}),o=e,s=JF(o)}let c=r.size>0?Array.from(r).sort():void 0;return{option:o,signature:s,plan:c?{notMerge:!1,replaceMerge:c}:{notMerge:!1}}}var QF=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
|
26
|
+
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
|
27
|
+
`;if(typeof document<`u`){if(Array.isArray(document.adoptedStyleSheets)&&`replaceSync`in CSSStyleSheet.prototype){let e=new CSSStyleSheet;e.replaceSync(QF),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{let e=document.createElement(`style`);e.textContent=QF,document.head.appendChild(e)}}var $F=KF(),eI=Symbol(),tI=Symbol(),nI=Symbol(),rI=(0,t.defineComponent)({name:`Echarts`,inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...DF,...AF},emits:{},slots:Object,setup(e,{attrs:n,expose:r,slots:i}){let a=(0,t.shallowRef)(),o=(0,t.shallowRef)(),s=(0,t.inject)(eI,null),c=(0,t.inject)(tI,null),l=(0,t.inject)(nI,null),{autoresize:u,manualUpdate:d,loading:f,loadingOptions:p}=(0,t.toRefs)(e),m=(0,t.computed)(()=>e.theme||(0,t.toValue)(s)),h=(0,t.computed)(()=>e.initOptions||(0,t.toValue)(c)||void 0),g=(0,t.computed)(()=>e.updateOptions||(0,t.toValue)(l)),_=(0,t.computed)(()=>PF(n)),v={},y=new Map,{teleportedSlots:b,patchOption:x}=UF(i,()=>{!d.value&&e.option&&o.value&&w(o.value,e.option)}),S;function C(e){let t={},n=(e?.replaceMerge??[]).filter(e=>e!=null);return n.length>0&&(t.replaceMerge=[...new Set(n)]),e?.notMerge!==void 0&&(t.notMerge=e.notMerge),t}function w(e,t,n,r=!1){let i=x(t);if(r){e.setOption(i,n??{}),S=void 0;return}if(g.value){let t=n??g.value;e.setOption(i,t),S=void 0;return}let a=ZF(S,i),o=C(a.plan);e.setOption(a.option,o),S=a.signature}Object.keys(n).filter(e=>NF(e)).forEach(e=>{if(e.indexOf(`Native:`)===2){let t=`on${e.charAt(9).toUpperCase()}${e.slice(10)}`;v[t]=n[e];return}let t=e.charAt(2).toLowerCase()+e.slice(3),r;t.indexOf(`zr:`)===0&&(r=!0,t=t.substring(3));let i;t.substring(t.length-4)===`Once`&&(i=!0,t=t.substring(0,t.length-4)),y.set({event:t,zr:r,once:i},n[e])});function T(){if(!a.value)return;let n=o.value=mC(a.value,m.value,h.value);e.group&&(n.group=e.group),y.forEach((e,{zr:t,once:r,event:i})=>{if(!e)return;let a=t?n.getZr():n;if(r){let t=e,n=!1;e=(...r)=>{n||(n=!0,t(...r),a.off(i,e))}}a.on(i,e)});function r(){n&&!n.isDisposed()&&n.resize()}function i(){let{option:t}=e;if(d.value){t&&w(n,t,void 0,!0);return}t&&w(n,t)}u.value?(0,t.nextTick)(()=>{r(),i()}):i()}let E=(t,n,r)=>{if(!e.manualUpdate){zF("`setOption` is only available when `manual-update` is `true`.");return}let i=typeof n==`boolean`?{notMerge:n,lazyUpdate:r}:n;o.value&&w(o.value,t,i??void 0,!0)};function D(){o.value&&=(o.value.dispose(),void 0),S=void 0}(0,t.watch)(()=>e.option,e=>{if(!e){S=void 0;return}if(d.value){zF("`option` prop changes are ignored when `manual-update` is `true`.");return}o.value&&w(o.value,e)},{deep:!0}),(0,t.watch)([d,h],()=>{D(),T()},{deep:!0}),(0,t.watch)(m,e=>{o.value?.setTheme(e||{})},{deep:!0}),(0,t.watchEffect)(()=>{e.group&&o.value&&(o.value.group=e.group)});let O=TF(o);return kF(o,f,p),EF(o,u,a),(0,t.onMounted)(()=>{T()}),(0,t.onBeforeUnmount)(()=>{$F&&a.value?a.value.__dispose=D:D()}),r({setOption:E,root:a,chart:o,...O}),(()=>(0,t.h)(GF,{..._.value,...v,ref:a,class:[`echarts`,_.value.class]},b()))}});Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return Pg}}),Object.defineProperty(exports,"$n",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"$t",{enumerable:!0,get:function(){return ul}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return VT}}),Object.defineProperty(exports,"An",{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,"At",{enumerable:!0,get:function(){return dp}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return ix}}),Object.defineProperty(exports,"Bn",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"Bt",{enumerable:!0,get:function(){return ju}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return xD}}),Object.defineProperty(exports,"Cn",{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,"Ct",{enumerable:!0,get:function(){return fp}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return LE}}),Object.defineProperty(exports,"Dn",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,"Dt",{enumerable:!0,get:function(){return op}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return sD}}),Object.defineProperty(exports,"En",{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,"Et",{enumerable:!0,get:function(){return qp}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return vw}}),Object.defineProperty(exports,"Fn",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"Ft",{enumerable:!0,get:function(){return kf}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return jb}}),Object.defineProperty(exports,"Gn",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"Gt",{enumerable:!0,get:function(){return Dd}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return Mb}}),Object.defineProperty(exports,"Hn",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"Ht",{enumerable:!0,get:function(){return ad}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return lw}}),Object.defineProperty(exports,"In",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"It",{enumerable:!0,get:function(){return Tf}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return Ny}}),Object.defineProperty(exports,"Jn",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"Jt",{enumerable:!0,get:function(){return hu}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return Gy}}),Object.defineProperty(exports,"Kn",{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,"Kt",{enumerable:!0,get:function(){return Cd}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return cw}}),Object.defineProperty(exports,"Ln",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"Lt",{enumerable:!0,get:function(){return Cf}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return tT}}),Object.defineProperty(exports,"Mn",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"Mt",{enumerable:!0,get:function(){return Uf}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return Zw}}),Object.defineProperty(exports,"Nn",{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,"Nt",{enumerable:!0,get:function(){return Pf}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return yE}}),Object.defineProperty(exports,"On",{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,"Ot",{enumerable:!0,get:function(){return cp}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Sw}}),Object.defineProperty(exports,"Pn",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,"Pt",{enumerable:!0,get:function(){return jf}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return gy}}),Object.defineProperty(exports,"Qn",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,"Qt",{enumerable:!0,get:function(){return Fl}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return rx}}),Object.defineProperty(exports,"Rn",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"Rt",{enumerable:!0,get:function(){return rf}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return $D}}),Object.defineProperty(exports,"Sn",{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,"St",{enumerable:!0,get:function(){return kp}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return dD}}),Object.defineProperty(exports,"Tn",{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,"Tt",{enumerable:!0,get:function(){return jp}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return kb}}),Object.defineProperty(exports,"Un",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"Ut",{enumerable:!0,get:function(){return Od}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return Fb}}),Object.defineProperty(exports,"Vn",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"Vt",{enumerable:!0,get:function(){return id}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return Ab}}),Object.defineProperty(exports,"Wn",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"Wt",{enumerable:!0,get:function(){return Yu}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return Cy}}),Object.defineProperty(exports,"Xn",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"Xt",{enumerable:!0,get:function(){return Yl}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return My}}),Object.defineProperty(exports,"Yn",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"Yt",{enumerable:!0,get:function(){return eu}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return ry}}),Object.defineProperty(exports,"Zn",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"Zt",{enumerable:!0,get:function(){return Vl}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return oO}}),Object.defineProperty(exports,"_n",{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,"_t",{enumerable:!0,get:function(){return bm}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return _P}}),Object.defineProperty(exports,"an",{enumerable:!0,get:function(){return hs}}),Object.defineProperty(exports,"at",{enumerable:!0,get:function(){return fg}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return tO}}),Object.defineProperty(exports,"bn",{enumerable:!0,get:function(){return ca}}),Object.defineProperty(exports,"bt",{enumerable:!0,get:function(){return Ap}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return qA}}),Object.defineProperty(exports,"cn",{enumerable:!0,get:function(){return As}}),Object.defineProperty(exports,"ct",{enumerable:!0,get:function(){return $h}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Ck}}),Object.defineProperty(exports,"dn",{enumerable:!0,get:function(){return gs}}),Object.defineProperty(exports,"dt",{enumerable:!0,get:function(){return Im}}),Object.defineProperty(exports,"en",{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,"er",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"et",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return wk}}),Object.defineProperty(exports,"fn",{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,"ft",{enumerable:!0,get:function(){return zm}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return cO}}),Object.defineProperty(exports,"gn",{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,"gt",{enumerable:!0,get:function(){return um}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return hO}}),Object.defineProperty(exports,"hn",{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,"ht",{enumerable:!0,get:function(){return dm}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return bP}}),Object.defineProperty(exports,"in",{enumerable:!0,get:function(){return ks}}),Object.defineProperty(exports,"ir",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"it",{enumerable:!0,get:function(){return dg}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return zT}}),Object.defineProperty(exports,"jn",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,"jt",{enumerable:!0,get:function(){return ap}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return aE}}),Object.defineProperty(exports,"kn",{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,"kt",{enumerable:!0,get:function(){return up}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return zk}}),Object.defineProperty(exports,"ln",{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,"lt",{enumerable:!0,get:function(){return qh}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return MO}}),Object.defineProperty(exports,"mn",{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,"mt",{enumerable:!0,get:function(){return Sm}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return CF}}),Object.defineProperty(exports,"nn",{enumerable:!0,get:function(){return js}}),Object.defineProperty(exports,"nr",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"nt",{enumerable:!0,get:function(){return cg}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return vN}}),Object.defineProperty(exports,"on",{enumerable:!0,get:function(){return ms}}),Object.defineProperty(exports,"ot",{enumerable:!0,get:function(){return hg}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Dk}}),Object.defineProperty(exports,"pn",{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,"pt",{enumerable:!0,get:function(){return Pm}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return Iy}}),Object.defineProperty(exports,"qn",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"qt",{enumerable:!0,get:function(){return mu}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return KP}}),Object.defineProperty(exports,"rn",{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,"rr",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"rt",{enumerable:!0,get:function(){return mg}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return CM}}),Object.defineProperty(exports,"sn",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"st",{enumerable:!0,get:function(){return Zh}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return rI}}),Object.defineProperty(exports,"tn",{enumerable:!0,get:function(){return ns}}),Object.defineProperty(exports,"tr",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"tt",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return Mk}}),Object.defineProperty(exports,"un",{enumerable:!0,get:function(){return ls}}),Object.defineProperty(exports,"ut",{enumerable:!0,get:function(){return Vh}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return sO}}),Object.defineProperty(exports,"vn",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"vt",{enumerable:!0,get:function(){return lm}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return DD}}),Object.defineProperty(exports,"wn",{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,"wt",{enumerable:!0,get:function(){return wp}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return eO}}),Object.defineProperty(exports,"xn",{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,"xt",{enumerable:!0,get:function(){return Ip}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return iO}}),Object.defineProperty(exports,"yn",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,"yt",{enumerable:!0,get:function(){return xm}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return ax}}),Object.defineProperty(exports,"zn",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"zt",{enumerable:!0,get:function(){return Mu}});
|