infobae-charts 0.0.11 → 0.0.13

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.

Potentially problematic release.


This version of infobae-charts might be problematic. Click here for more details.

package/dist/index.cjs CHANGED
@@ -1,25 +1,42 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.ibc-footer{border-top:1px solid var(--gray-50);flex-direction:column;justify-content:space-between;gap:48px;padding:24px 0 0;display:flex}@media (width>=577px){.ibc-footer{flex-direction:row;gap:12px}}.ibc-footer-font{color:var(--gray-90);font-size:16px;font-weight:400}.ibc-footer-font>span{font-weight:700}.ibc-footer-logo{object-fit:contain;max-width:90px;height:21px;max-height:21px}.ibc-title{box-sizing:border-box;border-bottom:1px solid var(--gray-50);width:100%;padding-bottom:26px}.ibc-title__row{flex-direction:column;justify-content:space-between;align-items:flex-start;gap:20px;display:flex}@media (width>=577px){.ibc-title__row{flex-direction:row}}.ibc-title__text{flex-direction:column;gap:19px;min-width:0;display:flex}.ibc-title__heading{color:var(--gray-100);font-family:Roboto;font-size:40px;font-style:normal;font-weight:700;line-height:normal}.ibc-title__subtitle{color:var(--gray-90);font-family:Roboto;font-size:26px;font-style:normal;font-weight:400;line-height:normal}.ibc-title__brand{flex-shrink:0;align-items:center;gap:10px;line-height:0;display:flex}.ibc-title__logo{width:auto;height:40px;display:block}.ibc-title__button{background:var(--bg);border:1px solid var(--gray-50);border-radius:100px;justify-content:center;align-items:center;width:48px;height:48px;display:flex}@media (width>=577px){.ibc-title__button{width:32px;height:32px}.ibc-title__button svg{width:16px;height:16px}}.vertical-bar-chart{background:var(--gray-0);flex-direction:column;gap:36px;padding:36px 4px;display:flex}.vertical-bar-chart-ctn{background:var(--bg);border-radius:16px;flex-direction:column;gap:36px;display:flex}.vertical-bar-chart-labels{gap:8px;max-width:100%;display:flex;overflow-x:auto}.vertical-bar-chart-labels::-webkit-scrollbar{display:none}.vertical-bar-chart-label{background:var(--gray-0);border:1px solid var(--gray-30);border-radius:100px;align-items:center;gap:6px;width:max-content;padding:8px 16px;display:flex}.vertical-bar-chart-label-icon{border-radius:100px;width:12px;height:12px}.vertical-bar-chart-label-text{color:var(--gray-90);width:max-content;font-size:12px;font-weight:400}.bars-vertical-bar-chart{height:400px;padding:16px}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require("react/jsx-runtime"),r=require("react");var i=({source:e=``,showSource:t=!0,showLogo:r=!0,logoSrc:i=``})=>!t&&!r?null:(0,n.jsxs)(`div`,{className:`ibc-footer`,children:[!t||!e?null:(0,n.jsxs)(`p`,{className:`ibc-footer-font`,children:[`Fuente: `,(0,n.jsx)(`span`,{children:e})]}),!r||!i?null:(0,n.jsx)(`img`,{className:`ibc-footer-logo`,src:i||`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`,alt:`Infobae`})]}),a=({color:e=`var(--gray-90)`})=>(0,n.jsx)(`svg`,{width:25,height:23,viewBox:`0 0 25 23`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M15.1484 18.209C16.2165 17.062 17.2844 15.9156 18.3525 14.7686C19.6733 13.3501 21.0013 11.9235 22.3223 10.5049C21.0337 9.12301 19.7399 7.73568 18.4463 6.34863C17.3459 5.16872 16.2458 3.98836 15.1484 2.81152V7.11133L15.0605 7.12207L13.7334 7.2832C13.2462 7.34244 12.7328 7.3756 12.3428 7.40918C11.9212 7.4455 11.5709 7.487 11.25 7.55957L11.249 7.55859L11.2188 7.56641L11.2139 7.56836V7.56738L11.1797 7.57422C6.97754 8.31826 3.54696 11.4713 2.3457 15.6885L2.33203 15.7441C2.04422 16.8005 1.87981 17.8793 1.8252 18.9707C2.122 18.5479 2.4433 18.1395 2.79492 17.749L2.80762 17.7363C5.6064 14.6866 9.60855 13.2162 13.625 13.6777H13.624C13.6309 13.6784 13.6373 13.6791 13.6406 13.6797C13.6426 13.68 13.6445 13.6805 13.6455 13.6807L13.7715 13.7002C14.0526 13.7561 14.2412 13.8734 14.2803 13.8965C14.3888 13.9606 14.4699 14.0248 14.5107 14.0586C14.5577 14.0974 14.5963 14.1335 14.6191 14.1553L14.6514 14.1865L14.6533 14.1875L14.5908 14.2471L14.5811 14.2568L14.6533 14.1885L14.6738 14.209H14.6729L15.1201 14.6709L15.1484 14.7002V18.209ZM24.2998 10.7754L24.2832 10.8008C24.095 11.0787 23.9061 11.3293 23.6904 11.5801L23.6875 11.583C20.9494 14.5235 18.2039 17.4716 15.4658 20.4121L15.374 20.5234C15.1464 20.7683 14.828 20.9048 14.4971 20.9043H14.4902V20.9033L14.3389 20.8926H14.332L14.3252 20.8906C13.7676 20.7689 13.3904 20.2251 13.4482 19.6543V15.4482L13.4316 15.4375C9.93065 15.0376 6.45647 16.3191 4.03418 18.959L4.03516 18.96C3.32287 19.7509 2.74215 20.6242 2.2666 21.5801C2.03257 22.1442 1.3672 22.4611 0.805664 22.2168L0.745117 22.1914V22.1768C0.443793 22.0328 0.22449 21.7539 0.171875 21.418L0.170898 21.4102L0.15918 21.2695V21.2686C0.0187049 19.5013 0.124356 17.7326 0.511719 16.001L0.512695 15.998L0.695312 15.2617L0.696289 15.2598C2.02169 10.5049 5.78955 6.91872 10.4414 5.91699L10.8936 5.82812C11.3251 5.73086 11.7619 5.68221 12.2012 5.64453C12.6152 5.60902 13.0281 5.58023 13.4482 5.53223V1.33789C13.3904 0.707944 13.8273 0.161489 14.4434 0.100586L14.4531 0.0996094V0.100586C14.6044 0.100586 14.7904 0.0990999 14.9502 0.194336C15.1239 0.257283 15.2662 0.374645 15.3779 0.516602H15.3789L23.9541 9.71289L23.959 9.71777V9.71875C24.0959 9.88874 24.2065 10.0607 24.29 10.2334L24.2998 10.2539V10.7754Z`,fill:e,stroke:e,strokeWidth:.2})}),o=({color:e=`var(--gray-90)`})=>(0,n.jsx)(`svg`,{width:30,height:30,viewBox:`0 0 30 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M14.8154 19.3652C14.8374 19.3932 14.8654 19.4159 14.8973 19.4315C14.9293 19.4471 14.9644 19.4552 15 19.4552C15.0356 19.4552 15.0707 19.4471 15.1027 19.4315C15.1346 19.4159 15.1626 19.3932 15.1846 19.3652L18.4658 15.2139C18.5859 15.0615 18.4775 14.8359 18.2812 14.8359H16.1104V4.92188C16.1104 4.79297 16.0049 4.6875 15.876 4.6875H14.1182C13.9893 4.6875 13.8838 4.79297 13.8838 4.92188V14.833H11.7188C11.5225 14.833 11.4141 15.0586 11.5342 15.2109L14.8154 19.3652ZM25.7227 18.3398H23.9648C23.8359 18.3398 23.7305 18.4453 23.7305 18.5742V23.0859H6.26953V18.5742C6.26953 18.4453 6.16406 18.3398 6.03516 18.3398H4.27734C4.14844 18.3398 4.04297 18.4453 4.04297 18.5742V24.375C4.04297 24.8936 4.46191 25.3125 4.98047 25.3125H25.0195C25.5381 25.3125 25.957 24.8936 25.957 24.375V18.5742C25.957 18.4453 25.8516 18.3398 25.7227 18.3398Z`,fill:e})});function s({className:e,showShare:t=!0,showSubtitle:r=!0,showTitle:i=!0,subtitle:s,title:c}){return!t&&!i&&!r?null:(0,n.jsx)(`header`,{className:[`ibc-title`,e].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{className:`ibc-title__row`,children:[(0,n.jsxs)(`div`,{className:`ibc-title__text`,children:[!i||!c?null:(0,n.jsx)(`p`,{className:`ibc-title__heading`,children:c}),!r||!s?null:(0,n.jsx)(`p`,{className:`ibc-title__subtitle`,children:s})]}),t?(0,n.jsxs)(`div`,{className:`ibc-title__brand`,children:[(0,n.jsx)(`div`,{className:`ibc-title__button`,children:(0,n.jsx)(a,{})}),(0,n.jsx)(`div`,{className:`ibc-title__button`,children:(0,n.jsx)(o,{})})]}):null]})})}var c=function(e,t){return c=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])},c(e,t)};function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);c(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),d=new(function(){function e(){this.browser=new u,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`?(d.wxa=!0,d.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?d.worker=!0:!d.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(d.node=!0,d.svgSupported=!0):f(navigator.userAgent,d);function f(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 p=`12px sans-serif`,m=20,h=100,g=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function _(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)-m)/h}return t}var v=_(g),y={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=y.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=v[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}},b=z([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),x=z([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),S=Object.prototype.toString,C=Array.prototype,w=C.forEach,T=C.filter,E=C.slice,D=C.map,O=function(){}.constructor,k=O?O.prototype:null,A=`__proto__`,j=2311,ee=2**53-1;function te(){return j>=ee&&(j=0),j++}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function M(e){if(typeof e!=`object`||!e)return e;var t=e,n=S.call(e);if(n===`[object Array]`){if(!Ee(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(x[n]){if(!Ee(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(!b[n]&&!Ee(e)&&!he(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==A&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!G(t)||!G(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==A){var i=e[r],a=t[r];G(a)&&G(i)&&!H(a)&&!H(i)&&!he(a)&&!he(i)&&!pe(a)&&!pe(i)&&!Ee(a)&&!Ee(i)?N(i,a,n):(n||!(r in e))&&(e[r]=M(t[r]))}return e}function P(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==A&&(e[n]=t[n]);return e}function re(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function F(e,t,n){for(var r=V(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}y.createCanvas;function I(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 ie(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 ae(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 F(e,t,n)}function oe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function L(e,t,n){if(e&&t){if(e.forEach&&e.forEach===w)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 R(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.map&&e.map===D)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 z(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 B(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.filter&&e.filter===T)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 se(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 V(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 ce(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(E.call(arguments)))}}var le=k&&U(k.bind)?k.call.bind(k.bind):ce;function ue(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(E.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):S.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function de(e){return S.call(e)===`[object String]`}function fe(e){return typeof e==`number`}function G(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function pe(e){return!!b[S.call(e)]}function me(e){return!!x[S.call(e)]}function he(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function ge(e){return e.colorStops!=null}function _e(e){return S.call(e)===`[object RegExp]`}function ve(e){return e!==e}function ye(){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 K(e,t){return e??t}function be(e,t,n){return e??t??n}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return E.apply(e,t)}function Se(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 q(e,t){if(!e)throw Error(t)}function Ce(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var we=`__ec_primitive__`;function Te(e){e[we]=!0}function Ee(e){return e[we]}var De=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 V(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Oe=typeof Map==`function`;function ke(){return Oe?new Map:new De}var Ae=function(){function e(t){var n=H(t);this.data=ke();var r=this;t instanceof e?t.each(i):t&&L(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 Oe?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Ae(e)}function je(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 Me(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&P(n,t),n}function Ne(e,t){return e.hasOwnProperty(t)}function Pe(){}var Fe=180/Math.PI;function Ie(e,t){return e??=0,t??=0,[e,t]}function Le(e){return[e[0],e[1]]}function Re(e,t,n){return e[0]=t,e[1]=n,e}function ze(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Be(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ve(e){return Math.sqrt(He(e))}function He(e){return e[0]*e[0]+e[1]*e[1]}function Ue(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function We(e,t){var n=Ve(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ge(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ke=Ge;function qe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Je=qe;function Ye(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 Xe(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ze(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Qe=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),$e=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 Qe(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 Qe(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 Qe(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Qe(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Qe(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Qe(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),et=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}(),tt=Math.log(2);function nt(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)/tt);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]*nt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function rt(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=nt(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)*nt(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 it=`___zrEVENTSAVED`,at=[];function ot(e,t,n,r,i){return ct(at,t,r,i,!0)&&ct(e,n,at[0],at[1])}function st(e,t){e&&n(e),t&&n(t);function n(e){var t=e[it];t&&(t.clearMarkers&&t.clearMarkers(),delete e[it])}}function ct(e,t,n,r,i){if(t.getBoundingClientRect&&d.domSupported&&!dt(t)){var a=t[it]||(t[it]={}),o=ut(lt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function lt(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(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ut(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?rt(s,o):rt(o,s))}function dt(e){return e.nodeName.toUpperCase()===`CANVAS`}var ft=/([&<>"'])/g,pt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function mt(e){return e==null?``:(e+``).replace(ft,function(e,t){return pt[t]})}var ht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=[],_t=d.browser.firefox&&+d.browser.version.split(`.`)[0]<39;function vt(e,t,n,r){return n||={},r?yt(e,t,n):_t&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?yt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function yt(e,t,n){if(d.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(ct(gt,e,r,i)){n.zrX=gt[0],n.zrY=gt[1];return}}n.zrX=n.zrY=0}function bt(e){return e||window.event}function xt(e,t,n){if(t=bt(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&&vt(e,i,t,n)}else{vt(e,t,t,n);var a=St(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&ht.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function St(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 Ct(e,t,n,r){e.addEventListener(t,n,r)}function wt(e,t,n,r){e.removeEventListener(t,n,r)}var Tt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},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=vt(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=on(),Yt=Jt.minTv,Xt=Jt.maxTv,Zt=[0,0],Y=function(){function e(e,t,n,r){Qt(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 en(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=Qt(tn,t.x,t.y,t.width,t.height)),n instanceof e||(n=Qt(nn,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,an(l,u,p,m,0,s,a,o),an(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){$t(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&&$t(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,Re(rn,-t.x,-t.y)),It(e,e,Re(rn,r,i)),Pt(e,e,Re(rn,n.x,n.y)),e},e}();Y.create;var Qt=Y.set,$t=Y.copy,en=Y.calculateTransform;Y.applyTransform,Y.contain;var tn=new Y(0,0,0,0),nn=new Y(0,0,0,0),rn=[];function an(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 on(){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 sn=`silent`;function cn(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:ln}}function ln(){Tt(this.event)}var un=function(e){l(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}(et),dn=function(){function e(e,t){this.x=e,this.y=t}return e}(),fn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],pn=new Y(0,0,0,0),mn=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new dn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new un,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new $e(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(fn,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=_n(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 dn(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 dn(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=cn(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 dn(e,t);if(gn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(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)&&(pn.copy(u.getBoundingRect()),u.transform&&pn.applyTransform(u.transform),pn.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(gn(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 dn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(et);L([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){mn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=_n(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||Ke(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function hn(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||sn}return!1}function gn(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=hn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==sn)){t.target=o;break}}}function _n(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var vn=32,yn=7;function bn(e){for(var t=0;e>=vn;)t|=e&1,e>>=1;return e+t}function xn(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++;Sn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Sn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Cn(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 wn(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 Tn(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 En(e,t){var n=yn,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=Tn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=wn(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=Tn(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=wn(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>=yn||m>=yn);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-Tn(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-wn(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>=yn||g>=yn);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 Dn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<vn){a=xn(e,n,r,t),Cn(e,n,r,n+a,t);return}var o=En(e,t),s=bn(i);do{if(a=xn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Cn(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 On=!1;function kn(){On||(On=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function An(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var jn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=An}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,Dn(n,An)},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)&&(kn(),p.z=0),isNaN(p.z2)&&(kn(),p.z2=0),isNaN(p.zlevel)&&(kn(),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=I(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}(),Mn=d.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Nn={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-Nn.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?Nn.bounceIn(e*2)*.5:Nn.bounceOut(e*2-1)*.5+.5}},Pn=Math.pow,Fn=Math.sqrt,In=1e-8,Ln=1e-4,Rn=Fn(3),zn=1/3,Bn=Ie(),Vn=Ie(),Hn=Ie();function Un(e){return e>-In&&e<In}function Wn(e){return e>In||e<-In}function Gn(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 Kn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function qn(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(Un(u)&&Un(d)){if(Un(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(Un(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=Fn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Pn(-y,zn):Pn(y,zn),b=b<0?-Pn(-b,zn):Pn(b,zn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Fn(u*u*u)),S=Math.acos(x)/3,C=Fn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Rn*Math.sin(S)))/(3*o),T=(-s+C*(w-Rn*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 Jn(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(Un(o)){if(Wn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Un(u))i[0]=-a/(2*o);else if(u>0){var d=Fn(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 Yn(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 Xn(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Bn[0]=c,Bn[1]=l;for(var v=0;v<1;v+=.05)Vn[0]=Gn(e,n,i,o,v),Vn[1]=Gn(t,r,a,s,v),g=Je(Bn,Vn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Ln);y++)m=d-f,h=d+f,Vn[0]=Gn(e,n,i,o,m),Vn[1]=Gn(t,r,a,s,m),g=Je(Vn,Bn),m>=0&&g<p?(d=m,p=g):(Hn[0]=Gn(e,n,i,o,h),Hn[1]=Gn(t,r,a,s,h),_=Je(Hn,Bn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Gn(e,n,i,o,d),u[1]=Gn(t,r,a,s,d)),Fn(p)}function Zn(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=Gn(e,n,i,o,m),g=Gn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Qn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function $n(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function er(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Un(a)){if(Wn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Un(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Fn(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 tr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function nr(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 rr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Bn[0]=o,Bn[1]=s;for(var f=0;f<1;f+=.05){Vn[0]=Qn(e,n,i,f),Vn[1]=Qn(t,r,a,f);var p=Je(Bn,Vn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Ln);m++){var h=l-u,g=l+u;Vn[0]=Qn(e,n,i,h),Vn[1]=Qn(t,r,a,h);var p=Je(Vn,Bn);if(h>=0&&p<d)l=h,d=p;else{Hn[0]=Qn(e,n,i,g),Hn[1]=Qn(t,r,a,g);var _=Je(Hn,Bn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Qn(e,n,i,l),c[1]=Qn(t,r,a,l)),Fn(d)}function ir(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=Qn(e,n,i,f),m=Qn(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var ar=/cubic-bezier\(([0-9,\.e ]+)\)/;function or(e){var t=e&&ar.exec(e);if(t){var n=t[1].split(`,`),r=+Ce(n[0]),i=+Ce(n[1]),a=+Ce(n[2]),o=+Ce(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:qn(0,r,a,1,e,s)&&Gn(0,i,o,1,s[0])}}}var sr=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||Pe,this.ondestroy=e.ondestroy||Pe,this.onrestart=e.onrestart||Pe,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=U(e)?e:Nn[e]||or(e)},e}(),cr=function(){function e(e){this.value=e}return e}(),lr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new cr(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}(),ur=function(){function e(e){this._list=new lr,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 cr(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}(),dr={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 fr(e){return e=Math.round(e),e<0?0:e>255?255:e}function pr(e){return e=Math.round(e),e<0?0:e>360?360:e}function mr(e){return e<0?0:e>1?1:e}function hr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?fr(parseFloat(t)/100*255):fr(parseInt(t,10))}function gr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?mr(parseFloat(t)/100):mr(parseFloat(t))}function _r(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 vr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function yr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var br=new ur(20),xr=null;function Sr(e,t){xr&&yr(xr,t),xr=br.put(e,xr||t.slice())}function Cr(e,t){if(e){t||=[];var n=br.get(e);if(n)return yr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in dr)return yr(t,dr[r]),Sr(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)){vr(t,0,0,0,1);return}return vr(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),Sr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){vr(t,0,0,0,1);return}return vr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Sr(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?vr(t,+l[0],+l[1],+l[2],1):vr(t,0,0,0,1);u=gr(l.pop());case`rgb`:if(l.length>=3)return vr(t,hr(l[0]),hr(l[1]),hr(l[2]),l.length===3?u:gr(l[3])),Sr(e,t),t;vr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){vr(t,0,0,0,1);return}return l[3]=gr(l[3]),wr(l,t),Sr(e,t),t;case`hsl`:if(l.length!==3){vr(t,0,0,0,1);return}return wr(l,t),Sr(e,t),t;default:return}}vr(t,0,0,0,1)}}function wr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=gr(e[1]),i=gr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],vr(t,fr(_r(o,a,n+1/3)*255),fr(_r(o,a,n)*255),fr(_r(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Tr(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 Er(e,t){var n=Cr(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 Or(n,n.length===4?`rgba`:`rgb`)}}function Dr(e,t,n,r){var i=Cr(e);if(e)return i=Tr(i),t!=null&&(i[0]=pr(U(t)?t(i[0]):t)),n!=null&&(i[1]=gr(U(n)?n(i[1]):n)),r!=null&&(i[2]=gr(U(r)?r(i[2]):r)),Or(wr(i),`rgba`)}function Or(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 kr(e,t){var n=Cr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Ar=new ur(100);function jr(e){if(W(e)){var t=Ar.get(e);return t||(t=Er(e,-.1),Ar.put(e,t)),t}if(ge(e)){var n=P({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:Er(e.color,-.1)}}),n}return e}var Mr=Math.round;function Nr(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Cr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Pr=1e-4;function Fr(e){return e<Pr&&e>-Pr}function Ir(e){return Mr(e*1e3)/1e3}function Lr(e){return Mr(e*1e4)/1e4}function Rr(e){return`matrix(`+Ir(e[0])+`,`+Ir(e[1])+`,`+Ir(e[2])+`,`+Ir(e[3])+`,`+Lr(e[4])+`,`+Lr(e[5])+`)`}var zr={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Br(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Vr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Hr(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Ur(e){return e&&!!e.image}function Wr(e){return e&&!!e.svgElement}function Gr(e){return Ur(e)||Wr(e)}function Kr(e){return e.type===`linear`}function qr(e){return e.type===`radial`}function Jr(e){return e&&(e.type===`linear`||e.type===`radial`)}function Yr(e){return`url(#`+e+`)`}function Xr(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Zr(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Fe,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Mr(o*Fe)+`deg, `+Mr(s*Fe)+`deg)`),c.join(` `)}var Qr=(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`&&ne(`Base64 isn't natively supported in the current environment.`),null}})(),$r=Array.prototype.slice;function ei(e,t,n){return(t-e)*n+e}function ti(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=ei(t[a],n[a],r);return e}function ni(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]=ei(t[o][s],n[o][s],r)}return e}function ri(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ii(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 ai(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 oi(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]:$r.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 si(e){if(oe(e)){var t=e.length;if(oe(e[0])){for(var n=[],r=0;r<t;r++)n.push($r.call(e[r]));return n}return $r.call(e)}return e}function ci(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 li(e){return oe(e&&e[0])?2:1}var ui=0,di=1,fi=2,pi=3,mi=4,hi=5,gi=6;function _i(e){return e===mi||e===hi}function vi(e){return e===di||e===fi}var yi=[0,0,0,0],bi=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=gi,s=t;if(oe(t)){var c=li(t);o=c,(c===1&&!fe(t[0])||c===2&&!fe(t[0][0]))&&(a=!0)}else if(fe(t)&&!ve(t))o=ui;else if(W(t)){if(!isNaN(+t))o=ui;else{var l=Cr(t);l&&(s=l,o=pi)}}else if(ge(t)){var u=P({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:Cr(e.color)}}),Kr(t)?o=mi:qr(t)&&(o=hi),s=u}i===0?this.valType=o:(o!==this.valType||o===gi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:Nn[n]||or(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=vi(r),c=_i(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?oi(d,f,r):c&&ai(d.colorStops,f.colorStops))}if(!o&&r!==hi&&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===ui?n[l].additiveValue=n[l].value-p:r===pi?n[l].additiveValue=ri([],n[l].value,p,-1):vi(r)&&(n[l].additiveValue=r===di?ri([],n[l].value,p,-1):ii([],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===pi,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?yi:e[s];if((vi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(vi(i))i===di?ti(g,f[r],p[r],h):ni(g,f[r],p[r],h);else if(_i(i)){var _=f[r],v=p[r],y=i===mi;e[s]={type:y?`linear`:`radial`,x:ei(_.x,v.x,h),y:ei(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ei(e.offset,n.offset,h),color:ci(ti([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ei(_.x2,v.x2,h),e[s].y2=ei(_.y2,v.y2,h)):e[s].r=ei(_.r,v.r,h)}else if(c)ti(g,f[r],p[r],h),n||(e[s]=ci(g));else{var b=ei(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===ui?e[n]=e[n]+r:t===pi?(Cr(e[n],yi),ri(yi,yi,r,1),e[n]=ci(yi)):t===di?ri(e[n],e[n],r,1):t===fi&&ii(e[n],e[n],r,1)},e}(),xi=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){ne(`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,V(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 bi(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===pi&&c&&(c=ci(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,si(c),r),this._trackKeys.push(o)}s.addKeyframe(e,si(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 sr({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 R(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]=si(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=V(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 Si(){return new Date().getTime()}var Ci=function(e){l(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=Si()-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&&(Mn(t),!e._paused&&e.update())}Mn(t)},t.prototype.start=function(){this._running||(this._time=Si(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Si(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Si()-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 xi(e,t.loop);return this.addAnimator(n),n},t}(et),wi=300,Ti=d.domSupported,Ei=(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:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Di={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Oi=!1;function ki(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ai(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 ji(e){e&&(e.zrByTouch=!0)}function Mi(e,t){return xt(e.dom,new Pi(e,t),!0)}function Ni(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 Pi=function(){function e(e,t){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Fi={mousedown:function(e){e=xt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=xt(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=xt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=xt(this.dom,e);var t=e.toElement||e.relatedTarget;Ni(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Oi=!0,e=xt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Oi||(e=xt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=xt(this.dom,e),ji(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Fi.mousemove.call(this,e),Fi.mousedown.call(this,e)},touchmove:function(e){e=xt(this.dom,e),ji(e),this.handler.processGesture(e,`change`),Fi.mousemove.call(this,e)},touchend:function(e){e=xt(this.dom,e),ji(e),this.handler.processGesture(e,`end`),Fi.mouseup.call(this,e),+new Date-this.__lastTouchMoment<wi&&Fi.click.call(this,e)},pointerdown:function(e){Fi.mousedown.call(this,e)},pointermove:function(e){ki(e)||Fi.mousemove.call(this,e)},pointerup:function(e){Fi.mouseup.call(this,e)},pointerout:function(e){ki(e)||Fi.mouseout.call(this,e)}};L([`click`,`dblclick`,`contextmenu`],function(e){Fi[e]=function(t){t=xt(this.dom,t),this.trigger(e,t)}});var Ii={pointermove:function(e){ki(e)||Ii.mousemove.call(this,e)},pointerup:function(e){Ii.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 Li(e,t){var n=t.domHandlers;d.pointerEventsSupported?L(Ei.pointer,function(r){zi(t,r,function(t){n[r].call(e,t)})}):(d.touchEventsSupported&&L(Ei.touch,function(r){zi(t,r,function(i){n[r].call(e,i),Ai(t)})}),L(Ei.mouse,function(r){zi(t,r,function(i){i=bt(i),t.touching||n[r].call(e,i)})}))}function Ri(e,t){d.pointerEventsSupported?L(Di.pointer,n):d.touchEventsSupported||L(Di.mouse,n);function n(n){function r(r){r=bt(r),Ni(e,r.target)||(r=Mi(e,r),t.domHandlers[n].call(e,r))}zi(t,n,r,{capture:!0})}}function zi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Ct(e.domTarget,t,n,r)}function Bi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&wt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Vi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Hi=function(e){l(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 Vi(t,Fi),Ti&&(r._globalHandlerScope=new Vi(document,Ii)),Li(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Bi(this._localHandlerScope),Ti&&Bi(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,Ti&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ri(this,t):Bi(t)}},t}(et),Ui=1;d.hasGlobalWindow&&(Ui=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Wi=Ui,Gi=.4,Ki=`#333`,qi=`#ccc`,Ji=`#eee`,Yi=jt,Xi=5e-5;function Zi(e){return e>Xi||e<-Xi}var Qi=[],$i=[],ea=At(),ta=Math.abs,na=function(){function e(){}return e.prototype.getLocalTransform=function(e){return ra(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&&(Yi(n),this.invTransform=null);return}n||=At(),t?this.getLocalTransform(n):Yi(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(Qi);var n=Qi[0]<0?-1:1,r=Qi[1]<0?-1:1,i=((Qi[0]-n)*t+n)/Qi[0]||0,a=((Qi[1]-r)*t+r)/Qi[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($i,e.invTransform,t),t=$i);var n=this.originX,r=this.originY;(n||r)&&(ea[4]=n,ea[5]=r,Nt($i,t,ea),$i[4]-=n,$i[5]-=r,t=$i),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&&Ye(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Ye(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ta(e[0]-1)>1e-10&&ta(e[3]-1)>1e-10?Math.sqrt(ta(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){aa(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}(),ra=na.getLocalTransform,ia=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function aa(e,t){return re(e,t,ia)}function oa(e){sa||=new ur(100),e||=`12px sans-serif`;var t=sa.get(e);return t||(t={font:e,strWidthCache:new ur(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:y.measureText(`国`,e).width,asciiCharWidth:y.measureText(`a`,e).width},sa.put(e,t)),t}var sa;function ca(e){if(!(la>=ua)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=y.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?la=ua:i>2&&la++,t}}var la=0,ua=5;function da(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ca(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function fa(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=y.measureText(t,e.font).width,n.put(t,r)),r}function pa(e,t,n,r){var i=fa(oa(t),e),a=_a(t);return new Y(ha(0,i,n),ga(0,a,r),i,a)}function ma(e,t,n,r){var i=((e||``)+``).split(`
3
- `);if(i.length===1)return pa(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=pa(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ha(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ga(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function _a(e){return oa(e).stWideCharWidth}function va(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function ya(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+=va(r[0],n.width),l+=va(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 ba=`__zr_normal__`,xa=ia.concat([`ignore`]),Sa=z(ia,function(e,t){return e[t]=!0,e},{ignore:!1}),Ca={},wa=new Y(0,0,0,0),Ta=[],Ea=function(){function e(e){this.id=te(),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=wa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Ca,n,d):ya(Ca,n,d),i.x=Ca.x,i.y=Ca.y,a=Ca.align,o=Ca.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=va(f[0],d.width),m=va(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 Y(0,0,0,0);i.getLocalTransform(Ta),Lt(Ta,Ta),Y.copy(_,d),_.applyTransform(Ta)}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()?qi:Ki},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Cr(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,Or(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||{},P(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(G(e))for(var n=V(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,xa)},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(ba,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ba;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(I(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){ne(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Pa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ia(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=Pa(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,Ia(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=I(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=I(r,e),a=I(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];P(t,i),i.textConfig&&(n||={},P(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=P({},r?this.textConfig:n.textConfig),P(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<xa.length;l++){var u=xa[l],d=i&&Sa[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 na,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},P(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){ne(`Property "`+e+`" is not existed in element `+this.id);return}var i=new xi(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=I(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){Da(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Da(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Da(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}();ae(Ea,et),ae(Ea,na);function Da(e,t,n,r,i){n||={};var a=[];Na(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 Oa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ka(e){return oe(e[0])}function Aa(e,t,n){if(oe(t[n])){if(oe(e[n])||(e[n]=[]),me(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Oa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ka(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Oa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Oa(a,i,o);a.length=i.length}}else e[n]=t[n]}function ja(e,t){return e===t||oe(e)&&oe(t)&&Ma(e,t)}function Ma(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 Na(e,t,n,r,i,a,o,s){for(var c=V(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!G(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(G(v)&&!oe(v)&&!ge(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Na(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=I(m,x);m.splice(S,1)}}if(i.force||(h=B(h,function(e){return!ja(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[_]=si(n[_]),Aa(n,r,_)}}var x=new xi(n,!1,!1,d?B(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 Pa(e,t,n,r){return!(n&&n.hoverLayer||r)||Fa(e)||t&&Fa(t)?0:1}function Fa(e){return e.type===`text`||e.type===`tspan`}function Ia(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var La=function(e){l(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=I(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=I(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 Y(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?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Ea);La.prototype.type=`group`;var Ra={},za={};function Ba(e){delete za[e]}function Va(e){if(!e)return!1;if(typeof e==`string`)return kr(e,1)<Gi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=kr(t[i].color,1);return n/=r,n<Gi}return!1}var Ha=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 jn,a=n.renderer||`canvas`;if(Ra[a]||(a=V(Ra)[0]),process.env.NODE_ENV!==`production`&&!Ra[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ra[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!d.node&&!d.worker&&!s?new Hi(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?d.touchEventsSupported:!!l,f=44,p;u&&(p=K(n.pointerSize,f)),this.handler=new mn(i,o,c,o.root,p),this.animation=new Ci({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Va(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=Si(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Si();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 La&&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,Ba(this.id))},e}();function Ua(e,t){var n=new Ha(te(),e,t);return za[n.id]=n,n}function Wa(e,t){Ra[e]=t}var Ga;function Ka(e){if(typeof Ga==`function`)return Ga(e)}function qa(e){Ga=e}var Ja=1e-4,Ya=20;function Xa(e){return e.replace(/^\s+|\s+$/g,``)}var Za=Math.min,X=Math.max,Qa=Math.abs,$a=Math.round,eo=Math.floor,to=Math.ceil,no=Math.pow,ro=Math.log,io=Math.LN10,ao=Math.PI,oo=Math.random;function so(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 co=lo;function lo(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 uo(e,t,n)}function uo(e,t,n){return W(e)?fo(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function fo(e){return!!Xa(e).match(/%$/)}function po(e,t,n){return process.env.NODE_ENV!==`production`&&q(t!=null),isNaN(t)?n?``+e:+e:(t=Za(X(0,t),Ya),e=(+e).toFixed(t),n?e:+e)}function mo(e){return e.sort(function(e,t){return e-t}),e}function ho(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if($a(e*t)/t===e)return n}return go(e)}function go(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 X(0,(a<0?0:i-1-a)-r)}function _o(e,t,n){var r=Qa(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=ro(2*Qa(n||1)*Qa(r))/io,a=ro(Qa(t))/io,o=X(0,to(-i+a));return isFinite(o)||(o=NaN),o}function vo(e,t){var n=X(ho(e),ho(t)),r=e+t;return n>Ya?r:po(r,n)}var yo=no(2,53)-1;function bo(e){var t=ao*2;return(e%t+t)%t}function xo(e){return e>-Ja&&e<Ja}var So=/^(?:(\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 Co(e){if(e instanceof Date)return e;if(W(e)){var t=So.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($a(e))}function wo(e){return no(10,To(e))}function To(e){if(e===0)return 0;var t=eo(ro(e)/io);return e/no(10,t)>=10&&t++,t}function Eo(e,t){var n=To(e),r=no(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,po(e,-n)}function Do(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function Oo(e){return!isNaN(Do(e))}function ko(){return $a(oo()*9)}function Ao(e,t){return t===0?e:Ao(t,e%t)}function jo(e,t){return e==null?t:t==null?e:e*t/Ao(e,t)}function Mo(e){return e!=null&&isFinite(e)}var No=`[ECharts] `,Po={},Fo=typeof console<`u`&&console.warn&&console.log;function Io(e,t,n){if(Fo){if(n){if(Po[t])return;Po[t]=!0}console[e](No+t)}}function Lo(e,t){Io(`log`,e,t)}function Ro(e,t){Io(`warn`,e,t)}function Z(e,t){Io(`error`,e,t)}function zo(e){process.env.NODE_ENV!==`production`&&Io(`warn`,`DEPRECATED: `+e,!0)}function Bo(e,t,n){process.env.NODE_ENV!==`production`&&zo((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Vo(){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`:ve(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:U(e)?`function () { ... }`:_e(e)?e+``:null};n=R(e,function(e){if(W(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 Ho(e){throw Error(e)}var Uo=`series\0`,Wo=`\0_ec_\0`;function Go(e){return e instanceof Array?e:e==null?[]:[e]}function Ko(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 qo=`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 Jo(e){return G(e)&&!H(e)&&!(e instanceof Date)?e.value:e}function Yo(e){return G(e)&&!(e instanceof Array)}function Xo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();L(t,function(e,n){if(!G(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!ss(e.id)&&os(e.id),e.name!=null&&!ss(e.name)&&os(e.name))});var s=Zo(e,o,n);return(r||i)&&Qo(s,e,o,t),r&&$o(s,t),r||i?es(s,t,i):a&&ts(s,t),ns(s),s}function Zo(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`||ls(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Qo(e,t,n,r){L(r,function(i,a){if(!(!i||i.id==null)){var o=is(i.id),s=n.get(o);if(s!=null){var c=e[s];q(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function $o(e,t){L(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)&&!ls(n)&&!ls(a)&&rs(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function es(e,t,n){L(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ls(r.existing)||r.existing&&t.id!=null&&!rs(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ts(e,t){L(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function ns(e){var t=J();L(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),L(e,function(e){var n=e.newOption;q(!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={})}),L(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(G(i)){if(a.name=i.name==null?r?r.name:Uo+n:is(i.name),r)a.id=is(r.id);else if(i.id!=null)a.id=is(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 rs(e,t,n){var r=as(t[e],null),i=as(n[e],null);return r!=null&&i!=null&&r===i}function is(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return as(e,``)}function as(e,t){return e==null?t:W(e)?e:fe(e)||de(e)?e+``:t}function os(e){process.env.NODE_ENV!==`production`&&Ro("`"+e+"` is invalid id or name. Must be a string or number.")}function ss(e){return de(e)||Oo(e)}function cs(e){var t=e.name;return!!(t&&t.indexOf(Uo))}function ls(e){return e&&e.id!=null&&is(e.id).indexOf(Wo)===0}function us(e,t,n){L(e,function(e){var r=e.newOption;G(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=ds(t,r,e.existing,n))})}function ds(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function fs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?R(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?R(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function ps(){var e=`__ec_inner_`+ms++;return function(t){return t[e]||(t[e]={})}}var ms=ko();function hs(e,t,n){var r=gs(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=vs(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 gs(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return L(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&&I(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var _s={useDefault:!0,enableAll:!1,enableNone:!1};function vs(e,t,n,r){r||=_s;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`&&Z('`"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`&&Z('`"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 ys(e,t,n){process.env.NODE_ENV!==`production`&&q(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 bs(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function xs(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Ss(e){return e===`auto`?d.domSupported?`html`:`richText`:e||`html`}(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 Cs(){return[1/0,-1/0]}function ws(e,t){Os(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Ts(e,t){Os(t)&&t<e[0]&&(e[0]=t)}function Es(e,t){Os(t)&&t>e[1]&&(e[1]=t)}function Ds(e,t){ks(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Os(e){return e!=null&&isFinite(e)}function ks(e,t){return Os(e)&&Os(t)&&e<=t}function As(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function js(e){ks(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Ms(){var e=`__ec_once_`+Ns++;return function(t,n){process.env.NODE_ENV!==`production`&&q(t),Ne(t,e)||(t[e]=1,n())}}var Ns=ko();function Ps(e,t,n){var r=J(),i=0;L(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&q(W(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 Fs(e){return process.env.NODE_ENV!==`production`&&q(e.value!=null),e.value+``}function Is(e){return process.env.NODE_ENV!==`production`&&q(e!=null),e+``}function Ls(e,t){return K(t,!0)?e.seriesIndex+2:0}function Rs(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 zs(e){return{overallReset:e}}var Bs=`.`,Vs=`___EC__COMPONENT__CONTAINER___`,Hs=`___EC__EXTENDED_CLASS___`;function Us(e){var t={main:``,sub:``};if(e){var n=e.split(Bs);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ws(e){q(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Gs(e){return!!(e&&e[Hs])}function Ks(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&L(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,r;return qs(n)?r=function(e){l(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},ie(r,this)),P(r.prototype,e),r[Hs]=!0,r.extend=this.extend,r.superCall=Zs,r.superApply=Qs,r.superClass=n,r}}function qs(e){return U(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Js(e,t){e.extend=t.extend}var Ys=Math.round(Math.random()*10);function Xs(e){var t=[`__\0is_clz`,Ys++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&q(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function Zs(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 Qs(e,t,n){return this.superClass.prototype[t].apply(e,n)}function $s(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ws(r),e.prototype.type=r;var i=Us(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!==Vs){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Vs]&&(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=Us(e),r=[],i=t[n.main];return i&&i[Vs]?L(i,function(e,t){t!==Vs&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Us(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Us(e).main];return n&&n[Vs]};function n(e){var n=t[e.main];return(!n||!n[Vs])&&(n=t[e.main]={},n[Vs]=!0),n}}function ec(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&&I(r,s)>=0||i&&I(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var tc=ec([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),nc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return tc(this,e,t)},e}(),rc=new ur(50);function ic(e){if(typeof e==`string`){var t=rc.get(e);return t&&t.image}return e}function ac(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=rc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!sc(t)&&a.pending.push(o)):(t=y.loadImage(e,oc,oc),t.__zrImageSrc=e,rc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function oc(){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 sc(e){return e&&e.width&&e.height}var cc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
4
- `);a=uc(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)dc(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
5
- `),e.isTruncated=s}function uc(e,t,n,r){r||={};var i=P({},r);n=K(n,`...`),i.maxIterations=K(r.maxIterations,2);var a=i.minChar=K(r.minChar,0),o=i.fontMeasureInfo=oa(t),s=o.asciiCharWidth;i.placeholder=K(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=fa(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 dc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=fa(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?fc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=fa(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function fc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=da(n,e.charCodeAt(i));return i}function pc(e,t,n,r){var i=Ec(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=_a(l),f=K(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?Sc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
6
- `):[],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=uc(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)dc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=oa(l),S=0;S<_.length;S++)w=Math.max(fa(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 mc=function(){function e(){}return e}(),hc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),gc=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 _c(e,t,n,r,i){var a=new gc,o=Ec(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=cc.lastIndex=0,h;(h=cc.exec(o))!=null;){var g=h.index;g>m&&vc(a,o.substring(m,g),t,p),vc(a,h[2],t,p,h[1]),m=cc.lastIndex}m<o.length&&vc(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,te=k.font=A.font||t.font;k.contentHeight=_a(te);var ne=K(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=be(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var M=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<M;break outer}var N=A.width,P=N==null||N===`auto`;if(typeof N==`string`&&N.charAt(N.length-1)===`%`)k.percentWidth=N,_.push(k),k.contentWidth=fa(oa(te),k.text);else{if(P){var re=A.backgroundColor,F=re&&re.image;F&&(F=ic(F),sc(F)&&(k.width=Math.max(k.width,F.width*ne/F.height)))}var I=b&&u!=null?u-D:null;I!=null&&I<k.width?!P||I<ee?(k.text=``,k.width=k.contentWidth=0):(lc(S,k.text,I-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=fa(oa(te),k.text)):k.contentWidth=fa(oa(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=K(u,y),a.outerHeight=a.height=K(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 vc(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=va(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
7
- `),l=!0),r.accumWidth=m}else{var h=Sc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
8
- `);for(var g=oa(c),_=0;_<u.length;_++){var v=u[_],y=new mc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:fa(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new hc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new hc([y]))}}function yc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var bc=z(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function xc(e){return!yc(e)||!!bc[e]}function Sc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=oa(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
9
- `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=da(d,p.charCodeAt(0)),h=!r&&!xc(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 Cc(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;Y.set(wc,ha(n,o,i),ga(r,s,a),o,s),Y.intersect(t,wc,null,Tc);var c=Tc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ha(c.x,c.width,i,!0),e.baseY=ga(c.y,c.height,a,!0)}}var wc=new Y(0,0,0,0),Tc={outIntersectRect:{},clamp:!0};function Ec(e){return e==null?e=``:e+=``}function Dc(e){var t=Ec(e.text),n=e.font;return Oc(e,fa(oa(n),t),_a(n),null)}function Oc(e,t,n,r){var i=new Y(ha(e.x||0,t,e.textAlign),ga(e.y||0,n,e.textBaseline),t,n),a=r??(kc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function kc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Ac=`__zr_style_`+Math.round(Math.random()*10),jc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Mc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jc[Ac]=!0;var Nc=[`z`,`z2`,`invisible`],Pc=[`invisible`],Fc=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=V(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&&Rc(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 Y(0,0,0,0),t?Y.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 Y(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:P(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 Me(jc,e)},t.prototype.useStyle=function(e){e[Ac]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Ac]},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,Nc)},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=V(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=V(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?Pc:Nc,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 P(e,t),e},t.prototype.getAnimationStyleProps=function(){return Mc},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}(Ea),Ic=new Y(0,0,0,0),Lc=new Y(0,0,0,0);function Rc(e,t,n){return Ic.copy(e.getBoundingRect()),e.transform&&Ic.applyTransform(e.transform),Lc.width=t,Lc.height=n,!Ic.intersect(Lc)}var zc=Math.min,Bc=Math.max,Vc=Math.sin,Hc=Math.cos,Uc=Math.PI*2,Wc=Ie(),Gc=Ie(),Kc=Ie();function qc(e,t,n,r,i,a){i[0]=zc(e,n),i[1]=zc(t,r),a[0]=Bc(e,n),a[1]=Bc(t,r)}var Jc=[],Yc=[];function Xc(e,t,n,r,i,a,o,s,c,l){var u=Jn,d=Gn,f=u(e,n,i,o,Jc);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,Jc[p]);c[0]=zc(m,c[0]),l[0]=Bc(m,l[0])}f=u(t,r,a,s,Yc);for(var p=0;p<f;p++){var h=d(t,r,a,s,Yc[p]);c[1]=zc(h,c[1]),l[1]=Bc(h,l[1])}c[0]=zc(e,c[0]),l[0]=Bc(e,l[0]),c[0]=zc(o,c[0]),l[0]=Bc(o,l[0]),c[1]=zc(t,c[1]),l[1]=Bc(t,l[1]),c[1]=zc(s,c[1]),l[1]=Bc(s,l[1])}function Zc(e,t,n,r,i,a,o,s){var c=tr,l=Qn,u=Bc(zc(c(e,n,i),1),0),d=Bc(zc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=zc(e,i,f),o[1]=zc(t,a,p),s[0]=Bc(e,i,f),s[1]=Bc(t,a,p)}function Qc(e,t,n,r,i,a,o,s,c){var l=Xe,u=Ze,d=Math.abs(i-a);if(d%Uc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Wc[0]=Hc(i)*n+e,Wc[1]=Vc(i)*r+t,Gc[0]=Hc(a)*n+e,Gc[1]=Vc(a)*r+t,l(s,Wc,Gc),u(c,Wc,Gc),i%=Uc,i<0&&(i+=Uc),a%=Uc,a<0&&(a+=Uc),i>a&&!o?a+=Uc:i<a&&o&&(i+=Uc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Kc[0]=Hc(p)*n+e,Kc[1]=Vc(p)*r+t,l(s,Kc,s),u(c,Kc,c))}var $c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},el=[],tl=[],nl=[],rl=[],il=[],al=[],ol=Math.min,sl=Math.max,cl=Math.cos,ll=Math.sin,ul=Math.abs,dl=Math.PI,fl=dl*2,pl=typeof Float32Array<`u`,ml=[];function hl(e){return Math.round(e/dl*1e8)/1e8%2*dl}function gl(e,t){var n=hl(e[0]);n<0&&(n+=fl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=fl?i=n+fl:t&&n-i>=fl?i=n-fl:!t&&n>i?i=n+(fl-hl(n-i)):t&&n<i&&(i=n-(fl-hl(i-n))),e[0]=n,e[1]=i}var _l=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=ul(n/Wi/e)||0,this._uy=ul(n/Wi/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($c.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=ul(e-this._xi),r=ul(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData($c.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($c.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($c.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(),ml[0]=r,ml[1]=i,gl(ml,a),r=ml[0],i=ml[1];var o=i-r;return this.addData($c.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=cl(i)*n+e,this._yi=ll(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($c.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData($c.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)&&pl&&(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(pl&&(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,pl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){nl[0]=nl[1]=il[0]=il[1]=Number.MAX_VALUE,rl[0]=rl[1]=al[0]=al[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 $c.M:t=r=e[a++],n=i=e[a++],il[0]=r,il[1]=i,al[0]=r,al[1]=i;break;case $c.L:qc(t,n,e[a],e[a+1],il,al),t=e[a++],n=e[a++];break;case $c.C:Xc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],il,al),t=e[a++],n=e[a++];break;case $c.Q:Zc(t,n,e[a++],e[a++],e[a],e[a+1],il,al),t=e[a++],n=e[a++];break;case $c.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=cl(f)*u+c,i=ll(f)*d+l),Qc(c,l,u,d,f,p,m,il,al),t=cl(p)*u+c,n=ll(p)*d+l;break;case $c.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];qc(r,i,r+h,i+g,il,al);break;case $c.Z:t=r,n=i}Xe(nl,nl,il),Ze(rl,rl,al)}return a===0&&(nl[0]=nl[1]=rl[0]=rl[1]=0),new Y(nl[0],nl[1],rl[0]-nl[0],rl[1]-nl[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 $c.M:i=o=e[d++],a=s=e[d++];break;case $c.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(ul(_)>n||ul(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case $c.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Zn(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case $c.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ir(i,a,y,b,h,g,10),i=h,a=g;break;case $c.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=cl(D)*T+C,s=ll(D)*E+w),m=sl(T,E)*ol(fl,Math.abs(O)),i=cl(k)*T+C,a=ll(k)*E+w;break;case $c.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case $c.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!==$c.L&&v>0&&(e.lineTo(y,b),v=0),S){case $c.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case $c.L:u=n[x++],d=n[x++];var w=ul(u-c),T=ul(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 $c.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Yn(c,k,j,te,D,el),Yn(l,A,ee,ne,D,tl),e.bezierCurveTo(el[1],tl[1],el[2],tl[2],el[3],tl[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case $c.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;nr(c,k,j,D,el),nr(l,A,ee,D,tl),e.quadraticCurveTo(el[1],tl[1],el[2],tl[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case $c.A:var M=n[x++],N=n[x++],P=n[x++],re=n[x++],F=n[x++],I=n[x++],ie=n[x++],ae=!n[x++],oe=P>re?P:re,L=ul(P-re)>.001,R=F+I,z=!1;if(f){var E=p[g++];h+E>_&&(R=F+I*(_-h)/E,z=!0),h+=E}if(L&&e.ellipse?e.ellipse(M,N,P,re,ie,F,R,ae):e.arc(M,N,oe,F,R,ae),z)break lo;C&&(o=cl(F)*P+M,s=ll(F)*re+N),c=cl(R)*P+M,l=ll(R)*re+N;break;case $c.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],se=n[x++];if(f){var E=p[g++];if(h+E>_){var V=_-h;e.moveTo(u,d),e.lineTo(u+ol(V,B),d),V-=B,V>0&&e.lineTo(u+B,d+ol(V,se)),V-=se,V>0&&e.lineTo(u+sl(B-V,0),d+se),V-=B,V>0&&e.lineTo(u,d+sl(se-V,0));break lo}h+=E}e.rect(u,d,B,se);break;case $c.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=$c,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function vl(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 yl(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:Xn(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function bl(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:rr(e,t,n,r,i,a,s,c,null)<=l/2}var xl=Math.PI*2;function Sl(e){return e%=xl,e<0&&(e+=xl),e}var Cl=Math.PI*2;function wl(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)%Cl<1e-4)return!0;if(a){var d=r;r=Sl(i),i=Sl(d)}else r=Sl(r),i=Sl(i);r>i&&(i+=Cl);var f=Math.atan2(c,s);return f<0&&(f+=Cl),f>=r&&f<=i||f+Cl>=r&&f+Cl<=i}function Tl(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 El=_l.CMD,Dl=Math.PI*2,Ol=1e-4;function kl(e,t){return Math.abs(e-t)<Ol}var Al=[-1,-1,-1],jl=[-1,-1];function Ml(){var e=jl[0];jl[0]=jl[1],jl[1]=e}function Nl(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=qn(t,r,a,s,l,Al);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Al[h],_=g===0||g===1?.5:1;Gn(e,n,i,o,g)<c||(f<0&&(f=Jn(t,r,a,s,jl),jl[1]<jl[0]&&f>1&&Ml(),p=Gn(t,r,a,s,jl[0]),f>1&&(m=Gn(t,r,a,s,jl[1]))),f===2?g<jl[0]?d+=p<t?_:-_:g<jl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<jl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Pl(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=er(t,r,a,s,Al);if(c===0)return 0;var l=tr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Qn(t,r,a,l),f=0;f<c;f++){var p=Al[f]===0||Al[f]===1?.5:1,m=Qn(e,n,i,Al[f]);m<o||(Al[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Al[0]===0||Al[0]===1?.5:1,m=Qn(e,n,i,Al[0]);return m<o?0:a<t?p:-p}function Fl(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);Al[0]=-c,Al[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Dl-1e-4){r=0,i=Dl;var u=a?1:-1;return o>=Al[0]+e&&o<=Al[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Dl,i+=Dl);for(var f=0,p=0;p<2;p++){var m=Al[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Dl+h),(h>=r&&h<=i||h+Dl>=r&&h+Dl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Il(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===El.M&&m>1&&(n||(s+=Tl(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case El.M:u=a[m++],d=a[m++],c=u,l=d;break;case El.L:if(n){if(vl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Tl(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case El.C:if(n){if(yl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Nl(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 El.Q:if(n){if(bl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Pl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case El.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+=Tl(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(wl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Fl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case El.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(vl(u,d,f,d,t,r,i)||vl(f,d,f,p,t,r,i)||vl(f,p,u,p,t,r,i)||vl(u,p,u,d,t,r,i))return!0}else s+=Tl(f,d,f,p,r,i),s+=Tl(u,p,u,d,r,i);break;case El.Z:if(n){if(vl(c,l,u,d,t,r,i))return!0}else s+=Tl(c,l,u,d,r,i);c=u,l=d}}return!n&&!kl(l,d)&&(s+=Tl(c,l,u,d,r,i)||0),s!==0}function Ll(e,t,n){return Il(e,0,!1,t,n)}function Rl(e,t,n,r){return Il(e,t,!0,n,r)}var zl=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jc),Bl={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mc.style)},Vl=ia.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Hl=function(e){l(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<Vl.length;++s)i[Vl[s]]=this[Vl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=V(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?P(this.style,o):this.useStyle(o):a===`shape`?P(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(W(e)){var t=kr(e,0);return t>.5?Ki:t>.2?Ji:qi}if(e)return qi}return Ki},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==kr(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 _l(!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)),Rl(a,o/s,e,t)))return!0}if(this.hasFill())return Ll(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:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Me(zl,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},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=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=P({},this.shape);for(var l={},u=V(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 Bl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){l(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 M(e.style)},n.prototype.getDefaultShape=function(){return M(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);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}(Fc),Ul=F({strokeFirst:!0,font:p,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},zl),Wl=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return kc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Me(Ul,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Dc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Fc);Wl.prototype.type=`tspan`;var Gl=F({x:0,y:0},jc),Kl={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mc.style)};function ql(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Jl=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Me(Gl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=ql(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 Kl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Fc);Jl.prototype.type=`image`;function Yl(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 Xl=Math.round;function Zl(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?(Xl(r*2)===Xl(i*2)&&(e.x1=e.x2=$l(r,s,!0)),Xl(a*2)===Xl(o*2)&&(e.y1=e.y2=$l(a,s,!0)),e):e}}function Ql(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=$l(r,s,!0),e.y=$l(i,s,!0),e.width=Math.max($l(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max($l(i+o,s,!1)-e.y,o===0?0:1),e):e}}function $l(e,t,n){if(!t)return e;var r=Xl(e*2);return(r+Xl(t))%2==0?r/2:(r+(n?1:-1))/2}var eu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tu={},nu=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new eu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Ql(tu,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?Yl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Hl);nu.prototype.type=`rect`;var ru={fill:`#000`},iu=2,au={},ou={style:F({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},Mc.style)},su=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ru,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,mu(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 Y(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||ru},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 P(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=V(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},P(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ou},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`;Cc(au,r.overflowRect,i,a,o,s),i=au.baseX,a=au.baseY;var c=pc(yu(e),e,au.outerWidth,au.outerHeight),l=bu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=ga(a,c.contentHeight,s);if(l||n){var _=ha(i,f,o),v=ga(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=vu(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=_u(`fill`in e?e.fill:(x=!0,r.fill)),C=gu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=iu,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Wl),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,fu(D,e),g+=m,E.setBoundingRect(Oc(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;Cc(au,t.overflowRect,i,a,n,r),i=au.baseX,a=au.baseY;var o=_c(yu(e),e,au.outerWidth,au.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ha(i,c,n),f=ga(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;bu(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&&bu(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=vu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Wl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=_u(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=gu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=iu,_=!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=be(s.opacity,t.opacity,1),fu(p,s),y&&(p.lineWidth=be(s.lineWidth,t.lineWidth,g),p.lineDash=K(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Oc(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(nu),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=K(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Jl),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=K(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=be(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return pu(e)&&(t=[e.fontStyle,e.fontWeight,du(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ce(t)||e.textFont||e.font},t}(Fc),cu={left:!0,right:1,center:1},lu={top:1,bottom:1,middle:1},uu=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function du(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function fu(e,t){for(var n=0;n<uu.length;n++){var r=uu[n],i=t[r];i!=null&&(e[r]=i)}}function pu(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function mu(e){return hu(e),L(e.rich,hu),e}function hu(e){if(e){e.font=su.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||cu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||lu[n]?n:`top`,e.padding&&=Se(e.padding)}}function gu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function _u(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function vu(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function yu(e){var t=e.text;return t!=null&&(t+=``),t}function bu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var xu=ps(),Su=function(e,t,n,r){if(r){var i=xu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=xu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Cu=J([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),wu=`original`,Tu=`arrayRows`,Eu=`objectRows`,Du=`keyedColumns`,Ou=`typedArray`,ku=`unknown`,Au=`column`,ju=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Mu=function(){function e(e){L(ju,function(t){this[t]=le(e[t],e)},this)}return e}();function Nu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Pu=1,Fu={},Iu=ps(),Lu=ps(),Ru=[`emphasis`,`blur`,`select`],zu=[`normal`,`emphasis`,`blur`,`select`],Bu=`highlight`,Vu=`downplay`,Hu=`select`,Uu=`unselect`,Wu=`toggleSelect`,Gu=`selectchanged`;function Ku(e){return e!=null&&e!==`none`}function qu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Ju(e){qu(e,`emphasis`,2)}function Yu(e){e.hoverState===2&&qu(e,`normal`,0)}function Xu(e){qu(e,`blur`,1)}function Zu(e){e.hoverState===1&&qu(e,`normal`,0)}function Qu(e){e.selected=!0}function $u(e){e.selected=!1}function ed(e,t,n){t(e,n)}function td(e,t,n){ed(e,t,n),e.isGroup&&e.traverse(function(e){ed(e,t,n)})}function nd(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 rd(e,t,n,r){var i=n&&I(n,`select`)>=0,a=!1;if(e instanceof Hl){var o=Iu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Ku(s)||Ku(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!Ku(l.fill)&&Ku(s)?(a=!0,r=P({},r),l=P({},l),l.fill=jr(s)):!Ku(l.stroke)&&Ku(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=jr(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function id(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function ad(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:nd(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function od(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return rd(this,e,t,n);if(e===`blur`)return ad(this,e,n);if(e===`select`)return id(this,e,n)}return n}function sd(e){e.stateProxy=od;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=od),n&&(n.stateProxy=od)}function cd(e,t){!gd(e,t)&&!e.__highByOuter&&td(e,Ju)}function ld(e,t){!gd(e,t)&&!e.__highByOuter&&td(e,Yu)}function ud(e,t){e.__highByOuter|=1<<(t||0),td(e,Ju)}function dd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&td(e,Yu)}function fd(e){td(e,Xu)}function pd(e){td(e,Zu)}function md(e){td(e,Qu)}function hd(e){td(e,$u)}function gd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function _d(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Lu(i),o=Nu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Zu(e)}),s&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function vd(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&&pd(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`||Xu(e)}),oe(t))a(e.getData(),t);else if(G(t))for(var u=V(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Lu(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 yd(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Lu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Xu(e)})}}}function bd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&Z(`Unknown dataType `+t.dataType);return}var a=fs(i,t);a=(H(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=xu(o);vd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&vd(r,u,d,n)}}function xd(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`&&!Fd(s[l])&&Z(`param should be highDownDispatcher`),xu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Sd(e,t,n){process.env.NODE_ENV!==`production`&&!Fd(e)&&Z(`param should be highDownDispatcher`);var r=xu(e),i=xd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&yd(r.componentMainType,r.componentIndex,n),L(a,function(e){return cd(e,t)})):(vd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&yd(r.componentMainType,r.componentIndex,n),cd(e,t))}function Cd(e,t,n){process.env.NODE_ENV!==`production`&&!Fd(e)&&Z(`param should be highDownDispatcher`),_d(n);var r=xu(e),i=xd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,function(e){return ld(e,t)}):ld(e,t)}function wd(e,t,n){if(Ld(t)){var r=t.dataType,i=fs(e.getData(r),t);H(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Td(e){L(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?md(t):hd(t)})})}function Ed(e){var t=[];return e.eachSeries(function(e){L(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 Dd(e,t,n){Pd(e,!0),td(e,sd),Ad(e,t,n)}function Od(e){Pd(e,!1)}function kd(e,t,n,r){r?Od(e):Dd(e,t,n)}function Ad(e,t,n){var r=xu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var jd=[`emphasis`,`blur`,`select`],Md={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Nd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<jd.length;i++){var a=jd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Md[n]]()}}function Pd(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 Fd(e){return!!(e&&e.__highDownDispatcher)}function Id(e){var t=Fu[e];return t==null&&Pu<=32&&(t=Fu[e]=Pu++),t}function Ld(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Rd(e){var t=e.type;return t===`highlight`||t===`downplay`}function zd(e){var t=Iu(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 Bd=_l.CMD,Vd=[[],[],[]],Hd=Math.sqrt,Ud=Math.atan2;function Wd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Bd.M,d=Bd.C,f=Bd.L,p=Bd.R,m=Bd.A,h=Bd.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=Hd(t[0]*t[0]+t[1]*t[1]),y=Hd(t[2]*t[2]+t[3]*t[3]),b=Ud(-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++],Ye(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Ye(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Vd[c];x[0]=n[o++],x[1]=n[o++],Ye(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Gd=Math.sqrt,Kd=Math.sin,qd=Math.cos,Jd=Math.PI;function Yd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Xd(e,t){return(e[0]*t[0]+e[1]*t[1])/(Yd(e)*Yd(t))}function Zd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Xd(e,t))}function Qd(e,t,n,r,i,a,o,s,c,l,u){var d=Jd/180*c,f=qd(d)*(e-n)/2+Kd(d)*(t-r)/2,p=-1*Kd(d)*(e-n)/2+qd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Gd(m),s*=Gd(m));var h=(i===a?-1:1)*Gd((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+qd(d)*g-Kd(d)*_,y=(t+r)/2+Kd(d)*g+qd(d)*_,b=Zd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Zd(x,S);if(Xd(x,S)<=-1&&(C=Jd),Xd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Jd*1e6)/1e6;C=Jd*2+w%2*Jd}u.addData(l,v,y,o,s,b,C,d,a)}var $d=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ef=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function tf(e){var t=new _l;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=_l.CMD,c=e.match($d);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(ef)||[],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,Qd(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,Qd(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 nf=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Hl);function rf(e){return e.setData!=null}function af(e,t){var n=tf(e),r=P({},t);return r.buildPath=function(e){var t=rf(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){Wd(n,e),this.dirtyShape()},r}function of(e,t){return new nf(af(e,t))}function sf(e,t){var n=af(e,t);return function(e){l(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(nf)}function cf(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 Hl(t);return o.createPathProxy(),o.buildPath=function(e){if(rf(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var lf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),uf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new lf},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}(Hl);uf.prototype.type=`circle`;var df=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),ff=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new df},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}(Hl);ff.prototype.type=`ellipse`;var pf=Math.PI,mf=pf*2,hf=Math.sin,gf=Math.cos,_f=Math.acos,vf=Math.atan2,yf=Math.abs,bf=Math.sqrt,xf=Math.max,Sf=Math.min,Cf=1e-4;function wf(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<Cf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Tf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/bf(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)*bf(xf(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 Ef(e){var t;if(H(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 Df(e,t){var n,r=xf(t.r,0),i=xf(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=yf(c-s),p=f>mf&&f%mf;if(p>Cf&&(f=p),!(r>Cf))e.moveTo(l,u);else if(f>mf-Cf)e.moveTo(l+r*gf(s),u+r*hf(s)),e.arc(l,u,r,s,c,!d),i>Cf&&(e.moveTo(l+i*gf(c),u+i*hf(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*gf(s),j=r*hf(s),ee=i*gf(c),te=i*hf(c),ne=f>Cf;if(ne){var M=t.cornerRadius;M&&(n=Ef(M),m=n[0],h=n[1],g=n[2],_=n[3]);var N=yf(r-i)/2;if(v=Sf(N,g),y=Sf(N,_),b=Sf(N,m),x=Sf(N,h),w=S=xf(v,y),T=C=xf(b,x),(S>Cf||C>Cf)&&(E=r*gf(c),D=r*hf(c),O=i*gf(s),k=i*hf(s),f<pf)){var P=wf(A,j,O,k,E,D,ee,te);if(P){var re=A-P[0],F=j-P[1],I=E-P[0],ie=D-P[1],ae=1/hf(_f((re*I+F*ie)/(bf(re*re+F*F)*bf(I*I+ie*ie)))/2),oe=bf(P[0]*P[0]+P[1]*P[1]);w=Sf(S,(r-oe)/(ae+1)),T=Sf(C,(i-oe)/(ae-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>Cf){var L=Sf(g,w),R=Sf(_,w),z=Tf(O,k,A,j,r,L,d),B=Tf(E,D,ee,te,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&L===R?e.arc(l+z.cx,u+z.cy,w,vf(z.y0,z.x0),vf(B.y0,B.x0),!d):(L>0&&e.arc(l+z.cx,u+z.cy,L,vf(z.y0,z.x0),vf(z.y1,z.x1),!d),e.arc(l,u,r,vf(z.cy+z.y1,z.cx+z.x1),vf(B.cy+B.y1,B.cx+B.x1),!d),R>0&&e.arc(l+B.cx,u+B.cy,R,vf(B.y1,B.x1),vf(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Cf)||!ne)e.lineTo(l+ee,u+te);else if(T>Cf){var L=Sf(m,T),R=Sf(h,T),z=Tf(ee,te,E,D,i,-R,d),B=Tf(A,j,O,k,i,-L,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&L===R?e.arc(l+z.cx,u+z.cy,T,vf(z.y0,z.x0),vf(B.y0,B.x0),!d):(R>0&&e.arc(l+z.cx,u+z.cy,R,vf(z.y0,z.x0),vf(z.y1,z.x1),!d),e.arc(l,u,i,vf(z.cy+z.y1,z.cx+z.x1),vf(B.cy+B.y1,B.cx+B.x1),d),L>0&&e.arc(l+B.cx,u+B.cy,L,vf(B.y1,B.x1),vf(B.y0,B.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Of=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}(),kf=function(e){l(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)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Hl);kf.prototype.type=`sector`;var Af=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),jf=function(e){l(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=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}(Hl);jf.prototype.type=`ring`;function Mf(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++)Xe(u,u,e[f]),Ze(d,d,e[f]);Xe(u,u,r[0]),Ze(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(Le(e[f]));continue}else c=e[f-1],l=e[f+1];Be(a,l,c),Ue(a,a,t);var h=Ge(m,c),g=Ge(m,l),_=h+g;_!==0&&(h/=_,g/=_),Ue(o,a,-h),Ue(s,a,g);var v=ze([],m,o),y=ze([],m,s);r&&(Ze(v,v,u),Xe(v,v,d),Ze(y,y,u),Xe(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Nf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Mf(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 Pf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ff=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Pf},t.prototype.buildPath=function(e,t){Nf(e,t,!0)},t}(Hl);Ff.prototype.type=`polygon`;var If=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Lf=function(e){l(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){Nf(e,t,!1)},t}(Hl);Lf.prototype.type=`polyline`;var Rf={},zf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Bf=function(e){l(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,r,i,a;if(this.subPixelOptimize){var o=Zl(Rf,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}(Hl);Bf.prototype.type=`line`;var Vf=[],Hf=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 Uf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Kn:Gn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Kn:Gn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?$n:Qn)(e.x1,e.cpx1,e.x2,t),(n?$n:Qn)(e.y1,e.cpy1,e.y2,t)]}var Wf=function(e){l(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 Hf},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&&(nr(n,o,i,u,Vf),o=Vf[1],i=Vf[2],nr(r,s,a,u,Vf),s=Vf[1],a=Vf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Yn(n,o,c,i,u,Vf),o=Vf[1],c=Vf[2],i=Vf[3],Yn(r,s,l,a,u,Vf),s=Vf[1],l=Vf[2],a=Vf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Uf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Uf(this.shape,e,!0);return We(t,t)},t}(Hl);Wf.prototype.type=`bezier-curve`;var Gf=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}(),Kf=function(e){l(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 Gf},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}(Hl);Kf.prototype.type=`arc`;var qf=function(e){l(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),Hl.prototype.getBoundingRect.call(this)},t}(Hl),Jf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Yf=function(e){l(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}(Jf),Xf=function(e){l(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}(Jf),Zf=Math.min,Qf=Math.max,$f=Math.abs,ep=[0,0],tp=[0,0],np=on(),rp=np.minTv,ip=np.maxTv,ap=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),np.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!np.negativeSize&&Rt.copy(t,r?np.useDir?np.dirMinTv:rp:ip),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,ep),e._getProjMinMaxOnAxis(a,t._corners,tp),np.negativeSize||ep[1]<tp[0]||ep[0]>tp[1]){if(i=!1,np.negativeSize||n)return i;var s=$f(tp[0]-ep[1]),c=$f(ep[0]-tp[1]);Zf(s,c)>ip.len()&&(s<c?Rt.scale(ip,o,-s*r):Rt.scale(ip,o,c*r))}else if(!n){var s=$f(tp[0]-ep[1]),c=$f(ep[0]-tp[1]);(np.useDir||Zf(s,c)<rp.len())&&((s<c||!np.bidirectional)&&(Rt.scale(rp,o,s*r),np.useDir&&np.calcDirMTV()),(s>=c||!np.bidirectional)&&(Rt.scale(rp,o,-c*r),np.useDir&&np.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=Zf(l,o),s=Qf(l,s)}n[0]=o+np.touchThreshold,n[1]=s-np.touchThreshold,np.negativeSize=n[1]<n[0]},e}(),op=[],sp=function(e){l(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 Y(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(op)),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}(Fc),cp=ps();function lp(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=K(r.duration,200),u=K(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)),U(d)&&(d=d(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function up(e,t,n,r,i,a,o){var s=!1,c;U(i)?(o=a,a=i,i=null):G(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=lp(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 dp(e,t,n,r,i,a){up(`update`,e,t,n,r,i,a)}function fp(e,t,n,r,i,a){up(`enter`,e,t,n,r,i,a)}function pp(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 mp(e,t,n,r,i,a){pp(e)||up(`leave`,e,t,n,r,i,a)}function hp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),mp(e,{style:{opacity:0}},t,n,r)}function gp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||hp(e,t,n,r)}):hp(e,t,n,r)}function _p(e){cp(e).oldStyle=e.style}var vp=t({Arc:()=>Kf,BezierCurve:()=>Wf,BoundingRect:()=>Y,Circle:()=>uf,CompoundPath:()=>qf,Ellipse:()=>ff,Group:()=>La,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Jl,IncrementalDisplayable:()=>sp,Line:()=>Bf,LinearGradient:()=>Yf,OrientedBoundingRect:()=>ap,Path:()=>Hl,Point:()=>Rt,Polygon:()=>Ff,Polyline:()=>Lf,RadialGradient:()=>Xf,Rect:()=>nu,Ring:()=>jf,Sector:()=>kf,Text:()=>su,WH:()=>xp,XY:()=>bp,applyTransform:()=>Ip,calcZ2Range:()=>am,clipPointsByRect:()=>Vp,clipRectByRect:()=>Hp,createIcon:()=>Up,decomposeTransform:()=>lm,ensureCopyRect:()=>nm,ensureCopyTransform:()=>rm,expandOrShrinkRect:()=>Jp,extendPath:()=>wp,extendShape:()=>Sp,getCurrentCanvasPainter:()=>dm,getShapeClass:()=>Ep,getTransform:()=>Fp,groupTransition:()=>Bp,initProps:()=>fp,isBoundingRectAxisAligned:()=>em,isElementRemoved:()=>pp,lineLineIntersect:()=>Gp,linePolygonIntersect:()=>Wp,makeImage:()=>Op,makePath:()=>Dp,mergePath:()=>Ap,payloadDisableAnimation:()=>cm,registerShape:()=>Tp,removeElement:()=>mp,removeElementWithFadeOut:()=>gp,resizePath:()=>jp,retrieveZInfo:()=>im,setTooltipConfig:()=>Zp,subPixelOptimize:()=>Pp,subPixelOptimizeLine:()=>Mp,subPixelOptimizeRect:()=>Np,transformDirection:()=>Lp,traverseElements:()=>$p,traverseUpdateZ:()=>om,updateProps:()=>dp}),yp={},bp=[`x`,`y`],xp=[`width`,`height`];function Sp(e){return Hl.extend(e)}var Cp=sf;function wp(e,t){return Cp(e,t)}function Tp(e,t){yp[e]=t}function Ep(e){if(yp.hasOwnProperty(e))return yp[e]}function Dp(e,t,n,r){var i=of(e,t);return n&&(r===`center`&&(n=kp(n,i.getBoundingRect())),jp(i,n)),i}function Op(e,t,n){var r=new Jl({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(kp(t,i))}}});return r}function kp(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 Ap=cf;function jp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Mp(e,t){return Zl(e,e,{lineWidth:t}),e}function Np(e,t){return Ql(e,e,t),e}var Pp=$l;function Fp(e,t){for(var n=jt([]);e&&e!==t;)Nt(n,e.getLocalTransform(),n),e=e.parent;return n}function Ip(e,t,n){return t&&!oe(t)&&(t=na.getLocalTransform(t)),n&&(t=Lt([],t)),Ye([],e,t)}function Lp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Qa(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Qa(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Ip(a,t,n),Qa(a[0])>Qa(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Rp(e){return!e.isGroup}function zp(e){return e.shape!=null}function Bp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Rp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return zp(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Rp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),dp(e,r,n,xu(e).dataIndex)}}})}function Vp(e,t){return R(e,function(e){var n=e[0];n=X(n,t.x),n=Za(n,t.x+t.width);var r=e[1];return r=X(r,t.y),r=Za(r,t.y+t.height),[n,r]})}function Hp(e,t){var n=X(e.x,t.x),r=Za(e.x+e.width,t.x+t.width),i=X(e.y,t.y),a=Za(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 Up(e,t,n){var r=P({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),F(i,n),new Jl(r)):Dp(e.replace(`path://`,``),r,n,`center`)}function Wp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Gp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Gp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Kp(u,d,c,l);if(qp(f))return!1;var p=e-i,m=t-a,h=Kp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Kp(p,m,u,d)/f;return!(g<0||g>1)}function Kp(e,t,n,r){return e*r-n*t}function qp(e){return e<=1e-6&&e>=-1e-6}function Jp(e,t,n,r,i){return t==null?e:(fe(t)?Yp[0]=Yp[1]=Yp[2]=Yp[3]=t:(process.env.NODE_ENV!==`production`&&q(t.length===4),Yp[0]=t[0],Yp[1]=t[1],Yp[2]=t[2],Yp[3]=t[3]),r&&(Yp[0]=X(0,Yp[0]),Yp[1]=X(0,Yp[1]),Yp[2]=X(0,Yp[2]),Yp[3]=X(0,Yp[3])),n&&(Yp[0]=-Yp[0],Yp[1]=-Yp[1],Yp[2]=-Yp[2],Yp[3]=-Yp[3]),Xp(e,Yp,`x`,`width`,3,1,i&&i[0]||0),Xp(e,Yp,`y`,`height`,0,2,i&&i[1]||0),e)}var Yp=[0,0,0,0];function Xp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=X(0,Za(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Qa(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Zp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(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&&L(V(c),function(e){Ne(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=xu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Qp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function $p(e,t){if(e){if(H(e))for(var n=0;n<e.length;n++)Qp(e[n],t);else Qp(e,t)}}function em(e){return!e||Qa(e[1])<tm&&Qa(e[2])<tm||Qa(e[0])<tm&&Qa(e[3])<tm}var tm=1e-5;function nm(e,t){return e?Y.copy(e,t):t.clone()}function rm(e,t){return t?Mt(e||At(),t):void 0}function im(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function am(e){var t=-1/0,n=1/0;Qp(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 om(e,t,n){sm(e,t,n,-1/0)}function sm(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=X(sm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=X(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 cm(e){return e.animation={duration:0},e}function lm(e,t){return t?Mt(um.transform,t):jt(um.transform),um.decomposeTransform(),aa(e,um),e}var um=new na;um.transform=At();function dm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Tp(`circle`,uf),Tp(`ellipse`,ff),Tp(`sector`,kf),Tp(`ring`,jf),Tp(`polygon`,Ff),Tp(`polyline`,Lf),Tp(`rect`,nu),Tp(`line`,Bf),Tp(`bezierCurve`,Wf),Tp(`arc`,Kf);var fm={};function pm(e,t){for(var n=0;n<Ru.length;n++){var r=Ru[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 mm(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??=U(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Ru.length;l++){var u=Ru[l],d=t[u];c[u]=K(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function hm(e,t,n,r){n||=fm;for(var i=e instanceof su,a=!1,o=0;o<zu.length;o++){var s=t[zu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new su,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=mm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=_m(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(vm(u,n,!1));for(var o=0;o<Ru.length;o++){var p=Ru[o],s=t[p];if(s){var m=c.ensureState(p),h=!!K(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=_m(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=vm(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&&(Em(c).setLabelText=function(e){var r=mm(n,t,e);pm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function gm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Ru.length;r++){var i=Ru[r];n[i]=e.getModel([i,t])}return n}function _m(e,t,n,r,i){var a={};return ym(a,e,n,r,i),t&&P(a,t),a}function vm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=K(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 ym(e,t,n,r,i){n||=fm;var a=t.ecModel,o=a&&a.option.textStyle,s=bm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=K(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);wm(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=fe(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Om.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Se(_),h.__marginType=Om.textMargin)}wm(e,t,o,null,null,n,r,i,!0,!1)}function bm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||fm).rich;if(n){t||={};for(var r=V(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var xm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Sm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Cm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function wm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||fm;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=K(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&Bo(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&Bo(`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=K(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=K(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=K(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;_<xm.length;_++){var v=xm[_],y=i!==!1&&r?be(t.getShallow(v),r.getShallow(v),n[v]):K(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Sm.length;_++){var v=Sm[_],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;_<Cm.length;_++){var v=Cm[_],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`&&Bo(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&Bo(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function Tm(e,t){var n=t&&t.getModel(`textStyle`);return Ce([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 Em=ps();function Dm(e,t,n,r){if(e){var i=Em(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)}}var Om={minMargin:1,textMargin:2},km=[`textStyle`,`color`],Am=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],jm=new su,Mm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(km):null)},e.prototype.getFont=function(){return Tm({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<Am.length;n++)t[Am[n]]=this.getShallow(Am[n]);return jm.useStyle(t),jm.update(),jm.getBoundingRect()},e}(),Nm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Pm=ec(Nm),Fm=function(){function e(){}return e.prototype.getLineStyle=function(e){return Pm(this,e)},e}(),Im=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Lm=ec(Im),Rm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Lm(this,e,t)},e}(),zm=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){N(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(M(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(!d.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}();Ks(zm),Xs(zm),ae(zm,Fm),ae(zm,Rm),ae(zm,nc),ae(zm,Mm);var Bm=Math.round(Math.random()*10);function Vm(e){return[e||``,Bm++].join(`_`)}function Hm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Us(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Us(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Um(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(L(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]),L(u.successor,d?p:f)}L(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Vo(`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 L(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),L(c,function(e){I(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);I(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 L(e,function(e){I(t,e)>=0&&n.push(e)}),n}}function Wm(e,t){return N(N({},e,!0),t,!0)}var Gm={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:`. `}}}},Km={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:``}}}},qm=`ZH`,Jm=`EN`,Ym=Jm,Xm={},Zm={},Qm=d.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ym).toUpperCase().indexOf(qm)>-1?qm:Ym}():Ym;function $m(e,t){e=e.toUpperCase(),Zm[e]=new zm(t),Xm[e]=t}function eh(e){if(W(e)){var t=Xm[e.toUpperCase()]||{};return e===qm||e===Jm?M(t):N(M(t),M(Xm[Ym]),!1)}return N(M(e),M(Xm[Ym]),!1)}function th(e){return Zm[e]}function nh(){return Zm[Ym]}$m(Jm,Gm),$m(qm,Km);var rh=null;function ih(){return rh}function ah(e,t){var n=ih(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function oh(e){var t=e.brk;return t?t.breaks:[]}function sh(e){var t=e.brk;return t?t.hasBreaks():!1}var ch=1e3,lh=ch*60,uh=lh*60,dh=uh*24,fh=dh*365,ph={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})/},mh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},hh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,gh=`{yyyy}-{MM}-{dd}`,_h={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:gh,hour:gh+` `+mh.hour,minute:gh+` `+mh.minute,second:gh+` `+mh.second,millisecond:hh},vh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],yh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function bh(e){return!W(e)&&!U(e)?xh(e):e}function xh(e){e||={};var t={},n=!0;return L(vh,function(t){n&&=e[t]==null}),L(vh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=vh[s],l=G(a)&&!H(a)?a[c]:a,u=void 0;H(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=mh[r]:ph[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Sh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Ch(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 wh(e){return e===Ch(e)}function Th(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Eh(e,t,n,r){var i=Co(e),a=i[Ah(n)](),o=i[jh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Mh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Nh(n)](),d=(u-1)%12+1,f=i[Ph(n)](),p=i[Fh(n)](),m=i[Ih(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof zm?r:th(r||Qm)||nh()).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,Sh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Sh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Sh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Sh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Sh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Sh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Sh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Sh(m,3)).replace(/{S}/g,m+``)}function Dh(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0},s=ih();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=Oh(e.value,i);a=n[u][u][0]}}return Eh(new Date(e.value),a,i,r)}function Oh(e,t){var n=Co(e),r=n[jh(t)]()+1,i=n[Mh(t)](),a=n[Nh(t)](),o=n[Ph(t)](),s=n[Fh(t)](),c=n[Ih(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 kh(e,t,n){switch(t){case`year`:e[Rh(n)](0);case`month`:e[zh(n)](1);case`day`:e[Bh(n)](0);case`hour`:e[Vh(n)](0);case`minute`:e[Hh(n)](0);case`second`:e[Uh(n)](0)}return e}function Ah(e){return e?`getUTCFullYear`:`getFullYear`}function jh(e){return e?`getUTCMonth`:`getMonth`}function Mh(e){return e?`getUTCDate`:`getDate`}function Nh(e){return e?`getUTCHours`:`getHours`}function Ph(e){return e?`getUTCMinutes`:`getMinutes`}function Fh(e){return e?`getUTCSeconds`:`getSeconds`}function Ih(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Lh(e){return e?`setUTCFullYear`:`setFullYear`}function Rh(e){return e?`setUTCMonth`:`setMonth`}function zh(e){return e?`setUTCDate`:`setDate`}function Bh(e){return e?`setUTCHours`:`setHours`}function Vh(e){return e?`setUTCMinutes`:`setMinutes`}function Hh(e){return e?`setUTCSeconds`:`setSeconds`}function Uh(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Wh(e){if(!Oo(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Gh(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 Kh=Se;function qh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Ce(e)?e:`-`}function a(e){return Mo(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Co(e):e;if(!isNaN(+c))return Eh(c,r,n);if(s)return`-`}if(t===`ordinal`)return de(e)?i(e):fe(e)&&a(e)?e+``:`-`;var l=Do(e);return a(l)?Wh(l):de(e)?i(e):typeof e==`boolean`?e+``:`-`}var Jh=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Yh=function(e,t){return`{`+e+(t??``)+`}`};function Xh(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Jh[a];e=e.replace(Yh(o),Yh(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(Yh(Jh[c],s),n?mt(l):l)}return e}function Zh(e,t){var n=W(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:`+mt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+mt(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`,W(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var $h={},eg={},tg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n($h,!0),this._normalMasterList=n(eg,!1);function n(n,r){var i=[];return L(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&L(o,function(e){return q(!e.update)})}),i}},e.prototype.update=function(e,t){L(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`){$h[e]=t;return}eg[e]=t},e.get=function(e){return eg[e]||$h[e]},e}();function ng(e){return!!$h[e]}var rg=J();function ig(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=rg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function ag(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&&Z(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!ng(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&Z(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function og(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&q(!!n);var o=ag(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`&&q(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||Z(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var sg=L,cg=[`left`,`right`,`top`,`bottom`,`width`,`height`],lg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function ug(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)})}ue(ug,`vertical`),ue(ug,`horizontal`);function dg(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 fg(e,t,n){n=Kh(n||0);var r=t.width,i=t.height,a=co(e.left,r),o=co(e.top,i),s=co(e.right,r),c=co(e.bottom,i),l=co(e.width,r),u=co(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 Y((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=ig(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`&&Z(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){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function gg(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(lg[0],0),a=o(lg[1],1);c(lg[0],e,i),c(lg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(sg(n,function(t){c[t]=e[t]}),sg(n,function(e){Ne(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(!Ne(a,f)&&Ne(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){sg(e,function(e){t[e]=n[e]})}}function _g(e){return vg({},e)}function vg(e,t){return t&&e&&sg(cg,function(n){Ne(t,n)&&(e[n]=t[n])}),e}var yg=ps(),bg=function(e){l(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Vm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=hg(this),r=n?_g(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&gg(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=hg(this);n&&gg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Gs(e))return e.defaultOption;var t=yg(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=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return vs(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return dg(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}(zm);Js(bg,zm),$s(bg),Hm(bg),Um(bg,xg);function xg(e){var t=[];return L(bg.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Us(e).main}),e!==`dataset`&&I(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 P(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]=Dr(wg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Cg]=Dr(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=Dr(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=ps();function Mg(e){jg(e).datasetMap=J()}function Ng(e,t,n){var r={},i=Pg(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(),L(e,function(t,n){var i=G(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});L(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){if(!e.get(`data`,!0))return vs(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},_s).models[0]}function Fg(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:vs(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},_s).models}function Ig(e,t){return Lg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Lg(e,t,n,r,i,a){var o,s=5;if(me(e))return Ag.Not;var c,l;if(r){var u=r[a];G(u)?(c=u.name,l=u.type):W(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||me(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=Jo(g);if(!H(y))return Ag.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Ag.Might:Ag.Not;if(t&&e!==`-`)return Ag.Must}return Ag.Not}var Rg=J();function zg(e,t,n){var r=Rg.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++)q(ls(i[a]));return n.concat(i)}var Bg=ps();ps();var Vg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Go(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Ug(this,Bg,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Wg(this,Bg)},e}();function Hg(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 Ug(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:Hg(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 Wg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Gg,Kg,qg,Jg=`\0_ec_inner`,Yg=1,Xg={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`},Zg={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`},Qg={};function $g(e){L(e,function(e,t){if(!bg.hasClass(t)){var n=Xg[t];n&&!Qg[n]&&(Z(`Component `+t+` is used but not imported.
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require("react/jsx-runtime"),r=require("react");var i=({source:e=``,showSource:t=!0,showLogo:r=!0,logoSrc:i=``})=>!t&&!r?null:(0,n.jsxs)(`div`,{className:`ibc-footer`,children:[!t||!e?null:(0,n.jsxs)(`p`,{className:`ibc-footer-font`,children:[`Fuente: `,(0,n.jsx)(`span`,{children:e})]}),!r||!i?null:(0,n.jsx)(`img`,{className:`ibc-footer-logo`,src:i||`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`,alt:`Infobae`})]}),a=({color:e=`var(--gray-90)`})=>(0,n.jsx)(`svg`,{width:25,height:23,viewBox:`0 0 25 23`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M15.1484 18.209C16.2165 17.062 17.2844 15.9156 18.3525 14.7686C19.6733 13.3501 21.0013 11.9235 22.3223 10.5049C21.0337 9.12301 19.7399 7.73568 18.4463 6.34863C17.3459 5.16872 16.2458 3.98836 15.1484 2.81152V7.11133L15.0605 7.12207L13.7334 7.2832C13.2462 7.34244 12.7328 7.3756 12.3428 7.40918C11.9212 7.4455 11.5709 7.487 11.25 7.55957L11.249 7.55859L11.2188 7.56641L11.2139 7.56836V7.56738L11.1797 7.57422C6.97754 8.31826 3.54696 11.4713 2.3457 15.6885L2.33203 15.7441C2.04422 16.8005 1.87981 17.8793 1.8252 18.9707C2.122 18.5479 2.4433 18.1395 2.79492 17.749L2.80762 17.7363C5.6064 14.6866 9.60855 13.2162 13.625 13.6777H13.624C13.6309 13.6784 13.6373 13.6791 13.6406 13.6797C13.6426 13.68 13.6445 13.6805 13.6455 13.6807L13.7715 13.7002C14.0526 13.7561 14.2412 13.8734 14.2803 13.8965C14.3888 13.9606 14.4699 14.0248 14.5107 14.0586C14.5577 14.0974 14.5963 14.1335 14.6191 14.1553L14.6514 14.1865L14.6533 14.1875L14.5908 14.2471L14.5811 14.2568L14.6533 14.1885L14.6738 14.209H14.6729L15.1201 14.6709L15.1484 14.7002V18.209ZM24.2998 10.7754L24.2832 10.8008C24.095 11.0787 23.9061 11.3293 23.6904 11.5801L23.6875 11.583C20.9494 14.5235 18.2039 17.4716 15.4658 20.4121L15.374 20.5234C15.1464 20.7683 14.828 20.9048 14.4971 20.9043H14.4902V20.9033L14.3389 20.8926H14.332L14.3252 20.8906C13.7676 20.7689 13.3904 20.2251 13.4482 19.6543V15.4482L13.4316 15.4375C9.93065 15.0376 6.45647 16.3191 4.03418 18.959L4.03516 18.96C3.32287 19.7509 2.74215 20.6242 2.2666 21.5801C2.03257 22.1442 1.3672 22.4611 0.805664 22.2168L0.745117 22.1914V22.1768C0.443793 22.0328 0.22449 21.7539 0.171875 21.418L0.170898 21.4102L0.15918 21.2695V21.2686C0.0187049 19.5013 0.124356 17.7326 0.511719 16.001L0.512695 15.998L0.695312 15.2617L0.696289 15.2598C2.02169 10.5049 5.78955 6.91872 10.4414 5.91699L10.8936 5.82812C11.3251 5.73086 11.7619 5.68221 12.2012 5.64453C12.6152 5.60902 13.0281 5.58023 13.4482 5.53223V1.33789C13.3904 0.707944 13.8273 0.161489 14.4434 0.100586L14.4531 0.0996094V0.100586C14.6044 0.100586 14.7904 0.0990999 14.9502 0.194336C15.1239 0.257283 15.2662 0.374645 15.3779 0.516602H15.3789L23.9541 9.71289L23.959 9.71777V9.71875C24.0959 9.88874 24.2065 10.0607 24.29 10.2334L24.2998 10.2539V10.7754Z`,fill:e,stroke:e,strokeWidth:.2})}),o=({color:e=`var(--gray-90)`})=>(0,n.jsx)(`svg`,{width:30,height:30,viewBox:`0 0 30 30`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M14.8154 19.3652C14.8374 19.3932 14.8654 19.4159 14.8973 19.4315C14.9293 19.4471 14.9644 19.4552 15 19.4552C15.0356 19.4552 15.0707 19.4471 15.1027 19.4315C15.1346 19.4159 15.1626 19.3932 15.1846 19.3652L18.4658 15.2139C18.5859 15.0615 18.4775 14.8359 18.2812 14.8359H16.1104V4.92188C16.1104 4.79297 16.0049 4.6875 15.876 4.6875H14.1182C13.9893 4.6875 13.8838 4.79297 13.8838 4.92188V14.833H11.7188C11.5225 14.833 11.4141 15.0586 11.5342 15.2109L14.8154 19.3652ZM25.7227 18.3398H23.9648C23.8359 18.3398 23.7305 18.4453 23.7305 18.5742V23.0859H6.26953V18.5742C6.26953 18.4453 6.16406 18.3398 6.03516 18.3398H4.27734C4.14844 18.3398 4.04297 18.4453 4.04297 18.5742V24.375C4.04297 24.8936 4.46191 25.3125 4.98047 25.3125H25.0195C25.5381 25.3125 25.957 24.8936 25.957 24.375V18.5742C25.957 18.4453 25.8516 18.3398 25.7227 18.3398Z`,fill:e})});function s({className:e,showShare:t=!0,showSubtitle:r=!0,showTitle:i=!0,subtitle:s,title:c}){return!t&&!i&&!r?null:(0,n.jsx)(`header`,{className:[`ibc-title`,e].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{className:`ibc-title__row`,children:[(0,n.jsxs)(`div`,{className:`ibc-title__text`,children:[!i||!c?null:(0,n.jsx)(`p`,{className:`ibc-title__heading`,children:c}),!r||!s?null:(0,n.jsx)(`p`,{className:`ibc-title__subtitle`,children:s})]}),t?(0,n.jsxs)(`div`,{className:`ibc-title__brand`,children:[(0,n.jsx)(`div`,{className:`ibc-title__button`,children:(0,n.jsx)(a,{})}),(0,n.jsx)(`div`,{className:`ibc-title__button`,children:(0,n.jsx)(o,{})})]}):null]})})}var c=function(e,t){return c=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])},c(e,t)};function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);c(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),d=new(function(){function e(){this.browser=new u,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`?(d.wxa=!0,d.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?d.worker=!0:!d.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(d.node=!0,d.svgSupported=!0):f(navigator.userAgent,d);function f(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 p=`12px sans-serif`,m=20,h=100,g=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function _(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)-m)/h}return t}var v=_(g),y={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=y.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=v[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}},b=z([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),x=z([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),S=Object.prototype.toString,C=Array.prototype,w=C.forEach,T=C.filter,E=C.slice,D=C.map,O=function(){}.constructor,k=O?O.prototype:null,A=`__proto__`,j=2311,ee=2**53-1;function te(){return j>=ee&&(j=0),j++}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function M(e){if(typeof e!=`object`||!e)return e;var t=e,n=S.call(e);if(n===`[object Array]`){if(!Ee(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(x[n]){if(!Ee(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(!b[n]&&!Ee(e)&&!he(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==A&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!G(t)||!G(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==A){var i=e[r],a=t[r];G(a)&&G(i)&&!H(a)&&!H(i)&&!he(a)&&!he(i)&&!pe(a)&&!pe(i)&&!Ee(a)&&!Ee(i)?N(i,a,n):(n||!(r in e))&&(e[r]=M(t[r]))}return e}function P(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==A&&(e[n]=t[n]);return e}function re(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function F(e,t,n){for(var r=V(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}y.createCanvas;function I(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 ie(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 ae(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 F(e,t,n)}function oe(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function L(e,t,n){if(e&&t){if(e.forEach&&e.forEach===w)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 R(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.map&&e.map===D)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 z(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 B(e,t,n){if(!e)return[];if(!t)return xe(e);if(e.filter&&e.filter===T)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 se(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 V(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 ce(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(E.call(arguments)))}}var le=k&&U(k.bind)?k.call.bind(k.bind):ce;function ue(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(E.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):S.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function de(e){return S.call(e)===`[object String]`}function fe(e){return typeof e==`number`}function G(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function pe(e){return!!b[S.call(e)]}function me(e){return!!x[S.call(e)]}function he(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function ge(e){return e.colorStops!=null}function _e(e){return S.call(e)===`[object RegExp]`}function ve(e){return e!==e}function ye(){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 K(e,t){return e??t}function be(e,t,n){return e??t??n}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return E.apply(e,t)}function Se(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 q(e,t){if(!e)throw Error(t)}function Ce(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var we=`__ec_primitive__`;function Te(e){e[we]=!0}function Ee(e){return e[we]}var De=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 V(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Oe=typeof Map==`function`;function ke(){return Oe?new Map:new De}var Ae=function(){function e(t){var n=H(t);this.data=ke();var r=this;t instanceof e?t.each(i):t&&L(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 Oe?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Ae(e)}function je(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 Me(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&P(n,t),n}function Ne(e,t){return e.hasOwnProperty(t)}function Pe(){}var Fe=180/Math.PI;function Ie(e,t){return e??=0,t??=0,[e,t]}function Le(e,t){return e[0]=t[0],e[1]=t[1],e}function Re(e){return[e[0],e[1]]}function ze(e,t,n){return e[0]=t,e[1]=n,e}function Be(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ve(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function He(e){return Math.sqrt(Ue(e))}function Ue(e){return e[0]*e[0]+e[1]*e[1]}function We(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Ge(e,t){var n=He(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ke(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var qe=Ke;function Je(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ye=Je;function Xe(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 Ze(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Qe(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var $e=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),et=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 $e(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 $e(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 $e(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new $e(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new $e(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new $e(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),tt=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}(),nt=Math.log(2);function rt(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)/nt);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]*rt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function it(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=rt(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)*rt(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 at=`___zrEVENTSAVED`,ot=[];function st(e,t,n,r,i){return lt(ot,t,r,i,!0)&&lt(e,n,ot[0],ot[1])}function ct(e,t){e&&n(e),t&&n(t);function n(e){var t=e[at];t&&(t.clearMarkers&&t.clearMarkers(),delete e[at])}}function lt(e,t,n,r,i){if(t.getBoundingClientRect&&d.domSupported&&!ft(t)){var a=t[at]||(t[at]={}),o=dt(ut(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function ut(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(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function dt(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?it(s,o):it(o,s))}function ft(e){return e.nodeName.toUpperCase()===`CANVAS`}var pt=/([&<>"'])/g,mt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function ht(e){return e==null?``:(e+``).replace(pt,function(e,t){return mt[t]})}var gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_t=[],vt=d.browser.firefox&&+d.browser.version.split(`.`)[0]<39;function yt(e,t,n,r){return n||={},r?bt(e,t,n):vt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?bt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function bt(e,t,n){if(d.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ft(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(lt(_t,e,r,i)){n.zrX=_t[0],n.zrY=_t[1];return}}n.zrX=n.zrY=0}function xt(e){return e||window.event}function St(e,t,n){if(t=xt(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&&yt(e,i,t,n)}else{yt(e,t,t,n);var a=Ct(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&gt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Ct(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 wt(e,t,n,r){e.addEventListener(t,n,r)}function Tt(e,t,n,r){e.removeEventListener(t,n,r)}var Et=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Dt=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=yt(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 At)if(At.hasOwnProperty(t)){var n=At[t](this._track,e);if(n)return n}},e}();function Ot(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function kt(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var At={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=Ot(r)/Ot(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=kt(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function jt(){return[1,0,0,1,0,0]}function Mt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Nt(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 Pt(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 Ft(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 It(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 Lt(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 Rt(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 zt=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}(),Bt=Math.min,Vt=Math.max,Ht=Math.abs,Ut=[`x`,`y`],Wt=[`width`,`height`],Gt=new zt,Kt=new zt,qt=new zt,Jt=new zt,Yt=un(),Xt=Yt.minTv,Zt=Yt.maxTv,Qt=[0,0],Y=function(){function e(e,t,n,r){en(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=Bt(e.x,this.x),n=Bt(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Vt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Vt(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 nn(jt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&zt.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=en(on,t.x,t.y,t.width,t.height)),n instanceof e||(n=en(sn,n.x,n.y,n.width,n.height));var s=!!r;Yt.reset(i,s);var c=Yt.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)&&(Qt[0]=1/0,Qt[1]=0,ln(l,u,p,m,0,s,a,o),ln(d,f,h,g,1,s,a,o),s&&zt.copy(r,_?Yt.useDir?Yt.dirMinTv:Xt:Zt)),_},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){tn(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&&tn(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}Gt.x=qt.x=t.x,Gt.y=Jt.y=t.y,Kt.x=Jt.x=t.x+t.width,Kt.y=qt.y=t.y+t.height,Gt.transform(n),Jt.transform(n),Kt.transform(n),qt.transform(n),e.x=Bt(Gt.x,Kt.x,qt.x,Jt.x),e.y=Bt(Gt.y,Kt.y,qt.y,Jt.y);var s=Vt(Gt.x,Kt.x,qt.x,Jt.x),c=Vt(Gt.y,Kt.y,qt.y,Jt.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=Mt(e||[]),Ft(e,e,ze(cn,-t.x,-t.y)),Lt(e,e,ze(cn,r,i)),Ft(e,e,ze(cn,n.x,n.y)),e},e}(),$t=Y.create,en=Y.set,tn=Y.copy,nn=Y.calculateTransform,rn=Y.applyTransform,an=Y.contain,on=new Y(0,0,0,0),sn=new Y(0,0,0,0),cn=[];function ln(e,t,n,r,i,a,o,s){var c=Ht(t-n),l=Ht(r-e),u=Bt(c,l),d=Ut[i],f=Ut[1-i],p=Wt[i];t<n||r<e?c<l?(a&&(Zt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Zt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Vt(e,n),o[p]=Bt(t,r)-o[d]),a&&(u<Qt[0]||Yt.useDir)&&(Qt[0]=Bt(u,Qt[0]),(c<l||!Yt.bidirectional)&&(Xt[d]=c,Xt[f]=0,Yt.useDir&&Yt.calcDirMTV()),(c>=l||!Yt.bidirectional)&&(Xt[d]=-l,Xt[f]=0,Yt.useDir&&Yt.calcDirMTV())))}function un(){var e=0,t=new zt,n=new zt,r={minTv:new zt,maxTv:new zt,useDir:!1,dirMinTv:new zt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Vt(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 Ht(e)<1e-10}return r}var dn=`silent`;function fn(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:pn}}function pn(){Et(this.event)}var mn=function(e){l(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}(tt),hn=function(){function e(e,t){this.x=e,this.y=t}return e}(),gn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],_n=new Y(0,0,0,0),vn=function(e){l(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new hn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new mn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new et(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(gn,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=xn(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 hn(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 hn(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=fn(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 hn(e,t);if(bn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(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)&&(_n.copy(u.getBoundingRect()),u.transform&&_n.applyTransform(u.transform),_n.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(bn(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 Dt;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 hn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(tt);L([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){vn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=xn(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||qe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function yn(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||dn}return!1}function bn(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=yn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==dn)){t.target=o;break}}}function xn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Sn=32,Cn=7;function wn(e){for(var t=0;e>=Sn;)t|=e&1,e>>=1;return e+t}function Tn(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++;En(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function En(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Dn(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 On(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 kn(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 An(e,t){var n=Cn,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=kn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=On(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=kn(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=On(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>=Cn||m>=Cn);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-kn(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-On(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>=Cn||g>=Cn);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 jn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Sn){a=Tn(e,n,r,t),Dn(e,n,r,n+a,t);return}var o=An(e,t),s=wn(i);do{if(a=Tn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Dn(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 Mn=!1;function Nn(){Mn||(Mn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Pn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Pn}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,jn(n,Pn)},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)&&(Nn(),p.z=0),isNaN(p.z2)&&(Nn(),p.z2=0),isNaN(p.zlevel)&&(Nn(),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=I(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}(),In=d.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Ln={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-Ln.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?Ln.bounceIn(e*2)*.5:Ln.bounceOut(e*2-1)*.5+.5}},Rn=Math.pow,zn=Math.sqrt,Bn=1e-8,Vn=1e-4,Hn=zn(3),Un=1/3,Wn=Ie(),Gn=Ie(),Kn=Ie();function qn(e){return e>-Bn&&e<Bn}function Jn(e){return e>Bn||e<-Bn}function Yn(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 Xn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Zn(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(qn(u)&&qn(d)){if(qn(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(qn(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=zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Rn(-y,Un):Rn(y,Un),b=b<0?-Rn(-b,Un):Rn(b,Un);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*zn(u*u*u)),S=Math.acos(x)/3,C=zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Hn*Math.sin(S)))/(3*o),T=(-s+C*(w-Hn*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 Qn(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(qn(o)){if(Jn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(qn(u))i[0]=-a/(2*o);else if(u>0){var d=zn(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 $n(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 er(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Wn[0]=c,Wn[1]=l;for(var v=0;v<1;v+=.05)Gn[0]=Yn(e,n,i,o,v),Gn[1]=Yn(t,r,a,s,v),g=Ye(Wn,Gn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Vn);y++)m=d-f,h=d+f,Gn[0]=Yn(e,n,i,o,m),Gn[1]=Yn(t,r,a,s,m),g=Ye(Gn,Wn),m>=0&&g<p?(d=m,p=g):(Kn[0]=Yn(e,n,i,o,h),Kn[1]=Yn(t,r,a,s,h),_=Ye(Kn,Wn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Yn(e,n,i,o,d),u[1]=Yn(t,r,a,s,d)),zn(p)}function tr(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=Yn(e,n,i,o,m),g=Yn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function nr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function rr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ir(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(qn(a)){if(Jn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(qn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=zn(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 ar(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function or(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 sr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Wn[0]=o,Wn[1]=s;for(var f=0;f<1;f+=.05){Gn[0]=nr(e,n,i,f),Gn[1]=nr(t,r,a,f);var p=Ye(Wn,Gn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Vn);m++){var h=l-u,g=l+u;Gn[0]=nr(e,n,i,h),Gn[1]=nr(t,r,a,h);var p=Ye(Gn,Wn);if(h>=0&&p<d)l=h,d=p;else{Kn[0]=nr(e,n,i,g),Kn[1]=nr(t,r,a,g);var _=Ye(Kn,Wn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=nr(e,n,i,l),c[1]=nr(t,r,a,l)),zn(d)}function cr(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=nr(e,n,i,f),m=nr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var lr=/cubic-bezier\(([0-9,\.e ]+)\)/;function ur(e){var t=e&&lr.exec(e);if(t){var n=t[1].split(`,`),r=+Ce(n[0]),i=+Ce(n[1]),a=+Ce(n[2]),o=+Ce(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Zn(0,r,a,1,e,s)&&Yn(0,i,o,1,s[0])}}}var dr=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||Pe,this.ondestroy=e.ondestroy||Pe,this.onrestart=e.onrestart||Pe,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=U(e)?e:Ln[e]||ur(e)},e}(),fr=function(){function e(e){this.value=e}return e}(),pr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new fr(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}(),mr=function(){function e(e){this._list=new pr,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 fr(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}(),hr={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 gr(e){return e=Math.round(e),e<0?0:e>255?255:e}function _r(e){return e=Math.round(e),e<0?0:e>360?360:e}function vr(e){return e<0?0:e>1?1:e}function yr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?gr(parseFloat(t)/100*255):gr(parseInt(t,10))}function br(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?vr(parseFloat(t)/100):vr(parseFloat(t))}function xr(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 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 mr(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 hr)return Cr(t,hr[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=br(l.pop());case`rgb`:if(l.length>=3)return Sr(t,yr(l[0]),yr(l[1]),yr(l[2]),l.length===3?u:br(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]=br(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=br(e[1]),i=br(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Sr(t,gr(xr(o,a,n+1/3)*255),gr(xr(o,a,n)*255),gr(xr(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 Mr(n,n.length===4?`rgba`:`rgb`)}}function jr(e,t,n,r){var i=Dr(e);if(e)return i=kr(i),t!=null&&(i[0]=_r(U(t)?t(i[0]):t)),n!=null&&(i[1]=br(U(n)?n(i[1]):n)),r!=null&&(i[2]=br(U(r)?r(i[2]):r)),Mr(Or(i),`rgba`)}function Mr(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 Nr(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 Pr=new mr(100);function Fr(e){if(W(e)){var t=Pr.get(e);return t||(t=Ar(e,-.1),Pr.put(e,t)),t}if(ge(e)){var n=P({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:Ar(e.color,-.1)}}),n}return e}var Ir=Math.round;function Lr(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Dr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Rr=1e-4;function zr(e){return e<Rr&&e>-Rr}function Br(e){return Ir(e*1e3)/1e3}function Vr(e){return Ir(e*1e4)/1e4}function Hr(e){return`matrix(`+Br(e[0])+`,`+Br(e[1])+`,`+Br(e[2])+`,`+Br(e[3])+`,`+Vr(e[4])+`,`+Vr(e[5])+`)`}var Ur={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Wr(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Gr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Kr(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function qr(e){return e&&!!e.image}function Jr(e){return e&&!!e.svgElement}function Yr(e){return qr(e)||Jr(e)}function Xr(e){return e.type===`linear`}function Zr(e){return e.type===`radial`}function Qr(e){return e&&(e.type===`linear`||e.type===`radial`)}function $r(e){return`url(#`+e+`)`}function ei(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ti(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Fe,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Ir(o*Fe)+`deg, `+Ir(s*Fe)+`deg)`),c.join(` `)}var ni=(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`&&ne(`Base64 isn't natively supported in the current environment.`),null}})(),ri=Array.prototype.slice;function ii(e,t,n){return(t-e)*n+e}function ai(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=ii(t[a],n[a],r);return e}function oi(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]=ii(t[o][s],n[o][s],r)}return e}function si(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ci(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 li(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 ui(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]:ri.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 di(e){if(oe(e)){var t=e.length;if(oe(e[0])){for(var n=[],r=0;r<t;r++)n.push(ri.call(e[r]));return n}return ri.call(e)}return e}function fi(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 pi(e){return oe(e&&e[0])?2:1}var mi=0,hi=1,gi=2,_i=3,vi=4,yi=5,bi=6;function xi(e){return e===vi||e===yi}function Si(e){return e===hi||e===gi}var Ci=[0,0,0,0],wi=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=bi,s=t;if(oe(t)){var c=pi(t);o=c,(c===1&&!fe(t[0])||c===2&&!fe(t[0][0]))&&(a=!0)}else if(fe(t)&&!ve(t))o=mi;else if(W(t)){if(!isNaN(+t))o=mi;else{var l=Dr(t);l&&(s=l,o=_i)}}else if(ge(t)){var u=P({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:Dr(e.color)}}),Xr(t)?o=vi:Zr(t)&&(o=yi),s=u}i===0?this.valType=o:(o!==this.valType||o===bi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:Ln[n]||ur(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=Si(r),c=xi(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?ui(d,f,r):c&&li(d.colorStops,f.colorStops))}if(!o&&r!==yi&&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===mi?n[l].additiveValue=n[l].value-p:r===_i?n[l].additiveValue=si([],n[l].value,p,-1):Si(r)&&(n[l].additiveValue=r===hi?si([],n[l].value,p,-1):ci([],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===_i,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?Ci:e[s];if((Si(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Si(i))i===hi?ai(g,f[r],p[r],h):oi(g,f[r],p[r],h);else if(xi(i)){var _=f[r],v=p[r],y=i===vi;e[s]={type:y?`linear`:`radial`,x:ii(_.x,v.x,h),y:ii(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ii(e.offset,n.offset,h),color:fi(ai([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ii(_.x2,v.x2,h),e[s].y2=ii(_.y2,v.y2,h)):e[s].r=ii(_.r,v.r,h)}else if(c)ai(g,f[r],p[r],h),n||(e[s]=fi(g));else{var b=ii(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===mi?e[n]=e[n]+r:t===_i?(Dr(e[n],Ci),si(Ci,Ci,r,1),e[n]=fi(Ci)):t===hi?si(e[n],e[n],r,1):t===gi&&ci(e[n],e[n],r,1)},e}(),Ti=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){ne(`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,V(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 wi(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===_i&&c&&(c=fi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,di(c),r),this._trackKeys.push(o)}s.addKeyframe(e,di(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 dr({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 R(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]=di(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=V(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 Ei(){return new Date().getTime()}var Di=function(e){l(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=Ei()-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&&(In(t),!e._paused&&e.update())}In(t)},t.prototype.start=function(){this._running||(this._time=Ei(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Ei(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Ei()-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 Ti(e,t.loop);return this.addAnimator(n),n},t}(tt),Oi=300,ki=d.domSupported,Ai=(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:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ji={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Mi=!1;function Ni(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Pi(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 Fi(e){e&&(e.zrByTouch=!0)}function Ii(e,t){return St(e.dom,new Ri(e,t),!0)}function Li(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 Ri=function(){function e(e,t){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),zi={mousedown:function(e){e=St(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=St(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=St(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=St(this.dom,e);var t=e.toElement||e.relatedTarget;Li(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Mi=!0,e=St(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Mi||(e=St(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=St(this.dom,e),Fi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),zi.mousemove.call(this,e),zi.mousedown.call(this,e)},touchmove:function(e){e=St(this.dom,e),Fi(e),this.handler.processGesture(e,`change`),zi.mousemove.call(this,e)},touchend:function(e){e=St(this.dom,e),Fi(e),this.handler.processGesture(e,`end`),zi.mouseup.call(this,e),+new Date-this.__lastTouchMoment<Oi&&zi.click.call(this,e)},pointerdown:function(e){zi.mousedown.call(this,e)},pointermove:function(e){Ni(e)||zi.mousemove.call(this,e)},pointerup:function(e){zi.mouseup.call(this,e)},pointerout:function(e){Ni(e)||zi.mouseout.call(this,e)}};L([`click`,`dblclick`,`contextmenu`],function(e){zi[e]=function(t){t=St(this.dom,t),this.trigger(e,t)}});var Bi={pointermove:function(e){Ni(e)||Bi.mousemove.call(this,e)},pointerup:function(e){Bi.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 Vi(e,t){var n=t.domHandlers;d.pointerEventsSupported?L(Ai.pointer,function(r){Ui(t,r,function(t){n[r].call(e,t)})}):(d.touchEventsSupported&&L(Ai.touch,function(r){Ui(t,r,function(i){n[r].call(e,i),Pi(t)})}),L(Ai.mouse,function(r){Ui(t,r,function(i){i=xt(i),t.touching||n[r].call(e,i)})}))}function Hi(e,t){d.pointerEventsSupported?L(ji.pointer,n):d.touchEventsSupported||L(ji.mouse,n);function n(n){function r(r){r=xt(r),Li(e,r.target)||(r=Ii(e,r),t.domHandlers[n].call(e,r))}Ui(t,n,r,{capture:!0})}}function Ui(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,wt(e.domTarget,t,n,r)}function Wi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Tt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Gi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Ki=function(e){l(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 Gi(t,zi),ki&&(r._globalHandlerScope=new Gi(document,Bi)),Vi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Wi(this._localHandlerScope),ki&&Wi(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,ki&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Hi(this,t):Wi(t)}},t}(tt),qi=1;d.hasGlobalWindow&&(qi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ji=qi,Yi=.4,Xi=`#333`,Zi=`#ccc`,Qi=`#eee`,$i=Mt,ea=5e-5;function ta(e){return e>ea||e<-ea}var na=[],ra=[],ia=jt(),aa=Math.abs,oa=function(){function e(){}return e.prototype.getLocalTransform=function(e){return sa(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 ta(this.rotation)||ta(this.x)||ta(this.y)||ta(this.scaleX-1)||ta(this.scaleY-1)||ta(this.skewX)||ta(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&($i(n),this.invTransform=null);return}n||=jt(),t?this.getLocalTransform(n):$i(n),e&&(t?Pt(n,e,n):Nt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||jt(),Rt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(na);var n=na[0]<0?-1:1,r=na[1]<0?-1:1,i=((na[0]-n)*t+n)/na[0]||0,a=((na[1]-r)*t+r)/na[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||jt(),Pt(ra,e.invTransform,t),t=ra);var n=this.originX,r=this.originY;(n||r)&&(ia[4]=n,ia[5]=r,Pt(ra,t,ia),ra[4]-=n,ra[5]-=r,t=ra),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&&Xe(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Xe(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&aa(e[0]-1)>1e-10&&aa(e[3]-1)>1e-10?Math.sqrt(aa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ua(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&&It(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}(),sa=oa.getLocalTransform;function ca(){return new oa}var la=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ua(e,t){return re(e,t,la)}function da(e){fa||=new mr(100),e||=`12px sans-serif`;var t=fa.get(e);return t||(t={font:e,strWidthCache:new mr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:y.measureText(`国`,e).width,asciiCharWidth:y.measureText(`a`,e).width},fa.put(e,t)),t}var fa;function pa(e){if(!(ma>=ha)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=y.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?ma=ha:i>2&&ma++,t}}var ma=0,ha=5;function ga(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=pa(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function _a(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=y.measureText(t,e.font).width,n.put(t,r)),r}function va(e,t,n,r){var i=_a(da(t),e),a=Sa(t);return new Y(ba(0,i,n),xa(0,a,r),i,a)}function ya(e,t,n,r){var i=((e||``)+``).split(`
3
+ `);if(i.length===1)return va(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=va(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function ba(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function xa(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Sa(e){return da(e).stWideCharWidth}function Ca(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function wa(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+=Ca(r[0],n.width),l+=Ca(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 Ta=`__zr_normal__`,Ea=la.concat([`ignore`]),Da=z(la,function(e,t){return e[t]=!0,e},{ignore:!1}),Oa={},ka=new Y(0,0,0,0),Aa=[],ja=function(){function e(e){this.id=te(),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=ka,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Oa,n,d):wa(Oa,n,d),i.x=Oa.x,i.y=Oa.y,a=Oa.align,o=Oa.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=Ca(f[0],d.width),m=Ca(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 Y(0,0,0,0);i.getLocalTransform(Aa),Rt(Aa,Aa),Y.copy(_,d),_.applyTransform(Aa)}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()?Zi:Xi},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,Mr(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||{},P(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(G(e))for(var n=V(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,Ea)},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(Ta,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ta;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(I(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){ne(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=za(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Va(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=za(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,Va(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=I(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=I(r,e),a=I(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];P(t,i),i.textConfig&&(n||={},P(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=P({},r?this.textConfig:n.textConfig),P(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Ea.length;l++){var u=Ea[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 oa,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},P(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){ne(`Property "`+e+`" is not existed in element `+this.id);return}var i=new Ti(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=I(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){Ma(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ma(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ma(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}();ae(ja,tt),ae(ja,oa);function Ma(e,t,n,r,i){n||={};var a=[];Ra(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 Na(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Pa(e){return oe(e[0])}function Fa(e,t,n){if(oe(t[n])){if(oe(e[n])||(e[n]=[]),me(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Na(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Pa(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Na(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Na(a,i,o);a.length=i.length}}else e[n]=t[n]}function Ia(e,t){return e===t||oe(e)&&oe(t)&&La(e,t)}function La(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 Ra(e,t,n,r,i,a,o,s){for(var c=V(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!G(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(G(v)&&!oe(v)&&!ge(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Ra(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=I(m,x);m.splice(S,1)}}if(i.force||(h=B(h,function(e){return!Ia(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[_]=di(n[_]),Fa(n,r,_)}}var x=new Ti(n,!1,!1,d?B(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 za(e,t,n,r){return!(n&&n.hoverLayer||r)||Ba(e)||t&&Ba(t)?0:1}function Ba(e){return e.type===`text`||e.type===`tspan`}function Va(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ha=function(e){l(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=I(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=I(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 Y(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?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(ja);Ha.prototype.type=`group`;var Ua={},Wa={};function Ga(e){delete Wa[e]}function Ka(e){if(!e)return!1;if(typeof e==`string`)return Nr(e,1)<Yi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Nr(t[i].color,1);return n/=r,n<Yi}return!1}var qa=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 Fn,a=n.renderer||`canvas`;if(Ua[a]||(a=V(Ua)[0]),process.env.NODE_ENV!==`production`&&!Ua[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ua[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!d.node&&!d.worker&&!s?new Ki(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?d.touchEventsSupported:!!l,f=44,p;u&&(p=K(n.pointerSize,f)),this.handler=new vn(i,o,c,o.root,p),this.animation=new Di({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Ka(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=Ei(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Ei();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 Ha&&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,Ga(this.id))},e}();function Ja(e,t){var n=new qa(te(),e,t);return Wa[n.id]=n,n}function Ya(e,t){Ua[e]=t}var Xa;function Za(e){if(typeof Xa==`function`)return Xa(e)}function Qa(e){Xa=e}var $a=1e-4,eo=20;function to(e){return e.replace(/^\s+|\s+$/g,``)}var no=Math.min,X=Math.max,ro=Math.abs,io=Math.round,ao=Math.floor,oo=Math.ceil,so=Math.pow,co=Math.log,lo=Math.LN10,uo=Math.PI,fo=Math.random;function po(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 mo=ho;function ho(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 go(e,t,n)}function go(e,t,n){return W(e)?_o(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function _o(e){return!!to(e).match(/%$/)}function Z(e,t,n){return process.env.NODE_ENV!==`production`&&q(t!=null),isNaN(t)?n?``+e:+e:(t=no(X(0,t),eo),e=(+e).toFixed(t),n?e:+e)}function vo(e){return e.sort(function(e,t){return e-t}),e}function yo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(io(e*t)/t===e)return n}return bo(e)}function bo(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 X(0,(a<0?0:i-1-a)-r)}function xo(e,t,n){var r=ro(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=co(2*ro(n||1)*ro(r))/lo,a=co(ro(t))/lo,o=X(0,oo(-i+a));return isFinite(o)||(o=NaN),o}function So(e,t){var n=X(yo(e),yo(t)),r=e+t;return n>eo?r:Z(r,n)}var Co=so(2,53)-1;function wo(e){var t=uo*2;return(e%t+t)%t}function To(e){return e>-$a&&e<$a}var Eo=/^(?:(\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 Do(e){if(e instanceof Date)return e;if(W(e)){var t=Eo.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(io(e))}function Oo(e){return so(10,ko(e))}function ko(e){if(e===0)return 0;var t=ao(co(e)/lo);return e/so(10,t)>=10&&t++,t}function Ao(e,t){var n=ko(e),r=so(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,Z(e,-n)}function jo(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function Mo(e){return!isNaN(jo(e))}function No(){return io(fo()*9)}function Po(e,t){return t===0?e:Po(t,e%t)}function Fo(e,t){return e==null?t:t==null?e:e*t/Po(e,t)}function Io(e){return e!=null&&isFinite(e)}var Lo=`[ECharts] `,Ro={},zo=typeof console<`u`&&console.warn&&console.log;function Bo(e,t,n){if(zo){if(n){if(Ro[t])return;Ro[t]=!0}console[e](Lo+t)}}function Vo(e,t){Bo(`log`,e,t)}function Ho(e,t){Bo(`warn`,e,t)}function Uo(e,t){Bo(`error`,e,t)}function Wo(e){process.env.NODE_ENV!==`production`&&Bo(`warn`,`DEPRECATED: `+e,!0)}function Go(e,t,n){process.env.NODE_ENV!==`production`&&Wo((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Ko(){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`:ve(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:U(e)?`function () { ... }`:_e(e)?e+``:null};n=R(e,function(e){if(W(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 qo(e){throw Error(e)}var Jo=`series\0`,Yo=`\0_ec_\0`;function Xo(e){return e instanceof Array?e:e==null?[]:[e]}function Zo(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 Qo=`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 $o(e){return G(e)&&!H(e)&&!(e instanceof Date)?e.value:e}function es(e){return G(e)&&!(e instanceof Array)}function ts(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();L(t,function(e,n){if(!G(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!fs(e.id)&&ds(e.id),e.name!=null&&!fs(e.name)&&ds(e.name))});var s=ns(e,o,n);return(r||i)&&rs(s,e,o,t),r&&is(s,t),r||i?as(s,t,i):a&&os(s,t),ss(s),s}function ns(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`||ms(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function rs(e,t,n,r){L(r,function(i,a){if(!(!i||i.id==null)){var o=ls(i.id),s=n.get(o);if(s!=null){var c=e[s];q(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function is(e,t){L(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)&&!ms(n)&&!ms(a)&&cs(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function as(e,t,n){L(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ms(r.existing)||r.existing&&t.id!=null&&!cs(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function os(e,t){L(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function ss(e){var t=J();L(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),L(e,function(e){var n=e.newOption;q(!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={})}),L(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(G(i)){if(a.name=i.name==null?r?r.name:Jo+n:ls(i.name),r)a.id=ls(r.id);else if(i.id!=null)a.id=ls(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 cs(e,t,n){var r=us(t[e],null),i=us(n[e],null);return r!=null&&i!=null&&r===i}function ls(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return us(e,``)}function us(e,t){return e==null?t:W(e)?e:fe(e)||de(e)?e+``:t}function ds(e){process.env.NODE_ENV!==`production`&&Ho("`"+e+"` is invalid id or name. Must be a string or number.")}function fs(e){return de(e)||Mo(e)}function ps(e){var t=e.name;return!!(t&&t.indexOf(Jo))}function ms(e){return e&&e.id!=null&&ls(e.id).indexOf(Yo)===0}function hs(e){return Yo+e}function gs(e,t,n){L(e,function(e){var r=e.newOption;G(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=_s(t,r,e.existing,n))})}function _s(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function vs(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?R(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?R(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function ys(){var e=`__ec_inner_`+bs++;return function(t){return t[e]||(t[e]={})}}var bs=No();function xs(e,t,n){var r=Ss(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=Ts(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 Ss(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return L(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&&I(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Cs={useDefault:!0,enableAll:!1,enableNone:!1},ws={useDefault:!1,enableAll:!0,enableNone:!0};function Ts(e,t,n,r){r||=Cs;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`&&Uo('`"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`&&Uo('`"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 Es(e,t,n){process.env.NODE_ENV!==`production`&&q(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 Os(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ks(e){return e===`auto`?d.domSupported?`html`:`richText`:e||`html`}(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 As(){return[1/0,-1/0]}function js(e,t){Fs(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Ms(e,t){Fs(t)&&t<e[0]&&(e[0]=t)}function Ns(e,t){Fs(t)&&t>e[1]&&(e[1]=t)}function Ps(e,t){Is(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Fs(e){return e!=null&&isFinite(e)}function Is(e,t){return Fs(e)&&Fs(t)&&e<=t}function Ls(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Rs(e){Is(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function zs(){var e=`__ec_once_`+Bs++;return function(t,n){process.env.NODE_ENV!==`production`&&q(t),Ne(t,e)||(t[e]=1,n())}}var Bs=No();function Vs(e,t,n){var r=J(),i=0;L(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&q(W(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 Hs(e){return process.env.NODE_ENV!==`production`&&q(e.value!=null),e.value+``}function Us(e){return process.env.NODE_ENV!==`production`&&q(e!=null),e+``}function Ws(e,t){return K(t,!0)?e.seriesIndex+2:0}function Gs(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 Ks(e){return{overallReset:e}}var qs=`.`,Js=`___EC__COMPONENT__CONTAINER___`,Ys=`___EC__EXTENDED_CLASS___`;function Xs(e){var t={main:``,sub:``};if(e){var n=e.split(qs);t.main=n[0]||``,t.sub=n[1]||``}return t}function Zs(e){q(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Qs(e){return!!(e&&e[Ys])}function $s(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&L(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,r;return ec(n)?r=function(e){l(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},ie(r,this)),P(r.prototype,e),r[Ys]=!0,r.extend=this.extend,r.superCall=ic,r.superApply=ac,r.superClass=n,r}}function ec(e){return U(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function tc(e,t){e.extend=t.extend}var nc=Math.round(Math.random()*10);function rc(e){var t=[`__\0is_clz`,nc++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&q(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function ic(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 ac(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Zs(r),e.prototype.type=r;var i=Xs(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!==Js){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Js]&&(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=Xs(e),r=[],i=t[n.main];return i&&i[Js]?L(i,function(e,t){t!==Js&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Xs(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Xs(e).main];return n&&n[Js]};function n(e){var n=t[e.main];return(!n||!n[Js])&&(n=t[e.main]={},n[Js]=!0),n}}function sc(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&&I(r,s)>=0||i&&I(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var cc=sc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),lc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return cc(this,e,t)},e}(),uc=new mr(50);function dc(e){if(typeof e==`string`){var t=uc.get(e);return t&&t.image}return e}function fc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=uc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!mc(t)&&a.pending.push(o)):(t=y.loadImage(e,pc,pc),t.__zrImageSrc=e,uc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function pc(){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 mc(e){return e&&e.width&&e.height}var hc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
4
+ `);a=_c(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)vc(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
5
+ `),e.isTruncated=s}function _c(e,t,n,r){r||={};var i=P({},r);n=K(n,`...`),i.maxIterations=K(r.maxIterations,2);var a=i.minChar=K(r.minChar,0),o=i.fontMeasureInfo=da(t),s=o.asciiCharWidth;i.placeholder=K(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=_a(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 vc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=_a(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?yc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=_a(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function yc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=ga(n,e.charCodeAt(i));return i}function bc(e,t,n,r){var i=Nc(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=Sa(l),f=K(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?kc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
6
+ `):[],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=_c(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)vc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=da(l),S=0;S<_.length;S++)w=Math.max(_a(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 xc=function(){function e(){}return e}(),Sc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Cc=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 wc(e,t,n,r,i){var a=new Cc,o=Nc(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=hc.lastIndex=0,h;(h=hc.exec(o))!=null;){var g=h.index;g>m&&Tc(a,o.substring(m,g),t,p),Tc(a,h[2],t,p,h[1]),m=hc.lastIndex}m<o.length&&Tc(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,te=k.font=A.font||t.font;k.contentHeight=Sa(te);var ne=K(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=be(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var M=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<M;break outer}var N=A.width,P=N==null||N===`auto`;if(typeof N==`string`&&N.charAt(N.length-1)===`%`)k.percentWidth=N,_.push(k),k.contentWidth=_a(da(te),k.text);else{if(P){var re=A.backgroundColor,F=re&&re.image;F&&(F=dc(F),mc(F)&&(k.width=Math.max(k.width,F.width*ne/F.height)))}var I=b&&u!=null?u-D:null;I!=null&&I<k.width?!P||I<ee?(k.text=``,k.width=k.contentWidth=0):(gc(S,k.text,I-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=_a(da(te),k.text)):k.contentWidth=_a(da(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=K(u,y),a.outerHeight=a.height=K(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 Tc(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=Ca(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
7
+ `),l=!0),r.accumWidth=m}else{var h=kc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
8
+ `);for(var g=da(c),_=0;_<u.length;_++){var v=u[_],y=new xc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:_a(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Sc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Sc([y]))}}function Ec(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Dc=z(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Oc(e){return!Ec(e)||!!Dc[e]}function kc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=da(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
9
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=ga(d,p.charCodeAt(0)),h=!r&&!Oc(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 Ac(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;Y.set(jc,ba(n,o,i),xa(r,s,a),o,s),Y.intersect(t,jc,null,Mc);var c=Mc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=ba(c.x,c.width,i,!0),e.baseY=xa(c.y,c.height,a,!0)}}var jc=new Y(0,0,0,0),Mc={outIntersectRect:{},clamp:!0};function Nc(e){return e==null?e=``:e+=``}function Pc(e){var t=Nc(e.text),n=e.font;return Fc(e,_a(da(n),t),Sa(n),null)}function Fc(e,t,n,r){var i=new Y(ba(e.x||0,t,e.textAlign),xa(e.y||0,n,e.textBaseline),t,n),a=r??(Ic(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Ic(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Lc=`__zr_style_`+Math.round(Math.random()*10),Rc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},zc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rc[Lc]=!0;var Bc=[`z`,`z2`,`invisible`],Vc=[`invisible`],Hc=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=V(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&&Gc(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 Y(0,0,0,0),t?Y.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 Y(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:P(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 Me(Rc,e)},t.prototype.useStyle=function(e){e[Lc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Lc]},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,Bc)},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=V(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=V(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?Vc:Bc,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 P(e,t),e},t.prototype.getAnimationStyleProps=function(){return zc},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}(ja),Uc=new Y(0,0,0,0),Wc=new Y(0,0,0,0);function Gc(e,t,n){return Uc.copy(e.getBoundingRect()),e.transform&&Uc.applyTransform(e.transform),Wc.width=t,Wc.height=n,!Uc.intersect(Wc)}var Kc=Math.min,qc=Math.max,Jc=Math.sin,Yc=Math.cos,Xc=Math.PI*2,Zc=Ie(),Qc=Ie(),$c=Ie();function el(e,t,n,r,i,a){i[0]=Kc(e,n),i[1]=Kc(t,r),a[0]=qc(e,n),a[1]=qc(t,r)}var tl=[],nl=[];function rl(e,t,n,r,i,a,o,s,c,l){var u=Qn,d=Yn,f=u(e,n,i,o,tl);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,tl[p]);c[0]=Kc(m,c[0]),l[0]=qc(m,l[0])}f=u(t,r,a,s,nl);for(var p=0;p<f;p++){var h=d(t,r,a,s,nl[p]);c[1]=Kc(h,c[1]),l[1]=qc(h,l[1])}c[0]=Kc(e,c[0]),l[0]=qc(e,l[0]),c[0]=Kc(o,c[0]),l[0]=qc(o,l[0]),c[1]=Kc(t,c[1]),l[1]=qc(t,l[1]),c[1]=Kc(s,c[1]),l[1]=qc(s,l[1])}function il(e,t,n,r,i,a,o,s){var c=ar,l=nr,u=qc(Kc(c(e,n,i),1),0),d=qc(Kc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Kc(e,i,f),o[1]=Kc(t,a,p),s[0]=qc(e,i,f),s[1]=qc(t,a,p)}function al(e,t,n,r,i,a,o,s,c){var l=Ze,u=Qe,d=Math.abs(i-a);if(d%Xc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Zc[0]=Yc(i)*n+e,Zc[1]=Jc(i)*r+t,Qc[0]=Yc(a)*n+e,Qc[1]=Jc(a)*r+t,l(s,Zc,Qc),u(c,Zc,Qc),i%=Xc,i<0&&(i+=Xc),a%=Xc,a<0&&(a+=Xc),i>a&&!o?a+=Xc:i<a&&o&&(i+=Xc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&($c[0]=Yc(p)*n+e,$c[1]=Jc(p)*r+t,l(s,$c,s),u(c,$c,c))}var ol={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sl=[],cl=[],ll=[],ul=[],dl=[],fl=[],pl=Math.min,ml=Math.max,hl=Math.cos,gl=Math.sin,_l=Math.abs,vl=Math.PI,yl=vl*2,bl=typeof Float32Array<`u`,xl=[];function Sl(e){return Math.round(e/vl*1e8)/1e8%2*vl}function Cl(e,t){var n=Sl(e[0]);n<0&&(n+=yl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=yl?i=n+yl:t&&n-i>=yl?i=n-yl:!t&&n>i?i=n+(yl-Sl(n-i)):t&&n<i&&(i=n-(yl-Sl(i-n))),e[0]=n,e[1]=i}var wl=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=_l(n/Ji/e)||0,this._uy=_l(n/Ji/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(ol.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=_l(e-this._xi),r=_l(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ol.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(ol.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(ol.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(),xl[0]=r,xl[1]=i,Cl(xl,a),r=xl[0],i=xl[1];var o=i-r;return this.addData(ol.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=hl(i)*n+e,this._yi=gl(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(ol.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ol.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)&&bl&&(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(bl&&(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,bl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ll[0]=ll[1]=dl[0]=dl[1]=Number.MAX_VALUE,ul[0]=ul[1]=fl[0]=fl[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 ol.M:t=r=e[a++],n=i=e[a++],dl[0]=r,dl[1]=i,fl[0]=r,fl[1]=i;break;case ol.L:el(t,n,e[a],e[a+1],dl,fl),t=e[a++],n=e[a++];break;case ol.C:rl(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],dl,fl),t=e[a++],n=e[a++];break;case ol.Q:il(t,n,e[a++],e[a++],e[a],e[a+1],dl,fl),t=e[a++],n=e[a++];break;case ol.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=hl(f)*u+c,i=gl(f)*d+l),al(c,l,u,d,f,p,m,dl,fl),t=hl(p)*u+c,n=gl(p)*d+l;break;case ol.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];el(r,i,r+h,i+g,dl,fl);break;case ol.Z:t=r,n=i}Ze(ll,ll,dl),Qe(ul,ul,fl)}return a===0&&(ll[0]=ll[1]=ul[0]=ul[1]=0),new Y(ll[0],ll[1],ul[0]-ll[0],ul[1]-ll[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 ol.M:i=o=e[d++],a=s=e[d++];break;case ol.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(_l(_)>n||_l(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case ol.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=tr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case ol.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=cr(i,a,y,b,h,g,10),i=h,a=g;break;case ol.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=hl(D)*T+C,s=gl(D)*E+w),m=ml(T,E)*pl(yl,Math.abs(O)),i=hl(k)*T+C,a=gl(k)*E+w;break;case ol.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case ol.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!==ol.L&&v>0&&(e.lineTo(y,b),v=0),S){case ol.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case ol.L:u=n[x++],d=n[x++];var w=_l(u-c),T=_l(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 ol.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;$n(c,k,j,te,D,sl),$n(l,A,ee,ne,D,cl),e.bezierCurveTo(sl[1],cl[1],sl[2],cl[2],sl[3],cl[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case ol.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;or(c,k,j,D,sl),or(l,A,ee,D,cl),e.quadraticCurveTo(sl[1],cl[1],sl[2],cl[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case ol.A:var M=n[x++],N=n[x++],P=n[x++],re=n[x++],F=n[x++],I=n[x++],ie=n[x++],ae=!n[x++],oe=P>re?P:re,L=_l(P-re)>.001,R=F+I,z=!1;if(f){var E=p[g++];h+E>_&&(R=F+I*(_-h)/E,z=!0),h+=E}if(L&&e.ellipse?e.ellipse(M,N,P,re,ie,F,R,ae):e.arc(M,N,oe,F,R,ae),z)break lo;C&&(o=hl(F)*P+M,s=gl(F)*re+N),c=hl(R)*P+M,l=gl(R)*re+N;break;case ol.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],se=n[x++];if(f){var E=p[g++];if(h+E>_){var V=_-h;e.moveTo(u,d),e.lineTo(u+pl(V,B),d),V-=B,V>0&&e.lineTo(u+B,d+pl(V,se)),V-=se,V>0&&e.lineTo(u+ml(B-V,0),d+se),V-=B,V>0&&e.lineTo(u,d+ml(se-V,0));break lo}h+=E}e.rect(u,d,B,se);break;case ol.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=ol,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Tl(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 El(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:er(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Dl(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:sr(e,t,n,r,i,a,s,c,null)<=l/2}var Ol=Math.PI*2;function kl(e){return e%=Ol,e<0&&(e+=Ol),e}var Al=Math.PI*2;function jl(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)%Al<1e-4)return!0;if(a){var d=r;r=kl(i),i=kl(d)}else r=kl(r),i=kl(i);r>i&&(i+=Al);var f=Math.atan2(c,s);return f<0&&(f+=Al),f>=r&&f<=i||f+Al>=r&&f+Al<=i}function Ml(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 Nl=wl.CMD,Pl=Math.PI*2,Fl=1e-4;function Il(e,t){return Math.abs(e-t)<Fl}var Ll=[-1,-1,-1],Rl=[-1,-1];function zl(){var e=Rl[0];Rl[0]=Rl[1],Rl[1]=e}function Bl(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=Zn(t,r,a,s,l,Ll);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ll[h],_=g===0||g===1?.5:1;Yn(e,n,i,o,g)<c||(f<0&&(f=Qn(t,r,a,s,Rl),Rl[1]<Rl[0]&&f>1&&zl(),p=Yn(t,r,a,s,Rl[0]),f>1&&(m=Yn(t,r,a,s,Rl[1]))),f===2?g<Rl[0]?d+=p<t?_:-_:g<Rl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Rl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Vl(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=ir(t,r,a,s,Ll);if(c===0)return 0;var l=ar(t,r,a);if(l>=0&&l<=1){for(var u=0,d=nr(t,r,a,l),f=0;f<c;f++){var p=Ll[f]===0||Ll[f]===1?.5:1,m=nr(e,n,i,Ll[f]);m<o||(Ll[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Ll[0]===0||Ll[0]===1?.5:1,m=nr(e,n,i,Ll[0]);return m<o?0:a<t?p:-p}function Hl(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);Ll[0]=-c,Ll[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Pl-1e-4){r=0,i=Pl;var u=a?1:-1;return o>=Ll[0]+e&&o<=Ll[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Pl,i+=Pl);for(var f=0,p=0;p<2;p++){var m=Ll[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Pl+h),(h>=r&&h<=i||h+Pl>=r&&h+Pl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ul(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===Nl.M&&m>1&&(n||(s+=Ml(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Nl.M:u=a[m++],d=a[m++],c=u,l=d;break;case Nl.L:if(n){if(Tl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Ml(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Nl.C:if(n){if(El(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Bl(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 Nl.Q:if(n){if(Dl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Vl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Nl.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+=Ml(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(jl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Hl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Nl.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(Tl(u,d,f,d,t,r,i)||Tl(f,d,f,p,t,r,i)||Tl(f,p,u,p,t,r,i)||Tl(u,p,u,d,t,r,i))return!0}else s+=Ml(f,d,f,p,r,i),s+=Ml(u,p,u,d,r,i);break;case Nl.Z:if(n){if(Tl(c,l,u,d,t,r,i))return!0}else s+=Ml(c,l,u,d,r,i);c=u,l=d}}return!n&&!Il(l,d)&&(s+=Ml(c,l,u,d,r,i)||0),s!==0}function Wl(e,t,n){return Ul(e,0,!1,t,n)}function Gl(e,t,n,r){return Ul(e,t,!0,n,r)}var Kl=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rc),ql={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zc.style)},Jl=la.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Yl=function(e){l(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<Jl.length;++s)i[Jl[s]]=this[Jl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=V(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?P(this.style,o):this.useStyle(o):a===`shape`?P(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(W(e)){var t=Nr(e,0);return t>.5?Xi:t>.2?Qi:Zi}if(e)return Zi}return Xi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Nr(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 wl(!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)),Gl(a,o/s,e,t)))return!0}if(this.hasFill())return Wl(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:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Me(Kl,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},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=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=P({},this.shape);for(var l={},u=V(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 ql},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){l(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 M(e.style)},n.prototype.getDefaultShape=function(){return M(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);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}(Hc),Xl=F({strokeFirst:!0,font:p,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Kl),Zl=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Ic(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Me(Xl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Pc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Hc);Zl.prototype.type=`tspan`;var Ql=F({x:0,y:0},Rc),$l={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zc.style)};function eu(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var tu=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Me(Ql,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=eu(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 $l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Hc);tu.prototype.type=`image`;function nu(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 ru=Math.round;function iu(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?(ru(r*2)===ru(i*2)&&(e.x1=e.x2=ou(r,s,!0)),ru(a*2)===ru(o*2)&&(e.y1=e.y2=ou(a,s,!0)),e):e}}function au(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=ou(r,s,!0),e.y=ou(i,s,!0),e.width=Math.max(ou(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(ou(i+o,s,!1)-e.y,o===0?0:1),e):e}}function ou(e,t,n){if(!t)return e;var r=ru(e*2);return(r+ru(t))%2==0?r/2:(r+(n?1:-1))/2}var su=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cu={},lu=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new su},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=au(cu,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?nu(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Yl);lu.prototype.type=`rect`;var uu={fill:`#000`},du=2,fu={},pu={style:F({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},zc.style)},mu=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=uu,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,xu(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 Y(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||uu},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 P(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=V(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},P(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return pu},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`;Ac(fu,r.overflowRect,i,a,o,s),i=fu.baseX,a=fu.baseY;var c=bc(Eu(e),e,fu.outerWidth,fu.outerHeight),l=Du(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=xa(a,c.contentHeight,s);if(l||n){var _=ba(i,f,o),v=xa(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Tu(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=wu(`fill`in e?e.fill:(x=!0,r.fill)),C=Cu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=du,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Zl),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,yu(D,e),g+=m,E.setBoundingRect(Fc(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;Ac(fu,t.overflowRect,i,a,n,r),i=fu.baseX,a=fu.baseY;var o=wc(Eu(e),e,fu.outerWidth,fu.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=ba(i,c,n),f=xa(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Du(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&&Du(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=Tu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Zl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=wu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Cu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=du,_=!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=be(s.opacity,t.opacity,1),yu(p,s),y&&(p.lineWidth=be(s.lineWidth,t.lineWidth,g),p.lineDash=K(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Fc(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(lu),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=K(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(tu),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=K(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=be(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return bu(e)&&(t=[e.fontStyle,e.fontWeight,vu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ce(t)||e.textFont||e.font},t}(Hc),hu={left:!0,right:1,center:1},gu={top:1,bottom:1,middle:1},_u=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function vu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function yu(e,t){for(var n=0;n<_u.length;n++){var r=_u[n],i=t[r];i!=null&&(e[r]=i)}}function bu(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function xu(e){return Su(e),L(e.rich,Su),e}function Su(e){if(e){e.font=mu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||hu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||gu[n]?n:`top`,e.padding&&=Se(e.padding)}}function Cu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function wu(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Tu(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Eu(e){var t=e.text;return t!=null&&(t+=``),t}function Du(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ou=ys(),ku=function(e,t,n,r){if(r){var i=Ou(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Ou(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Au=J([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),ju=`original`,Mu=`arrayRows`,Nu=`objectRows`,Pu=`keyedColumns`,Fu=`typedArray`,Iu=`unknown`,Lu=`column`,Ru=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],zu=function(){function e(e){L(Ru,function(t){this[t]=le(e[t],e)},this)}return e}();function Bu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Vu=1,Hu={},Uu=ys(),Wu=ys(),Gu=[`emphasis`,`blur`,`select`],Ku=[`normal`,`emphasis`,`blur`,`select`],qu=`highlight`,Ju=`downplay`,Yu=`select`,Xu=`unselect`,Zu=`toggleSelect`,Qu=`selectchanged`;function $u(e){return e!=null&&e!==`none`}function ed(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function td(e){ed(e,`emphasis`,2)}function nd(e){e.hoverState===2&&ed(e,`normal`,0)}function rd(e){ed(e,`blur`,1)}function id(e){e.hoverState===1&&ed(e,`normal`,0)}function ad(e){e.selected=!0}function od(e){e.selected=!1}function sd(e,t,n){t(e,n)}function cd(e,t,n){sd(e,t,n),e.isGroup&&e.traverse(function(e){sd(e,t,n)})}function ld(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 ud(e,t,n,r){var i=n&&I(n,`select`)>=0,a=!1;if(e instanceof Yl){var o=Uu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if($u(s)||$u(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!$u(l.fill)&&$u(s)?(a=!0,r=P({},r),l=P({},l),l.fill=Fr(s)):!$u(l.stroke)&&$u(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=Fr(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function dd(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function fd(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:ld(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function pd(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return ud(this,e,t,n);if(e===`blur`)return fd(this,e,n);if(e===`select`)return dd(this,e,n)}return n}function md(e){e.stateProxy=pd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=pd),n&&(n.stateProxy=pd)}function hd(e,t){!Cd(e,t)&&!e.__highByOuter&&cd(e,td)}function gd(e,t){!Cd(e,t)&&!e.__highByOuter&&cd(e,nd)}function _d(e,t){e.__highByOuter|=1<<(t||0),cd(e,td)}function vd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&cd(e,nd)}function yd(e){cd(e,rd)}function bd(e){cd(e,id)}function xd(e){cd(e,ad)}function Sd(e){cd(e,od)}function Cd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function wd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Wu(i),o=Bu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){id(e)}),s&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Td(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&&bd(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`||rd(e)}),oe(t))a(e.getData(),t);else if(G(t))for(var u=V(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Wu(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 Ed(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Wu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){rd(e)})}}}function Dd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&Uo(`Unknown dataType `+t.dataType);return}var a=vs(i,t);a=(H(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=Ou(o);Td(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Td(r,u,d,n)}}function Od(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`&&!Hd(s[l])&&Uo(`param should be highDownDispatcher`),Ou(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function kd(e,t,n){process.env.NODE_ENV!==`production`&&!Hd(e)&&Uo(`param should be highDownDispatcher`);var r=Ou(e),i=Od(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Ed(r.componentMainType,r.componentIndex,n),L(a,function(e){return hd(e,t)})):(Td(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Ed(r.componentMainType,r.componentIndex,n),hd(e,t))}function Ad(e,t,n){process.env.NODE_ENV!==`production`&&!Hd(e)&&Uo(`param should be highDownDispatcher`),wd(n);var r=Ou(e),i=Od(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,function(e){return gd(e,t)}):gd(e,t)}function jd(e,t,n){if(Wd(t)){var r=t.dataType,i=vs(e.getData(r),t);H(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Md(e){L(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?xd(t):Sd(t)})})}function Nd(e){var t=[];return e.eachSeries(function(e){L(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 Pd(e,t,n){Vd(e,!0),cd(e,md),Ld(e,t,n)}function Fd(e){Vd(e,!1)}function Id(e,t,n,r){r?Fd(e):Pd(e,t,n)}function Ld(e,t,n){var r=Ou(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Rd=[`emphasis`,`blur`,`select`],zd={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Bd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Rd.length;i++){var a=Rd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[zd[n]]()}}function Vd(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 Hd(e){return!!(e&&e.__highDownDispatcher)}function Ud(e){var t=Hu[e];return t==null&&Vu<=32&&(t=Hu[e]=Vu++),t}function Wd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Gd(e){var t=e.type;return t===`highlight`||t===`downplay`}function Kd(e){var t=Uu(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 qd=wl.CMD,Jd=[[],[],[]],Yd=Math.sqrt,Xd=Math.atan2;function Zd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=qd.M,d=qd.C,f=qd.L,p=qd.R,m=qd.A,h=qd.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=Yd(t[0]*t[0]+t[1]*t[1]),y=Yd(t[2]*t[2]+t[3]*t[3]),b=Xd(-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++],Xe(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Xe(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Jd[c];x[0]=n[o++],x[1]=n[o++],Xe(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Qd=Math.sqrt,$d=Math.sin,ef=Math.cos,tf=Math.PI;function nf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function rf(e,t){return(e[0]*t[0]+e[1]*t[1])/(nf(e)*nf(t))}function af(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(rf(e,t))}function of(e,t,n,r,i,a,o,s,c,l,u){var d=tf/180*c,f=ef(d)*(e-n)/2+$d(d)*(t-r)/2,p=-1*$d(d)*(e-n)/2+ef(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Qd(m),s*=Qd(m));var h=(i===a?-1:1)*Qd((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+ef(d)*g-$d(d)*_,y=(t+r)/2+$d(d)*g+ef(d)*_,b=af([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=af(x,S);if(rf(x,S)<=-1&&(C=tf),rf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/tf*1e6)/1e6;C=tf*2+w%2*tf}u.addData(l,v,y,o,s,b,C,d,a)}var sf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,cf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lf(e){var t=new wl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=wl.CMD,c=e.match(sf);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(cf)||[],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,of(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,of(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 uf=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Yl);function df(e){return e.setData!=null}function ff(e,t){var n=lf(e),r=P({},t);return r.buildPath=function(e){var t=df(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){Zd(n,e),this.dirtyShape()},r}function pf(e,t){return new uf(ff(e,t))}function mf(e,t){var n=ff(e,t);return function(e){l(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(uf)}function hf(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 Yl(t);return o.createPathProxy(),o.buildPath=function(e){if(df(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var gf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),_f=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new gf},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}(Yl);_f.prototype.type=`circle`;var vf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),yf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new vf},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}(Yl);yf.prototype.type=`ellipse`;var bf=Math.PI,xf=bf*2,Sf=Math.sin,Cf=Math.cos,wf=Math.acos,Tf=Math.atan2,Ef=Math.abs,Df=Math.sqrt,Of=Math.max,kf=Math.min,Af=1e-4;function jf(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<Af))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Mf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Df(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)*Df(Of(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 Nf(e){var t;if(H(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 Pf(e,t){var n,r=Of(t.r,0),i=Of(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=Ef(c-s),p=f>xf&&f%xf;if(p>Af&&(f=p),!(r>Af))e.moveTo(l,u);else if(f>xf-Af)e.moveTo(l+r*Cf(s),u+r*Sf(s)),e.arc(l,u,r,s,c,!d),i>Af&&(e.moveTo(l+i*Cf(c),u+i*Sf(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*Cf(s),j=r*Sf(s),ee=i*Cf(c),te=i*Sf(c),ne=f>Af;if(ne){var M=t.cornerRadius;M&&(n=Nf(M),m=n[0],h=n[1],g=n[2],_=n[3]);var N=Ef(r-i)/2;if(v=kf(N,g),y=kf(N,_),b=kf(N,m),x=kf(N,h),w=S=Of(v,y),T=C=Of(b,x),(S>Af||C>Af)&&(E=r*Cf(c),D=r*Sf(c),O=i*Cf(s),k=i*Sf(s),f<bf)){var P=jf(A,j,O,k,E,D,ee,te);if(P){var re=A-P[0],F=j-P[1],I=E-P[0],ie=D-P[1],ae=1/Sf(wf((re*I+F*ie)/(Df(re*re+F*F)*Df(I*I+ie*ie)))/2),oe=Df(P[0]*P[0]+P[1]*P[1]);w=kf(S,(r-oe)/(ae+1)),T=kf(C,(i-oe)/(ae-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>Af){var L=kf(g,w),R=kf(_,w),z=Mf(O,k,A,j,r,L,d),B=Mf(E,D,ee,te,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&L===R?e.arc(l+z.cx,u+z.cy,w,Tf(z.y0,z.x0),Tf(B.y0,B.x0),!d):(L>0&&e.arc(l+z.cx,u+z.cy,L,Tf(z.y0,z.x0),Tf(z.y1,z.x1),!d),e.arc(l,u,r,Tf(z.cy+z.y1,z.cx+z.x1),Tf(B.cy+B.y1,B.cx+B.x1),!d),R>0&&e.arc(l+B.cx,u+B.cy,R,Tf(B.y1,B.x1),Tf(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Af)||!ne)e.lineTo(l+ee,u+te);else if(T>Af){var L=kf(m,T),R=kf(h,T),z=Mf(ee,te,E,D,i,-R,d),B=Mf(A,j,O,k,i,-L,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&L===R?e.arc(l+z.cx,u+z.cy,T,Tf(z.y0,z.x0),Tf(B.y0,B.x0),!d):(R>0&&e.arc(l+z.cx,u+z.cy,R,Tf(z.y0,z.x0),Tf(z.y1,z.x1),!d),e.arc(l,u,i,Tf(z.cy+z.y1,z.cx+z.x1),Tf(B.cy+B.y1,B.cx+B.x1),d),L>0&&e.arc(l+B.cx,u+B.cy,L,Tf(B.y1,B.x1),Tf(B.y0,B.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Ff=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}(),If=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ff},t.prototype.buildPath=function(e,t){Pf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Yl);If.prototype.type=`sector`;var Lf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Rf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Lf},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}(Yl);Rf.prototype.type=`ring`;function zf(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++)Ze(u,u,e[f]),Qe(d,d,e[f]);Ze(u,u,r[0]),Qe(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(Re(e[f]));continue}else c=e[f-1],l=e[f+1];Ve(a,l,c),We(a,a,t);var h=Ke(m,c),g=Ke(m,l),_=h+g;_!==0&&(h/=_,g/=_),We(o,a,-h),We(s,a,g);var v=Be([],m,o),y=Be([],m,s);r&&(Qe(v,v,u),Ze(v,v,d),Qe(y,y,u),Ze(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Bf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=zf(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 Vf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Hf=function(e){l(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vf},t.prototype.buildPath=function(e,t){Bf(e,t,!0)},t}(Yl);Hf.prototype.type=`polygon`;var Uf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Wf=function(e){l(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 Uf},t.prototype.buildPath=function(e,t){Bf(e,t,!1)},t}(Yl);Wf.prototype.type=`polyline`;var Gf={},Kf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),qf=function(e){l(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 Kf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=iu(Gf,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}(Yl);qf.prototype.type=`line`;var Jf=[],Yf=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 Xf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Xn:Yn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Xn:Yn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?rr:nr)(e.x1,e.cpx1,e.x2,t),(n?rr:nr)(e.y1,e.cpy1,e.y2,t)]}var Zf=function(e){l(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 Yf},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&&(or(n,o,i,u,Jf),o=Jf[1],i=Jf[2],or(r,s,a,u,Jf),s=Jf[1],a=Jf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&($n(n,o,c,i,u,Jf),o=Jf[1],c=Jf[2],i=Jf[3],$n(r,s,l,a,u,Jf),s=Jf[1],l=Jf[2],a=Jf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Xf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Xf(this.shape,e,!0);return Ge(t,t)},t}(Yl);Zf.prototype.type=`bezier-curve`;var Qf=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}(),$f=function(e){l(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 Qf},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}(Yl);$f.prototype.type=`arc`;var ep=function(e){l(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),Yl.prototype.getBoundingRect.call(this)},t}(Yl),tp=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),np=function(e){l(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}(tp),rp=function(e){l(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}(tp),ip=Math.min,ap=Math.max,op=Math.abs,sp=[0,0],cp=[0,0],lp=un(),up=lp.minTv,dp=lp.maxTv,fp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new zt;for(var n=0;n<2;n++)this._axes[n]=new zt;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);zt.sub(r[0],n[1],n[0]),zt.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&&zt.set(t,0,0),lp.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!lp.negativeSize&&zt.copy(t,r?lp.useDir?lp.dirMinTv:up:dp),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,sp),e._getProjMinMaxOnAxis(a,t._corners,cp),lp.negativeSize||sp[1]<cp[0]||sp[0]>cp[1]){if(i=!1,lp.negativeSize||n)return i;var s=op(cp[0]-sp[1]),c=op(sp[0]-cp[1]);ip(s,c)>dp.len()&&(s<c?zt.scale(dp,o,-s*r):zt.scale(dp,o,c*r))}else if(!n){var s=op(cp[0]-sp[1]),c=op(sp[0]-cp[1]);(lp.useDir||ip(s,c)<up.len())&&((s<c||!lp.bidirectional)&&(zt.scale(up,o,s*r),lp.useDir&&lp.calcDirMTV()),(s>=c||!lp.bidirectional)&&(zt.scale(up,o,-c*r),lp.useDir&&lp.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=ip(l,o),s=ap(l,s)}n[0]=o+lp.touchThreshold,n[1]=s-lp.touchThreshold,lp.negativeSize=n[1]<n[0]},e}(),pp=[],mp=function(e){l(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 Y(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(pp)),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}(Hc),hp=ys();function gp(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=K(r.duration,200),u=K(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)),U(d)&&(d=d(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function _p(e,t,n,r,i,a,o){var s=!1,c;U(i)?(o=a,a=i,i=null):G(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=gp(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 vp(e,t,n,r,i,a){_p(`update`,e,t,n,r,i,a)}function yp(e,t,n,r,i,a){_p(`enter`,e,t,n,r,i,a)}function bp(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 xp(e,t,n,r,i,a){bp(e)||_p(`leave`,e,t,n,r,i,a)}function Sp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),xp(e,{style:{opacity:0}},t,n,r)}function Cp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Sp(e,t,n,r)}):Sp(e,t,n,r)}function wp(e){hp(e).oldStyle=e.style}var Tp=t({Arc:()=>$f,BezierCurve:()=>Zf,BoundingRect:()=>Y,Circle:()=>_f,CompoundPath:()=>ep,Ellipse:()=>yf,Group:()=>Ha,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>tu,IncrementalDisplayable:()=>mp,Line:()=>qf,LinearGradient:()=>np,OrientedBoundingRect:()=>fp,Path:()=>Yl,Point:()=>zt,Polygon:()=>Hf,Polyline:()=>Wf,RadialGradient:()=>rp,Rect:()=>lu,Ring:()=>Rf,Sector:()=>If,Text:()=>mu,WH:()=>Op,XY:()=>Dp,applyTransform:()=>Up,calcZ2Range:()=>fm,clipPointsByRect:()=>Jp,clipRectByRect:()=>Yp,createIcon:()=>Xp,decomposeTransform:()=>gm,ensureCopyRect:()=>lm,ensureCopyTransform:()=>um,expandOrShrinkRect:()=>tm,extendPath:()=>jp,extendShape:()=>kp,getCurrentCanvasPainter:()=>vm,getShapeClass:()=>Np,getTransform:()=>Hp,groupTransition:()=>qp,initProps:()=>yp,isBoundingRectAxisAligned:()=>sm,isElementRemoved:()=>bp,lineLineIntersect:()=>Qp,linePolygonIntersect:()=>Zp,makeImage:()=>Fp,makePath:()=>Pp,mergePath:()=>Lp,payloadDisableAnimation:()=>hm,registerShape:()=>Mp,removeElement:()=>xp,removeElementWithFadeOut:()=>Cp,resizePath:()=>Rp,retrieveZInfo:()=>dm,setTooltipConfig:()=>im,subPixelOptimize:()=>Vp,subPixelOptimizeLine:()=>zp,subPixelOptimizeRect:()=>Bp,transformDirection:()=>Wp,traverseElements:()=>om,traverseUpdateZ:()=>pm,updateProps:()=>vp}),Ep={},Dp=[`x`,`y`],Op=[`width`,`height`];function kp(e){return Yl.extend(e)}var Ap=mf;function jp(e,t){return Ap(e,t)}function Mp(e,t){Ep[e]=t}function Np(e){if(Ep.hasOwnProperty(e))return Ep[e]}function Pp(e,t,n,r){var i=pf(e,t);return n&&(r===`center`&&(n=Ip(n,i.getBoundingRect())),Rp(i,n)),i}function Fp(e,t,n){var r=new tu({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(Ip(t,i))}}});return r}function Ip(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 Lp=hf;function Rp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function zp(e,t){return iu(e,e,{lineWidth:t}),e}function Bp(e,t){return au(e,e,t),e}var Vp=ou;function Hp(e,t){for(var n=Mt([]);e&&e!==t;)Pt(n,e.getLocalTransform(),n),e=e.parent;return n}function Up(e,t,n){return t&&!oe(t)&&(t=oa.getLocalTransform(t)),n&&(t=Rt([],t)),Xe([],e,t)}function Wp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ro(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ro(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Up(a,t,n),ro(a[0])>ro(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Gp(e){return!e.isGroup}function Kp(e){return e.shape!=null}function qp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Gp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Kp(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Gp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),vp(e,r,n,Ou(e).dataIndex)}}})}function Jp(e,t){return R(e,function(e){var n=e[0];n=X(n,t.x),n=no(n,t.x+t.width);var r=e[1];return r=X(r,t.y),r=no(r,t.y+t.height),[n,r]})}function Yp(e,t){var n=X(e.x,t.x),r=no(e.x+e.width,t.x+t.width),i=X(e.y,t.y),a=no(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 Xp(e,t,n){var r=P({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),F(i,n),new tu(r)):Pp(e.replace(`path://`,``),r,n,`center`)}function Zp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Qp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Qp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=$p(u,d,c,l);if(em(f))return!1;var p=e-i,m=t-a,h=$p(p,m,c,l)/f;if(h<0||h>1)return!1;var g=$p(p,m,u,d)/f;return!(g<0||g>1)}function $p(e,t,n,r){return e*r-n*t}function em(e){return e<=1e-6&&e>=-1e-6}function tm(e,t,n,r,i){return t==null?e:(fe(t)?nm[0]=nm[1]=nm[2]=nm[3]=t:(process.env.NODE_ENV!==`production`&&q(t.length===4),nm[0]=t[0],nm[1]=t[1],nm[2]=t[2],nm[3]=t[3]),r&&(nm[0]=X(0,nm[0]),nm[1]=X(0,nm[1]),nm[2]=X(0,nm[2]),nm[3]=X(0,nm[3])),n&&(nm[0]=-nm[0],nm[1]=-nm[1],nm[2]=-nm[2],nm[3]=-nm[3]),rm(e,nm,`x`,`width`,3,1,i&&i[0]||0),rm(e,nm,`y`,`height`,0,2,i&&i[1]||0),e)}var nm=[0,0,0,0];function rm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=X(0,no(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:ro(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function im(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(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&&L(V(c),function(e){Ne(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Ou(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function am(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function om(e,t){if(e){if(H(e))for(var n=0;n<e.length;n++)am(e[n],t);else am(e,t)}}function sm(e){return!e||ro(e[1])<cm&&ro(e[2])<cm||ro(e[0])<cm&&ro(e[3])<cm}var cm=1e-5;function lm(e,t){return e?Y.copy(e,t):t.clone()}function um(e,t){return t?Nt(e||jt(),t):void 0}function dm(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function fm(e){var t=-1/0,n=1/0;am(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 pm(e,t,n){mm(e,t,n,-1/0)}function mm(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=X(mm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=X(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 hm(e){return e.animation={duration:0},e}function gm(e,t){return t?Nt(_m.transform,t):Mt(_m.transform),_m.decomposeTransform(),ua(e,_m),e}var _m=new oa;_m.transform=jt();function vm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Mp(`circle`,_f),Mp(`ellipse`,yf),Mp(`sector`,If),Mp(`ring`,Rf),Mp(`polygon`,Hf),Mp(`polyline`,Wf),Mp(`rect`,lu),Mp(`line`,qf),Mp(`bezierCurve`,Zf),Mp(`arc`,$f);var ym={};function bm(e,t){for(var n=0;n<Gu.length;n++){var r=Gu[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 xm(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??=U(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Gu.length;l++){var u=Gu[l],d=t[u];c[u]=K(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Sm(e,t,n,r){n||=ym;for(var i=e instanceof mu,a=!1,o=0;o<Ku.length;o++){var s=t[Ku[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new mu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=xm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=wm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Tm(u,n,!1));for(var o=0;o<Gu.length;o++){var p=Gu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!K(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=wm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Tm(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&&(Nm(c).setLabelText=function(e){var r=xm(n,t,e);bm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Cm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Gu.length;r++){var i=Gu[r];n[i]=e.getModel([i,t])}return n}function wm(e,t,n,r,i){var a={};return Em(a,e,n,r,i),t&&P(a,t),a}function Tm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=K(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 Em(e,t,n,r,i){n||=ym;var a=t.ecModel,o=a&&a.option.textStyle,s=Dm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=K(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);jm(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=fe(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Fm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Se(_),h.__marginType=Fm.textMargin)}jm(e,t,o,null,null,n,r,i,!0,!1)}function Dm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||ym).rich;if(n){t||={};for(var r=V(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Om=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],km=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Am=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function jm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||ym;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=K(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&Go(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&Go(`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=K(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=K(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=K(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;_<Om.length;_++){var v=Om[_],y=i!==!1&&r?be(t.getShallow(v),r.getShallow(v),n[v]):K(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<km.length;_++){var v=km[_],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;_<Am.length;_++){var v=Am[_],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`&&Go(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&Go(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function Mm(e,t){var n=t&&t.getModel(`textStyle`);return Ce([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 Nm=ys();function Pm(e,t,n,r){if(e){var i=Nm(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)}}var Fm={minMargin:1,textMargin:2},Im=[`textStyle`,`color`],Lm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Rm=new mu,zm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Im):null)},e.prototype.getFont=function(){return Mm({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<Lm.length;n++)t[Lm[n]]=this.getShallow(Lm[n]);return Rm.useStyle(t),Rm.update(),Rm.getBoundingRect()},e}(),Bm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Vm=sc(Bm),Hm=function(){function e(){}return e.prototype.getLineStyle=function(e){return Vm(this,e)},e}(),Um=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Wm=sc(Um),Gm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Wm(this,e,t)},e}(),Km=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){N(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(M(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(!d.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}();$s(Km),rc(Km),ae(Km,Hm),ae(Km,Gm),ae(Km,lc),ae(Km,zm);var qm=Math.round(Math.random()*10);function Jm(e){return[e||``,qm++].join(`_`)}function Ym(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Xs(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Xs(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Xm(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(L(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]),L(u.successor,d?p:f)}L(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Ko(`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 L(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),L(c,function(e){I(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);I(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 L(e,function(e){I(t,e)>=0&&n.push(e)}),n}}function Zm(e,t){return N(N({},e,!0),t,!0)}var Qm={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:`. `}}}},$m={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:``}}}},eh=`ZH`,th=`EN`,nh=th,rh={},ih={},ah=d.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||nh).toUpperCase().indexOf(eh)>-1?eh:nh}():nh;function oh(e,t){e=e.toUpperCase(),ih[e]=new Km(t),rh[e]=t}function sh(e){if(W(e)){var t=rh[e.toUpperCase()]||{};return e===eh||e===th?M(t):N(M(t),M(rh[nh]),!1)}return N(M(e),M(rh[nh]),!1)}function ch(e){return ih[e]}function lh(){return ih[nh]}oh(th,Qm),oh(eh,$m);var uh=null;function dh(){return uh}function fh(e,t){var n=dh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function ph(e){var t=e.brk;return t?t.breaks:[]}function mh(e){var t=e.brk;return t?t.hasBreaks():!1}var hh=1e3,gh=hh*60,_h=gh*60,vh=_h*24,yh=vh*365,bh={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})/},xh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Sh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,Ch=`{yyyy}-{MM}-{dd}`,wh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Ch,hour:Ch+` `+xh.hour,minute:Ch+` `+xh.minute,second:Ch+` `+xh.second,millisecond:Sh},Th=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Eh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Dh(e){return!W(e)&&!U(e)?Oh(e):e}function Oh(e){e||={};var t={},n=!0;return L(Th,function(t){n&&=e[t]==null}),L(Th,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=Th[s],l=G(a)&&!H(a)?a[c]:a,u=void 0;H(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=xh[r]:bh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function kh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Ah(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 jh(e){return e===Ah(e)}function Mh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Nh(e,t,n,r){var i=Do(e),a=i[Lh(n)](),o=i[Rh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[zh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Bh(n)](),d=(u-1)%12+1,f=i[Vh(n)](),p=i[Hh(n)](),m=i[Uh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Km?r:ch(r||ah)||lh()).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,kh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,kh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,kh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,kh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,kh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,kh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,kh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,kh(m,3)).replace(/{S}/g,m+``)}function Ph(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0},s=dh();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=Fh(e.value,i);a=n[u][u][0]}}return Nh(new Date(e.value),a,i,r)}function Fh(e,t){var n=Do(e),r=n[Rh(t)]()+1,i=n[zh(t)](),a=n[Bh(t)](),o=n[Vh(t)](),s=n[Hh(t)](),c=n[Uh(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 Ih(e,t,n){switch(t){case`year`:e[Gh(n)](0);case`month`:e[Kh(n)](1);case`day`:e[qh(n)](0);case`hour`:e[Jh(n)](0);case`minute`:e[Yh(n)](0);case`second`:e[Xh(n)](0)}return e}function Lh(e){return e?`getUTCFullYear`:`getFullYear`}function Rh(e){return e?`getUTCMonth`:`getMonth`}function zh(e){return e?`getUTCDate`:`getDate`}function Bh(e){return e?`getUTCHours`:`getHours`}function Vh(e){return e?`getUTCMinutes`:`getMinutes`}function Hh(e){return e?`getUTCSeconds`:`getSeconds`}function Uh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Wh(e){return e?`setUTCFullYear`:`setFullYear`}function Gh(e){return e?`setUTCMonth`:`setMonth`}function Kh(e){return e?`setUTCDate`:`setDate`}function qh(e){return e?`setUTCHours`:`setHours`}function Jh(e){return e?`setUTCMinutes`:`setMinutes`}function Yh(e){return e?`setUTCSeconds`:`setSeconds`}function Xh(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Zh(e){if(!Mo(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Qh(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 $h=Se;function eg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Ce(e)?e:`-`}function a(e){return Io(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Do(e):e;if(!isNaN(+c))return Nh(c,r,n);if(s)return`-`}if(t===`ordinal`)return de(e)?i(e):fe(e)&&a(e)?e+``:`-`;var l=jo(e);return a(l)?Zh(l):de(e)?i(e):typeof e==`boolean`?e+``:`-`}var tg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],ng=function(e,t){return`{`+e+(t??``)+`}`};function rg(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=tg[a];e=e.replace(ng(o),ng(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(ng(tg[c],s),n?ht(l):l)}return e}function ig(e,t){var n=W(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:`+ht(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+ht(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 ag(e,t){return t||=`transparent`,W(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var og={},sg={},cg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(og,!0),this._normalMasterList=n(sg,!1);function n(n,r){var i=[];return L(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&L(o,function(e){return q(!e.update)})}),i}},e.prototype.update=function(e,t){L(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`){og[e]=t;return}sg[e]=t},e.get=function(e){return sg[e]||og[e]},e}();function lg(e){return!!og[e]}var ug=J();function dg(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=ug.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function fg(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&&Uo(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!lg(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&Uo(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function pg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&q(!!n);var o=fg(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`&&q(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||Uo(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var mg=L,hg=[`left`,`right`,`top`,`bottom`,`width`,`height`],gg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function _g(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 vg=_g;ue(_g,`vertical`),ue(_g,`horizontal`);function yg(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 bg(e,t,n){n=$h(n||0);var r=t.width,i=t.height,a=mo(e.left,r),o=mo(e.top,i),s=mo(e.right,r),c=mo(e.bottom,i),l=mo(e.width,r),u=mo(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 Y((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var xg={rect:1,point:2};function Sg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=dg(e),l=c.coord,u=c.from;if(o.dataToLayout){a=xg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=xg.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&Uo(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=xg.rect,a===xg.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 Cg(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 Y(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=bg(F({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 wg(e){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function Tg(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(gg[0],0),a=o(gg[1],1);c(gg[0],e,i),c(gg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(mg(n,function(t){c[t]=e[t]}),mg(n,function(e){Ne(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(!Ne(a,f)&&Ne(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){mg(e,function(e){t[e]=n[e]})}}function Eg(e){return Dg({},e)}function Dg(e,t){return t&&e&&mg(hg,function(n){Ne(t,n)&&(e[n]=t[n])}),e}var Og=ys(),kg=function(e){l(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Jm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wg(this),r=n?Eg(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&Tg(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=wg(this);n&&Tg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Qs(e))return e.defaultOption;var t=Og(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=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Ts(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return yg(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}(Km);tc(kg,Km),oc(kg),Ym(kg),Xm(kg,Ag);function Ag(e){var t=[];return L(kg.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Xs(e).main}),e!==`dataset`&&I(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},jg=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 Mg in P(jg,{primary:jg.neutral80,secondary:jg.neutral70,tertiary:jg.neutral60,quaternary:jg.neutral50,disabled:jg.neutral20,border:jg.neutral30,borderTint:jg.neutral20,borderShade:jg.neutral40,background:jg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:jg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:jg.neutral70,axisLineTint:jg.neutral40,axisTick:jg.neutral70,axisTickMinor:jg.neutral60,axisLabel:jg.neutral70,axisSplitLine:jg.neutral15,axisMinorSplitLine:jg.neutral05}),jg)if(jg.hasOwnProperty(Mg)){var Ng=jg[Mg];Mg===`theme`?Q.darkColor.theme=jg.theme.slice():Mg===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:Mg.indexOf(`accent`)===0?Q.darkColor[Mg]=jr(Ng,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Mg]=jr(Ng,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 Pg=``;typeof navigator<`u`&&(Pg=navigator.platform||``);var Fg=`rgba(0, 0, 0, 0.2)`,Ig=Q.color.theme[0],Lg=jr(Ig,null,null,.9),Rg={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[Lg,Ig],aria:{decal:{decals:[{color:Fg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Fg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Fg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Fg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Fg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Fg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Pg.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},zg={Must:1,Might:2,Not:3},Bg=ys();function Vg(e){Bg(e).datasetMap=J()}function Hg(e,t,n){var r={},i=Ug(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Bg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(e,function(t,n){var i=G(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});L(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 Ug(e){if(!e.get(`data`,!0))return Ts(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Cs).models[0]}function Wg(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Ts(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Cs).models}function Gg(e,t){return Kg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Kg(e,t,n,r,i,a){var o,s=5;if(me(e))return zg.Not;var c,l;if(r){var u=r[a];G(u)?(c=u.name,l=u.type):W(u)&&(c=u)}if(l!=null)return l===`ordinal`?zg.Must:zg.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 zg.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 zg.Not;var f=_[c];if(!f||me(f))return zg.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=$o(g);if(!H(y))return zg.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?zg.Might:zg.Not;if(t&&e!==`-`)return zg.Must}return zg.Not}var qg=J();function Jg(e,t){q(qg.get(e)==null&&t),qg.set(e,t)}function Yg(e,t,n){var r=qg.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++)q(ms(i[a]));return n.concat(i)}var Xg=ys();ys();var Zg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Xo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return $g(this,Xg,r,i,e,t,n)},e.prototype.clearColorPalette=function(){e_(this,Xg)},e}();function Qg(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 $g(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:Qg(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 e_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var t_,n_,r_,i_=`\0_ec_inner`,a_=1,o_={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`},s_={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`},c_={};function l_(e){L(e,function(e,t){if(!kg.hasClass(t)){var n=o_[t];n&&!c_[n]&&(Uo(`Component `+t+` is used but not imported.
10
10
  import { `+n+` } from 'echarts/components';
11
- echarts.use([`+n+`]);`),Qg[n]=!0)}})}var e_=function(e){l(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 zm(r),this._locale=new zm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(q(e!=null,`option is null/undefined`),q(e[Jg]!==Yg,`please use chart.getOption()`));var r=a_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,a_(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`&&$g(i),!this.option||e===`recreate`?qg(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&&L(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=J(),s=t&&t.replaceMergeMainTypeMap;Mg(this),L(e,function(e,t){e!=null&&(bg.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?M(e):N(n[t],e,!0))}),s&&s.each(function(e,t){bg.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),bg.topologicalTravel(a,bg.getAllClassMainTypes(),c,this);function c(t){var a=zg(this,t,Go(e[t])),o=r.get(t),c=Xo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);us(c,t,bg),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;L(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=bg.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=Zg[s];Qg[s]||(Qg[s]=!0,Z(c?`Series `+s+` is used but not imported.
11
+ echarts.use([`+n+`]);`),c_[n]=!0)}})}var u_=function(e){l(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 Km(r),this._locale=new Km(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(q(e!=null,`option is null/undefined`),q(e[i_]!==a_,`please use chart.getOption()`));var r=h_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,h_(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`&&l_(i),!this.option||e===`recreate`?r_(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&&L(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=J(),s=t&&t.replaceMergeMainTypeMap;Vg(this),L(e,function(e,t){e!=null&&(kg.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?M(e):N(n[t],e,!0))}),s&&s.each(function(e,t){kg.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),kg.topologicalTravel(a,kg.getAllClassMainTypes(),c,this);function c(t){var a=Yg(this,t,Xo(e[t])),o=r.get(t),c=ts(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);gs(c,t,kg),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;L(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=kg.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=s_[s];c_[s]||(c_[s]=!0,Uo(c?`Series `+s+` is used but not imported.
12
12
  import { `+c+` } from 'echarts/charts';
13
- echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Ro(`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=P({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),P(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`&&Gg(this)}this._seriesIndices||Gg(this)},t.prototype.getOption=function(){var e=M(this.option);return L(e,function(t,n){if(bg.hasClass(n)){for(var r=Go(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!ls(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Jg],e},t.prototype.setTheme=function(e){this._theme=new zm(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?B(a,function(e){return!!e}):r_(`name`,i,a):r_(`id`,r,a):(o=[],L(Go(n),function(e){a[e]&&o.push(a[e])})),i_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(i_(r?this.queryComponents(r):B(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?B(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(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=W(e)?r.get(e):G(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=as(e,null);return B(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 B(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return B(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Kg(this),L(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){L(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Kg(this),L(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 L(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Kg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Kg(this);var n=[];L(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=J(n)},t.prototype.restoreData=function(e){Gg(this);var t=this._componentsMap,n=[];t.each(function(e,t){bg.hasClass(t)&&n.push(t)}),bg.topologicalTravel(n,bg.getAllClassMainTypes(),function(n){L(t.get(n),function(t){t&&(n!==`series`||!t_(t,e))&&t.restoreData()})})},t.internalField=function(){Gg=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=J(t)},Kg=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},qg=function(e,t){e.option={},e.option[Jg]=Yg,e._componentsMap=J({series:[]}),e._componentsCount=J();var n=t.aria;G(n)&&n.enabled==null&&(n.enabled=!0),n_(t,e._theme.option),N(t,kg,!1),e._mergeOption(t,null)}}(),t}(zm);function t_(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 n_(e,t){var n=e.color&&!e.colorLayer;L(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||bg.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function r_(e,t,n){if(H(t)){var r=J();return L(t,function(e){e!=null&&as(e,null)!=null&&r.set(e,!0)}),B(n,function(t){return t&&r.get(t[e])})}var i=as(t,null);return B(n,function(t){return t&&i!=null&&t[e]===i})}function i_(e,t){return t.hasOwnProperty(`subType`)?B(e,function(e){return e&&e.subType===t.subType}):e}function a_(e){var t=J();return e&&L(Go(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&q(bg.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ae(e_,Vg);var o_=/^(min|max)?(.+)$/,s_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(Go(e.series),function(e){e&&e.data&&me(e.data)&&Te(e.data)}),L(Go(e.dataset),function(e){e&&e.source&&me(e.source)&&Te(e.source)})),e=M(e);var r=this._optionBackup,i=c_(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=[],M(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=M(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++)l_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!d_(a,this._currentMediaIndices)&&(o=R(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function c_(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&&(H(l)?L(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&G(e.query)&&G(e.query.option)&&Z(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&Z(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),L(c,function(e){return f(e)}),L(r,function(e){return f(e.option)});function f(e){L(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function l_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,function(e,t){var n=t.match(o_);if(!(!n||!n[1]||!n[2])){var a=n[1];u_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function u_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function d_(e,t){return e.join(`,`)===t.join(`,`)}var f_=L,p_=G,m_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function h_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=m_.length;n<r;n++){var i=m_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&Bo(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?N(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&Bo(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?N(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function g_(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`&&zo(`'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,F(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&zo(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 __(e){g_(e,`itemStyle`),g_(e,`lineStyle`),g_(e,`areaStyle`),g_(e,`label`),g_(e,`labelLine`),g_(e,`upperLabel`),g_(e,`edgeLabel`)}function v_(e,t){var n=p_(e)&&e[t],r=p_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&zo(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=qo.length;i<a;i++){var o=qo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function y_(e){e&&(__(e),v_(e,`label`),e.emphasis&&v_(e.emphasis,`label`))}function b_(e){if(p_(e)){h_(e),__(e),v_(e,`label`),v_(e,`upperLabel`),v_(e,`edgeLabel`),e.emphasis&&(v_(e.emphasis,`label`),v_(e.emphasis,`upperLabel`),v_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(h_(t),y_(t));var n=e.markLine;n&&(h_(n),y_(n));var r=e.markArea;r&&y_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!me(a))for(var o=0;o<a.length;o++)y_(a[o]);L(e.categories,function(e){__(e)})}if(i&&!me(i))for(var o=0;o<i.length;o++)y_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)y_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)H(c[o])?(y_(c[o][0]),y_(c[o][1])):y_(c[o]);e.type===`gauge`?(v_(e,`axisLabel`),v_(e,`title`),v_(e,`detail`)):e.type===`treemap`?(g_(e.breadcrumb,`itemStyle`),L(e.levels,function(e){__(e)})):e.type===`tree`&&__(e.leaves)}}function x_(e){return H(e)?e:e?[e]:[]}function S_(e){return(H(e)?e[0]:e)||{}}function C_(e,t){f_(x_(e.series),function(e){p_(e)&&b_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),f_(n,function(t){f_(x_(e[t]),function(e){e&&(v_(e,`axisLabel`),v_(e.axisPointer,`label`))})}),f_(x_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;v_(t,`axisLabel`),v_(t&&t.axisPointer,`label`)}),f_(x_(e.calendar),function(e){g_(e,`itemStyle`),v_(e,`dayLabel`),v_(e,`monthLabel`),v_(e,`yearLabel`)}),f_(x_(e.radar),function(e){v_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&zo(`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`&&zo(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&f_(e.indicator,function(e){e.text&&Bo(`text`,`name`,`radar.indicator`)})}),f_(x_(e.geo),function(e){p_(e)&&(y_(e),f_(x_(e.regions),function(e){y_(e)}))}),f_(x_(e.timeline),function(e){y_(e),g_(e,`label`),g_(e,`itemStyle`),g_(e,`controlStyle`,!0);var t=e.data;H(t)&&L(t,function(e){G(e)&&(g_(e,`label`),g_(e,`itemStyle`))})}),f_(x_(e.toolbox),function(e){g_(e,`iconStyle`),f_(e.feature,function(e){g_(e,`iconStyle`)})}),v_(S_(e.axisPointer),`label`),v_(S_(e.tooltip).axisPointer,`label`)}function w_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function T_(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 E_(e){e&&L(D_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var D_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],O_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],k_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function A_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<k_.length;n++){var r=k_[n][1],i=k_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&Bo(r,i))}}function j_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&Bo(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function M_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&Bo(`downplay`,`blur`,`sunburst`))}function N_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&Bo(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function P_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&P_(e[n].children,t)}function F_(e,t){C_(e,t),e.series=Go(e.series),L(e.series,function(e){if(G(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&Bo(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&Bo(`clockWise`,`clockwise`)),j_(e.label);var n=e.data;if(n&&!me(n))for(var r=0;r<n.length;r++)j_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&Bo(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=w_(e,`pointer.color`);i!=null&&T_(e,`itemStyle.color`,i)}else if(t===`bar`){A_(e),A_(e.backgroundStyle),A_(e.emphasis);var n=e.data;if(n&&!me(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(A_(n[r]),A_(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`&&Bo(`highlightPolicy`,`emphasis.focus`,`sunburst`))),M_(e),P_(e.data,M_)}else t===`graph`||t===`sankey`?N_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&Bo(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&zo("`mapLocation` is not used anymore."),F(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&Bo(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),E_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),L(O_,function(t){var n=e[t];n&&(H(n)||(n=[n]),L(n,function(e){E_(e)}))})}var I_=zs(L_);function L_(e){var t=J();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(),L(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),R_(e))})}function R_(e){L(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=vo(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var z_=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&&Ig(this,n)===Ag.Must&&(r.type=`ordinal`)}}return e}();function B_(e){return e instanceof z_}function V_(e,t,n){n||=W_(e);var r=t.seriesLayoutBy,i=G_(e,n,r,t.sourceHeader,t.dimensions);return new z_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function H_(e){return new z_({data:e,sourceFormat:me(e)?Ou:wu})}function U_(e){return new z_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function W_(e){var t=ku;if(me(e))t=Ou;else if(H(e)){e.length===0&&(t=Tu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||me(i)){t=Tu;break}if(G(i)){t=Eu;break}}}}else if(G(e)){for(var a in e)if(Ne(e,a)&&oe(e[a])){t=Du;break}}return t}function G_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:q_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?J_(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=fe(r)?r:+!!r,!i&&o===1&&(i=[],J_(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||=K_(e);else if(t===`keyedColumns`)i||(i=[],L(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Jo(e[0]);a=H(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&q(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:q_(i),dimensionsDetectedCount:a}}function K_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return V(n)}function q_(e){if(e){var t=J();return R(e,function(e,n){e=G(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 J_(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 Y_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var X_,Z_,Q_,$_,ev,tv,nv=function(){function e(e,t){var n=B_(e)?e:H_(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=iv[mv(i,a)];o&&o(r,n.dimensionsDefine)}tv(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;tv=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=ev[mv(o,s)];process.env.NODE_ENV!==`production`&&q(u,`Invalide sourceFormat: `+o),P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=le(sv(o,s),null,i,c,l),e.count=le(uv(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};ev=(e={},e[Tu+`_`+Au]={pure:!0,appendData:i},e[Tu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Eu]={pure:!0,appendData:i},e[Du]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[wu]={appendData:i},e[Ou]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&q(me(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}(),rv=function(e){H(e)||Z(`series.data or dataset.source must be an array.`)},iv=(X_={},X_[Tu+`_`+Au]=rv,X_[Tu+`_row`]=rv,X_[Eu]=rv,X_[Du]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Z(`dimension name must not be null/undefined.`)},X_[wu]=rv,X_),av=function(e,t,n,r){return e[r]},ov=(Z_={},Z_[Tu+`_`+Au]=function(e,t,n,r){return e[r+t]},Z_[Tu+`_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},Z_[Eu]=av,Z_[Du]=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},Z_[wu]=av,Z_);function sv(e,t){var n=ov[mv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var cv=function(e,t,n){return e.length},lv=(Q_={},Q_[Tu+`_`+Au]=function(e,t,n){return Math.max(0,e.length-t)},Q_[Tu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Q_[Eu]=cv,Q_[Du]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Q_[wu]=cv,Q_);function uv(e,t){var n=lv[mv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support count on "`+e+`", "`+t+`".`),n}var dv=function(e,t,n){return e[t]},fv=($_={},$_[Tu]=dv,$_[Eu]=function(e,t,n){return e[n]},$_[Du]=dv,$_[wu]=function(e,t,n){var r=Jo(e);return r instanceof Array?r[t]:r},$_[Ou]=dv,$_);function pv(e){var t=fv[e];return process.env.NODE_ENV!==`production`&&q(t,`Do not support get value on "`+e+`".`),t}function mv(e,t){return e===`arrayRows`?e+`_`+t:e}function hv(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 pv(a)(r,o,s)}var c=r;return a===`original`&&(c=Jo(r)),c}}}var gv=/\{@(.+?)\}/g,_v=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&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return Xh(i,s).replace(gv,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)&&Z(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=hv(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return hv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function vv(e){var t,n;return G(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Vo(e)):t=e,{text:t,frag:n}}function yv(e){return new bv(e)}var bv=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`&&q(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&q(!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(H(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`&&q(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){xv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:xv.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),H(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`&&q(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}(),xv=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 Sv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!fe(e)&&e!=null&&e!==`-`&&(e=+Co(e)),e==null||e===``?NaN:Number(e))}J({number:function(e){return parseFloat(e)},time:function(e){return+Co(e)},trim:function(e){return W(e)?Ce(e):e}});var Cv={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(!fe(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),Ho(n)}this._opFn=Cv[e],this._rvalFloat=Do(t)}return e.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(Do(e),this._rvalFloat)},e})();var wv=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=fe(e)?e:Do(e),r=fe(t)?t:Do(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(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=Do(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=Do(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Tv(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 Ev(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Dv=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 Sv(e,t)},e}();function Ov(e,t){var n=new Dv,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.'),Ho(o));var s=[],c={},l=e.dimensionsDefine;if(l)L(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;Ne(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),Ho(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=sv(i,Au);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=le(kv,null,e)),n.cloneRawData=le(Av,null,e),n.count=le(uv(i,Au),null,r,a,s);var f=pv(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=le(jv,null,s,c),n.cloneAllDimensionInfo=le(Mv,null,s),n}function kv(e){var t=e.sourceFormat;if(!Lv(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),Ho(n)}return e.data}function Av(e){var t=e.sourceFormat,n=e.data;if(!Lv(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),Ho(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(P({},n[a]));return i}}function jv(e,t,n){if(n!=null){if(fe(n)||!isNaN(n)&&!Ne(t,n))return e[n];if(Ne(t,n))return t[n]}}function Mv(e){return M(e)}var Nv=J();function Pv(e){e=M(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),Ho(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),Ho(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Nv.set(t,e)}function Fv(e,t,n){var r=Go(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),Ho(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=Iv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Iv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),Ho(i)),G(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),Ho(i));var a=e.type,o=Nv.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),Ho(i));var s=R(t,function(e){return Ov(e,o)}),c=Go(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&Lo(R(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Vo(e.data),`- transform result dimensions:`,Vo(e.dimensions)].join(`
13
+ echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Ho(`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=P({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),P(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`&&t_(this)}this._seriesIndices||t_(this)},t.prototype.getOption=function(){var e=M(this.option);return L(e,function(t,n){if(kg.hasClass(n)){for(var r=Xo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!ms(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[i_],e},t.prototype.setTheme=function(e){this._theme=new Km(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?B(a,function(e){return!!e}):p_(`name`,i,a):p_(`id`,r,a):(o=[],L(Xo(n),function(e){a[e]&&o.push(a[e])})),m_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(m_(r?this.queryComponents(r):B(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?B(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(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=W(e)?r.get(e):G(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=us(e,null);return B(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 B(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return B(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){n_(this),L(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){L(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){n_(this),L(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 L(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return n_(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){n_(this);var n=[];L(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=J(n)},t.prototype.restoreData=function(e){t_(this);var t=this._componentsMap,n=[];t.each(function(e,t){kg.hasClass(t)&&n.push(t)}),kg.topologicalTravel(n,kg.getAllClassMainTypes(),function(n){L(t.get(n),function(t){t&&(n!==`series`||!d_(t,e))&&t.restoreData()})})},t.internalField=function(){t_=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=J(t)},n_=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},r_=function(e,t){e.option={},e.option[i_]=a_,e._componentsMap=J({series:[]}),e._componentsCount=J();var n=t.aria;G(n)&&n.enabled==null&&(n.enabled=!0),f_(t,e._theme.option),N(t,Rg,!1),e._mergeOption(t,null)}}(),t}(Km);function d_(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 f_(e,t){var n=e.color&&!e.colorLayer;L(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||kg.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function p_(e,t,n){if(H(t)){var r=J();return L(t,function(e){e!=null&&us(e,null)!=null&&r.set(e,!0)}),B(n,function(t){return t&&r.get(t[e])})}var i=us(t,null);return B(n,function(t){return t&&i!=null&&t[e]===i})}function m_(e,t){return t.hasOwnProperty(`subType`)?B(e,function(e){return e&&e.subType===t.subType}):e}function h_(e){var t=J();return e&&L(Xo(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&q(kg.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ae(u_,Zg);var g_=/^(min|max)?(.+)$/,__=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(Xo(e.series),function(e){e&&e.data&&me(e.data)&&Te(e.data)}),L(Xo(e.dataset),function(e){e&&e.source&&me(e.source)&&Te(e.source)})),e=M(e);var r=this._optionBackup,i=v_(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=[],M(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=M(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++)y_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!x_(a,this._currentMediaIndices)&&(o=R(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function v_(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&&(H(l)?L(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&G(e.query)&&G(e.query.option)&&Uo(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&Uo(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),L(c,function(e){return f(e)}),L(r,function(e){return f(e.option)});function f(e){L(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function y_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,function(e,t){var n=t.match(g_);if(!(!n||!n[1]||!n[2])){var a=n[1];b_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function b_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function x_(e,t){return e.join(`,`)===t.join(`,`)}var S_=L,C_=G,w_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function T_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=w_.length;n<r;n++){var i=w_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&Go(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?N(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&Go(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?N(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function E_(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`&&Wo(`'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,F(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&Wo(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 D_(e){E_(e,`itemStyle`),E_(e,`lineStyle`),E_(e,`areaStyle`),E_(e,`label`),E_(e,`labelLine`),E_(e,`upperLabel`),E_(e,`edgeLabel`)}function O_(e,t){var n=C_(e)&&e[t],r=C_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Wo(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=Qo.length;i<a;i++){var o=Qo[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function k_(e){e&&(D_(e),O_(e,`label`),e.emphasis&&O_(e.emphasis,`label`))}function A_(e){if(C_(e)){T_(e),D_(e),O_(e,`label`),O_(e,`upperLabel`),O_(e,`edgeLabel`),e.emphasis&&(O_(e.emphasis,`label`),O_(e.emphasis,`upperLabel`),O_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(T_(t),k_(t));var n=e.markLine;n&&(T_(n),k_(n));var r=e.markArea;r&&k_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!me(a))for(var o=0;o<a.length;o++)k_(a[o]);L(e.categories,function(e){D_(e)})}if(i&&!me(i))for(var o=0;o<i.length;o++)k_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)k_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)H(c[o])?(k_(c[o][0]),k_(c[o][1])):k_(c[o]);e.type===`gauge`?(O_(e,`axisLabel`),O_(e,`title`),O_(e,`detail`)):e.type===`treemap`?(E_(e.breadcrumb,`itemStyle`),L(e.levels,function(e){D_(e)})):e.type===`tree`&&D_(e.leaves)}}function j_(e){return H(e)?e:e?[e]:[]}function M_(e){return(H(e)?e[0]:e)||{}}function N_(e,t){S_(j_(e.series),function(e){C_(e)&&A_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),S_(n,function(t){S_(j_(e[t]),function(e){e&&(O_(e,`axisLabel`),O_(e.axisPointer,`label`))})}),S_(j_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;O_(t,`axisLabel`),O_(t&&t.axisPointer,`label`)}),S_(j_(e.calendar),function(e){E_(e,`itemStyle`),O_(e,`dayLabel`),O_(e,`monthLabel`),O_(e,`yearLabel`)}),S_(j_(e.radar),function(e){O_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Wo(`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`&&Wo(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&S_(e.indicator,function(e){e.text&&Go(`text`,`name`,`radar.indicator`)})}),S_(j_(e.geo),function(e){C_(e)&&(k_(e),S_(j_(e.regions),function(e){k_(e)}))}),S_(j_(e.timeline),function(e){k_(e),E_(e,`label`),E_(e,`itemStyle`),E_(e,`controlStyle`,!0);var t=e.data;H(t)&&L(t,function(e){G(e)&&(E_(e,`label`),E_(e,`itemStyle`))})}),S_(j_(e.toolbox),function(e){E_(e,`iconStyle`),S_(e.feature,function(e){E_(e,`iconStyle`)})}),O_(M_(e.axisPointer),`label`),O_(M_(e.tooltip).axisPointer,`label`)}function P_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function F_(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 I_(e){e&&L(L_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var L_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],R_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],z_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function B_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<z_.length;n++){var r=z_[n][1],i=z_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&Go(r,i))}}function V_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&Go(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function H_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&Go(`downplay`,`blur`,`sunburst`))}function U_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&Go(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function W_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&W_(e[n].children,t)}function G_(e,t){N_(e,t),e.series=Xo(e.series),L(e.series,function(e){if(G(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&Go(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&Go(`clockWise`,`clockwise`)),V_(e.label);var n=e.data;if(n&&!me(n))for(var r=0;r<n.length;r++)V_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&Go(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=P_(e,`pointer.color`);i!=null&&F_(e,`itemStyle.color`,i)}else if(t===`bar`){B_(e),B_(e.backgroundStyle),B_(e.emphasis);var n=e.data;if(n&&!me(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(B_(n[r]),B_(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`&&Go(`highlightPolicy`,`emphasis.focus`,`sunburst`))),H_(e),W_(e.data,H_)}else t===`graph`||t===`sankey`?U_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&Go(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Wo("`mapLocation` is not used anymore."),F(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&Go(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),I_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),L(R_,function(t){var n=e[t];n&&(H(n)||(n=[n]),L(n,function(e){I_(e)}))})}var K_=Ks(q_);function q_(e){var t=J();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(),L(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),J_(e))})}function J_(e){L(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=So(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Y_=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&&Gg(this,n)===zg.Must&&(r.type=`ordinal`)}}return e}();function X_(e){return e instanceof Y_}function Z_(e,t,n){n||=ev(e);var r=t.seriesLayoutBy,i=tv(e,n,r,t.sourceHeader,t.dimensions);return new Y_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function Q_(e){return new Y_({data:e,sourceFormat:me(e)?Fu:ju})}function $_(e){return new Y_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function ev(e){var t=Iu;if(me(e))t=Fu;else if(H(e)){e.length===0&&(t=Mu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||me(i)){t=Mu;break}if(G(i)){t=Nu;break}}}}else if(G(e)){for(var a in e)if(Ne(e,a)&&oe(e[a])){t=Pu;break}}return t}function tv(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:rv(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?iv(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=fe(r)?r:+!!r,!i&&o===1&&(i=[],iv(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||=nv(e);else if(t===`keyedColumns`)i||(i=[],L(e,function(e,t){i.push(t)}));else if(t===`original`){var c=$o(e[0]);a=H(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&q(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:rv(i),dimensionsDetectedCount:a}}function nv(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return V(n)}function rv(e){if(e){var t=J();return R(e,function(e,n){e=G(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 iv(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 av(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var ov,sv,cv,lv,uv,dv,fv=function(){function e(e,t){var n=X_(e)?e:Q_(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=mv[wv(i,a)];o&&o(r,n.dimensionsDefine)}dv(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;dv=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=uv[wv(o,s)];process.env.NODE_ENV!==`production`&&q(u,`Invalide sourceFormat: `+o),P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=le(_v(o,s),null,i,c,l),e.count=le(bv(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};uv=(e={},e[Mu+`_`+Lu]={pure:!0,appendData:i},e[Mu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Nu]={pure:!0,appendData:i},e[Pu]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[ju]={appendData:i},e[Fu]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&q(me(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}(),pv=function(e){H(e)||Uo(`series.data or dataset.source must be an array.`)},mv=(ov={},ov[Mu+`_`+Lu]=pv,ov[Mu+`_row`]=pv,ov[Nu]=pv,ov[Pu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Uo(`dimension name must not be null/undefined.`)},ov[ju]=pv,ov),hv=function(e,t,n,r){return e[r]},gv=(sv={},sv[Mu+`_`+Lu]=function(e,t,n,r){return e[r+t]},sv[Mu+`_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},sv[Nu]=hv,sv[Pu]=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},sv[ju]=hv,sv);function _v(e,t){var n=gv[wv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var vv=function(e,t,n){return e.length},yv=(cv={},cv[Mu+`_`+Lu]=function(e,t,n){return Math.max(0,e.length-t)},cv[Mu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},cv[Nu]=vv,cv[Pu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},cv[ju]=vv,cv);function bv(e,t){var n=yv[wv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support count on "`+e+`", "`+t+`".`),n}var xv=function(e,t,n){return e[t]},Sv=(lv={},lv[Mu]=xv,lv[Nu]=function(e,t,n){return e[n]},lv[Pu]=xv,lv[ju]=function(e,t,n){var r=$o(e);return r instanceof Array?r[t]:r},lv[Fu]=xv,lv);function Cv(e){var t=Sv[e];return process.env.NODE_ENV!==`production`&&q(t,`Do not support get value on "`+e+`".`),t}function wv(e,t){return e===`arrayRows`?e+`_`+t:e}function Tv(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 Cv(a)(r,o,s)}var c=r;return a===`original`&&(c=$o(r)),c}}}var Ev=/\{@(.+?)\}/g,Dv=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&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return rg(i,s).replace(Ev,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)&&Uo(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=Tv(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Tv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Ov(e){var t,n;return G(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Ko(e)):t=e,{text:t,frag:n}}function kv(e){return new Av(e)}var Av=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`&&q(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&q(!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(H(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`&&q(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){jv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:jv.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),H(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`&&q(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}(),jv=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 Mv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!fe(e)&&e!=null&&e!==`-`&&(e=+Do(e)),e==null||e===``?NaN:Number(e))}J({number:function(e){return parseFloat(e)},time:function(e){return+Do(e)},trim:function(e){return W(e)?Ce(e):e}});var Nv={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(!fe(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),qo(n)}this._opFn=Nv[e],this._rvalFloat=jo(t)}return e.prototype.evaluate=function(e){return fe(e)?this._opFn(e,this._rvalFloat):this._opFn(jo(e),this._rvalFloat)},e})();var Pv=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=fe(e)?e:jo(e),r=fe(t)?t:jo(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(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=jo(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=jo(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Fv(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 Iv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Lv=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 Mv(e,t)},e}();function Rv(e,t){var n=new Lv,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.'),qo(o));var s=[],c={},l=e.dimensionsDefine;if(l)L(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;Ne(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),qo(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=_v(i,Lu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=le(zv,null,e)),n.cloneRawData=le(Bv,null,e),n.count=le(bv(i,Lu),null,r,a,s);var f=Cv(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=le(Vv,null,s,c),n.cloneAllDimensionInfo=le(Hv,null,s),n}function zv(e){var t=e.sourceFormat;if(!qv(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),qo(n)}return e.data}function Bv(e){var t=e.sourceFormat,n=e.data;if(!qv(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),qo(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(P({},n[a]));return i}}function Vv(e,t,n){if(n!=null){if(fe(n)||!isNaN(n)&&!Ne(t,n))return e[n];if(Ne(t,n))return t[n]}}function Hv(e){return M(e)}var Uv=J();function Wv(e){e=M(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),qo(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),qo(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Uv.set(t,e)}function Gv(e,t,n){var r=Xo(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),qo(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=Kv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Kv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),qo(i)),G(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),qo(i));var a=e.type,o=Uv.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),qo(i));var s=R(t,function(e){return Rv(e,o)}),c=Xo(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&Vo(R(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Ko(e.data),`- transform result dimensions:`,Ko(e.dimensions)].join(`
14
14
  `)}).join(`
15
- `)),R(c,function(e,n){var r=``;G(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),Ho(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),Ho(r)),Lv(W_(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),Ho(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:Au,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Au,sourceHeader:0,dimensions:e.dimensions};return V_(e.data,i,null)})}function Lv(e){return e===`arrayRows`||e===`objectRows`}var Rv=typeof Uint32Array>`u`?Array:Uint32Array,zv=typeof Uint16Array>`u`?Array:Uint16Array,Bv=typeof Int32Array>`u`?Array:Int32Array,Vv=typeof Float64Array>`u`?Array:Float64Array,Hv={float:Vv,int:Bv,ordinal:Array,number:Array,time:Vv},Uv;function Wv(e){return e>65535?Rv:zv}function Gv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Kv(e,t,n,r,i){var a=Hv[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 qv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=J()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&q(U(e.getItem)&&U(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Uv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=Y_(r);this._dimensions=R(t,function(e){return process.env.NODE_ENV!==`production`&&a&&q(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 Hv[t||`float`](this._rawCount),this._rawExtent[i]=Cs(),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]=Cs());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`&&q(!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];Kv(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=Uv.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=R(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Cs()),Kv(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)}),mo(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=Wv(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(Wv(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=V(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Wv(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]]=Cs();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(Wv(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(Wv(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]=Cs(),d=new(Wv(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=Cs();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=Tv(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||Ev(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&&z(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Gv(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=M(this._extent),e._rawExtent=M(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 Sv(e[r],this._dimensions[r])}Uv={arrayRows:e,objectRows:function(e,t,n,r){return Sv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Sv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Jv=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(Yv(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=me(o)?Ou:wu,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=K(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=K(u.sourceHeader,d.sourceHeader),m=K(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[V_(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=[V_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&q(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`&&q(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"),Xv(i))}var a,o=[],s=[];return L(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),Xv(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Fv(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[U_(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`&&q(Yv(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];Yv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new qv,o.initData(new nv(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Yv(e)){var t=Pg(e);return t?[t.getSourceManager()]:[]}return R(Fg(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Yv(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 Yv(e){return e.mainType===`series`}function Xv(e){throw Error(e)}var Zv=`line-height:1`;function Qv(e){var t=e.lineHeight;return t==null?Zv:`line-height:`+mt(t+``)+`px`}function $v(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:`+mt(r+``)+`px;color:`+mt(n)+`;font-weight:`+mt(i+``),valueStyle:`font-size:`+mt(o+``)+`px;color:`+mt(a)+`;font-weight:`+mt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ey=[0,10,20,30],ty=[``,`
15
+ `)),R(c,function(e,n){var r=``;G(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),qo(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),qo(r)),qv(ev(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),qo(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:Lu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Lu,sourceHeader:0,dimensions:e.dimensions};return Z_(e.data,i,null)})}function qv(e){return e===`arrayRows`||e===`objectRows`}var Jv=typeof Uint32Array>`u`?Array:Uint32Array,Yv=typeof Uint16Array>`u`?Array:Uint16Array,Xv=typeof Int32Array>`u`?Array:Int32Array,Zv=typeof Float64Array>`u`?Array:Float64Array,Qv={float:Zv,int:Xv,ordinal:Array,number:Array,time:Zv},$v;function ey(e){return e>65535?Jv:Yv}function ty(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ny(e,t,n,r,i){var a=Qv[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 ry=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=J()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&q(U(e.getItem)&&U(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=$v[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=av(r);this._dimensions=R(t,function(e){return process.env.NODE_ENV!==`production`&&a&&q(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 Qv[t||`float`](this._rawCount),this._rawExtent[i]=As(),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]=As());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`&&q(!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];ny(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=$v.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=R(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=As()),ny(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)}),vo(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=ey(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(ey(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=V(e),i=r.length;if(!i)return this;var a=t.count(),o=new(ey(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]]=As();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(ey(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(ey(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]=As(),d=new(ey(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=As();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=Fv(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||Iv(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&&z(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?ty(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=M(this._extent),e._rawExtent=M(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 Mv(e[r],this._dimensions[r])}$v={arrayRows:e,objectRows:function(e,t,n,r){return Mv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Mv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),iy=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(ay(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=me(o)?Fu:ju,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=K(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=K(u.sourceHeader,d.sourceHeader),m=K(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Z_(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=[Z_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&q(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`&&q(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"),oy(i))}var a,o=[],s=[];return L(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),oy(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Gv(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[$_(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`&&q(ay(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];ay(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new ry,o.initData(new fv(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ay(e)){var t=Ug(e);return t?[t.getSourceManager()]:[]}return R(Wg(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(ay(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 ay(e){return e.mainType===`series`}function oy(e){throw Error(e)}var sy=`line-height:1`;function cy(e){var t=e.lineHeight;return t==null?sy:`line-height:`+ht(t+``)+`px`}function ly(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:`+ht(r+``)+`px;color:`+ht(n)+`;font-weight:`+ht(i+``),valueStyle:`font-size:`+ht(o+``)+`px;color:`+ht(a)+`;font-weight:`+ht(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var uy=[0,10,20,30],dy=[``,`
16
16
  `,`
17
17
 
18
18
  `,`
19
19
 
20
20
 
21
- `];function ny(e,t){return t.type=e,t}function ry(e){return e.type===`section`}function iy(e){return ry(e)?oy:sy}function ay(e){if(ry(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=ay(e);n>=t&&(t=n+ +(r&&(!n||ry(e)&&!e.noHeader)))}),t}return 0}function oy(e,t,n,r){var i=t.noHeader,a=ly(ay(t)),o=[],s=t.blocks||[];q(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Ne(l,c)){var u=new wv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=iy(n)(s?P(P({},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):uy(r,o.join(``),i?n:a.html);if(i)return d;var f=qh(t.header,`ordinal`,e.useUTC),p=$v(r,e.renderMode).nameStyle,m=Qv(r);return e.renderMode===`richText`?py(e,f,p)+a.richText+d:uy(r,`<div style="`+p+`;`+m+`;">`+mt(f)+`</div>`+d,n)}function sy(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=H(e)?e:[e],R(e,function(e,t){return qh(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:qh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=$v(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:py(e,f,v))+(o?``:my(e,m,h,g,y)):uy(r,(s?``:d)+(a?``:dy(f,!s,v))+(o?``:fy(m,h,g,y)),n)}}function cy(e,t,n,r,i,a){if(e)return iy(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function ly(e){return{html:ey[e],richText:ty[e]}}function uy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Qv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function dy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+mt(e)+`</span>`}function fy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+R(e,function(e){return mt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function py(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function my(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(H(t)?t.join(` `):t,a)}function hy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Qh(n)}function gy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var _y=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ko()}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=Zh({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(process.env.NODE_ENV!==`production`&&q(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?L(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function vy(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=H(s),l=hy(t,n),u,d,f,p;if(o>1||c&&!o){var m=yy(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=hv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=cs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return ny(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[ny(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Ce(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function yy(e,t,n,r,i){var a=t.getData(),o=z(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?L(r,function(e){u(hv(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(ny(`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 by=ps();function xy(e,t){return e.getName(t)||e.getId(t)}var Sy=function(e){l(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=yv({count:Ty,reset:Ey}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(by(this).sourceManager=new Jv(this)).prepareSource();var r=this.getInitialData(e,n);Oy(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&q(r,`getInitialData returned invalid data.`),by(this).dataBeforeProcessed=r,Cy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=hg(this),r=n?_g(e):{},i=this.subType;bg.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),Ko(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&gg(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=hg(this);n&&gg(this.option,e,n);var r=by(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Oy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,by(this).dataBeforeProcessed=i,Cy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!me(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Ko(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=Ay(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return by(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=Ay(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}by(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return J(e)},t.prototype.getSourceManager=function(){return by(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return by(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 vy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(d.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=Vg.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=xy(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=V(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[xy(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`){G(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=xy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=xy(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 bg.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}(bg);ae(Sy,_v),ae(Sy,Vg),Js(Sy,bg);function Cy(e){var t=e.name;cs(e)||(e.name=wy(e)||t)}function wy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Ty(e){return e.model.getRawData().count()}function Ey(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Dy}function Dy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Oy(e,t){L(je(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ue(ky,t))})}function ky(e,t){var n=Ay(e);return n&&n.setOutputEnd((t||this).count()),t}function Ay(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 jy=function(){function e(){this.group=new La,this.uid=Vm(`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}();Ks(jy),$s(jy);function My(){var e=ps();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 Ny=ps(),Py=My(),Fy=function(){function e(){this.group=new La,this.uid=Vm(`viewChart`),this.renderTask=yv({plan:Ry,reset:zy}),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`&&Z(`Unknown dataType `+r.dataType);return}Ly(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`&&Z(`Unknown dataType `+r.dataType);return}Ly(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){$p(this.group,e)},e.markUpdateMethod=function(e,t){Ny(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Iy(e,t,n){e&&Fd(e)&&(t===`emphasis`?ud:dd)(e,n)}function Ly(e,t,n){var r=fs(e,t),i=t&&t.highlightKey!=null?Id(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Iy(e,n,i)}):L(Go(r),function(t){Iy(e.getItemGraphicEl(t),n,i)})}Ks(Fy,[`dispose`]),$s(Fy);function Ry(e){return Py(e.model)}function zy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Ny(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),By[c]}var By={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)}}},Vy=`\0__throttleOriginMethod`,Hy=`\0__throttleRate`,Uy=`\0__throttleType`;function Wy(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 Gy(e,t,n,r){var i=e[t];if(i){var a=i[Vy]||i,o=i[Uy];if(i[Hy]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Wy(a,n,r===`debounce`),i[Vy]=a,i[Uy]=r,i[Hy]=n}return i}}function Ky(e,t){var n=e[t];n&&n[Vy]&&(n.clear&&n.clear(),e[t]=n[Vy])}var qy=ps(),Jy={itemStyle:ec(Im,!0),lineStyle:ec(Nm,!0)},Yy={lineStyle:`stroke`,itemStyle:`fill`};function Xy(e,t){return e.visualStyleMapper||Jy[t]||(console.warn(`Unknown style type '`+t+`'.`),Jy.itemStyle)}function Zy(e,t){return e.visualDrawType||Yy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Qy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Xy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Zy(e,r),c=a[s],l=U(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`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(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=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},$y=new zm,eb={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Xy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){$y.option=n[r];var o=i($y);P(e.ensureUniqueItemVisual(t,`style`),o),$y.option.decal&&(e.setItemVisual(t,`decal`,$y.option.decal),$y.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},tb={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();qy(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=qy(e).scope,a=Zy(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)}})}})}},nb=Math.PI;function rb(e,t){t||={},F(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 La,r=new nu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new su({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 nu({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 Kf({shape:{startAngle:-nb/2,endAngle:-nb/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:nb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:nb*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 ib=function(){function e(e,t,n,r){this._stageTaskMap=J(),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):Rs(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();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;L(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.`),q(!(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;L(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=J(),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)||yv({plan:lb,reset:ub,count:pb}));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||yv({reset:ab});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),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.`),q(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):L(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,yv({reset:ob,onDirty:cb})));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 U(e)&&(e={overallReset:e,seriesType:mb(e)}),e.uid=Vm(`stageHandler`),t&&(e.visualType=t),e},e}();function ab(e){e.overallReset(e.ecModel,e.api,e.payload)}function ob(e){return e.dirtyOnOverallProgress&&sb}function sb(){this.agent.dirty(),this.getDownstream().dirty()}function cb(){this.agent&&this.agent.dirty()}function lb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ub(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Go(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return fb(t)}):db}var db=fb(0);function fb(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 pb(e){return e.data.count()}function mb(e){_b=null;try{e(hb,gb)}catch{}return _b}var hb={},gb={},_b;vb(hb,e_),vb(gb,Mu),hb.eachSeriesByType=hb.eachRawSeriesByType=function(e){_b=e},hb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(_b=e.subType)};function vb(e,t){for(var n in t.prototype)e[n]=Pe}var $=Q.darkColor,yb=$.background,bb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},xb={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Sb={darkMode:!0,color:$.theme,backgroundColor:yb,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:yb,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:xb,y:xb,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:bb(),logAxis:bb(),valueAxis:bb(),categoryAxis:bb(),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=bb();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}}}};Sb.categoryAxis.splitLine.show=!1;var Cb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Us(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};L(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}(),wb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Tb=wb.concat([`symbolKeepAspect`]),Eb={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<wb.length;o++){var s=wb[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(P({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=V(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}}},Db={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<Tb.length;r++){var i=Tb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Ob(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 kb(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 Ab(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&zo(`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=fs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:P({},r)})}}))}function jb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Ab(`map`,`selectchanged`,t,r,e),Ab(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Ab(`map`,`selected`,t,r,e),Ab(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Ab(`map`,`unselected`,t,r,e),Ab(`pie`,`unselected`,t,r,e))})}function Mb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Nb=new et,Pb={};function Fb(e,t){process.env.NODE_ENV!==`production`&&Pb[e]&&Z(`Already has an implementation of `+e+`.`),Pb[e]=t}function Ib(e){return process.env.NODE_ENV!==`production`&&(Pb[e]||Z(`Implementation of `+e+` doesn't exists.`)),Pb[e]}var Lb={};function Rb(e,t){Lb[e]=t}var zb=ps();function Bb(e){zb(e).prepare={}}function Vb(e){zb(e).fullUpdate={}}function Hb(e){return zb(e).prepare}function Ub(e){return zb(e).fullUpdate}var Wb=Math.round(Math.random()*9),Gb=typeof Object.defineProperty==`function`,Kb=function(){function e(){this._id=`__ec_inner_`+Wb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Gb?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}(),qb=Hl.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()}}),Jb={line:Bf,rect:nu,roundRect:nu,square:nu,circle:uf,diamond:Hl.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:Hl.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:Hl.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:qb},Yb={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}},Xb={};L(Jb,function(e,t){Xb[t]=new e});var Zb=Hl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=ya(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=Xb[r];i||=(r=`rect`,Xb[r]),Yb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Qb(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 $b(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?Op(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Dp(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new Zb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Qb,a&&c.setColor(a),c}function ex(e,t){if(e!=null)return H(e)||(e=[e,e]),[co(e[0],t[0])||0,co(K(e[1],e[0]),t[1])||0]}function tx(e){return isFinite(e)}function nx(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=tx(r)?r:0,i=tx(i)?i:1,a=tx(a)?a:0,o=tx(o)?o:0,e.createLinearGradient(r,a,i,o)}function rx(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=tx(o)?o:.5,s=tx(s)?s:.5,c=c>=0&&tx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function ix(e,t,n){for(var r=t.type===`radial`?rx(e,t,n):nx(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function ax(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 ox(e){return parseInt(e,10)}function sx(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]||ox(s[r])||ox(e.style[r]))-(ox(s[a])||0)-(ox(s[o])||0)||0}function cx(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:fe(e)?[e]:H(e)?e:null}function lx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&cx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var ux=new _l(!0);function dx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function fx(e){return typeof e==`string`&&e!==`none`}function px(e){var t=e.fill;return t!=null&&t!==`none`}function mx(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 hx(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 gx(e,t,n){var r=ac(t.image,t.__image,n);if(sc(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)*Fe),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function _x(e,t,n,r,i){var a,o=dx(n),s=px(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||ux,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?ix(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?ix(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?gx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?gx(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=lx(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&&hx(e,n),s&&mx(e,n)):(s&&mx(e,n),o&&hx(e,n)),T&&e.setLineDash([])}function vx(e,t,n){var r=t.__image=ac(n.image,t.__image,t,t.onload);if(!(!r||!sc(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 yx(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=lx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(dx(n)&&e.strokeText(i,n.x,n.y),px(n)&&e.fillText(i,n.x,n.y)):(px(n)&&e.fillText(i,n.x,n.y),dx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var bx=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],xx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Sx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Px(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?jc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Px(e,i),!0),e.globalCompositeOperation=t.blend||jc.blend);for(var s=0;s<bx.length;s++){var c=bx[s];(r||t[c]!==n[c])&&(a||=(Px(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Px(e,i),!0),e.shadowColor=t.shadowColor||jc.shadowColor),a}function Cx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Sx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Px(e,i),!0),fx(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Px(e,i),!0),fx(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Px(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||=(Px(e,i),!0),e.lineWidth=c)}for(var l=0;l<xx.length;l++){var u=xx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Px(e,i),!0),e[d]=a[d]||u[1])}return s}function Tx(e,t,n,r,i){return Sx(e,t.style,n&&n.style,r,i)}function Ex(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 Dx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Ex(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Ox(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 kx=1,Ax=2,jx=3,Mx=4;function Nx(e){var t=px(e),n=dx(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 Px(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Fx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ix(e,t,n),Lx(e,n)}function Ix(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||ax(i,a))&&(a&&(Px(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Px(e,n),e.save(),Dx(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 Hl&&t.autoBatch&&Nx(o);s||Ox(r,l.transform)?(Px(e,n),Ex(e,t)):u||Px(e,n),t instanceof Hl?(n.lastDrawType!==kx&&(c=!0,n.lastDrawType=kx),Cx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),_x(e,t,o,u,n)):t instanceof Wl?(n.lastDrawType!==jx&&(c=!0,n.lastDrawType=jx),Cx(e,t,l,c,n),yx(e,t,o)):t instanceof Jl?(n.lastDrawType!==Ax&&(c=!0,n.lastDrawType=Ax),Tx(e,t,l,c,n),vx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Mx&&(c=!0,n.lastDrawType=Mx),Rx(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Px(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Lx(e,t){Px(e,t),t.prevElClipPaths&&e.restore()}function Rx(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(),Ix(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Lx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Ix(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Lx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var zx=new Kb,Bx=new ur(100),Vx=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Hx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&zx.delete(e);var a=zx.get(e);if(a)return a;var o=F(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,zx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Vx.length;++s){var c=o[Vx[s]];if(c!=null&&!H(c)&&!W(c)&&!fe(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Bx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Wx(o.dashArrayX),f=Gx(o.dashArrayY),p=Ux(o.symbol),m=Kx(d),h=qx(f),g=!i&&y.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=x(),b;g&&(g.width=v.width*n,g.height=v.height*n,b=g.getContext(`2d`)),S(),a&&Bx.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=jo(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=jo(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,g.width,g.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,y=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(y%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][y]*C,T=a+f[s]*C,E=d[l][y]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][y],++x,++y,y===d[l].length&&(y=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=$b(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Fx(b,u)}}}}function Ux(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return Ux([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Wx(e){if(!e||e.length===0)return[[0,0]];if(fe(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!fe(e[r])){n=!1;break}if(n)return Wx([e]);for(var i=[],r=0;r<e.length;++r)if(fe(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=R(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Gx(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(fe(e)){var t=Math.ceil(e);return[t,t]}var n=R(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Kx(e){return R(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 Jx=zs(Yx);function Yx(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=Hx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Hx(i,t)}}})}var Xx=1,Zx=800,Qx=900,$x=920,eS=1e3,tS=2e3,nS=5e3,rS=1e3,iS=1100,aS=2e3,oS=3e3,sS=4e3,cS=4500,lS=4600,uS=5e3,dS=6e3,fS=7e3,pS={PROCESSOR:{SERIES_FILTER:Zx,AXIS_STATISTICS:$x,FILTER:eS,STATISTIC:nS,STATISTICS:nS},VISUAL:{LAYOUT:rS,PROGRESSIVE_LAYOUT:iS,GLOBAL:aS,CHART:oS,POST_CHART_LAYOUT:lS,COMPONENT:sS,BRUSH:uS,CHART_ITEM:cS,ARIA:dS,DECAL:fS}},mS=`__flagInMainProcess`,hS=`__mainProcessVersion`,gS=`__pendingUpdate`,_S=`__needsUpdateStatus`,vS=/^[a-zA-Z0-9_]+$/,yS=`__connectUpdateStatus`,bS=0,xS=1,SS=2;function CS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){XS(this.id);return}return TS(this,e,t)}}function wS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return TS(this,e,t)}}function TS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),et.prototype[t].apply(e,n)}var ES=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),DS=ES.prototype;DS.on=wS(`on`),DS.off=wS(`off`);var OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS,KS,qS=function(e){l(t,e);function t(t,n,r){var i=e.call(this,new Cb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[hS]=1,process.env.NODE_ENV!==`production`){var c=d.hasGlobalWindow?window:global;c&&(a=K(c.__ECHARTS__DEFAULT__RENDERER__,a),o=K(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=K(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&qa(function(e){var t=xu(e),n=t.dataIndex;if(n!=null){var r=J();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=Ua(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:K(r.useDirtyRect,s),useCoarsePointer:K(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Wy(le(l.flush,l),17),i._updateTheme(n),i._locale=eh(r.locale||Qm),i._coordSysMgr=new tg;var u=i._api=HS(i);function f(e,t){return e.__prio-t.__prio}return Dn(nC,f),Dn(eC,f),i._scheduler=new ib(i,u,eC,nC),i._messageCenter=new ES,i._initEvents(),i.resize=le(i.resize,i),l.animation.on(`frame`,i._onframe,i),LS(l,i),RS(l,i),Te(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(GS(this),this[gS]){var r=this[gS].silent;this[mS]=!0,KS(this);try{OS(this),jS.update.call(this,null,this[gS].updateParams)}catch(e){throw this[mS]=!1,this[gS]=null,e}this._zr.flush(),this[mS]=!1,this[gS]=null,FS.call(this,r),IS.call(this,r)}else if(e.unfinished){var i=Xx;do{e.unfinished=!1;var a=y.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),NS(this,t),e.performVisualTasks(t),VS(this,this._model,n,`remain`,{}),i-=y.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[mS]){process.env.NODE_ENV!==`production`&&Z("`setOption` should not be called during main process.");return}if(this._disposed){XS(this.id);return}var r,i,a;if(G(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[mS]=!0,KS(this),!this._model||t){var o=new s_(this._api),s=this._theme,c=this._model=new e_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},tC);var l={seriesTransition:a,optionChanged:!0};if(n)this[gS]={silent:r,updateParams:l},this[mS]=!1,this.getZr().wakeUp();else{try{OS(this),jS.update.call(this,null,l)}catch(e){throw this[gS]=null,this[mS]=!1,e}this._ssr||this._zr.flush(),this[gS]=null,this[mS]=!1,FS.call(this,r),IS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[mS]){process.env.NODE_ENV!==`production`&&Z("`setTheme` should not be called during main process.");return}if(this._disposed){XS(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[gS]&&(r??=this[gS].silent,i=this[gS].updateParams,this[gS]=null),this[mS]=!0,KS(this);try{this._updateTheme(e),n.setTheme(this._theme),OS(this),jS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[mS]=!1,e}this[mS]=!1,FS.call(this,r),IS.call(this,r)}},t.prototype._updateTheme=function(e){W(e)&&(e=rC[e]),e&&(e=M(e),e&&F_(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||d.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Bo(`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 L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){XS(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(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 L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){XS(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(oC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(aC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=y.createCanvas(),h=Ua(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new nu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new Jl({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return MS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return MS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return MS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){XS(this.id);return}var n=this._model,r;return L(hs(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(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`&&Ro(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Ro(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=hs(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Ro(`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?kb(a,t):Ob(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;L(YS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Mb(i,function(e){var t=xu(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=P({},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)&&Ro(`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;L($S,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),jb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){XS(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){XS(this.id);return}this._disposed=!0,this.getDom()&&bs(this.getDom(),cC,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(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 aC[e.id]},t.prototype.resize=function(e){if(this[mS]){process.env.NODE_ENV!==`production`&&Z("`resize` should not be called during main process.");return}if(this._disposed){XS(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[gS]&&(r??=this[gS].silent,n=!0,this[gS]=null),this[mS]=!0,KS(this);try{n&&OS(this),jS.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[mS]=!1,e}this[mS]=!1,FS.call(this,r),IS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){XS(this.id);return}if(G(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!iC[e]){process.env.NODE_ENV!==`production`&&Ro(`Loading effects `+e+` not exists.`);return}var n=iC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){XS(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=QS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){XS(this.id);return}if(G(t)||(t={silent:!!t}),ZS[e.type]&&this._model){if(this[mS]){this._pendingActions.push(e);return}var n=t.silent;PS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&d.browser.weChat&&this._throttledZrFlush(),FS.call(this,n),IS.call(this,n)}},t.prototype.updateLabelLayout=function(){Nb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){XS(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&q(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){OS=function(e){Bb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),kS(e,!0),kS(e,!1),t.plan()},kS=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=Us(e.type),f=t?jy.getClass(d.main,d.sub):Fy.getClass(d.sub);process.env.NODE_ENV!==`production`&&q(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)}},AS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){L([].concat(e._componentsViews,e._chartsViews),l);return}var o=ys(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=J(),L(Go(s),function(e){var t=as(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Rd(n)){if(t instanceof Sy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&bd(t,n,e._api);else{var r=xd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&yd(t.mainType,t.componentIndex,e._api),a&&L(a,function(e){n.type===`highlight`?ud(e):dd(e)})}}else Ld(n)&&t instanceof Sy&&(wd(t,n,e._api),Td(t),WS(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)}},jS={prepareAndUpdate:function(e){OS(this),jS.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){Vb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Nb.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),NS(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),zS(this,r,i,e,n),Nb.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=J();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}),VS(t,n,r,e,{},a),Nb.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Fy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),zS(this,n,this._api,e,{}),Nb.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()}),Fy.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)}),Nb.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){jS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){XS(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=hs(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`&&Ro(`No coordinate system that supports `+t+` found by the given finder.`)}MS=e,NS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},PS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=ZS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Us(s[0]);this[mS]=!0,KS(this);var u=[e],d=!1;e.batch&&(d=!0,u=R(e.batch,function(t){return t=F(P({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Ld(e),_=Rd(e);if(_&&_d(this._api),L(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=P({},t),p.type=h,f.push(p),_){var a=gs(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;AS(n,c,t,u),WS(n)}else g?(AS(n,c,t,`series`),WS(n)):l&&AS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[gS]?(OS(this),jS.update.call(this,e),this[gS]=null):jS[c].call(this,e)}catch(e){throw this[mS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[mS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;q(G(y)),v=F({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)}},FS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();PS.call(this,n,e)}},IS=function(e){!e&&this.trigger(`updated`)},LS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[gS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},RS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Mb(n,Fd);r&&(Sd(r,e,t._api),WS(t))}).on(`mouseout`,function(e){var n=e.target,r=Mb(n,Fd);r&&(Cd(r,e,t._api),WS(t))}).on(`click`,function(e){var n=e.target,r=Mb(n,function(e){return xu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=xu(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;Dn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),L(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)})}}zS=function(e,t,r,i,a){n(t),BS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive=!1}),VS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},BS=function(e,t,n,r,i,a){L(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},VS=function(e,t,n,r,l,u){var d=e._scheduler;l=P(l||{},{updatedSeries:t.getSeries()}),Nb.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Td(t)}),d.unfinished=f||d.unfinished,Nb.trigger(`series:layoutlabels`,t,n,l),Nb.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Nb.trigger(`series:afterupdate`,t,n,l)},WS=function(e){e[_S]=!0,e.getZr().wakeUp()},KS=function(e){e[hS]=(e[hS]+1)%1e6},GS=function(e){e[_S]&&(e.getZr().storage.traverse(function(e){pp(e)||r(e)}),e[_S]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>K(t.get(`hoverLayerThreshold`),kg.hoverLayerThreshold)&&!d.node&&!d.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=im(e);t.eachRendered(function(e){return om(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!pp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(pp(e))return;if(e instanceof Hl&&zd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}HS=function(e){return new(function(t){l(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){ud(t,n),WS(e)},n.prototype.leaveEmphasis=function(t,n){dd(t,n),WS(e)},n.prototype.enterBlur=function(t){fd(t),WS(e)},n.prototype.leaveBlur=function(t){pd(t),WS(e)},n.prototype.enterSelect=function(t){md(t),WS(e)},n.prototype.leaveSelect=function(t){hd(t),WS(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[hS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Mu))(e)},US=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[yS]=t}}L(QS,function(n,r){e._messageCenter.on(r,function(n){if(oC[e.group]&&e[yS]!==bS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];L(aC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,bS),L(i,function(e){e[yS]!==xS&&e.dispatchAction(r)}),t(i,SS)}})})}}(),t}(et),JS=qS.prototype;JS.on=CS(`on`),JS.off=CS(`off`),JS.one=function(e,t,n){var r=this;zo(`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 YS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function XS(e){process.env.NODE_ENV!==`production`&&Ro(`Instance `+e+` has been disposed`)}var ZS={},QS={},$S={},eC=[],tC=[],nC=[],rC={},iC={},aC={},oC={},sC=new Date-0;new Date-0;var cC=`_echarts_instance_`;function lC(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=uC(e);if(i)return process.env.NODE_ENV!==`production`&&Ro(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&he(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Ro(`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_`+sC++,aC[a.id]=a,r&&bs(e,cC,a.id),US(a),Nb.trigger(`afterinit`,a),a}function uC(e){return aC[xs(e,cC)]}function dC(e,t){rC[e]=t}function fC(e){I(tC,e)<0&&tC.push(e)}function pC(e,t){SC(eC,e,t,tS)}function mC(e){gC(`afterinit`,e)}function hC(e){gC(`afterupdate`,e)}function gC(e,t){Nb.on(e,t)}function _C(e,t,n){var r,i,a,o,s;U(t)&&(n=t,t=``),G(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;ZS[r]||(q(vS.test(r)&&vS.test(i)),a&&q(i!==r),ZS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},$S[i]=1,a&&s&&($S[l]=1),process.env.NODE_ENV!==`production`&&QS[l]&&Z(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),QS[l]=r)}function vC(e,t){tg.register(e,t)}function yC(e,t){SC(nC,e,t,rS,`layout`,!0)}function bC(e,t){SC(nC,e,t,oS,`visual`,!0)}var xC=[];function SC(e,t,n,r,i,a){if((U(t)||G(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);L(e,function(e){q(e.__raw!==n)})}if(!(I(xC,n)>=0)){xC.push(n);var o=ib.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&q(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function CC(e,t){iC[e]=t}function wC(e,t,n){var r=Ib(`registerMap`);r&&r(e,t,n)}var TC=Pv;bC(aS,Qy),bC(cS,eb),bC(cS,tb),bC(aS,Eb),bC(cS,Db),bC(fS,Jx),fC(F_),pC(Qx,I_),CC(`default`,rb),_C({type:Bu,event:Bu,update:Bu},Pe),_C({type:Vu,event:Vu,update:Vu},Pe),_C({type:Hu,event:Gu,update:Hu,action:Pe,refineEvent:EC,publishNonRefinedEvent:!0}),_C({type:Uu,event:Gu,update:Uu,action:Pe,refineEvent:EC,publishNonRefinedEvent:!0}),_C({type:Wu,event:Gu,update:Wu,action:Pe,refineEvent:EC,publishNonRefinedEvent:!0});function EC(e,t,n,r){return{eventContent:{selected:Ed(n),isFromClick:t.isFromClick||!1}}}dC(`default`,{}),dC(`dark`,Sb);function DC(e){return e==null?0:e.length||1}function OC(e){return e}var kC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||OC,this._newKeyGetter=r||OC,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=DC(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=DC(c),d=DC(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=DC(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=DC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),AC=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 jC(e,t){var n={},r=n.encode={},i=J(),a=[],o=[],s={};L(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&q(Cu.get(c)==null);var l=n.coordDimIndex;MC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),PC(n.type)&&(a[0]=t),MC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Cu.each(function(e,t){var i=MC(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=R(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 AC(s,t),n}function MC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function NC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function PC(e){return e!==`ordinal`&&e!==`time`}var FC=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),IC=ps(),LC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},RC=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||=VC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return K(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=Y_(this.source),n=!HC(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+=LC[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 zC(e){return e instanceof RC}function BC(e){for(var t=J(),n=0;n<(e||[]).length;n++){var r=e[n],i=G(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function VC(e){var t=IC(e);return t.dimNameMap||=BC(e.dimensionsDefine)}function HC(e){return e>30}var UC=G,WC=R,GC=typeof Int32Array>`u`?Array:Int32Array,KC=`e\0\0`,qC=-1,JC=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],YC=[`_approximateExtent`],XC,ZC,QC,$C,ew,tw,nw,rw=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;zC(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=W(u)?new FC({name:u}):u instanceof FC?u:new FC(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`&&q(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=J();L(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(fe(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 qv&&(i=e),!i){var a=this.dimensions,o=B_(e)||oe(e)?new nv(e,a.length):e;i=new qv;var s=WC(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=jC(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&&nw(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&&Yo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=as(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=as(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)nw(this,o);XC(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){UC(e)?P(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=QC(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 ZC(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 H(e)?r.getValues(WC(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";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=WC($C(e),this._getStoreDimIndex,this);this._store.each(i,r?le(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=WC($C(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?le(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=V(e),i=[];return L(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";U(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=WC($C(e),this._getStoreDimIndex,this),o=tw(this);return o._store=this._store.map(a,i?le(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&L($C(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=WC($C(e),this._getStoreDimIndex,this);this._store.modify(o,a?le(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=tw(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=tw(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=tw(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 zm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new kC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ZC(e,t)},function(e){return ZC(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||{},UC(e)?P(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),H(i)?i=i.slice():UC(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,UC(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){UC(e)?P(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?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Su(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){L(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:WC(this.dimensions,this._getDimInfo,this),this.hostModel),ew(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xe(arguments)))})},e.internalField=function(){XC=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new GC(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}})},QC=function(e,t,n){return as(e._getCategory(t,n),null)},ZC=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=QC(e,e._idDimIdx,t)),n??=KC+t,n},$C=function(e){return H(e)||(e=e==null?[]:[e]),e},tw=function(t){var n=new e(t._schema?t._schema:WC(t.dimensions,t._getDimInfo,t),t.hostModel);return ew(n,t),n},ew=function(e,t){L(JC.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,L(YC,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},nw=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=QC(e,i,t)),s==null&&a!=null&&(r[t]=s=QC(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 iw(e,t){B_(e)||(e=H_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=aw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&HC(o),c=r===e.dimensionsDefine,l=c?VC(e):BC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new Bv(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=G(n)?n:{name:n},o=new FC,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=Go(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);L(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;L(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=P({},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=Go(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++)}L(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(F(o,i),t,a),o.name==null&&n){var s=n[a];!G(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){Cu.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)L(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=ow(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Ig(e,S)===Ag.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Ps(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new RC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function aw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;G(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function ow(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 sw=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function cw(e){var t=e.get(`coordinateSystem`),n=new sw(t),r=lw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var lw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,_s).models[0],a=e.getReferringComponents(`yAxis`,_s).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+ye(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+ye(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),uw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),uw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,_s).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),uw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,_s).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),uw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),uw(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();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),uw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,_s).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 uw(e){return e.get(`type`)===`category`}function dw(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;fw(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(L(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),L(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;L(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 fw(e){return!zC(e.schema)}function pw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function mw(e,t){return pw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function hw(e,t){var n=e.get(`coordinateSystem`),r=tg.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=NC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function gw(e,t,n){var r,i;return n&&L(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 _w(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=H_(e)):(i=r.getSource(),a=i.sourceFormat===wu);var o=cw(t),s=hw(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?ue(Ng,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=iw(i,u),f=gw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=dw(t,{schema:d,store:p}),h=new rw(d,t);h.setCalculationInfo(m);var g=f!=null&&vw(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 vw(e){if(e.sourceFormat===`original`)return!H(Jo(yw(e.data||[])))}function yw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var bw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();$s(bw);var xw=0,Sw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++xw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,Cw);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(!W(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||=J(this.categories)},e}();function Cw(e){return G(e)&&e.value!=null?e.value:e+``}var ww=V({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 Tw(e,t,n){var r;e||={};var i=ih();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(L(ww,function(t){a[t]&&(e[t]=le(a[t],a))}),r=a)}return r??Mw(e,n),{brk:r,mapper:e}}function Ew(e,t){L(ww,function(n){e[n]=t[n]})}function Dw(e,t){e.freeze=Pe,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function Ow(e){return e.getExtentUnsafe(0,2)}function kw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Aw(e){var t=kw(e,3);return t[1]-t[0]}function jw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Mw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Cs(),P(n,Nw),n}var Nw={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=kw(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`&&q(!this._frozen),Pw(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&q(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),Pw(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function Pw(e,t,n,r){ks(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&Z(`Invalid setExtent call - start: `+n+`, end: `+r)}function Fw(e){return Iw(e)||Rw(e)}function Iw(e){return e.type===`interval`}function Lw(e){return e.type===`time`}function Rw(e){return e.type===`log`}function zw(e){return e.type===`ordinal`}function Bw(e){var t=To(e),n=no(10,t),r=$a(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,po(r*n,-t)}function Vw(e){return ho(e)+2}function Hw(e,t){return ro(e)/ro(t)}function Uw(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 no(t,e)}function Ww(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Qa(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Os(r[0])||!Os(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Gw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Kw(e,t){return e||=t,$a(X(e,1))}function qw(e,t,n){var r=Ow(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 Jw=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Ew(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Sw({}),H(i)&&(i=new Sw({categories:R(i,function(e){return G(e)?e.value:e})})),r._ordinalMeta=i;var a=Tw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Dw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=$a(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=Za(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=Ow(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($a(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}(bw);bw.registerClass(Jw);function Yw(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=Vw(f);u<t-1;){var m=po(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=ih();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Xw=function(e){l(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Tw(r,ah(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 M(this._cfg)},t.prototype.setConfig=function(e){var t=Ow(this);process.env.NODE_ENV!==`production`&&(q(e.interval!=null),e.intervalCount!=null&&q(e.intervalCount>=-1&&e.intervalPrecision!=null&&!sh(this)),e.niceExtent!=null&&(q(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),q(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),q(po(e.niceExtent[0]-e.niceExtent[1],ho(e.interval))<=e.interval))),this._cfg=e=M(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Vw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Ow(this),i=t.niceExtent,a=t.intervalPrecision,o=ih(),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`&&q(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?po(i[0]-n,a):r[0]});for(var d=function(e,t){return $a((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=Za(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=po(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=po(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`&&Ro(`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?po(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 Yw(this,e,oh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ho(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Wh(po(e.value,n,!0))},t.type=`interval`,t}(bw);bw.registerClass(Xw);var Zw=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Qw=function(e){l(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=Tw(r,ah(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Eh(e.value,_h[Th(Ch(this._minLevelUnit))]||_h.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Dh(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Ow(this),r=ih(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return ih().addBreaksToTicks(o,i.breaks,n),o;o=cT(this._minLevelUnit,this._approxInterval,s,n,jw(this),i);var c=vh.length-1,l=0;return L(o,function(e){e.time&&(c=Math.min(c,I(vh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&ih().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&ih().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(I(vh,Oh(e.vmin,s)),I(vh,Oh(e.vmax,s))),n=0,r=0;r<vh.length;r++)if(!eT(vh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:vh[Math.max(i,t)],upperTimeUnit:vh[i]}}),o},t.prototype.getMinorTicks=function(e){return Yw(this,e,oh(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 fe(e)?Math.round(e):+Co(e)},t.type=`time`,t}(bw),$w=[[`second`,ch],[`minute`,lh],[`hour`,uh],[`quarter-day`,uh*6],[`half-day`,uh*12],[`day`,dh*1.2],[`half-week`,dh*3.5],[`week`,dh*7],[`month`,dh*31],[`quarter`,dh*95],[`half-year`,fh/2],[`year`,fh]];function eT(e,t,n,r){return kh(new Date(t),e,r).getTime()===kh(new Date(n),e,r).getTime()}function tT(e,t){return e/=dh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nT(e){var t=30*dh;return e/=t,e>6?6:e>3?3:e>2?2:1}function rT(e){return e/=uh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function iT(e,t){return e/=t?lh:ch,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function aT(e){return X(Eo(e,!0),1)}function oT(e,t,n){var r=Math.max(0,I(vh,t)-1);return kh(new Date(e),vh[r],n).getTime()}function sT(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 cT(e,t,n,r,i,a){var o=yh,s=0;function c(e,t,n,i,o,c,l){for(var u=sT(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`&&Ro(`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(!eT(Ch(e),r[0],r[1],n)){s&&(i=[{value:oT(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/dh/365)),p=Ah(n),m=Lh(n);break;case`half-year`:case`quarter`:case`month`:f=nT(t),p=jh(n),m=Rh(n);break;case`week`:case`half-week`:case`day`:f=tT(t,31),p=Mh(n),m=zh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=rT(t),p=Nh(n),m=Bh(n);break;case`minute`:f=iT(t,!0),p=Ph(n),m=Vh(n);break;case`second`:f=iT(t,!1),p=Fh(n),m=Hh(n);break;case`millisecond`:f=aT(t),p=Ih(n),m=Uh(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=Ch(o[m]);if(wh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Ch(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=B(R(u,function(e){return B(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=Oh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Ps(S,Fs,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=Oh(r[0],n),k=Oh(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 lT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=dh,n[1]+=dh),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]-dh}e.setExtent(n[0],n[1]);var i=Kw(t.splitNumber,10),a=jw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=$w.length,l=Math.min(Zw($w,a,0,c),c-1),u=$w[l][1],d=$w[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};bw.registerClass(Qw);var uT=0,dT=1,fT=2,pT=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Xw.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[uT]=i[dT]=a[uT]=a[dT]=NaN,Ew(r,t.mapperMethods);var s=ih(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},fT,l),r.powStub=new Xw({breakParsed:l.original}),r.intervalStub=new Xw({breakParsed:l.transformed}),Dw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=ih(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return R(i.getTicks(e||{}),function(e){var i=e.value,o=Uw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,oh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Yw(this,e,oh(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(Hw(e,this.base))},scale:function(e){return Uw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Hw(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return mT.depth=n,hT.lookup=this._lookup,Uw(n===2?e:this.intervalStub.transformOut(e,mT),this.base,hT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!ks(t,n)||t<=0||n<=0)){var r=gT,i=gT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[uT]=t,r[dT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[uT]=Hw(t,o),i[dT]=Hw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return ks(t[0],t[1])&&Mo(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}(bw);bw.registerClass(pT);var mT={},hT={},gT=[],_T={value:1,category:1,time:1,log:1},vT=ps();function yT(e){var t=e.get(`type`);return(t==null||!Ne(_T,t)&&!bw.getClass(t))&&(t=`value`),t}function bT(e,t,n){var r=ih(),i;switch(r&&(i=jT(e,t,n)),t){case`category`:return new Jw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Cs()});case`time`:return new Qw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new pT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Xw({breakOption:i});default:return new((bw.getClass(t))||Xw)({})}}function xT(e,t,n){var r=n?kw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return ks(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function ST(e){vT(e).noOnMyZero=!0}function CT(e){return vT(e).noOnMyZero}function wT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(U(t)){if(e.type===`category`)return function(n,r){return t(TT(e,n),n.value-e.scale.getExtent()[0],null)};var r=ih();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(TT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function TT(e,t){var n=e.scale;return zw(n)?n.getLabel(t):t.value}function ET(e){return e.get(`interval`)??`auto`}function DT(e){return e.type===`category`&&ET(e.getLabelModel())===0}function OT(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[mw(e,t)]=!0}),V(n)}function kT(e){return e===`middle`||e===`center`}function AT(e){return e.getShallow(`show`)}function jT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!ih()){process.env.NODE_ENV!==`production`&&Z('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!MT(t)){process.env.NODE_ENV!==`production`&&Z(`Axis`+(e instanceof bg?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function MT(e){return e!==`category`}function NT(e,t,n,r,i,a){var o=Rw(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=Gw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function PT(e,t){return zw(e)?e.getRawOrdinalNumber(t.value):t.value}function FT(e,t){return zw(e)&&!!t.get(`boundaryGap`)}var IT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),LT=Ms(),RT=ps(),zT=ps(),BT;process.env.NODE_ENV!==`production`&&(BT=function(e){q(e&&e.model&&e.model.uid&&e.model.ecModel)});function VT(e,t){var n=e.model,r=RT(Ub(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function HT(e,t){return process.env.NODE_ENV!==`production`&&(q(t!=null),BT(e)),GT(VT(e,t))}function UT(e,t){process.env.NODE_ENV!==`production`&&BT(e);var n=[];return WT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(GT(e))}),n}function WT(e,t){var n=RT(Ub(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function GT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function KT(e,t){process.env.NODE_ENV!==`production`&&BT(e);var n=e.model.ecModel,r=RT(Ub(n)).axSer;r&&JT(n,r.get(e.model.uid),t)}function qT(e,t,n){process.env.NODE_ENV!==`production`&&(q(t!=null),BT(e));var r=VT(e,t);r&&JT(e.model.ecModel,r.sers,n)}function JT(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function YT(e,t,n){process.env.NODE_ENV!==`production`&&q(t!=null);var r=RT(Ub(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&q(e.sers.length>0),n(e.axis)})}function XT(e,t){process.env.NODE_ENV!==`production`&&BT(e);var n=e.model,r=RT(Ub(n.ecModel)).keys;r&&L(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=VT(e,n);q(r&&r.sers.length>0)}t(n)})}function ZT(e){var t=zT(Hb(e)),n=t.keyed||=J();WT(e,function(t,r,i){var a=n.get(r)||n.set(r,J()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&$T.liPosMinGap(e,t,o)})}function QT(e,t){$T[e]=t}var $T={};function eE(e,t,n){if(e){var r=t.ecModel,i=RT(Ub(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){BT(e);var o=i.axSerPairCheck||=J(),s=``+a+`|&`+t.uid;q(!o.get(s)),o.set(s,1)}var c=i.axSer||=J(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&q(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=iE.get(tE(d,f,n))||iE.get(tE(d,f,null));if(p){var m=i.keyed||=J(),h=i.keys||=J(),g=p.key,_=m.get(g)||m.set(g,J()),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 tE(e,t,n){return e+`|&`+K(t,!0)+`|&`+(n||``)}function nE(e,t){var n=tE(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(q(t.seriesType&&t.key&&!rE.get(t.key)&&!iE.get(n)),rE.set(t.key,1)),iE.set(n,t),LT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:ZT})})}var rE;process.env.NODE_ENV!==`production`&&(rE=J());var iE=J(),aE=ps(),oE=3,sE=function(){function e(e,t,n,r,i){var a=zw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Iw(e)||Rw(e)||Lw(e))&&(Ts(l,lE(e,t.get(`dataMin`,!0))),Es(l,lE(e,t.get(`dataMax`,!0)))),As(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]=lE(e,U(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]=lE(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=uE(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,!Os(u[0])&&(u[0]=NaN),!Os(u[1])&&(u[1]=NaN);var g=s||ve(u[0])||ve(u[1])||a&&!o,_=Iw(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=lE(e,t.get(`startValue`,!0)),x=b!=null;!Mo(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Mo(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)),cE(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),cE(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 cE(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),js(t))}function lE(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function uE(e,t){var n;if(zw(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=H(r)?r:[r,r]}return[dE(n[0]),dE(n[1])]}function dE(e){return va(typeof e==`boolean`?0:e,1)||0}function fE(e){var t=aE(e.scale);return t.extent||=Cs(),t}function pE(e,t){fE(e).dimIdxInCoord=t.get(e.dim)}function mE(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&q(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&q(n.rawExtentInfo.from!==t||t===2);return}hE(n,e,i,r,t)}function hE(e,t,n,r,i){var a=fE(t),o=a.extent,s=!1;KT(t,function(r){if(r.boxCoordinateSystem){var i=ig(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&Z(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(H(i)){var l=i[c];l!=null&&!H(l)&&ws(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;L(OT(u,n),function(e){Ds(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=xE(e,t,r);_E(e,new sE(e,r,o,s,c),i),a.extent=null}function gE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&q(!n.rawExtentInfo),_E(n,new sE(n,e.model,t,!1,!1),oE)}function _E(e,t,n){e.rawExtentInfo=t,t.from=n}function vE(e,t){process.env.NODE_ENV!==`production`&&q(!yE.get(e)),yE.set(e,t)}var yE=J();function bE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(!i||!e.rawExtentInfo),e.rawExtentInfo||gE({scale:e,model:t},i||Cs());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 xE(e,t,n){var r=FT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return XT(t,function(e){a=!!yE.get(e)||a}),a}function SE(e,t,n,r){if(n.ctnShp){var i;if(XT(e,function(t){var n=yE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Ts(i,a[0]),Es(i,a[1]),ST(e))}}),i){var a=t.getExtent();if(zw(t))e.onBand||t.setExtent2(1,Za(a[0],a[0]+i[0]),X(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Za(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=X(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 CE(e,t){var n=Rw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Ww(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?TE(r,t):wE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Vw(d)),i[0]||(s[0]=po(eo(s[0]/u)*u,l)),i[1]||(s[1]=po(to(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),NT(e,i,o,s,a,c)}function wE(e,t){var n=Kw(t.splitNumber,5),r=jw(e);process.env.NODE_ENV!==`production`&&q(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=Eo(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Vw(o),c=e.getExtent(),l=[po(to(c[0]/o)*o,s),po(eo(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function TE(e,t){var n=Kw(t.splitNumber,10),r=e.getExtent(),i=jw(e);process.env.NODE_ENV!==`production`&&q(isFinite(i)&&i>0);var a=X(wo(i),1);n/i*a<=.5&&(a*=10);var o=Vw(a),s=[po(to(r[0]/a)*a,o),po(eo(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function EE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&q(r&&i),DE(t,n,r,i,null)}function DE(e,t,n,r,i){var a=bE(e,t,r,n,i),o=Iw(e)||Lw(e);OE(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&&SE(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function OE(e,t){kE[e.type](e,t)}var kE={interval:CE,log:CE,time:lT,ordinal:Pe},AE=[],jE={registerPreprocessor:fC,registerProcessor:pC,registerPostInit:mC,registerPostUpdate:hC,registerUpdateLifecycle:gC,registerAction:_C,registerCoordinateSystem:vC,registerLayout:yC,registerVisual:bC,registerTransform:TC,registerLoading:CC,registerMap:wC,registerImpl:Fb,PRIORITY:pS,ComponentModel:bg,ComponentView:jy,SeriesModel:Sy,ChartView:Fy,registerComponentModel:function(e){bg.registerClass(e)},registerComponentView:function(e){jy.registerClass(e)},registerSeriesModel:function(e){Sy.registerClass(e)},registerChartView:function(e){Fy.registerClass(e)},registerCustomSeries:function(e,t){Rb(e,t)},registerSubTypeDefaulter:function(e,t){bg.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Wa(e,t)}};function ME(e){if(H(e)){L(e,function(e){ME(e)});return}I(AE,e)>=0||(AE.push(e),U(e)&&(e={install:e}),e.install(jE))}var NE=ps(),PE=ps(),FE={estimate:1,determine:2};function IE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function LE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:R(zE(n,r),function(t,n){return{formattedLabel:wT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?BE(e,t):UE(e)}function RE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:zE(i,r)}:e.type===`category`?HE(e,t):{ticks:r.getTicks(n)}}function zE(e,t){var n=t.getExtent(),r=[];return L(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Ps(r,Is,null),mo(r),R(r,function(e){return{value:e}})}function BE(e,t){var n=e.getLabelModel(),r=VE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function VE(e,t,n){var r=GE(e),i=ET(t),a=n.kind===FE.estimate;if(!a){var o=qE(r,i);if(o)return o}var s,c;U(i)?s=eD(e,i,!1):(c=i===`auto`?YE(e,n):i,s=eD(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return JE(r,i,l),!0}):JE(r,i,l),l}function HE(e,t){var n=WE(e),r=ET(t),i=qE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),U(r))a=eD(e,r,!0);else if(r===`auto`){var s=VE(e,e.getLabelModel(),IE(FE.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tick})}else o=r,a=eD(e,o,!0);return JE(n,r,{ticks:a,tickCategoryInterval:o})}function UE(e){var t=e.scale.getTicks(),n=wT(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var WE=KE(`axisTick`),GE=KE(`axisLabel`);function KE(e){return function(t){return PE(t)[e]||(PE(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 JE(e,t,n){return e.list.push({key:t,value:n}),n}function YE(e,t){if(t.kind===FE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return PE(e).autoInterval=n,!0}),n}return PE(e).autoInterval??(PE(e).autoInterval=e.calculateCategoryInterval(t))}function XE(e,t){var n=t.kind,r=$E(e),i=wT(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=ma(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===FE.estimate?(t.out.noPxChangeTryDetermine.push(le(ZE,null,e,S,c)),S):QE(e,S,c)??S}function ZE(e,t,n){return QE(e,t,n)==null}function QE(e,t,n){var r=NE(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 $E(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 eD(e,t,n){var r=wT(e),i=e.scale,a=[],o=U(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 tD=.8;function nD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Aw(r);Mo(o)||(o=NaN);var s=e.getExtent(),c=Qa(s[1]-s[0]);return zw(r)?rD(n,e,o,c):i?iD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&q(!1),a!=null&&(n.w=Mo(n.w)?X(a,n.w):a),n}function rD(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 iD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(i);var a=!1,o=-1/0;L(i.key?[HT(t,i.key)]:UT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Mo(n)&&n>0&&Mo(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*tD,e.w2=e.w*n/r)}var aD=[0,1],oD=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)),so(e,aD,sD(this),t)},e.prototype.coordToData=function(e,t){var n=so(e,sD(this),aD,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=R(RE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(PT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=cD(this,n,r);return R(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(zw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=IE(FE.determine),LE(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 nD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=IE(FE.determine),XE(this,e)},e}();function sD(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 cD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=nD(e).w;if(!i)return!1;L(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 lD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],uD=1,dD=2,fD=uD|dD;function pD(e,t,n){n||=fD,t?e.dirty|=n:e.dirty&=~n}function mD(e,t){return t||=fD,e.dirty==null||!!(e.dirty&t)}function hD(e){if(e)return mD(e)&&gD(e,e.label,e),e}function gD(e,t,n){var r=t.getComputedTransform();e.transform=rm(e.transform,r);var i=e.localRect=nm(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=Om.textMargin);for(var d=0;d<4;d++)_D[d]=u===Om.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Om.textMargin&&Jp(i,_D,!1,!1);var f=e.rect=nm(e.rect,i);return r&&f.applyTransform(r),u===Om.minMargin&&Jp(f,_D,!1,!1),e.axisAligned=em(r),(e.label=e.label||{}).ignore=t.ignore,pD(e,!1),pD(e,!0,dD),e}var _D=[0,0,0,0];function vD(e,t,n){return e.transform=rm(e.transform,n),e.localRect=nm(e.localRect,t),e.rect=nm(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=em(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function yD(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 bD(e,t){for(var n=0;n<lD.length;n++){var r=lD[n];e[r]??(e[r]=t[r])}return hD(e)}function xD(e){var t=e.obb;return(!t||mD(e,dD))&&(e.obb=t||=new ap,t.fromBoundingRect(e.localRect,e.transform),pD(e,!1,dD)),t}function SD(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=hD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(CD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function CD(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:xD(e).intersect(xD(t),n,r)}var wD={left:0,right:0,top:0,bottom:0},TD=[`25%`,`25%`],ED=`cartesian2d`,DD=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=_g(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&gg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&gg(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:wD,outerBoundsContain:`all`,outerBoundsClampWidth:TD[0],outerBoundsClampHeight:TD[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(bg),OD=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,_s).models[0]},t.type=`cartesian2dAxis`,t}(bg);ae(OD,IT);var kD={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`}},AD=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},kD),jD=N({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}}},kD),MD={category:AD,value:jD,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},jD),log:F({logBase:10},jD)},ND=null;function PD(){return ND}function FD(e,t,n,r){L(_T,function(i,a){var o=N(N({},MD[a],!0),r,!0),s=function(e){l(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=hg(this),r=n?_g(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=ID(e),n&&gg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Sw.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=PD();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,ID)}function ID(e){return e.type||(e.data?`category`:`value`)}var LD=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 R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),B(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}(),RD=[`x`,`y`];function zD(e){return(e.type===`interval`||e.type===`time`)&&!sh(e)}var BD=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=ED,t.dimensions=RD,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!zD(e)||!zD(t))){var n=kw(e,null),r=kw(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 Y(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 Ye(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 Ye(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 Y(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(LD),VD=function(e){l(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}(oD),HD=`expandAxisBreak`,UD=Math.PI,WD=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GD=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],KD=ps(),qD=ps(),JD=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 YD(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=yO(e.axisName)&&kT(e.nameLocation);L(r,function(e){var t=hD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Lt(XD,n.transform):jt(XD),t.transform&&Nt(XD,XD,t.transform),Y.copy(ZD,t.localRect),ZD.applyTransform(XD),s?s.union(ZD):Y.copy(s=new Y(0,0,0,0),ZD))}});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 Y(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var XD=At(),ZD=new Y(0,0,0,0),QD=function(e,t,n,r,i,a){if(kT(e.nameLocation)){var o=a.stOccupiedRect;o&&$D(vD({},o,a.transGroup.transform),r,i)}else eO(a.labelInfoList,a.dirVec,r,i)};function $D(e,t,n){var r=new Rt;CD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&yD(t,r)}function eO(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||$D(s,n,r)}}var tO=function(){function e(e,t,n,r){this.group=new La,this._axisModel=e,this._api=t,this._local={},this._shared=r||new JD(QD),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;q(!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=K(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=K(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:r,nameLocation:be(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:yO(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(q(a.position!=null),q(a.rotation!=null)),this._cfg=a;var o=new La({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},L(nO,function(r){e[r]&&rO[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=bo(t-e),i,a;return xo(r)?(a=n>0?`top`:`bottom`,i=`center`):xo(r-UD)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<UD?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`],rO={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;q(!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&&(Ye(d,d,u),Ye(f,f,u));var m=P({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&sh(r.axis.scale))PD().buildAxisBreakLine(r,i,a,h);else{var g=new Bf(P({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Mp(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);W(_)&&(_=[_,_]),(W(v)||fe(v))&&(v=[v,v]);var y=ex(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];L([{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=$b(_[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;q(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}fO(t,i,s)&&iO(e,t,n,r,i,a,o,FE.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}fO(t,i,s)&&iO(e,t,n,r,i,a,o,FE.determine);var l=uO(e,i,a,r);sO(e,t.labelLayoutList,l),dO(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;q(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(yO(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*UD/180);var x,S;kT(d)?x=tO.innerTextLayout(e.rotation,b??e.rotation,f):(x=aO(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=ye(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new su({x:_.x,y:_.y,rotation:x.rotation,silent:tO.isLabelSilent(r),style:_m(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(Zp({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=tO.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,xu(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=hD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:kT(d)?WD[D]:GD[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&q(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function iO(e,t,n,r,i,a,o,s){mO(t)||pO(e,t,i,s,r,o);var c=t.labelLayoutList;gO(e,r,c,a),xO(r,e.rotation,c);var l=e.optionHideOverlap;oO(r,c,l),l&&SD(B(c,function(e){return e&&!e.label.ignore})),YD(e,n,r,c)}function aO(e,t,n,r){var i=bo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return xo(i-UD/2)?(o=c?`bottom`:`top`,a=`center`):xo(i-UD*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<UD*1.5&&i>UD/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function oO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(DT(r))return;function a(e,a,o){var s=hD(t[a]),c=hD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=KD(s.label).labelInfo.tick;if(Lw(l)&&u.notNice||zw(l)&&u.offInterval){cO(s.label);return}}if(e===!1||s.suggestIgnore){cO(s.label);return}if(c.suggestIgnore){cO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=bD({marginForce:f},s),c=bD({marginForce:f},c)}CD(s,c,null,{touchThreshold:d})&&cO(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 sO(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=qD(r),a=KD(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){cO(r);return}}})}function cO(e){e&&(e.ignore=!0)}function lO(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&&(Ye(o,o,t),Ye(s,s,t));var u=new Bf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Mp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=qD(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function uO(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=lO(i.getTicksCoords(),n.transform,c,F(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function dO(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=F(c.getLineStyle(),F(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=lO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function fO(e,t,n){if(mO(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&q(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),hO(e,null,null,null))}return!0}function pO(e,t,n,r,i,a){var o=i.axis,s=ye(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new La;n.add(c);var l=IE(r);if(!s||o.scale.isBlank()){hO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ye(e.raw.labelRotate,u.get(`rotate`))||0)*UD/180,p=tO.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;L(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=PT(o.scale,n);if(m&&m[f]){var y=m[f];G(y)&&y.textStyle&&(l=new zm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=K(l.getShallow(`alignMinLabel`,!0),x),C=K(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=K(l.getShallow(`verticalAlignMinLabel`,!0),w),E=K(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new su({x:0,y:0,rotation:0,silent:tO.isLabelSilent(i),z2:D,style:_m(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=KD(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Zp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=tO.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),xu(O).eventData=A,j&&bO(i,a,O,j)}h.push(O),c.add(O)}),hO(t,R(h,function(e){return{label:e,priority:KD(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function mO(e){return!!e.labelLayoutList}function hO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function gO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);L(n,function(n,a){var o=hD(n);if(o){var s=o.label,c=KD(s);o.suggestIgnore=s.ignore,s.ignore=!1,aa(_O,vO);var l=t.axis;_O.x=l.dataToCoord(PT(l.scale,c.labelInfo.tick)),_O.y=e.labelOffset+e.labelDirection*i,_O.rotation=c.layoutRotation,r.add(_O),_O.updateTransform(),r.remove(_O),_O.decomposeTransform(),aa(s,_O),s.markRedraw(),pD(o,!0),hD(o)}})}var _O=new nu,vO=new nu;function yO(e){return!!e}function bO(e,t,n,r){n.on(`click`,function(n){var i={type:HD,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function xO(e,t,n){var r=ih();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&KD(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&L(i,function(r){PD().adjustBreakLabelPair(e.axis.inverse,t,[hD(n[r[0]]),hD(n[r[1]])])})}}function SO(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),ye(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 CO(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function wO(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,_s).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+be(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function TO(e,t,n,r,i,a){for(var o=SO(e,n),s=!1,c=!1,l=0;l<t.length;l++)Fw(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 tO(n,r,o,i)}function EO(e,t,n){var r=SO(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();L(V(r),function(e){e!==`position`&&e!==`labelOffset`&&q(r[e]===i[e])})}e.updateCfg(r)}function DO(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&q(n&&r&&(n instanceof Xw||n instanceof pT)&&(t instanceof Xw||t instanceof pT));var i=bE(n,r,r.ecModel,e,null),a=Rw(n),o=Rw(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`&&(q(!sh(t)&&!sh(n)),q(d>0),q(u.length===l.length),q(l[0].value<=l[d].value),q(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(q(u[1].value===l[1].value),q(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=Qa(l[0].value-l[1].value),g=Qa(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`&&q(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=Ww(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*X(c,2):Bw(E),D=Vw(E);process.env.NODE_ENV!==`production`&&n>=t&&Ro("incorrect impl in `scaleCalcAlign`.")}function j(){w=po(k-E*f,D)}function ee(){T=po(O+E*p,D)}function te(){k=f?po(w+E*f,D):w}function ne(){O=p?po(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var M=e.getExtent(),N=Qa(M[1]-M[0]);D=_o([T,w],N,.5/m),te(),ne(),Mo(D)&&(E=po(E,D))}else{var P=C[1]-C[0];E=a?X(wo(P),1):Eo(P/m,2),D=Vw(E),b[0]?(w=C[0],A(function(){if(te(),O=po(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(ne(),k=po(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=po(to(C[0]/E)*E,D),O=po(eo(C[1]/E)*E,D);var e=$a((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=eo(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=po(k-E*n[0],D),O=po(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}NT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var OO=[[3,1],[0,2]],kO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=RD,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;L(this._axesList,function(e){mE(e,1);var t=e.scale;zw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=V(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):EE(i)}L(n,function(e){PO(e,e.__alignTo)?EE(e):DO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};L(n.x,function(e){jO(n,`y`,e,i)}),L(n.y,function(e){jO(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(IO(a,i),!n){var c=BO(i,o,a,s,t),l=void 0;if(s)RO?(RO(this._axesList,i),IO(a,i)):(process.env.NODE_ENV!==`production`&&Lo("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=zO(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=HO(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=zO(d,f,p,i,a,c,r))}VO(i,a,FE.determine,null,l,r),L(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]}G(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`,_s).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,_s).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,I(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,L(o.x,function(t,n){L(o.y,function(i,a){var o=`x`+n+`y`+a,s=new BD(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),NO(o.x),NO(o.y);function c(t){return function(n,r){if(AO(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=yT(n),u=new VD(t,bT(n,l,!0),[0,0],l,c);u.onBand=FT(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 L(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);I(t,i)<0&&t.push(i),I(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),L(o._axesList,function(t){pE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;og({targetModel:e,coordSysType:ED,coordSysProvider:r});function r(){var r=wO(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 "`+be(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&&(eE(t,e,ED),eE(n,e,ED))},this),r},e.dimensions=RD,e.dimIdxMap=BC(RD),e}();function AO(e,t){return e.getCoordSysModel()===t}function jO(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)MO(s,i[c])&&(a=i[c]);else for(var l in i)if(Ne(i,l)&&MO(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 MO(e,t){if(!t)return!1;var n=t.scale,r=xT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&CT(t)&&(i=!1),i}function NO(e){for(var t=V(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Fw(a.scale)&&jT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&L(r,function(e){e.__alignTo=n})}function PO(e,t){return sh(e.scale)||sh(t.scale)||t.scale.getTicks().length<2}function FO(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 IO(e,t){L(e.x,function(e){return LO(e,t.x,t.width)}),L(e.y,function(e){return LO(e,t.y,t.height)})}function LO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),FO(e,t)}var RO;function zO(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&q(t===`all`||t===`axisLabel`),VO(r,i,FE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=se(s,function(e){return e>0})==null;return Jp(r,s,!0,!0,n),IO(i,r),c;function l(e){L(i[bp[e]],function(t){if(AT(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(PT(t.scale,KD(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=kT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[bp[n]]-t[bp[n]],a=t[xp[n]]+t[bp[n]]-(e[xp[n]]+e[bp[n]]);i=d(i,1-r),a=d(a,r);var o=OO[n][0],c=OO[n][1];s[o]=X(s[o],i),s[c]=X(s[c],a)}function d(e,t){return e>0&&!ve(t)&&t>1e-4&&(e/=t),e}}function BO(e,t,n,r,i){var a=new JD(UO);return L(n,function(n){return L(n,function(n){if(AT(n.model)){var o=!r;n.axisBuilder=TO(e,t,n.model,i,a,o)}})}),a}function VO(e,t,n,r,i,a){var o=n===FE.determine;L(t,function(t){return L(t,function(t){AT(t.model)&&(EO(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[bp[1-t]]=e[xp[t]]<=a.refContainer[xp[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){AT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function HO(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)||wD,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Z(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:I([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Z(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[uo(K(e.get(`outerBoundsClampWidth`,!0),TD[0]),t.width),uo(K(e.get(`outerBoundsClampHeight`,!0),TD[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var UO=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;QD(e,t,n,r,i,a),kT(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&eO(e.labelInfoList,e.dirVec,r,i)})};function WO(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return GO(n,e,t),n.seriesInvolved&&qO(n,e),n}function GO(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=ek(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),ue(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)&&L(f.baseAxes,ue(p,!d||`cross`,u)),d&&L(f.otherAxes,ue(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!$O(d))){s??=d.get(`triggerTooltip`),d=r?KO(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=ek(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:$O(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=JO(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function KO(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=M(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&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new zm(c,n,r))}function qO(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||L(e.coordSysAxesInfo[ek(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 JO(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(YO(a[r+`AxisId`],n.id)||YO(a[r+`AxisIndex`],n.componentIndex)||YO(a[r+`AxisName`],n.name))return i}}function YO(e,t){return e===`all`||H(e)&&I(e,t)>=0||e===t}function XO(e){var t=ZO(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=$O(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 ZO(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[ek(e)]}function QO(e){var t=ZO(e);return t&&t.axisPointerModel}function $O(e){return!!e.get([`handle`,`show`])}function ek(e){return e.type+`||`+e.id}var tk={},nk=function(e){l(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&&XO(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=QO(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`&&tk[e])throw Error(`axisPointer `+e+` exists`);tk[e]=t},t.getAxisPointerClass=function(e){return e&&tk[e]},t.type=`axis`,t}(jy),rk=ps();function ik(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=rk(e).splitAreaColors,f=J(),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=H(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 nu({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:F({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}rk(e).splitAreaColors=f}}}function ak(e){rk(e).splitAreaColors=null}var ok=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],sk=function(e){l(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 La,this.group.add(this._axisGroup),AT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),L(ok,function(e){t.get([e,`show`])&&ck[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Bp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){ak(this)},t.type=`cartesianAxis`,t}(nk),ck={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=H(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 Bf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:F({stroke:c[x]},_),silent:!0});Mp(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 Bf({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});Mp(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){ik(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=PD(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},lk=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(sk),uk=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=lk.type,t}return t.type=`yAxis`,t}(sk),dk=function(e){l(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 nu({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(jy),fk={offset:0};function pk(e){e.registerComponentView(dk),e.registerComponentModel(DD),e.registerCoordinateSystem(`cartesian2d`,kO),FD(e,`x`,OD,fk),FD(e,`y`,OD,fk),e.registerComponentView(lk),e.registerComponentView(uk),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var mk=ps(),hk=M,gk=le,_k=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 La,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ue(vk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}Sk(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&&nD(r).w>o)return!0;if(a){var s=ZO(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=mk(e).pointerEl=new vp[i.type](hk(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=mk(e).labelEl=new su(hk(t.label));e.add(i),bk(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=mk(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=mk(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),bk(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=Up(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Tt(e.event)},onmousedown:gk(this._onHandleDragMove,this,0,0),drift:gk(this._onHandleDragMove,this),ondragend:gk(this._onHandleDragEnd,this)}),n.add(r)),Sk(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Gy(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){vk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xk(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(xk(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xk(r)),mk(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),Ky(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 vk(e,t,n,r){yk(mk(n).lastProp,r)||(mk(n).lastProp=r,t?dp(n,r,e):(n.stopAnimation(),n.attr(r)))}function yk(e,t){if(G(e)&&G(t)){var n=!0;return L(t,function(t,r){n&&=yk(e[r],t)}),!!n}return e===t}function bk(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function xk(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Sk(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 Ck(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 wk(e,t,n,r,i){var a=Ek(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=Kh(o.get(`padding`)||0),c=o.getFont(),l=ma(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),Tk(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:_m(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function Tk(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 Ek(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:TT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function Dk(e,t,n){var r=At();return Ft(r,r,n.rotation),Pt(r,r,n.position),Ip([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Ok(e,t,n,r,i,a){var o=tO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),wk(t,r,i,a,{position:Dk(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kk(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Ak(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function jk(e,t,n){return nD(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Mk(e,t,n){return[X(Za(t[0],t[1]),e-n/2),Za(e+n/2,X(t[0],t[1]))]}var Nk=function(e){l(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=Pk(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=Ck(r),f=Fk[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}Ok(t,e,SO(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=SO(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Dk(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=Pk(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Za(o[1],l[c]),l[c]=X(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}(_k);function Pk(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var Fk={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:kk([t,r[0]],[t,r[1]],Ik(e))}},shadow:function(e,t,n,r,i,a){var o=jk(e,i,a),s=r[1]-r[0],c=Mk(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:Ak([l,r[0]],[u-l,s],Ik(e))}}};function Ik(e){return e.dim===`x`?0:1}var Lk=function(e){l(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}(bg),Rk=ps(),zk=L;function Bk(e,t,n){if(!d.node){var r=t.getZr();Rk(r).records||(Rk(r).records={}),Vk(r,t);var i=Rk(r).records[e]||(Rk(r).records[e]={});i.handler=n}}function Vk(e,t){if(Rk(e).initialized)return;Rk(e).initialized=!0,n(`click`,ue(Wk,`click`)),n(`mousemove`,ue(Wk,`mousemove`)),n(`mousewheel`,ue(Wk,`mousewheel`)),n(`globalout`,Uk);function n(n,r){e.on(n,function(n){var i=Gk(t);zk(Rk(e).records,function(e){e&&r(e,n,i.dispatchAction)}),Hk(i.pendings,t)})}}function Hk(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 Uk(e,t,n){e.handler(`leave`,null,n)}function Wk(e,t,n,r){t.handler(e,n,r)}function Gk(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 Kk(e,t){if(!d.node){var n=t.getZr();(Rk(n).records||{})[e]&&(Rk(n).records[e]=null)}}var qk=function(e){l(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`;Bk(`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){Kk(`axisPointer`,t)},t.prototype.dispose=function(e,t){Kk(`axisPointer`,t)},t.type=`axisPointer`,t}(jy);function Jk(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=fs(a,e);if(o==null||o<0||H(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(R(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 Yk=ps();function Xk(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||le(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){oA(i)&&(i=Jk({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=oA(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||oA(i),f={},p={},m={list:[],map:{}},h={showPointer:ue($k,p),showTooltip:ue(eA,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=iA(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&Zk(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(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,aA(t),aA(e)))),g[e.key]=a}})}),L(g,function(e,t){Zk(u[t],e,h,!0,f)}),tA(p,u,f),nA(m,i,e,o),rA(u,o,n),f}}function Zk(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=Qk(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function Qk(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(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(Mo(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),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function $k(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function eA(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=ek(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 tA(e,t,n){var r=n.axesInfo=[];L(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 nA(e,t,n,r){if(oA(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 rA(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=Yk(r)[i]||{},o=Yk(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(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 iA(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 aA(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 oA(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function sA(e){nk.registerAxisPointerClass(`CartesianAxisPointer`,Nk),e.registerComponentModel(Lk),e.registerComponentView(qk),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=WO(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Xk)}function cA(e){ME(pk),ME(sA)}var lA=typeof Float32Array<`u`?Float32Array:void 0,uA=typeof Float64Array<`u`?Float64Array:void 0;function dA(e){return fA({ctor:lA},e).arr}function fA(e,t){process.env.NODE_ENV!==`production`&&q(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>yo&&(t=yo),!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`&&Z(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 pA(){QT(`liPosMinGap`,mA)}function mA(e,t,n){var r=J(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Tv(u);function f(n){JT(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}fA(hA,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||Ev(d,a))&&(l&&(a=c.transformIn(a,null)),hA.arr[m++]=a)}});var h=hA.typed?hA.arr.subarray(0,m):(hA.arr.length=m,hA.arr);hA.typed?h.sort():mo(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Mo(g)?g:m>0?-2:-1,n.serUids=r}var hA=fA({ctor:uA},50);function gA(e){return function(t,n){var r=nD(t,{fromStat:{key:e}});if(Mo(r.w2))return[-r.w2/2,r.w2/2]}}function _A(e,t){return e+`|&`+t}function vA(e){return pA(),{liPosMinGap:!zw(e.scale)}}function yA(e,t,n,r){nE(e,{key:t,seriesType:n,coordSysType:r,getMetrics:vA})}function bA(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&q(Mo(t)),t}var xA=function(e){l(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}(bg);function SA(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function CA(e){if(d.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var wA=CA([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),TA=CA([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function EA(e,t){if(!e)return t;t=Gh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function DA(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var OA=EA(TA,`transition`),kA=EA(wA,`transform`),AA=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(d.transform3dSupported?`will-change:transform;`:``);function jA(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function MA(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Qh(t);var a=jA(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=kA+`:`,l;I([`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 NA(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(d.transformSupported?``+kA+i:`,left`+i+`,top`+i)),OA+`:`+a}function PA(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!d.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=d.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+kA+`:`+o+`;`:[[`top`,0],[`left`,0],[wA,o]]}function FA(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=K(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),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function IA(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=gy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(NA(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Gh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(FA(d)),f!=null&&i.push(`padding:`+Kh(f).join(`px `)+`px`),i.join(`;`)+`;`}function LA(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&ot(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 RA=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,d.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):he(i)?i:U(i)&&i(e.getDom()));LA(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;xt(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=DA(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=AA+IA(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+PA(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(W(i)&&n.get(`trigger`)===`item`&&!SA(n)&&(o=MA(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)he(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(LA(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;L(PA(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`,d.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(le(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;st(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}(),zA=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),HA(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;G(e)&&Ho(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 su({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:gy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),L([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),L([`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=VA(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;HA(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=BA(i.borderWidth||0),o=VA(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(le(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function BA(e){return Math.max(0,e)}function VA(e){var t=BA(e.shadowBlur||0),n=BA(e.shadowOffsetX||0),r=BA(e.shadowOffsetY||0);return{left:BA(t-n),right:BA(t+n),top:BA(t-r),bottom:BA(t+r)}}function HA(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var UA=new nu({shape:{x:-1,y:-1,width:2,height:2}}),WA=function(e){l(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(!(d.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=Ss(n.get(`renderMode`));this._tooltipContent=r===`richText`?new zA(t):new RA(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(d.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`)?Gy(this,`_updatePosition`,50,`fixRate`):Ky(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);Bk(`itemTooltip`,this._api,le(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||d.node||!n.getDom())){var i=KA(r,n);this._ticket=``;var a=r.dataByCoordSys,o=ZA(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=UA;c.x=r.x,c.y=r.y,c.update(),xu(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=Jk(r,t),u=l.point[0],f=l.point[1];u!=null&&f!=null&&this._tryShow({offsetX:u,offsetY:f,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(KA(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&&GA([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(xu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Mb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(xu(e).dataIndex==null?xu(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=le(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=GA([t.tooltipOption],r),o=this._renderMode,s=[],c=ny(`section`,{blocks:[],noHeader:!0}),l=[],u=new _y;L(e,function(e){L(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=Ek(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=ny(`section`,{header:f,noHeader:!Ce(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(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=TT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Qh(m.color),o);var h=vv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=GA([a],r).get(`valueFormatter`);p.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=cy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
21
+ `];function fy(e,t){return t.type=e,t}function py(e){return e.type===`section`}function my(e){return py(e)?gy:_y}function hy(e){if(py(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=hy(e);n>=t&&(t=n+ +(r&&(!n||py(e)&&!e.noHeader)))}),t}return 0}function gy(e,t,n,r){var i=t.noHeader,a=yy(hy(t)),o=[],s=t.blocks||[];q(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Ne(l,c)){var u=new Pv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=my(n)(s?P(P({},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):by(r,o.join(``),i?n:a.html);if(i)return d;var f=eg(t.header,`ordinal`,e.useUTC),p=ly(r,e.renderMode).nameStyle,m=cy(r);return e.renderMode===`richText`?Cy(e,f,p)+a.richText+d:by(r,`<div style="`+p+`;`+m+`;">`+ht(f)+`</div>`+d,n)}function _y(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=H(e)?e:[e],R(e,function(e,t){return eg(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:eg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=ly(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Cy(e,f,v))+(o?``:wy(e,m,h,g,y)):by(r,(s?``:d)+(a?``:xy(f,!s,v))+(o?``:Sy(m,h,g,y)),n)}}function vy(e,t,n,r,i,a){if(e)return my(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function yy(e){return{html:uy[e],richText:dy[e]}}function by(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=cy(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function xy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+ht(e)+`</span>`}function Sy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+R(e,function(e){return ht(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function Cy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function wy(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(H(t)?t.join(` `):t,a)}function Ty(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return ag(n)}function Ey(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Dy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=No()}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=ig({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(process.env.NODE_ENV!==`production`&&q(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?L(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Oy(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=H(s),l=Ty(t,n),u,d,f,p;if(o>1||c&&!o){var m=ky(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=Tv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=ps(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return fy(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[fy(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Ce(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function ky(e,t,n,r,i){var a=t.getData(),o=z(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?L(r,function(e){u(Tv(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(fy(`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 Ay=ys();function jy(e,t){return e.getName(t)||e.getId(t)}var My=function(e){l(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=kv({count:Fy,reset:Iy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Ay(this).sourceManager=new iy(this)).prepareSource();var r=this.getInitialData(e,n);Ry(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&q(r,`getInitialData returned invalid data.`),Ay(this).dataBeforeProcessed=r,Ny(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wg(this),r=n?Eg(e):{},i=this.subType;kg.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),Zo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Tg(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=wg(this);n&&Tg(this.option,e,n);var r=Ay(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Ry(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ay(this).dataBeforeProcessed=i,Ny(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!me(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Zo(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=By(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Ay(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=By(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Ay(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return J(e)},t.prototype.getSourceManager=function(){return Ay(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ay(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 Oy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(d.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=Zg.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=jy(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=V(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[jy(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`){G(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=jy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=jy(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 kg.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}(kg);ae(My,Dv),ae(My,Zg),tc(My,kg);function Ny(e){var t=e.name;ps(e)||(e.name=Py(e)||t)}function Py(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Fy(e){return e.model.getRawData().count()}function Iy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Ly}function Ly(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ry(e,t){L(je(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ue(zy,t))})}function zy(e,t){var n=By(e);return n&&n.setOutputEnd((t||this).count()),t}function By(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 Vy=function(){function e(){this.group=new Ha,this.uid=Jm(`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}();$s(Vy),oc(Vy);function Hy(){var e=ys();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 Uy=ys(),Wy=Hy(),Gy=function(){function e(){this.group=new Ha,this.uid=Jm(`viewChart`),this.renderTask=kv({plan:Jy,reset:Yy}),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`&&Uo(`Unknown dataType `+r.dataType);return}qy(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`&&Uo(`Unknown dataType `+r.dataType);return}qy(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){om(this.group,e)},e.markUpdateMethod=function(e,t){Uy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Ky(e,t,n){e&&Hd(e)&&(t===`emphasis`?_d:vd)(e,n)}function qy(e,t,n){var r=vs(e,t),i=t&&t.highlightKey!=null?Ud(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Ky(e,n,i)}):L(Xo(r),function(t){Ky(e.getItemGraphicEl(t),n,i)})}$s(Gy,[`dispose`]),oc(Gy);function Jy(e){return Wy(e.model)}function Yy(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Uy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Xy[c]}var Xy={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)}}},Zy=`\0__throttleOriginMethod`,Qy=`\0__throttleRate`,$y=`\0__throttleType`;function eb(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 tb(e,t,n,r){var i=e[t];if(i){var a=i[Zy]||i,o=i[$y];if(i[Qy]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=eb(a,n,r===`debounce`),i[Zy]=a,i[$y]=r,i[Qy]=n}return i}}function nb(e,t){var n=e[t];n&&n[Zy]&&(n.clear&&n.clear(),e[t]=n[Zy])}var rb=ys(),ib={itemStyle:sc(Um,!0),lineStyle:sc(Bm,!0)},ab={lineStyle:`stroke`,itemStyle:`fill`};function ob(e,t){return e.visualStyleMapper||ib[t]||(console.warn(`Unknown style type '`+t+`'.`),ib.itemStyle)}function sb(e,t){return e.visualDrawType||ab[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var cb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=ob(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=sb(e,r),c=a[s],l=U(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`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(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=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},lb=new Km,ub={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=ob(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){lb.option=n[r];var o=i(lb);P(e.ensureUniqueItemVisual(t,`style`),o),lb.option.decal&&(e.setItemVisual(t,`decal`,lb.option.decal),lb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},db={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();rb(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=rb(e).scope,a=sb(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)}})}})}},fb=Math.PI;function pb(e,t){t||={},F(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 Ha,r=new lu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new mu({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 lu({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 $f({shape:{startAngle:-fb/2,endAngle:-fb/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:fb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:fb*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 mb=function(){function e(e,t,n,r){this._stageTaskMap=J(),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):Gs(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();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;L(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.`),q(!(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;L(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=J(),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)||kv({plan:yb,reset:bb,count:Cb}));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||kv({reset:hb});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),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.`),q(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):L(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,kv({reset:gb,onDirty:vb})));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 U(e)&&(e={overallReset:e,seriesType:wb(e)}),e.uid=Jm(`stageHandler`),t&&(e.visualType=t),e},e}();function hb(e){e.overallReset(e.ecModel,e.api,e.payload)}function gb(e){return e.dirtyOnOverallProgress&&_b}function _b(){this.agent.dirty(),this.getDownstream().dirty()}function vb(){this.agent&&this.agent.dirty()}function yb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function bb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Xo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return Sb(t)}):xb}var xb=Sb(0);function Sb(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 Cb(e){return e.data.count()}function wb(e){Db=null;try{e(Tb,Eb)}catch{}return Db}var Tb={},Eb={},Db;Ob(Tb,u_),Ob(Eb,zu),Tb.eachSeriesByType=Tb.eachRawSeriesByType=function(e){Db=e},Tb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Db=e.subType)};function Ob(e,t){for(var n in t.prototype)e[n]=Pe}var $=Q.darkColor,kb=$.background,Ab=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},jb={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Mb={darkMode:!0,color:$.theme,backgroundColor:kb,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:kb,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:jb,y:jb,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Ab(),logAxis:Ab(),valueAxis:Ab(),categoryAxis:Ab(),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=Ab();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}}}};Mb.categoryAxis.splitLine.show=!1;var Nb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Xs(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};L(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}(),Pb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Fb=Pb.concat([`symbolKeepAspect`]),Ib={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<Pb.length;o++){var s=Pb[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(P({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=V(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}}},Lb={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<Fb.length;r++){var i=Fb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Rb(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 zb(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 Bb(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Wo(`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=vs(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:P({},r)})}}))}function Vb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Bb(`map`,`selectchanged`,t,r,e),Bb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Bb(`map`,`selected`,t,r,e),Bb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Bb(`map`,`unselected`,t,r,e),Bb(`pie`,`unselected`,t,r,e))})}function Hb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Ub=new tt,Wb={};function Gb(e,t){process.env.NODE_ENV!==`production`&&Wb[e]&&Uo(`Already has an implementation of `+e+`.`),Wb[e]=t}function Kb(e){return process.env.NODE_ENV!==`production`&&(Wb[e]||Uo(`Implementation of `+e+` doesn't exists.`)),Wb[e]}var qb={};function Jb(e,t){qb[e]=t}var Yb=ys();function Xb(e){Yb(e).prepare={}}function Zb(e){Yb(e).fullUpdate={}}function Qb(e){return Yb(e).prepare}function $b(e){return Yb(e).fullUpdate}var ex=Math.round(Math.random()*9),tx=typeof Object.defineProperty==`function`,nx=function(){function e(){this._id=`__ec_inner_`+ex++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return tx?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}(),rx=Yl.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()}}),ix={line:qf,rect:lu,roundRect:lu,square:lu,circle:_f,diamond:Yl.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:Yl.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:Yl.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:rx},ax={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}},ox={};L(ix,function(e,t){ox[t]=new e});var sx=Yl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=wa(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=ox[r];i||=(r=`rect`,ox[r]),ax[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function cx(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 lx(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?Fp(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Pp(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new sx({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=cx,a&&c.setColor(a),c}function ux(e,t){if(e!=null)return H(e)||(e=[e,e]),[mo(e[0],t[0])||0,mo(K(e[1],e[0]),t[1])||0]}function dx(e){return isFinite(e)}function fx(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=dx(r)?r:0,i=dx(i)?i:1,a=dx(a)?a:0,o=dx(o)?o:0,e.createLinearGradient(r,a,i,o)}function px(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=dx(o)?o:.5,s=dx(s)?s:.5,c=c>=0&&dx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function mx(e,t,n){for(var r=t.type===`radial`?px(e,t,n):fx(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function hx(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 gx(e){return parseInt(e,10)}function _x(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]||gx(s[r])||gx(e.style[r]))-(gx(s[a])||0)-(gx(s[o])||0)||0}function vx(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:fe(e)?[e]:H(e)?e:null}function yx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&vx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var bx=new wl(!0);function xx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Sx(e){return typeof e==`string`&&e!==`none`}function Cx(e){var t=e.fill;return t!=null&&t!==`none`}function Tx(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 Ex(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 Dx(e,t,n){var r=fc(t.image,t.__image,n);if(mc(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)*Fe),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Ox(e,t,n,r,i){var a,o=xx(n),s=Cx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||bx,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?mx(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?mx(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?Dx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?Dx(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=yx(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&&Ex(e,n),s&&Tx(e,n)):(s&&Tx(e,n),o&&Ex(e,n)),T&&e.setLineDash([])}function kx(e,t,n){var r=t.__image=fc(n.image,t.__image,t,t.onload);if(!(!r||!mc(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 Ax(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=yx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(xx(n)&&e.strokeText(i,n.x,n.y),Cx(n)&&e.fillText(i,n.x,n.y)):(Cx(n)&&e.fillText(i,n.x,n.y),xx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var jx=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Mx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Nx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Wx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Rc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Wx(e,i),!0),e.globalCompositeOperation=t.blend||Rc.blend);for(var s=0;s<jx.length;s++){var c=jx[s];(r||t[c]!==n[c])&&(a||=(Wx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Wx(e,i),!0),e.shadowColor=t.shadowColor||Rc.shadowColor),a}function Px(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Nx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Wx(e,i),!0),Sx(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Wx(e,i),!0),Sx(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Wx(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||=(Wx(e,i),!0),e.lineWidth=c)}for(var l=0;l<Mx.length;l++){var u=Mx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Wx(e,i),!0),e[d]=a[d]||u[1])}return s}function Fx(e,t,n,r,i){return Nx(e,t.style,n&&n.style,r,i)}function Ix(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 Lx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Ix(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Rx(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 zx=1,Bx=2,Vx=3,Hx=4;function Ux(e){var t=Cx(e),n=xx(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 Wx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Gx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Kx(e,t,n),qx(e,n)}function Kx(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||hx(i,a))&&(a&&(Wx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Wx(e,n),e.save(),Lx(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 Yl&&t.autoBatch&&Ux(o);s||Rx(r,l.transform)?(Wx(e,n),Ix(e,t)):u||Wx(e,n),t instanceof Yl?(n.lastDrawType!==zx&&(c=!0,n.lastDrawType=zx),Px(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Ox(e,t,o,u,n)):t instanceof Zl?(n.lastDrawType!==Vx&&(c=!0,n.lastDrawType=Vx),Px(e,t,l,c,n),Ax(e,t,o)):t instanceof tu?(n.lastDrawType!==Bx&&(c=!0,n.lastDrawType=Bx),Fx(e,t,l,c,n),kx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Hx&&(c=!0,n.lastDrawType=Hx),Jx(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Wx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function qx(e,t){Wx(e,t),t.prevElClipPaths&&e.restore()}function Jx(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(),Kx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}qx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Kx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}qx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Yx=new nx,Xx=new mr(100),Zx=[`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&&Yx.delete(e);var a=Yx.get(e);if(a)return a;var o=F(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,Yx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Zx.length;++s){var c=o[Zx[s]];if(c!=null&&!H(c)&&!W(c)&&!fe(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Xx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=eS(o.dashArrayX),f=tS(o.dashArrayY),p=$x(o.symbol),m=nS(d),h=rS(f),g=!i&&y.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=x(),b;g&&(g.width=v.width*n,g.height=v.height*n,b=g.getContext(`2d`)),S(),a&&Xx.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=Fo(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Fo(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,g.width,g.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,y=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(y%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][y]*C,T=a+f[s]*C,E=d[l][y]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][y],++x,++y,y===d[l].length&&(y=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=lx(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Gx(b,u)}}}}function $x(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return $x([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function eS(e){if(!e||e.length===0)return[[0,0]];if(fe(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!fe(e[r])){n=!1;break}if(n)return eS([e]);for(var i=[],r=0;r<e.length;++r)if(fe(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=R(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function tS(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(fe(e)){var t=Math.ceil(e);return[t,t]}var n=R(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function nS(e){return R(e,function(e){return rS(e)})}function rS(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var iS=Ks(aS);function aS(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 oS=1,sS=800,cS=900,lS=920,uS=1e3,dS=2e3,fS=5e3,pS=1e3,mS=1100,hS=2e3,gS=3e3,_S=4e3,vS=4500,yS=4600,bS=5e3,xS=6e3,SS=7e3,CS={PROCESSOR:{SERIES_FILTER:sS,AXIS_STATISTICS:lS,FILTER:uS,STATISTIC:fS,STATISTICS:fS},VISUAL:{LAYOUT:pS,PROGRESSIVE_LAYOUT:mS,GLOBAL:hS,CHART:gS,POST_CHART_LAYOUT:yS,COMPONENT:_S,BRUSH:bS,CHART_ITEM:vS,ARIA:xS,DECAL:SS}},wS=`__flagInMainProcess`,TS=`__mainProcessVersion`,ES=`__pendingUpdate`,DS=`__needsUpdateStatus`,OS=/^[a-zA-Z0-9_]+$/,kS=`__connectUpdateStatus`,AS=0,jS=1,MS=2;function NS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){oC(this.id);return}return FS(this,e,t)}}function PS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return FS(this,e,t)}}function FS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),tt.prototype[t].apply(e,n)}var IS=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tt),LS=IS.prototype;LS.on=PS(`on`),LS.off=PS(`off`);var RS,zS,BS,VS,HS,US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC=function(e){l(t,e);function t(t,n,r){var i=e.call(this,new Nb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[TS]=1,process.env.NODE_ENV!==`production`){var c=d.hasGlobalWindow?window:global;c&&(a=K(c.__ECHARTS__DEFAULT__RENDERER__,a),o=K(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=K(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&Qa(function(e){var t=Ou(e),n=t.dataIndex;if(n!=null){var r=J();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=Ja(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:K(r.useDirtyRect,s),useCoarsePointer:K(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=eb(le(l.flush,l),17),i._updateTheme(n),i._locale=sh(r.locale||ah),i._coordSysMgr=new cg;var u=i._api=QS(i);function f(e,t){return e.__prio-t.__prio}return jn(fC,f),jn(uC,f),i._scheduler=new mb(i,u,uC,fC),i._messageCenter=new IS,i._initEvents(),i.resize=le(i.resize,i),l.animation.on(`frame`,i._onframe,i),qS(l,i),JS(l,i),Te(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(tC(this),this[ES]){var r=this[ES].silent;this[wS]=!0,nC(this);try{RS(this),VS.update.call(this,null,this[ES].updateParams)}catch(e){throw this[wS]=!1,this[ES]=null,e}this._zr.flush(),this[wS]=!1,this[ES]=null,GS.call(this,r),KS.call(this,r)}else if(e.unfinished){var i=oS;do{e.unfinished=!1;var a=y.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),US(this,t),e.performVisualTasks(t),ZS(this,this._model,n,`remain`,{}),i-=y.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[wS]){process.env.NODE_ENV!==`production`&&Uo("`setOption` should not be called during main process.");return}if(this._disposed){oC(this.id);return}var r,i,a;if(G(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[wS]=!0,nC(this),!this._model||t){var o=new __(this._api),s=this._theme,c=this._model=new u_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},dC);var l={seriesTransition:a,optionChanged:!0};if(n)this[ES]={silent:r,updateParams:l},this[wS]=!1,this.getZr().wakeUp();else{try{RS(this),VS.update.call(this,null,l)}catch(e){throw this[ES]=null,this[wS]=!1,e}this._ssr||this._zr.flush(),this[ES]=null,this[wS]=!1,GS.call(this,r),KS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[wS]){process.env.NODE_ENV!==`production`&&Uo("`setTheme` should not be called during main process.");return}if(this._disposed){oC(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[ES]&&(r??=this[ES].silent,i=this[ES].updateParams,this[ES]=null),this[wS]=!0,nC(this);try{this._updateTheme(e),n.setTheme(this._theme),RS(this),VS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[wS]=!1,e}this[wS]=!1,GS.call(this,r),KS.call(this,r)}},t.prototype._updateTheme=function(e){W(e)&&(e=pC[e]),e&&(e=M(e),e&&G_(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||d.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Go(`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 L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){oC(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(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 L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){oC(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(gC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(hC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=y.createCanvas(),h=Ja(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new lu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new tu({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return HS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return HS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return HS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){oC(this.id);return}var n=this._model,r;return L(xs(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(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`&&Ho(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Ho(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=xs(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Ho(`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?zb(a,t):Rb(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;L(aC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Hb(i,function(e){var t=Ou(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=P({},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)&&Ho(`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;L(lC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Vb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){oC(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){oC(this.id);return}this._disposed=!0,this.getDom()&&Ds(this.getDom(),vC,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(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 hC[e.id]},t.prototype.resize=function(e){if(this[wS]){process.env.NODE_ENV!==`production`&&Uo("`resize` should not be called during main process.");return}if(this._disposed){oC(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[ES]&&(r??=this[ES].silent,n=!0,this[ES]=null),this[wS]=!0,nC(this);try{n&&RS(this),VS.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[wS]=!1,e}this[wS]=!1,GS.call(this,r),KS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){oC(this.id);return}if(G(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!mC[e]){process.env.NODE_ENV!==`production`&&Ho(`Loading effects `+e+` not exists.`);return}var n=mC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){oC(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=cC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){oC(this.id);return}if(G(t)||(t={silent:!!t}),sC[e.type]&&this._model){if(this[wS]){this._pendingActions.push(e);return}var n=t.silent;WS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&d.browser.weChat&&this._throttledZrFlush(),GS.call(this,n),KS.call(this,n)}},t.prototype.updateLabelLayout=function(){Ub.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){oC(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&q(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){RS=function(e){Xb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),zS(e,!0),zS(e,!1),t.plan()},zS=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=Xs(e.type),f=t?Vy.getClass(d.main,d.sub):Gy.getClass(d.sub);process.env.NODE_ENV!==`production`&&q(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)}},BS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){L([].concat(e._componentsViews,e._chartsViews),l);return}var o=Es(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=J(),L(Xo(s),function(e){var t=us(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Gd(n)){if(t instanceof My)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Dd(t,n,e._api);else{var r=Od(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Ed(t.mainType,t.componentIndex,e._api),a&&L(a,function(e){n.type===`highlight`?_d(e):vd(e)})}}else Wd(n)&&t instanceof My&&(jd(t,n,e._api),Md(t),eC(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)}},VS={prepareAndUpdate:function(e){RS(this),VS.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){Zb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Ub.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),US(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),YS(this,r,i,e,n),Ub.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=J();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}),ZS(t,n,r,e,{},a),Ub.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Gy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),YS(this,n,this._api,e,{}),Ub.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Gy.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Ub.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){VS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){oC(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=xs(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`&&Ho(`No coordinate system that supports `+t+` found by the given finder.`)}HS=e,US=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},WS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=sC[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Xs(s[0]);this[wS]=!0,nC(this);var u=[e],d=!1;e.batch&&(d=!0,u=R(e.batch,function(t){return t=F(P({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Wd(e),_=Gd(e);if(_&&wd(this._api),L(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=P({},t),p.type=h,f.push(p),_){var a=Ss(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;BS(n,c,t,u),eC(n)}else g?(BS(n,c,t,`series`),eC(n)):l&&BS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[ES]?(RS(this),VS.update.call(this,e),this[ES]=null):VS[c].call(this,e)}catch(e){throw this[wS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[wS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;q(G(y)),v=F({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)}},GS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();WS.call(this,n,e)}},KS=function(e){!e&&this.trigger(`updated`)},qS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[ES]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},JS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Hb(n,Hd);r&&(kd(r,e,t._api),eC(t))}).on(`mouseout`,function(e){var n=e.target,r=Hb(n,Hd);r&&(Ad(r,e,t._api),eC(t))}).on(`click`,function(e){var n=e.target,r=Hb(n,function(e){return Ou(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Ou(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;jn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),L(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)})}}YS=function(e,t,r,i,a){n(t),XS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive=!1}),ZS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},XS=function(e,t,n,r,i,a){L(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},ZS=function(e,t,n,r,l,u){var d=e._scheduler;l=P(l||{},{updatedSeries:t.getSeries()}),Ub.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Md(t)}),d.unfinished=f||d.unfinished,Ub.trigger(`series:layoutlabels`,t,n,l),Ub.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Ub.trigger(`series:afterupdate`,t,n,l)},eC=function(e){e[DS]=!0,e.getZr().wakeUp()},nC=function(e){e[TS]=(e[TS]+1)%1e6},tC=function(e){e[DS]&&(e.getZr().storage.traverse(function(e){bp(e)||r(e)}),e[DS]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>K(t.get(`hoverLayerThreshold`),Rg.hoverLayerThreshold)&&!d.node&&!d.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=dm(e);t.eachRendered(function(e){return pm(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!bp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(bp(e))return;if(e instanceof Yl&&Kd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}QS=function(e){return new(function(t){l(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){_d(t,n),eC(e)},n.prototype.leaveEmphasis=function(t,n){vd(t,n),eC(e)},n.prototype.enterBlur=function(t){yd(t),eC(e)},n.prototype.leaveBlur=function(t){bd(t),eC(e)},n.prototype.enterSelect=function(t){xd(t),eC(e)},n.prototype.leaveSelect=function(t){Sd(t),eC(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[TS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(zu))(e)},$S=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[kS]=t}}L(cC,function(n,r){e._messageCenter.on(r,function(n){if(gC[e.group]&&e[kS]!==AS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];L(hC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,AS),L(i,function(e){e[kS]!==jS&&e.dispatchAction(r)}),t(i,MS)}})})}}(),t}(tt),iC=rC.prototype;iC.on=NS(`on`),iC.off=NS(`off`),iC.one=function(e,t,n){var r=this;Wo(`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 aC=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function oC(e){process.env.NODE_ENV!==`production`&&Ho(`Instance `+e+` has been disposed`)}var sC={},cC={},lC={},uC=[],dC=[],fC=[],pC={},mC={},hC={},gC={},_C=new Date-0;new Date-0;var vC=`_echarts_instance_`;function yC(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=bC(e);if(i)return process.env.NODE_ENV!==`production`&&Ho(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&he(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Ho(`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 rC(e,t,n);return a.id=`ec_`+_C++,hC[a.id]=a,r&&Ds(e,vC,a.id),$S(a),Ub.trigger(`afterinit`,a),a}function bC(e){return hC[Os(e,vC)]}function xC(e,t){pC[e]=t}function SC(e){I(dC,e)<0&&dC.push(e)}function CC(e,t){MC(uC,e,t,dS)}function wC(e){EC(`afterinit`,e)}function TC(e){EC(`afterupdate`,e)}function EC(e,t){Ub.on(e,t)}function DC(e,t,n){var r,i,a,o,s;U(t)&&(n=t,t=``),G(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;sC[r]||(q(OS.test(r)&&OS.test(i)),a&&q(i!==r),sC[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},lC[i]=1,a&&s&&(lC[l]=1),process.env.NODE_ENV!==`production`&&cC[l]&&Uo(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),cC[l]=r)}function OC(e,t){cg.register(e,t)}function kC(e,t){MC(fC,e,t,pS,`layout`,!0)}function AC(e,t){MC(fC,e,t,gS,`visual`,!0)}var jC=[];function MC(e,t,n,r,i,a){if((U(t)||G(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);L(e,function(e){q(e.__raw!==n)})}if(!(I(jC,n)>=0)){jC.push(n);var o=mb.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&q(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function NC(e,t){mC[e]=t}function PC(e,t,n){var r=Kb(`registerMap`);r&&r(e,t,n)}var FC=Wv;AC(hS,cb),AC(vS,ub),AC(vS,db),AC(hS,Ib),AC(vS,Lb),AC(SS,iS),SC(G_),CC(cS,K_),NC(`default`,pb),DC({type:qu,event:qu,update:qu},Pe),DC({type:Ju,event:Ju,update:Ju},Pe),DC({type:Yu,event:Qu,update:Yu,action:Pe,refineEvent:IC,publishNonRefinedEvent:!0}),DC({type:Xu,event:Qu,update:Xu,action:Pe,refineEvent:IC,publishNonRefinedEvent:!0}),DC({type:Zu,event:Qu,update:Zu,action:Pe,refineEvent:IC,publishNonRefinedEvent:!0});function IC(e,t,n,r){return{eventContent:{selected:Nd(n),isFromClick:t.isFromClick||!1}}}xC(`default`,{}),xC(`dark`,Mb);function LC(e){return e==null?0:e.length||1}function RC(e){return e}var zC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||RC,this._newKeyGetter=r||RC,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=LC(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=LC(c),d=LC(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=LC(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=LC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),BC=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 VC(e,t){var n={},r=n.encode={},i=J(),a=[],o=[],s={};L(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&q(Au.get(c)==null);var l=n.coordDimIndex;HC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),WC(n.type)&&(a[0]=t),HC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Au.each(function(e,t){var i=HC(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=R(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 BC(s,t),n}function HC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function UC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function WC(e){return e!==`ordinal`&&e!==`time`}var GC=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),KC=ys(),qC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},JC=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||=ZC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return K(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=av(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+=qC[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 YC(e){return e instanceof JC}function XC(e){for(var t=J(),n=0;n<(e||[]).length;n++){var r=e[n],i=G(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function ZC(e){var t=KC(e);return t.dimNameMap||=XC(e.dimensionsDefine)}function QC(e){return e>30}var $C=G,ew=R,tw=typeof Int32Array>`u`?Array:Int32Array,nw=`e\0\0`,rw=-1,iw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],aw=[`_approximateExtent`],ow,sw,cw,lw,uw,dw,fw,pw=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;YC(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=W(u)?new GC({name:u}):u instanceof GC?u:new GC(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`&&q(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=J();L(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(fe(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 ry&&(i=e),!i){var a=this.dimensions,o=X_(e)||oe(e)?new fv(e,a.length):e;i=new ry;var s=ew(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=VC(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&&fw(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&&es(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=us(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=us(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)fw(this,o);ow(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){$C(e)?P(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=cw(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 sw(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 H(e)?r.getValues(ew(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)?rw:r},e.prototype.each=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=ew(lw(e),this._getStoreDimIndex,this);this._store.each(i,r?le(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=ew(lw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?le(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=V(e),i=[];return L(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";U(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=ew(lw(e),this._getStoreDimIndex,this),o=dw(this);return o._store=this._store.map(a,i?le(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&L(lw(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=ew(lw(e),this._getStoreDimIndex,this);this._store.modify(o,a?le(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=dw(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=dw(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=dw(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 Km(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new zC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return sw(e,t)},function(e){return sw(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||{},$C(e)?P(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),H(i)?i=i.slice():$C(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,$C(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){$C(e)?P(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?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){ku(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){L(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:ew(this.dimensions,this._getDimInfo,this),this.hostModel),uw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xe(arguments)))})},e.internalField=function(){ow=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new tw(a.categories.length);for(var s=0;s<n.length;s++)n[s]=rw;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},cw=function(e,t,n){return us(e._getCategory(t,n),null)},sw=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=cw(e,e._idDimIdx,t)),n??=nw+t,n},lw=function(e){return H(e)||(e=e==null?[]:[e]),e},dw=function(t){var n=new e(t._schema?t._schema:ew(t.dimensions,t._getDimInfo,t),t.hostModel);return uw(n,t),n},uw=function(e,t){L(iw.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,L(aw,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},fw=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=cw(e,i,t)),s==null&&a!=null&&(r[t]=s=cw(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 mw(e,t){X_(e)||(e=Q_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=hw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&QC(o),c=r===e.dimensionsDefine,l=c?ZC(e):XC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new Xv(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=G(n)?n:{name:n},o=new GC,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=Xo(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);L(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;L(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=P({},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=Xo(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++)}L(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(F(o,i),t,a),o.name==null&&n){var s=n[a];!G(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){Au.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)L(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=gw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Gg(e,S)===zg.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Vs(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new JC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function hw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;G(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function gw(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 _w=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function vw(e){var t=e.get(`coordinateSystem`),n=new _w(t),r=yw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var yw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Cs).models[0],a=e.getReferringComponents(`yAxis`,Cs).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+ye(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+ye(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),bw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),bw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Cs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),bw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Cs).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),bw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),bw(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();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),bw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Cs).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 bw(e){return e.get(`type`)===`category`}function xw(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Sw(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(L(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),L(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;L(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 Sw(e){return!YC(e.schema)}function Cw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function ww(e,t){return Cw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Tw(e,t){var n=e.get(`coordinateSystem`),r=cg.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=UC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Ew(e,t,n){var r,i;return n&&L(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 Dw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Q_(e)):(i=r.getSource(),a=i.sourceFormat===ju);var o=vw(t),s=Tw(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?ue(Hg,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=mw(i,u),f=Ew(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=xw(t,{schema:d,store:p}),h=new pw(d,t);h.setCalculationInfo(m);var g=f!=null&&Ow(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 Ow(e){if(e.sourceFormat===`original`)return!H($o(kw(e.data||[])))}function kw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Aw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();oc(Aw);var jw=0,Mw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++jw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,Nw);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(!W(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||=J(this.categories)},e}();function Nw(e){return G(e)&&e.value!=null?e.value:e+``}var Pw=V({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 Fw(e,t,n){var r;e||={};var i=dh();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(L(Pw,function(t){a[t]&&(e[t]=le(a[t],a))}),r=a)}return r??Hw(e,n),{brk:r,mapper:e}}function Iw(e,t){L(Pw,function(n){e[n]=t[n]})}function Lw(e,t){e.freeze=Pe,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function Rw(e){return e.getExtentUnsafe(0,2)}function zw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Bw(e){var t=zw(e,3);return t[1]-t[0]}function Vw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Hw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():As(),P(n,Uw),n}var Uw={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=zw(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`&&q(!this._frozen),Ww(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&q(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),Ww(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function Ww(e,t,n,r){Is(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&Uo(`Invalid setExtent call - start: `+n+`, end: `+r)}function Gw(e){return Kw(e)||Jw(e)}function Kw(e){return e.type===`interval`}function qw(e){return e.type===`time`}function Jw(e){return e.type===`log`}function Yw(e){return e.type===`ordinal`}function Xw(e){var t=ko(e),n=so(10,t),r=io(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Z(r*n,-t)}function Zw(e){return yo(e)+2}function Qw(e,t){return co(e)/co(t)}function $w(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 so(t,e)}function eT(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=ro(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Fs(r[0])||!Fs(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function tT(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function nT(e,t){return e||=t,io(X(e,1))}function rT(e,t,n){var r=Rw(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 iT=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Iw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Mw({}),H(i)&&(i=new Mw({categories:R(i,function(e){return G(e)?e.value:e})})),r._ordinalMeta=i;var a=Fw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Lw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=io(e),e},t.prototype.getTicks=function(){var e=[];return rT(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=no(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=Rw(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(io(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}(Aw);Aw.registerClass(iT);function aT(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=Zw(f);u<t-1;){var m=Z(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=dh();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var oT=function(e){l(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Fw(r,fh(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 M(this._cfg)},t.prototype.setConfig=function(e){var t=Rw(this);process.env.NODE_ENV!==`production`&&(q(e.interval!=null),e.intervalCount!=null&&q(e.intervalCount>=-1&&e.intervalPrecision!=null&&!mh(this)),e.niceExtent!=null&&(q(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),q(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),q(Z(e.niceExtent[0]-e.niceExtent[1],yo(e.interval))<=e.interval))),this._cfg=e=M(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Zw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Rw(this),i=t.niceExtent,a=t.intervalPrecision,o=dh(),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`&&q(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Z(i[0]-n,a):r[0]});for(var d=function(e,t){return io((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=no(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Z(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Z(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`&&Ho(`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?Z(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 aT(this,e,ph(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=yo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Zh(Z(e.value,n,!0))},t.type=`interval`,t}(Aw);Aw.registerClass(oT);var sT=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},cT=function(e){l(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=Fw(r,fh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Nh(e.value,wh[Mh(Ah(this._minLevelUnit))]||wh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Ph(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Rw(this),r=dh(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return dh().addBreaksToTicks(o,i.breaks,n),o;o=vT(this._minLevelUnit,this._approxInterval,s,n,Vw(this),i);var c=Th.length-1,l=0;return L(o,function(e){e.time&&(c=Math.min(c,I(Th,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&dh().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&dh().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(I(Th,Fh(e.vmin,s)),I(Th,Fh(e.vmax,s))),n=0,r=0;r<Th.length;r++)if(!uT(Th[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:Th[Math.max(i,t)],upperTimeUnit:Th[i]}}),o},t.prototype.getMinorTicks=function(e){return aT(this,e,ph(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 fe(e)?Math.round(e):+Do(e)},t.type=`time`,t}(Aw),lT=[[`second`,hh],[`minute`,gh],[`hour`,_h],[`quarter-day`,_h*6],[`half-day`,_h*12],[`day`,vh*1.2],[`half-week`,vh*3.5],[`week`,vh*7],[`month`,vh*31],[`quarter`,vh*95],[`half-year`,yh/2],[`year`,yh]];function uT(e,t,n,r){return Ih(new Date(t),e,r).getTime()===Ih(new Date(n),e,r).getTime()}function dT(e,t){return e/=vh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fT(e){var t=30*vh;return e/=t,e>6?6:e>3?3:e>2?2:1}function pT(e){return e/=_h,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mT(e,t){return e/=t?gh:hh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hT(e){return X(Ao(e,!0),1)}function gT(e,t,n){var r=Math.max(0,I(Th,t)-1);return Ih(new Date(e),Th[r],n).getTime()}function _T(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 vT(e,t,n,r,i,a){var o=Eh,s=0;function c(e,t,n,i,o,c,l){for(var u=_T(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`&&Ho(`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(!uT(Ah(e),r[0],r[1],n)){s&&(i=[{value:gT(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/vh/365)),p=Lh(n),m=Wh(n);break;case`half-year`:case`quarter`:case`month`:f=fT(t),p=Rh(n),m=Gh(n);break;case`week`:case`half-week`:case`day`:f=dT(t,31),p=zh(n),m=Kh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=pT(t),p=Bh(n),m=qh(n);break;case`minute`:f=mT(t,!0),p=Vh(n),m=Jh(n);break;case`second`:f=mT(t,!1),p=Hh(n),m=Yh(n);break;case`millisecond`:f=hT(t),p=Uh(n),m=Xh(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=Ah(o[m]);if(jh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Ah(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=B(R(u,function(e){return B(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=Fh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Vs(S,Hs,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=Fh(r[0],n),k=Fh(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 yT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=vh,n[1]+=vh),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]-vh}e.setExtent(n[0],n[1]);var i=nT(t.splitNumber,10),a=Vw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=lT.length,l=Math.min(sT(lT,a,0,c),c-1),u=lT[l][1],d=lT[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Aw.registerClass(cT);var bT=0,xT=1,ST=2,CT=function(e){l(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=oT.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[bT]=i[xT]=a[bT]=a[xT]=NaN,Iw(r,t.mapperMethods);var s=dh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},ST,l),r.powStub=new oT({breakParsed:l.original}),r.intervalStub=new oT({breakParsed:l.transformed}),Lw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=dh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return R(i.getTicks(e||{}),function(e){var i=e.value,o=$w(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,ph(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return aT(this,e,ph(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 $w(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 wT.depth=n,TT.lookup=this._lookup,$w(n===2?e:this.intervalStub.transformOut(e,wT),this.base,TT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Is(t,n)||t<=0||n<=0)){var r=ET,i=ET;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[bT]=t,r[xT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[bT]=Qw(t,o),i[xT]=Qw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Is(t[0],t[1])&&Io(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}(Aw);Aw.registerClass(CT);var wT={},TT={},ET=[],DT={value:1,category:1,time:1,log:1},OT=ys();function kT(e){var t=e.get(`type`);return(t==null||!Ne(DT,t)&&!Aw.getClass(t))&&(t=`value`),t}function AT(e,t,n){var r=dh(),i;switch(r&&(i=VT(e,t,n)),t){case`category`:return new iT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:As()});case`time`:return new cT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new CT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new oT({breakOption:i});default:return new((Aw.getClass(t))||oT)({})}}function jT(e,t,n){var r=n?zw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Is(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function MT(e){OT(e).noOnMyZero=!0}function NT(e){return OT(e).noOnMyZero}function PT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Dh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(U(t)){if(e.type===`category`)return function(n,r){return t(FT(e,n),n.value-e.scale.getExtent()[0],null)};var r=dh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(FT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function FT(e,t){var n=e.scale;return Yw(n)?n.getLabel(t):t.value}function IT(e){return e.get(`interval`)??`auto`}function LT(e){return e.type===`category`&&IT(e.getLabelModel())===0}function RT(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[ww(e,t)]=!0}),V(n)}function zT(e){return e===`middle`||e===`center`}function BT(e){return e.getShallow(`show`)}function VT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!dh()){process.env.NODE_ENV!==`production`&&Uo('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!HT(t)){process.env.NODE_ENV!==`production`&&Uo(`Axis`+(e instanceof kg?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function HT(e){return e!==`category`}function UT(e,t,n,r,i,a){var o=Jw(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=tT(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function WT(e,t){return Yw(e)?e.getRawOrdinalNumber(t.value):t.value}function GT(e,t){return Yw(e)&&!!t.get(`boundaryGap`)}var KT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),qT=zs(),JT=ys(),YT=ys(),XT;process.env.NODE_ENV!==`production`&&(XT=function(e){q(e&&e.model&&e.model.uid&&e.model.ecModel)});function ZT(e,t){var n=e.model,r=JT($b(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function QT(e,t){return process.env.NODE_ENV!==`production`&&(q(t!=null),XT(e)),tE(ZT(e,t))}function $T(e,t){process.env.NODE_ENV!==`production`&&XT(e);var n=[];return eE(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(tE(e))}),n}function eE(e,t){var n=JT($b(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function tE(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function nE(e,t){process.env.NODE_ENV!==`production`&&XT(e);var n=e.model.ecModel,r=JT($b(n)).axSer;r&&iE(n,r.get(e.model.uid),t)}function rE(e,t,n){process.env.NODE_ENV!==`production`&&(q(t!=null),XT(e));var r=ZT(e,t);r&&iE(e.model.ecModel,r.sers,n)}function iE(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function aE(e,t,n){process.env.NODE_ENV!==`production`&&q(t!=null);var r=JT($b(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&q(e.sers.length>0),n(e.axis)})}function oE(e,t){process.env.NODE_ENV!==`production`&&XT(e);var n=e.model,r=JT($b(n.ecModel)).keys;r&&L(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=ZT(e,n);q(r&&r.sers.length>0)}t(n)})}function sE(e){var t=YT(Qb(e)),n=t.keyed||=J();eE(e,function(t,r,i){var a=n.get(r)||n.set(r,J()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&lE.liPosMinGap(e,t,o)})}function cE(e,t){lE[e]=t}var lE={};function uE(e,t,n){if(e){var r=t.ecModel,i=JT($b(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){XT(e);var o=i.axSerPairCheck||=J(),s=``+a+`|&`+t.uid;q(!o.get(s)),o.set(s,1)}var c=i.axSer||=J(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&q(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=mE.get(dE(d,f,n))||mE.get(dE(d,f,null));if(p){var m=i.keyed||=J(),h=i.keys||=J(),g=p.key,_=m.get(g)||m.set(g,J()),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 dE(e,t,n){return e+`|&`+K(t,!0)+`|&`+(n||``)}function fE(e,t){var n=dE(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(q(t.seriesType&&t.key&&!pE.get(t.key)&&!mE.get(n)),pE.set(t.key,1)),mE.set(n,t),qT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:sE})})}var pE;process.env.NODE_ENV!==`production`&&(pE=J());var mE=J(),hE=ys(),gE=3,_E=function(){function e(e,t,n,r,i){var a=Yw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Kw(e)||Jw(e)||qw(e))&&(Ms(l,yE(e,t.get(`dataMin`,!0))),Ns(l,yE(e,t.get(`dataMax`,!0)))),Ls(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]=yE(e,U(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]=yE(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=bE(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,!Fs(u[0])&&(u[0]=NaN),!Fs(u[1])&&(u[1]=NaN);var g=s||ve(u[0])||ve(u[1])||a&&!o,_=Kw(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=yE(e,t.get(`startValue`,!0)),x=b!=null;!Io(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Io(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)),vE(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),vE(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 vE(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),Rs(t))}function yE(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function bE(e,t){var n;if(Yw(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=H(r)?r:[r,r]}return[xE(n[0]),xE(n[1])]}function xE(e){return Ca(typeof e==`boolean`?0:e,1)||0}function SE(e){var t=hE(e.scale);return t.extent||=As(),t}function CE(e,t){SE(e).dimIdxInCoord=t.get(e.dim)}function wE(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&q(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&q(n.rawExtentInfo.from!==t||t===2);return}TE(n,e,i,r,t)}function TE(e,t,n,r,i){var a=SE(t),o=a.extent,s=!1;nE(t,function(r){if(r.boxCoordinateSystem){var i=dg(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&Uo(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(H(i)){var l=i[c];l!=null&&!H(l)&&js(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;L(RT(u,n),function(e){Ps(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=jE(e,t,r);DE(e,new _E(e,r,o,s,c),i),a.extent=null}function EE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&q(!n.rawExtentInfo),DE(n,new _E(n,e.model,t,!1,!1),gE)}function DE(e,t,n){e.rawExtentInfo=t,t.from=n}function OE(e,t){process.env.NODE_ENV!==`production`&&q(!kE.get(e)),kE.set(e,t)}var kE=J();function AE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(!i||!e.rawExtentInfo),e.rawExtentInfo||EE({scale:e,model:t},i||As());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 jE(e,t,n){var r=GT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return oE(t,function(e){a=!!kE.get(e)||a}),a}function ME(e,t,n,r){if(n.ctnShp){var i;if(oE(e,function(t){var n=kE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Ms(i,a[0]),Ns(i,a[1]),MT(e))}}),i){var a=t.getExtent();if(Yw(t))e.onBand||t.setExtent2(1,no(a[0],a[0]+i[0]),X(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=no(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=X(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 NE(e,t){var n=Jw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=eT(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?FE(r,t):PE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Zw(d)),i[0]||(s[0]=Z(ao(s[0]/u)*u,l)),i[1]||(s[1]=Z(oo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),UT(e,i,o,s,a,c)}function PE(e,t){var n=nT(t.splitNumber,5),r=Vw(e);process.env.NODE_ENV!==`production`&&q(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=Ao(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Zw(o),c=e.getExtent(),l=[Z(oo(c[0]/o)*o,s),Z(ao(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function FE(e,t){var n=nT(t.splitNumber,10),r=e.getExtent(),i=Vw(e);process.env.NODE_ENV!==`production`&&q(isFinite(i)&&i>0);var a=X(Oo(i),1);n/i*a<=.5&&(a*=10);var o=Zw(a),s=[Z(oo(r[0]/a)*a,o),Z(ao(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function IE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&q(r&&i),LE(t,n,r,i,null)}function LE(e,t,n,r,i){var a=AE(e,t,r,n,i),o=Kw(e)||qw(e);RE(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&&ME(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function RE(e,t){zE[e.type](e,t)}var zE={interval:NE,log:NE,time:yT,ordinal:Pe},BE=[],VE={registerPreprocessor:SC,registerProcessor:CC,registerPostInit:wC,registerPostUpdate:TC,registerUpdateLifecycle:EC,registerAction:DC,registerCoordinateSystem:OC,registerLayout:kC,registerVisual:AC,registerTransform:FC,registerLoading:NC,registerMap:PC,registerImpl:Gb,PRIORITY:CS,ComponentModel:kg,ComponentView:Vy,SeriesModel:My,ChartView:Gy,registerComponentModel:function(e){kg.registerClass(e)},registerComponentView:function(e){Vy.registerClass(e)},registerSeriesModel:function(e){My.registerClass(e)},registerChartView:function(e){Gy.registerClass(e)},registerCustomSeries:function(e,t){Jb(e,t)},registerSubTypeDefaulter:function(e,t){kg.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ya(e,t)}};function HE(e){if(H(e)){L(e,function(e){HE(e)});return}I(BE,e)>=0||(BE.push(e),U(e)&&(e={install:e}),e.install(VE))}var UE=ys(),WE=ys(),GE={estimate:1,determine:2};function KE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function qE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:R(YE(n,r),function(t,n){return{formattedLabel:PT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?XE(e,t):$E(e)}function JE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:YE(i,r)}:e.type===`category`?QE(e,t):{ticks:r.getTicks(n)}}function YE(e,t){var n=t.getExtent(),r=[];return L(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Vs(r,Us,null),vo(r),R(r,function(e){return{value:e}})}function XE(e,t){var n=e.getLabelModel(),r=ZE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function ZE(e,t,n){var r=tD(e),i=IT(t),a=n.kind===GE.estimate;if(!a){var o=rD(r,i);if(o)return o}var s,c;U(i)?s=uD(e,i,!1):(c=i===`auto`?aD(e,n):i,s=uD(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return iD(r,i,l),!0}):iD(r,i,l),l}function QE(e,t){var n=eD(e),r=IT(t),i=rD(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),U(r))a=uD(e,r,!0);else if(r===`auto`){var s=ZE(e,e.getLabelModel(),KE(GE.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tick})}else o=r,a=uD(e,o,!0);return iD(n,r,{ticks:a,tickCategoryInterval:o})}function $E(e){var t=e.scale.getTicks(),n=PT(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var eD=nD(`axisTick`),tD=nD(`axisLabel`);function nD(e){return function(t){return WE(t)[e]||(WE(t)[e]={list:[]})}}function rD(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function iD(e,t,n){return e.list.push({key:t,value:n}),n}function aD(e,t){if(t.kind===GE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return WE(e).autoInterval=n,!0}),n}return WE(e).autoInterval??(WE(e).autoInterval=e.calculateCategoryInterval(t))}function oD(e,t){var n=t.kind,r=lD(e),i=PT(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=ya(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===GE.estimate?(t.out.noPxChangeTryDetermine.push(le(sD,null,e,S,c)),S):cD(e,S,c)??S}function sD(e,t,n){return cD(e,t,n)==null}function cD(e,t,n){var r=UE(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 lD(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 uD(e,t,n){var r=PT(e),i=e.scale,a=[],o=U(t);return rT(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 dD=.8;function fD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Bw(r);Io(o)||(o=NaN);var s=e.getExtent(),c=ro(s[1]-s[0]);return Yw(r)?pD(n,e,o,c):i?mD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&q(!1),a!=null&&(n.w=Io(n.w)?X(a,n.w):a),n}function pD(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 mD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(i);var a=!1,o=-1/0;L(i.key?[QT(t,i.key)]:$T(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Io(n)&&n>0&&Io(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*dD,e.w2=e.w*n/r)}var hD=[0,1],gD=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)),po(e,hD,_D(this),t)},e.prototype.coordToData=function(e,t){var n=po(e,_D(this),hD,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=R(JE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(WT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=vD(this,n,r);return R(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Yw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=KE(GE.determine),qE(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 fD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=KE(GE.determine),oD(this,e)},e}();function _D(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 vD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=fD(e).w;if(!i)return!1;L(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 yD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],bD=1,xD=2,SD=bD|xD;function CD(e,t,n){n||=SD,t?e.dirty|=n:e.dirty&=~n}function wD(e,t){return t||=SD,e.dirty==null||!!(e.dirty&t)}function TD(e){if(e)return wD(e)&&ED(e,e.label,e),e}function ED(e,t,n){var r=t.getComputedTransform();e.transform=um(e.transform,r);var i=e.localRect=lm(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=Fm.textMargin);for(var d=0;d<4;d++)DD[d]=u===Fm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Fm.textMargin&&tm(i,DD,!1,!1);var f=e.rect=lm(e.rect,i);return r&&f.applyTransform(r),u===Fm.minMargin&&tm(f,DD,!1,!1),e.axisAligned=sm(r),(e.label=e.label||{}).ignore=t.ignore,CD(e,!1),CD(e,!0,xD),e}var DD=[0,0,0,0];function OD(e,t,n){return e.transform=um(e.transform,n),e.localRect=lm(e.localRect,t),e.rect=lm(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=sm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function kD(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 AD(e,t){for(var n=0;n<yD.length;n++){var r=yD[n];e[r]??(e[r]=t[r])}return TD(e)}function jD(e){var t=e.obb;return(!t||wD(e,xD))&&(e.obb=t||=new fp,t.fromBoundingRect(e.localRect,e.transform),CD(e,!1,xD)),t}function MD(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=TD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(ND(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function ND(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:jD(e).intersect(jD(t),n,r)}var PD={left:0,right:0,top:0,bottom:0},FD=[`25%`,`25%`],ID=`cartesian2d`,LD=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Eg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Tg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Tg(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:PD,outerBoundsContain:`all`,outerBoundsClampWidth:FD[0],outerBoundsClampHeight:FD[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(kg),RD=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Cs).models[0]},t.type=`cartesian2dAxis`,t}(kg);ae(RD,KT);var zD={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`}},BD=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},zD),VD=N({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}}},zD),HD={category:BD,value:VD,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},VD),log:F({logBase:10},VD)},UD=null;function WD(){return UD}function GD(e,t,n,r){L(DT,function(i,a){var o=N(N({},HD[a],!0),r,!0),s=function(e){l(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=wg(this),r=n?Eg(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=KD(e),n&&Tg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Mw.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=WD();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,KD)}function KD(e){return e.type||(e.data?`category`:`value`)}var qD=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 R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),B(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}(),JD=[`x`,`y`];function YD(e){return(e.type===`interval`||e.type===`time`)&&!mh(e)}var XD=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=ID,t.dimensions=JD,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!YD(e)||!YD(t))){var n=zw(e,null),r=zw(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=Rt([],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 Y(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 Xe(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 Xe(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 Y(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(qD),ZD=function(e){l(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}(gD),QD=`expandAxisBreak`,$D=Math.PI,eO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],tO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],nO=ys(),rO=ys(),iO=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 aO(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=kO(e.axisName)&&zT(e.nameLocation);L(r,function(e){var t=TD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Rt(oO,n.transform):Mt(oO),t.transform&&Pt(oO,oO,t.transform),Y.copy(sO,t.localRect),sO.applyTransform(oO),s?s.union(sO):Y.copy(s=new Y(0,0,0,0),sO))}});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 Y(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var oO=jt(),sO=new Y(0,0,0,0),cO=function(e,t,n,r,i,a){if(zT(e.nameLocation)){var o=a.stOccupiedRect;o&&lO(OD({},o,a.transGroup.transform),r,i)}else uO(a.labelInfoList,a.dirVec,r,i)};function lO(e,t,n){var r=new zt;ND(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&kD(t,r)}function uO(e,t,n,r){for(var i=zt.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||lO(s,n,r)}}var dO=function(){function e(e,t,n,r){this.group=new Ha,this._axisModel=e,this._api=t,this._local={},this._shared=r||new iO(cO),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;q(!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=K(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=K(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:r,nameLocation:be(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:kO(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(q(a.position!=null),q(a.rotation!=null)),this._cfg=a;var o=new Ha({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 zt(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},L(fO,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=wo(t-e),i,a;return To(r)?(a=n>0?`top`:`bottom`,i=`center`):To(r-$D)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<$D?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}(),fO=[`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;q(!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&&(Xe(d,d,u),Xe(f,f,u));var m=P({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&mh(r.axis.scale))WD().buildAxisBreakLine(r,i,a,h);else{var g=new qf(P({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));zp(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);W(_)&&(_=[_,_]),(W(v)||fe(v))&&(v=[v,v]);var y=ux(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];L([{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=lx(_[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;q(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}SO(t,i,s)&&mO(e,t,n,r,i,a,o,GE.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}SO(t,i,s)&&mO(e,t,n,r,i,a,o,GE.determine);var l=bO(e,i,a,r);_O(e,t.labelLayoutList,l),xO(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;q(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(kO(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 zt(0,0),v=new zt(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=jt();v.transform(It(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*$D/180);var x,S;zT(d)?x=dO.innerTextLayout(e.rotation,b??e.rotation,f):(x=hO(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=ye(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new mu({x:_.x,y:_.y,rotation:x.rotation,silent:dO.isLabelSilent(r),style:wm(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(im({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=dO.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,Ou(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=TD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:zT(d)?eO[D]:tO[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&q(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function mO(e,t,n,r,i,a,o,s){wO(t)||CO(e,t,i,s,r,o);var c=t.labelLayoutList;EO(e,r,c,a),jO(r,e.rotation,c);var l=e.optionHideOverlap;gO(r,c,l),l&&MD(B(c,function(e){return e&&!e.label.ignore})),aO(e,n,r,c)}function hO(e,t,n,r){var i=wo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return To(i-$D/2)?(o=c?`bottom`:`top`,a=`center`):To(i-$D*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<$D*1.5&&i>$D/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function gO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(LT(r))return;function a(e,a,o){var s=TD(t[a]),c=TD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=nO(s.label).labelInfo.tick;if(qw(l)&&u.notNice||Yw(l)&&u.offInterval){vO(s.label);return}}if(e===!1||s.suggestIgnore){vO(s.label);return}if(c.suggestIgnore){vO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=AD({marginForce:f},s),c=AD({marginForce:f},c)}ND(s,c,null,{touchThreshold:d})&&vO(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 _O(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=rO(r),a=nO(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){vO(r);return}}})}function vO(e){e&&(e.ignore=!0)}function yO(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&&(Xe(o,o,t),Xe(s,s,t));var u=new qf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});zp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=rO(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function bO(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=yO(i.getTicksCoords(),n.transform,c,F(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function xO(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=F(c.getLineStyle(),F(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=yO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function SO(e,t,n){if(wO(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&q(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),TO(e,null,null,null))}return!0}function CO(e,t,n,r,i,a){var o=i.axis,s=ye(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ha;n.add(c);var l=KE(r);if(!s||o.scale.isBlank()){TO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ye(e.raw.labelRotate,u.get(`rotate`))||0)*$D/180,p=dO.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;L(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=WT(o.scale,n);if(m&&m[f]){var y=m[f];G(y)&&y.textStyle&&(l=new Km(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=K(l.getShallow(`alignMinLabel`,!0),x),C=K(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=K(l.getShallow(`verticalAlignMinLabel`,!0),w),E=K(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new mu({x:0,y:0,rotation:0,silent:dO.isLabelSilent(i),z2:D,style:wm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=nO(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,im({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=dO.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),Ou(O).eventData=A,j&&AO(i,a,O,j)}h.push(O),c.add(O)}),TO(t,R(h,function(e){return{label:e,priority:nO(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function wO(e){return!!e.labelLayoutList}function TO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function EO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);L(n,function(n,a){var o=TD(n);if(o){var s=o.label,c=nO(s);o.suggestIgnore=s.ignore,s.ignore=!1,ua(DO,OO);var l=t.axis;DO.x=l.dataToCoord(WT(l.scale,c.labelInfo.tick)),DO.y=e.labelOffset+e.labelDirection*i,DO.rotation=c.layoutRotation,r.add(DO),DO.updateTransform(),r.remove(DO),DO.decomposeTransform(),ua(s,DO),s.markRedraw(),CD(o,!0),TD(o)}})}var DO=new lu,OO=new lu;function kO(e){return!!e}function AO(e,t,n,r){n.on(`click`,function(n){var i={type:QD,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function jO(e,t,n){var r=dh();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&nO(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&L(i,function(r){WD().adjustBreakLabelPair(e.axis.inverse,t,[TD(n[r[0]]),TD(n[r[1]])])})}}function MO(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),ye(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 NO(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function PO(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,Cs).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+be(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function FO(e,t,n,r,i,a){for(var o=MO(e,n),s=!1,c=!1,l=0;l<t.length;l++)Gw(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 dO(n,r,o,i)}function IO(e,t,n){var r=MO(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();L(V(r),function(e){e!==`position`&&e!==`labelOffset`&&q(r[e]===i[e])})}e.updateCfg(r)}function LO(e){return e.dim+`_`+e.index}function RO(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&q(n&&r&&(n instanceof oT||n instanceof CT)&&(t instanceof oT||t instanceof CT));var i=AE(n,r,r.ecModel,e,null),a=Jw(n),o=Jw(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`&&(q(!mh(t)&&!mh(n)),q(d>0),q(u.length===l.length),q(l[0].value<=l[d].value),q(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(q(u[1].value===l[1].value),q(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=ro(l[0].value-l[1].value),g=ro(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`&&q(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=eT(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*X(c,2):Xw(E),D=Zw(E);process.env.NODE_ENV!==`production`&&n>=t&&Ho("incorrect impl in `scaleCalcAlign`.")}function j(){w=Z(k-E*f,D)}function ee(){T=Z(O+E*p,D)}function te(){k=f?Z(w+E*f,D):w}function ne(){O=p?Z(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var M=e.getExtent(),N=ro(M[1]-M[0]);D=xo([T,w],N,.5/m),te(),ne(),Io(D)&&(E=Z(E,D))}else{var P=C[1]-C[0];E=a?X(Oo(P),1):Ao(P/m,2),D=Zw(E),b[0]?(w=C[0],A(function(){if(te(),O=Z(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(ne(),k=Z(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Z(oo(C[0]/E)*E,D),O=Z(ao(C[1]/E)*E,D);var e=io((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=ao(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Z(k-E*n[0],D),O=Z(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}UT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var zO=[[3,1],[0,2]],BO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=JD,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;L(this._axesList,function(e){wE(e,1);var t=e.scale;Yw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=V(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):IE(i)}L(n,function(e){GO(e,e.__alignTo)?IE(e):RO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};L(n.x,function(e){HO(n,`y`,e,i)}),L(n.y,function(e){HO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Sg(e,t),i=this._rect=bg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(qO(a,i),!n){var c=ZO(i,o,a,s,t),l=void 0;if(s)YO?(YO(this._axesList,i),qO(a,i)):(process.env.NODE_ENV!==`production`&&Vo("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=XO(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=$O(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=XO(d,f,p,i,a,c,r))}QO(i,a,GE.determine,null,l,r),L(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]}G(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`,Cs).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Cs).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,I(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,L(o.x,function(t,n){L(o.y,function(i,a){var o=`x`+n+`y`+a,s=new XD(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),WO(o.x),WO(o.y);function c(t){return function(n,r){if(VO(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=kT(n),u=new ZD(t,AT(n,l,!0),[0,0],l,c);u.onBand=GT(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 L(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);I(t,i)<0&&t.push(i),I(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),L(o._axesList,function(t){CE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;pg({targetModel:e,coordSysType:ID,coordSysProvider:r});function r(){var r=PO(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 "`+be(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&&(uE(t,e,ID),uE(n,e,ID))},this),r},e.dimensions=JD,e.dimIdxMap=XC(JD),e}();function VO(e,t){return e.getCoordSysModel()===t}function HO(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)UO(s,i[c])&&(a=i[c]);else for(var l in i)if(Ne(i,l)&&UO(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 UO(e,t){if(!t)return!1;var n=t.scale,r=jT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&NT(t)&&(i=!1),i}function WO(e){for(var t=V(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Gw(a.scale)&&VT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&L(r,function(e){e.__alignTo=n})}function GO(e,t){return mh(e.scale)||mh(t.scale)||t.scale.getTicks().length<2}function KO(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 qO(e,t){L(e.x,function(e){return JO(e,t.x,t.width)}),L(e.y,function(e){return JO(e,t.y,t.height)})}function JO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),KO(e,t)}var YO;function XO(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&q(t===`all`||t===`axisLabel`),QO(r,i,GE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=se(s,function(e){return e>0})==null;return tm(r,s,!0,!0,n),qO(i,r),c;function l(e){L(i[Dp[e]],function(t){if(BT(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(WT(t.scale,nO(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=zT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Dp[n]]-t[Dp[n]],a=t[Op[n]]+t[Dp[n]]-(e[Op[n]]+e[Dp[n]]);i=d(i,1-r),a=d(a,r);var o=zO[n][0],c=zO[n][1];s[o]=X(s[o],i),s[c]=X(s[c],a)}function d(e,t){return e>0&&!ve(t)&&t>1e-4&&(e/=t),e}}function ZO(e,t,n,r,i){var a=new iO(ek);return L(n,function(n){return L(n,function(n){if(BT(n.model)){var o=!r;n.axisBuilder=FO(e,t,n.model,i,a,o)}})}),a}function QO(e,t,n,r,i,a){var o=n===GE.determine;L(t,function(t){return L(t,function(t){BT(t.model)&&(IO(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[Dp[1-t]]=e[Op[t]]<=a.refContainer[Op[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){BT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function $O(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=bg(e.get(`outerBounds`,!0)||PD,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Uo(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:I([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Uo(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[go(K(e.get(`outerBoundsClampWidth`,!0),FD[0]),t.width),go(K(e.get(`outerBoundsClampHeight`,!0),FD[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ek=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;cO(e,t,n,r,i,a),zT(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&uO(e.labelInfoList,e.dirVec,r,i)})};function tk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nk(n,e,t),n.seriesInvolved&&ik(n,e),n}function nk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=dk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),ue(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)&&L(f.baseAxes,ue(p,!d||`cross`,u)),d&&L(f.otherAxes,ue(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!uk(d))){s??=d.get(`triggerTooltip`),d=r?rk(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=dk(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:uk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=ak(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function rk(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=M(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&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Km(c,n,r))}function ik(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||L(e.coordSysAxesInfo[dk(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 ak(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(ok(a[r+`AxisId`],n.id)||ok(a[r+`AxisIndex`],n.componentIndex)||ok(a[r+`AxisName`],n.name))return i}}function ok(e,t){return e===`all`||H(e)&&I(e,t)>=0||e===t}function sk(e){var t=ck(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=uk(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 ck(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[dk(e)]}function lk(e){var t=ck(e);return t&&t.axisPointerModel}function uk(e){return!!e.get([`handle`,`show`])}function dk(e){return e.type+`||`+e.id}var fk={},pk=function(e){l(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&&sk(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=lk(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`&&fk[e])throw Error(`axisPointer `+e+` exists`);fk[e]=t},t.getAxisPointerClass=function(e){return e&&fk[e]},t.type=`axis`,t}(Vy),mk=ys();function hk(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=mk(e).splitAreaColors,f=J(),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=H(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 lu({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:F({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}mk(e).splitAreaColors=f}}}function gk(e){mk(e).splitAreaColors=null}var _k=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],vk=function(e){l(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 Ha,this.group.add(this._axisGroup),BT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),L(_k,function(e){t.get([e,`show`])&&yk[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||qp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){gk(this)},t.type=`cartesianAxis`,t}(pk),yk={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=H(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 qf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:F({stroke:c[x]},_),silent:!0});zp(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 qf({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});zp(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){hk(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=WD(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},bk=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(vk),xk=function(e){l(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=bk.type,t}return t.type=`yAxis`,t}(vk),Sk=function(e){l(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 lu({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(Vy),Ck={offset:0};function wk(e){e.registerComponentView(Sk),e.registerComponentModel(LD),e.registerCoordinateSystem(`cartesian2d`,BO),GD(e,`x`,RD,Ck),GD(e,`y`,RD,Ck),e.registerComponentView(bk),e.registerComponentView(xk),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Tk=ys(),Ek=M,Dk=le,Ok=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 Ha,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ue(kk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}Nk(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&&fD(r).w>o)return!0;if(a){var s=ck(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=Tk(e).pointerEl=new Tp[i.type](Ek(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Tk(e).labelEl=new mu(Ek(t.label));e.add(i),jk(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Tk(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=Tk(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),jk(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=Xp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Et(e.event)},onmousedown:Dk(this._onHandleDragMove,this,0,0),drift:Dk(this._onHandleDragMove,this),ondragend:Dk(this._onHandleDragEnd,this)}),n.add(r)),Nk(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,tb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){kk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Mk(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(Mk(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Mk(r)),Tk(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),nb(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 kk(e,t,n,r){Ak(Tk(n).lastProp,r)||(Tk(n).lastProp=r,t?vp(n,r,e):(n.stopAnimation(),n.attr(r)))}function Ak(e,t){if(G(e)&&G(t)){var n=!0;return L(t,function(t,r){n&&=Ak(e[r],t)}),!!n}return e===t}function jk(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function Mk(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Nk(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 Pk(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 Fk(e,t,n,r,i){var a=Lk(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=$h(o.get(`padding`)||0),c=o.getFont(),l=ya(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),Ik(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:wm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function Ik(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 Lk(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:FT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function Rk(e,t,n){var r=jt();return It(r,r,n.rotation),Ft(r,r,n.position),Up([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function zk(e,t,n,r,i,a){var o=dO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),Fk(t,r,i,a,{position:Rk(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Bk(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Vk(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function Hk(e,t,n){return fD(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Uk(e,t,n){return[X(no(t[0],t[1]),e-n/2),no(e+n/2,X(t[0],t[1]))]}var Wk=function(e){l(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=Gk(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=Pk(r),f=Kk[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}zk(t,e,MO(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=MO(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Rk(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=Gk(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=no(o[1],l[c]),l[c]=X(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}(Ok);function Gk(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var Kk={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:Bk([t,r[0]],[t,r[1]],qk(e))}},shadow:function(e,t,n,r,i,a){var o=Hk(e,i,a),s=r[1]-r[0],c=Uk(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:Vk([l,r[0]],[u-l,s],qk(e))}}};function qk(e){return e.dim===`x`?0:1}var Jk=function(e){l(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}(kg),Yk=ys(),Xk=L;function Zk(e,t,n){if(!d.node){var r=t.getZr();Yk(r).records||(Yk(r).records={}),Qk(r,t);var i=Yk(r).records[e]||(Yk(r).records[e]={});i.handler=n}}function Qk(e,t){if(Yk(e).initialized)return;Yk(e).initialized=!0,n(`click`,ue(tA,`click`)),n(`mousemove`,ue(tA,`mousemove`)),n(`mousewheel`,ue(tA,`mousewheel`)),n(`globalout`,eA);function n(n,r){e.on(n,function(n){var i=nA(t);Xk(Yk(e).records,function(e){e&&r(e,n,i.dispatchAction)}),$k(i.pendings,t)})}}function $k(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 eA(e,t,n){e.handler(`leave`,null,n)}function tA(e,t,n,r){t.handler(e,n,r)}function nA(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 rA(e,t){if(!d.node){var n=t.getZr();(Yk(n).records||{})[e]&&(Yk(n).records[e]=null)}}var iA=function(e){l(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`;Zk(`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){rA(`axisPointer`,t)},t.prototype.dispose=function(e,t){rA(`axisPointer`,t)},t.type=`axisPointer`,t}(Vy);function aA(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=vs(a,e);if(o==null||o<0||H(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(R(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 oA=ys();function sA(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||le(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){_A(i)&&(i=aA({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=_A(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||_A(i),f={},p={},m={list:[],map:{}},h={showPointer:ue(uA,p),showTooltip:ue(dA,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=hA(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&cA(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(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,gA(t),gA(e)))),g[e.key]=a}})}),L(g,function(e,t){cA(u[t],e,h,!0,f)}),fA(p,u,f),pA(m,i,e,o),mA(u,o,n),f}}function cA(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=lA(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function lA(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(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(Io(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),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function uA(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function dA(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=dk(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 fA(e,t,n){var r=n.axesInfo=[];L(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 pA(e,t,n,r){if(_A(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 mA(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=oA(r)[i]||{},o=oA(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(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 hA(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 gA(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 _A(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function vA(e){pk.registerAxisPointerClass(`CartesianAxisPointer`,Wk),e.registerComponentModel(Jk),e.registerComponentView(iA),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=tk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},sA)}function yA(e){HE(wk),HE(vA)}var bA=typeof Float32Array<`u`?Float32Array:void 0,xA=typeof Float64Array<`u`?Float64Array:void 0;function SA(e){return CA({ctor:bA},e).arr}function CA(e,t){process.env.NODE_ENV!==`production`&&q(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>Co&&(t=Co),!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`&&Uo(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 wA(){cE(`liPosMinGap`,TA)}function TA(e,t,n){var r=J(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Fv(u);function f(n){iE(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}CA(EA,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||Iv(d,a))&&(l&&(a=c.transformIn(a,null)),EA.arr[m++]=a)}});var h=EA.typed?EA.arr.subarray(0,m):(EA.arr.length=m,EA.arr);EA.typed?h.sort():vo(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Io(g)?g:m>0?-2:-1,n.serUids=r}var EA=CA({ctor:xA},50);function DA(e){return function(t,n){var r=fD(t,{fromStat:{key:e}});if(Io(r.w2))return[-r.w2/2,r.w2/2]}}function OA(e,t){return e+`|&`+t}function kA(e){return wA(),{liPosMinGap:!Yw(e.scale)}}function AA(e,t,n,r){fE(e,{key:t,seriesType:n,coordSysType:r,getMetrics:kA})}function jA(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&q(Io(t)),t}function MA(e){return e}var NA=`view`;(function(e){l(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=NA,i.dimensions=[`x`,`y`];var a=MA(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=ca(),o[1]=ca(),o[2]=ca(),a.mtRaw=jt(),a.mtRawInv=jt(),a.mtOverall=jt(),a.mtOverallInv=jt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return IA(null,this)},t.prototype.getViewRect=function(){return LA(null,this)},t.prototype.getRoamTransform=function(){return sa(MA(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?MA(this).mtRaw:MA(this).mtOverall;return n||=[],r?Xe(n,e,r):Le(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=MA(this).mtOverallInv;return r?Xe(n,e,r):Le(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=RA(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=RA(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=MA(this);return tn(PA,t.dataRect),rn(PA,PA,t.mtOverall),an(PA,e[0],e[1])},t.dimensions=[`x`,`y`],t})(oa);var PA=$t();function FA(e,t){return Nt(e||[],MA(t).mtOverall)}function IA(e,t){return tn(e||$t(),MA(t).dataRect)}function LA(e,t){return tn(e||$t(),MA(t).viewRect)}$t();function RA(e){var t=e.seriesModel;return t?t.coordinateSystem:null}ca(),ca();var zA=ys();function BA(e,t,n){zA(e)[t]=n}function VA(e,t,n){var r=zA(e);r[t]===n&&(r[t]=null)}DC({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Pe);var HA={axisPointer:1,tooltip:1,brush:1};function UA(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||HA.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=dm(r),o=dm(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}function WA(e,t,n,r,i,a){e||=0;var o=So(n[1],-n[0]);if(i!=null&&(i=KA(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(So(t[1],-t[0]));s=KA(s,[0,o]),i=a=KA(s,[i,a]),r=0}t[0]=KA(t[0],n),t[1]=KA(t[1],n);var c=GA(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=So(u[0],l):u[1]=So(u[1],-l),t[r]=KA(t[r],u);var d=GA(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=So(t[r],c.sign*i)),d=GA(t,r),a!=null&&d.span>a&&(t[1-r]=So(t[r],d.sign*a)),t}function GA(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 KA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var qA=!0,JA=Math.min,YA=Math.max,XA=Math.pow,ZA=1e4,QA=6,$A=6,ej=`globalPan`,tj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},nj={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},rj={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},ij=0,aj=function(e){l(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!==`production`&&q(t),n._zr=t,n.group=new Ha,n._uid=`brushController_`+ij++,L(Lj,function(e,t){this._handlers[t]=le(e,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!==`production`&&q(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||BA(t,ej,this._uid),L(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(M(rj),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;VA(e,ej,this._uid),L(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};L(e,function(e){t[e.panelId]=M(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},process.env.NODE_ENV!==`production`&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!==`production`&&q(this._mounted),e=R(e,function(e){return N(M(rj),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new zC(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:uj(i,r[t]=o==null?sj(i,oj(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!==`production`&&!this._mounted))return this.enableBrush(!1),mj(this),this._zr.remove(this.group),process.env.NODE_ENV!==`production`&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(tt);function oj(e,t){var n=Bj[t.brushType].createCover(e,t);return n.__brushOption=t,lj(n,t),e.group.add(n),n}function sj(e,t){var n=dj(t);return n.endCreating&&(n.endCreating(e,t),lj(t,t.__brushOption)),t}function cj(e,t){var n=t.__brushOption;dj(t).updateCoverShape(e,t,n.range,n)}function lj(e,t){var n=t.z;n??=ZA,e.traverse(function(e){e.z=n,e.z2=n})}function uj(e,t){dj(t).updateCommon(e,t),cj(e,t)}function dj(e){return Bj[e.__brushOption.brushType]}function fj(e,t,n){var r=e._panels;if(!r)return qA;var i,a=e._transform;return L(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function pj(e,t){var n=e._panels;if(!n)return qA;var r=t.__brushOption.panelId;return r==null?qA:n[r]}function mj(e){var t=e._covers,n=t.length;return L(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function hj(e,t){var n=R(e._covers,function(e){var t=e.__brushOption,n=M(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function gj(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return XA(i*i+a*a,.5)>QA}function _j(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function vj(e,t,n,r){var i=new Ha;return i.add(new lu({name:`main`,style:Sj(n),silent:!0,draggable:!0,cursor:`move`,drift:ue(Dj,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ue(hj,t,{isEnd:!0})})),L(r,function(n){i.add(new lu({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ue(Dj,e,t,i,n),ondragend:ue(hj,t,{isEnd:!0})}))}),i}function yj(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=YA(i,$A),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;xj(e,t,`main`,o,s,m,h),r.transformable&&(xj(e,t,`w`,c,l,a,_),xj(e,t,`e`,f,l,a,_),xj(e,t,`n`,c,l,g,a),xj(e,t,`s`,c,p,g,a),xj(e,t,`nw`,c,l,a,a),xj(e,t,`ne`,f,l,a,a),xj(e,t,`sw`,c,p,a,a),xj(e,t,`se`,f,p,a,a))}function bj(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Sj(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),L([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?Tj(e,n[0]):Ej(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?nj[a]+`-resize`:null})})}function xj(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(jj(Aj(e,t,[[r,i],[r+a,i+o]])))}function Sj(e){return F({strokeNoScale:!0},e.brushStyle)}function Cj(e,t,n,r){var i=[JA(e,n),JA(t,r)],a=[YA(e,n),YA(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function wj(e){return Hp(e.group)}function Tj(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Wp({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],wj(e))]}function Ej(e,t){var n=[Tj(e,t[0]),Tj(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function Dj(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=kj(t,i,a);L(r,function(e){var t=tj[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(Cj(s[0][0],s[1][0],s[0][1],s[1][1])),uj(t,n),hj(t,{isEnd:!1})}function Oj(e,t,n,r){var i=t.__brushOption.range,a=kj(e,n,r);L(i,function(e){e[0]+=a[0],e[1]+=a[1]}),uj(e,t),hj(e,{isEnd:!1})}function kj(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Aj(e,t,n){var r=pj(e,t);return r&&r!==qA?r.clipPath(n,e._transform):M(n)}function jj(e){var t=JA(e[0][0],e[1][0]),n=JA(e[0][1],e[1][1]),r=YA(e[0][0],e[1][0]),i=YA(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Mj(e,t,n){if(!(!e._brushType||zj(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=fj(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===qA||s.panelId===a.panelId)&&Bj[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function Nj(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Pj(e,t,n){return e.childOfName(`main`).contain(t,n)}function Fj(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),gj(e)||i){if(a&&!i){o.brushMode===`single`&&mj(e);var c=M(o);c.brushType=Ij(c.brushType,a),c.panelId=a===qA?null:a.panelId,i=e._creatingCover=oj(e,c),e._covers.push(i)}if(i){var l=Bj[Ij(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(Aj(e,i,e._track)),r&&(sj(e,i),l.updateCommon(e,i)),cj(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&fj(e,t,n)&&mj(e)&&(s={isEnd:r,removeOnClick:!0});return s}function Ij(e,t){return e===`auto`?(process.env.NODE_ENV!==`production`&&q(t&&t.defaultBrushType,`MUST have defaultBrushType when brushType is "atuo"`),t.defaultBrushType):e}var Lj={mousedown:function(e){if(this._dragging)Rj(this,e);else if(!e.target||!e.target.draggable){Nj(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=fj(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Mj(this,e,r),this._dragging){Nj(e);var i=Fj(this,e,r,!1);i&&hj(this,i)}},mouseup:function(e){Rj(this,e)}};function Rj(e,t){if(e._dragging){Nj(t);var n=t.offsetX,r=t.offsetY,i=Fj(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&hj(e,i)}}function zj(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Bj={lineX:Vj(0),lineY:Vj(1),rect:{createCover:function(e,t){function n(e){return e}return vj({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=_j(e);return Cj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){yj(e,t,n,r)},updateCommon:bj,contain:Pj},polygon:{createCover:function(e,t){var n=new Ha;return n.add(new Wf({name:`main`,style:Sj(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Hf({name:`main`,draggable:!0,drift:ue(Oj,e,t),ondragend:ue(hj,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Aj(e,t,n)})},updateCommon:bj,contain:Pj}};function Vj(e){return{createCover:function(t,n){return vj({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=_j(t);return[JA(n[0][e],n[1][e]),YA(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=pj(t,n);if(o!==qA&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),yj(t,n,c,i)},updateCommon:bj,contain:Pj}}function Hj(e){return e=Gj(e),function(t){return Jp(t,e)}}function Uj(e,t){return e=Gj(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function Wj(e,t,n){var r=Gj(e);return function(e,i){return r.contain(i[0],i[1])&&!UA(e,t,n)}}function Gj(e){return Y.create(e)}var Kj=[`x`,`y`,`radius`,`angle`,`single`],qj=ys(),Jj=[`cartesian2d`,`polar`,`singleAxis`];function Yj(e){return I(Jj,e.get(`coordinateSystem`))>=0}function Xj(e){return process.env.NODE_ENV!==`production`&&q(e),e+`Axis`}function Zj(e,t){var n=J(),r=[],i=J();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 Qj(e){var t=qj(Qb(e));return t.axisProxyMap||=J()}function $j(e){if(e)return process.env.NODE_ENV!==`production`&&q(e.ecModel),Qj(e.ecModel).get(e.uid)}function eM(e,t){process.env.NODE_ENV!==`production`&&q(e.ecModel),Qj(e.ecModel).set(e.uid,t)}function tM(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?$j(n.model):null}var nM=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}(),rM=function(e){l(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=iM(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=iM(e);N(this.option,e,!0),N(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;L([[`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=J();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 L(Kj,function(n){var r=this.getReferringComponents(Xj(n),ws);if(r.specified){t=!0;var i=new nM;L(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 nM;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Cs).models[0];o&&L(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Cs).models[0]&&a.add(e.componentIndex)})}}}r&&L(Kj,function(t){if(r){var i=n.findComponents({mainType:Xj(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new nM;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`);L([[`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(Xj(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){L(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return $j(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&q(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Xj(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;L([[`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;L([`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 $j(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`&&q(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}(kg);function iM(e){var t={};return L([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var aM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(rM),oM=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){l(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}(Vy)),sM=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 M(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Yj(t)){var n=Xj(this._dimName),r=t.getReferringComponents(n,Cs).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 M(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];L([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=po(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=po(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),vo(s),vo(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`;WA(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=po(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);Rs(t)}var f=Yw(r)||qw(r),p=n.getExtent(),m=ro(p[1]-p[0]),h=f?0:xo(s,m,.5);L([[0,oo],[1,ao]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=Z(s[n],h),s[n]=no(t[1],X(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),Rs(s);var g=[po(s[0],t,a,!0),po(s[1],t,a,!0)];return Rs(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;wE(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=F({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;L(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=R(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 L(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)}});L(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;L([`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=po(i,[0,100],n,!0)-n[0]):i=po(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),cM={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(Xj(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!$j(i)){var o=new sM(t,r,a,e);n.push(o),eM(i,o)}});var r=J();return L(n,function(e){L(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=tM(e,i);a?n.push([i,a]):i.reset(e,null)}),L(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 lM(e){e.registerAction(`dataZoom`,function(e,t){L(Zj(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var uM=zs();function dM(e){uM(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,cM),lM(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function fM(e){e.registerComponentModel(aM),e.registerComponentView(oM),dM(e)}var pM=function(){function e(){}return e}(),mM={};function hM(e,t){mM[e]=t}function gM(e){return mM[e]}var _M=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=P({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){L(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=gM(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(N(e,n[t]),n[t]=null),N(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(kg);function vM(e,t){var n=$h(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new lu({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 yM=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=J(),l=[];L(s,function(e,t){l.push(t)}),new zC(this._featureNames||[],l).add(u).update(u).remove(ue(u,null)).execute(),this._featureNames=B(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new Km(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(bM(p))_={onclick:h.option.onclick,featureName:p};else{var v=gM(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){xM(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=Jm(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?_d:vd)(r[e])},xM(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof pM&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;W(d)?(p={},p[c]=d):p=d,W(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};L(p,function(c,d){var f=Xp(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new mu({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:Mm({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),im({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?_d:vd)(f),i.add(f),f.on(`click`,le(s.onclick,s,t,n,d)),h[d]=f})}var f=Sg(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=bg(p,f,m);vg(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),Cg(i,p,f,m),i.add(vM(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!U(c)&&t){var l=c.style||={},u=ya(t,mu.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){L(this._features,function(e){e&&e instanceof pM&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){L(this._features,function(n){n&&n instanceof pM&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(Vy);function bM(e){return e.indexOf(`my`)===0}function xM(e){return e instanceof pM}var SM=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=d.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),f=u[0].indexOf(`base64`)>-1,p=i?decodeURIComponent(u[1]):u[1];f&&(p=window.atob(p));var m=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var h=p.length,g=new Uint8Array(h);h--;)g[h]=p.charCodeAt(h);var _=new Blob([g]);window.navigator.msSaveOrOpenBlob(_,m)}else{var v=document.createElement(`iframe`);document.body.appendChild(v);var y=v.contentWindow,b=y.document;b.open(`image/svg+xml`,`replace`),b.write(p),b.close(),y.focus(),b.execCommand(`SaveAs`,!0,m),document.body.removeChild(v)}}else{var x=n.get(`lang`),S=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(x&&x[0]||``)+`" /></body>`,C=window.open();C.document.write(S),C.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(pM),CM=`__ec_magicType_stack__`,wM=[[`line`,`bar`],[`stack`]],TM=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return L(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(EM[n]){var a={series:[]};L(wM,function(e){I(e,n)>=0&&L(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=EM[n](t,i,e,r);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Cs).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(pM),EM={line:function(e,t,n,r){if(e===`bar`)return N({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return N({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===CM;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),N({id:t,stack:i?``:CM},r.get([`option`,`stack`])||{},!0)}};DC({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var DM=Array(60).join(`-`),OM=` `;function kM(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=LO(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function AM(e){var t=[];return L(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(R(e.series,function(e){return e.name})),o=[r.model.getCategories()];L(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(OM)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(OM))}t.push(s.join(`
22
+ `))}),t.join(`
22
23
 
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=xu(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=GA([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 _y;h.marker=g.makeTooltipMarker(`item`,Qh(h.color),d);var _=vv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?cy(y?P({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=xu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=mt(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=GA(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new _y;this._showOrMove(d,function(){var n=M(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(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Eh(m.axisValue,d,p)),d=Xh(d,n,!0)}else if(U(u)){var g=le(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`||H(t))return{color:r||i};if(!H(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),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=co(t[0],s),r=co(t[1],c);else if(G(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(W(t)&&o){var h=YA(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=qA(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=XA(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=XA(d)?l[1]/2:d===`bottom`?l[1]:0),SA(e)){var h=JA(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&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(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&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(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){d.node||!t.getDom()||(Ky(this,`_updatePosition`),this._tooltipContent.dispose(),Kk(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(jy);function GA(e,t,n){var r=t.ecModel,i;n?(i=new zm(n,r,r),i=new zm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof zm&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new zm(o,i,r)))}return i}function KA(e,t){return e.dispatchAction||le(t.dispatchAction,t)}function qA(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 JA(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 YA(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 XA(e){return e===`center`||e===`middle`}function ZA(e,t,n){var r=gs(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=vs(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=xu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function QA(e){ME(sA),e.registerComponentModel(xA),e.registerComponentView(WA),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Pe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Pe)}function $A(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=hv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(hv(e,t,n[o]));return a.join(` `)}}function ej(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(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(` `)}function tj(e,t){return e.type===t}function nj(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 nu({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=U(i)?function(e){i(e,d)}:null;fp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function rj(e,t,n){var r=e.getArea(),i=po(r.r0,1),a=po(r.r,1),o=new kf({shape:{cx:po(e.cx,1),cy:po(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,fp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function ij(e,t,n,r,i){return e?e.type===`polar`?rj(e,t,n):e.type===`cartesian2d`?nj(e,t,n,r,i):null:null}var aj={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},oj=function(e){return Math.round(e.length/2)};function sj(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=aj[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,oj))}}}}}var cj=Ms(),lj=`__ec_stack_`;function uj(e){return e.get(`stack`)||lj+e.seriesIndex}function dj(e,t){var n=fj(e,t);return n.columnMap=pj(n),n}function fj(e,t){var n=_A(t,ED),r=[],i=nD(e,{fromStat:{key:n},min:1});return qT(e,n,function(e){r.push({barWidth:co(e.get(`barWidth`),i.w),barMaxWidth:co(e.get(`barMaxWidth`),i.w),barMinWidth:co(e.get(`barMinWidth`)||(gj(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:uj(e)})}),{bandWidthResult:i,seriesInfo:r}}function pj(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};L(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Ne(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=Za(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??=X(35-o.length*4,15)+`%`;var c=co(i,t),l=co(a,1),u=(n-c)/(r+(r-1)*l);u=X(u,0),L(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Za(o,i)),a&&(o=X(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Za(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=X(u,0);var d=0,f;L(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 L(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 mj(e){return{seriesType:e,overallReset:function(t){var n=_A(e,ED);YT(t,n,function(t){process.env.NODE_ENV!==`production`&&q(t instanceof VD);var r=dj(t,e);qT(t,n,function(e){var t=r.columnMap[uj(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function hj(e){return{seriesType:e,plan:My(),reset:function(e){if(CO(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=pw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(bA(i))),p=gj(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&&dA(r*3),c=p&&s&&dA(r*3),l=p&&dA(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,Qa(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,Qa(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 gj(e){return e.pipelineContext&&e.pipelineContext.large}function _j(e){return gA(_A(e,ED))}function vj(e){cj(e,function(){function t(t){var n=_A(t,ED);yA(e,n,t,ED),vE(n,_j(t))}t(`bar`),t(`pictorialBar`)})}var yj=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return _w(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(Sy);Sy.registerClass(yj);var bj=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return _w(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Rs(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Wm(yj.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(yj),xj=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Sj=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new xj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Hl);function Cj(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return ya(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+Tj(m,s+_,!1),x=u+p*y(m)+Ej(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+Tj(m,-s+_,!1),x=u+p*y(m)+Ej(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+Tj(h,s+_,!0),x=u+p*y(h)+Ej(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+Tj(h,-s+_,!0),x=u+p*y(h)+Ej(h,-s+_,!0),S=`right`,C=`middle`;break;default:return ya(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function wj(e,t,n,r){if(fe(r)){e.setTextConfig({rotation:r});return}if(H(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function Tj(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Ej(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Dj(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:R(r,function(e){return va(e,i)})}}var Oj=Math.max,kj=Math.min,Aj=function(e){l(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&Ro(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){$p(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=Nj(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=zj[s.type](a,e);if(!t)return null;var n=Xj(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=zj[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!Rj[s.type](r)))){var o=!1;f&&(o=jj[s.type](p,r));var g=Mj[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),Hj(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?Pj(d,u,g,r,t,l,!1,!1):fp(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=zj[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=zj[s.type](a,t),E=Yj(l,T,s);dp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!Rj[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=jj[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&gp(D,e,n),D=null),D?_p(D):D=Mj[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Em(k);A.prevValue!=null&&(A.prevValue=A.value)}}else Hj(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?Pj(d,u,D,C,t,l,!0,x):dp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&gp(n,e,t)}).execute();var C=this._backgroundGroup||=new La;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Kj(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Kj(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&ij(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:R(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){gp(t,e,xu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Fy),jj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Oj(t.x,e.x),s=kj(t.x+t.width,i),c=Oj(t.y,e.y),l=kj(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=kj(t.r,e.r),a=Oj(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},Mj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new nu({shape:P({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?Sj:kf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=Cj(Vj(i),{isRoundCap:l===Sj}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?dp:fp)(u,{shape:p},a)}return u}};function Nj(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Ro("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Ro("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Pj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?dp:fp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?dp:fp)(n,{shape:l},u,i)}function Fj(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Ij=[`x`,`y`,`width`,`height`],Lj=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],Rj={cartesian2d:function(e){return!Fj(e,Ij)},polar:function(e){return!Fj(e,Lj)}},zj={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?Uj(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Bj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Vj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Hj(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;P(u,Dj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Zj(i,a.coordinateSystem):Qj(i,a.coordinateSystem),p=gm(r);hm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:$A(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,wj(e,h===`outside`?f:h,Vj(o),r.get([`label`,`rotate`]))}Dm(m,p,a.getRawValue(n),function(e){return ej(t,e)});var g=r.getModel([`emphasis`]);kd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Nd(e,r),Bj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Uj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Wj=function(){function e(){}return e}(),Gj=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new Wj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Hl);function Kj(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Ls(e):0;if(l){var d=new Gj({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new Gj({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,xu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,qj),f.on(`mousemove`,qj)),n&&n.push(f)}var qj=Wy(function(e){var t=this,n=Jj(t,e.offsetX,e.offsetY);xu(t).dataIndex=n>=0?n:null},30,!1);function Jj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function Yj(e,t,n){if(tj(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function Xj(e,t,n){return new(e.type===`polar`?kf:nu)({shape:Yj(t,n,e),silent:!0,z2:0})}function Zj(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Qj(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function $j(e){e.registerChartView(Aj),e.registerSeriesModel(bj),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,mj(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,hj(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,sj(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),vj(e)}var eM=Math.sin,tM=Math.cos,nM=Math.PI,rM=Math.PI*2,iM=180/nM,aM=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Fr(u-rM)||(l?c>=rM:-c>=rM),f=c>0?c%rM:c%rM+rM,p=!1;p=d?!0:!Fr(u)&&f>=nM==!!l;var m=e+n*tM(a),h=t+r*eM(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*iM);if(d){var _=1/this._p,v=(l?1:-1)*(rM-_);this._add(`A`,n,r,g,1,+l,e+n*tM(a+v),t+r*eM(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*tM(o),b=t+r*eM(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),oM=`none`,sM=Math.round;function cM(e){var t=e.fill;return t!=null&&t!==oM}function lM(e){var t=e.stroke;return t!=null&&t!==oM}var uM=[`lineCap`,`miterLimit`,`lineJoin`],dM=R(uM,function(e){return`stroke-`+e.toLowerCase()});function fM(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Jl){e(`opacity`,i);return}if(cM(t)){var a=Nr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,oM);if(lM(t)){var s=Nr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=lx(n),p=f[0],m=f[1];p&&(m=sM(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,oM);for(var h=0;h<uM.length;h++){var g=uM[h];if(r||t[g]!==zl[g]){var _=t[g]||zl[g];_&&e(dM[h],_)}}}else r&&e(`stroke`,oM)}var pM=`http://www.w3.org/2000/svg`,mM=`http://www.w3.org/1999/xlink`,hM=`http://www.w3.org/2000/xmlns/`,gM=`http://www.w3.org/XML/1998/namespace`,_M=`ecmeta_`;function vM(e){return document.createElementNS(pM,e)}function yM(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function bM(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function xM(e){return`</`+e+`>`}function SM(e,t){t||={};var n=t.newline?`
24
- `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return bM(i,a)+(i===`style`?o||``:mt(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+xM(i)}return r(e)}function CM(e,t,n){n||={};var r=n.newline?`
25
- `:``,i=` {`+r,a=r+`}`,o=R(V(e),function(t){return t+i+R(V(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(V(t),function(e){return`@keyframes `+e+i+R(V(t[e]),function(n){return n+i+R(V(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function wM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function TM(e,t,n,r){return yM(`svg`,`root`,{width:e,height:t,xmlns:pM,"xmlns:xlink":mM,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var EM=0;function DM(){return EM++}var OM={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},kM=`transform-origin`;function AM(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new aM;return i.reset(Xr(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function jM(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[kM]=n+`px `+r+`px`)}var MM={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function NM(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function PM(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=wM(n.zrId);t.animation=!0,IM(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=V(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=NM(i,n);return a.replace(o,s)}}function FM(e){return W(e)?OM[e]?`cubic-bezier(`+OM[e]+`)`:or(e)?e:``:``}function IM(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof qf){var s=PM(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=FM(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=FM(d.easing),m=d.rawValue;(W(m)||fe(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};aa(g,e),P(g,s[h]);var _=Zr(g),v=s[h][u];l[h]=_?{transform:_}:{},jM(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new _l);var S=y.len();y.reset(),l[h].d=AM(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return MM[e]})}for(var w=V(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][kM]!==l[O][kM]){T=!1;break}E=l[D][kM]}if(T&&E){for(var h in l)l[h][kM]&&delete l[h][kM];t[kM]=E}if(B(w,function(e){return V(l[e]).length>0}).length)return NM(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+DM();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function LM(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};RM(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=jr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),RM(r,t,n,!0)}}}function RM(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+DM(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var zM=Math.round;function BM(e){return e&&W(e.src)}function VM(e){return e&&U(e.toDataURL)}function HM(e,t,n,r){fM(function(i,a){var o=i===`fill`||i===`stroke`;o&&Jr(a)?rN(t,e,i,r):o&&Gr(a)?iN(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),nN(n,e,r)}function UM(e,t){var n=Ka(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[_M+`silent`]=`true`))}function WM(e){return Fr(e[0]-1)&&Fr(e[1])&&Fr(e[2])&&Fr(e[3]-1)}function GM(e){return Fr(e[4])&&Fr(e[5])}function KM(e,t,n){if(t&&!(GM(t)&&WM(t))){var r=n?10:1e4;e.transform=WM(t)?`translate(`+zM(t[4]*r)/r+` `+zM(t[5]*r)/r+`)`:Rr(t)}}function qM(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(zM(r[a][0]*n)/n),i.push(zM(r[a][1]*n)/n);t.points=i.join(` `)}function JM(e){return!e.smooth}function YM(e){var t=R(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=zM(o*r)/r)}}}var XM={circle:[YM([`cx`,`cy`,`r`])],polyline:[qM,JM],polygon:[qM,JM]};function ZM(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function QM(e,t){var n=e.style,r=e.shape,i=XM[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Xr(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&ZM(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new aM,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return KM(a,e.transform),HM(a,n,e,t),UM(a,e),t.animation&&IM(e,a,t),t.emphasis&&LM(e,a,t),yM(s,e.id+``,a)}function $M(e,t){var n=e.style,r=n.image;if(r&&!W(r)&&(BM(r)?r=r.src:VM(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),KM(c,e.transform),HM(c,n,e,t),UM(c,e),t.animation&&IM(e,c,t),yM(`image`,e.id+``,c)}}function eN(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Br(n.y||0,_a(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":zr[n.textAlign]||n.textAlign};if(pu(n)){var c=``,l=n.fontStyle,u=du(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),KM(s,e.transform),HM(s,n,e,t),UM(s,e),t.animation&&IM(e,s,t),yM(`text`,e.id+``,s,void 0,r)}}function tN(e,t){if(e instanceof Hl)return QM(e,t);if(e instanceof Jl)return $M(e,t);if(e instanceof Wl)return eN(e,t)}function nN(e,t,n){var r=e.style;if(Vr(r)){var i=Hr(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Nr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=yM(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[yM(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Yr(o)}}function rN(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Kr(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(qr(i))a=`radialGradient`,o.cx=K(i.x,.5),o.cy=K(i.y,.5),o.r=K(i.r,.5);else{process.env.NODE_ENV!==`production`&&ne(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=Lr(s[l].offset)*100+`%`,f=s[l].color,p=Nr(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(yM(`stop`,l+``,g))}var _=SM(yM(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=yM(a,y,o,c)),t[n]=Yr(y)}function iN(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(Ur(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(W(h)?m=h:BM(h)?m=h.src:VM(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;q(f,g),q(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=ac(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=yM(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Zr(i);x&&(o.patternTransform=x);var S=yM(`pattern`,``,o,[d]),C=SM(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=yM(`pattern`,T,o,[d])),t[n]=Yr(T)}}function aN(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=yM(`clipPath`,a,o,[QM(e,n)])}t[`clip-path`]=Yr(a)}function oN(e){return document.createTextNode(e)}function sN(e,t,n){e.insertBefore(t,n)}function cN(e,t){e.removeChild(t)}function lN(e,t){e.appendChild(t)}function uN(e){return e.parentNode}function dN(e){return e.nextSibling}function fN(e,t){e.textContent=t}var pN=58,mN=120,hN=yM(``,``);function gN(e){return e===void 0}function _N(e){return e!==void 0}function vN(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function yN(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function bN(e){var t,n=e.children,r=e.tag;if(_N(r)){var i=e.elm=vM(r);if(CN(hN,e),H(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&lN(i,bN(a))}else _N(e.text)&&!G(e.text)&&lN(i,oN(e.text))}else e.elm=oN(e.text);return e.elm}function xN(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&sN(e,bN(a),t)}}function SN(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(_N(i.tag)?cN(uN(i.elm),i.elm):cN(e,i.elm))}}function CN(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===mN?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(hM,n,o):n.charCodeAt(3)===pN?r.setAttributeNS(gM,n,o):n.charCodeAt(5)===pN?r.setAttributeNS(mM,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function wN(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:yN(o,l)?(TN(o,l),o=t[++r],l=n[++i]):yN(s,u)?(TN(s,u),s=t[--a],u=n[--c]):yN(o,u)?(TN(o,u),sN(e,o.elm,dN(s.elm)),o=t[++r],u=n[--c]):yN(s,l)?(TN(s,l),sN(e,s.elm,o.elm),s=t[--a],l=n[++i]):(gN(d)&&(d=vN(t,r,a)),f=d[l.key],gN(f)?sN(e,bN(l),o.elm):(p=t[f],p.tag===l.tag?(TN(p,l),t[f]=void 0,sN(e,p.elm,o.elm)):sN(e,bN(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,xN(e,m,n,i,c)):SN(e,t,r,a))}function TN(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(CN(e,t),gN(t.text)?_N(r)&&_N(i)?r!==i&&wN(n,r,i):_N(i)?(_N(e.text)&&fN(n,``),xN(n,null,i,0,i.length-1)):_N(r)?SN(n,r,0,r.length-1):_N(e.text)&&fN(n,``):e.text!==t.text&&(_N(r)&&SN(n,r,0,r.length-1),fN(n,t.text)))}function EN(e,t){if(yN(e,t))TN(e,t);else{var n=e.elm,r=uN(n);bN(t),r!==null&&(sN(r,t.elm,dN(n)),SN(r,[e],0,0))}return t}var DN=0,ON=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=kN(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+DN++,this._oldVNode=TM(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=vM(`svg`);CN(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,EN(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return tN(e,wM(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=wM(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=AN(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=yM(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(V(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(yM(`defs`,`defs`,{},c)),e.animation){var l=CM(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=yM(`style`,`stl`,{},[],l);a.push(u)}}return TM(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},SM(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};aN(d[g],_,t);var v=yM(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=tN(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=sx(r,0,n),t=sx(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(Gr(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=Qr(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function kN(e){return function(){process.env.NODE_ENV!==`production`&&ne(`In SVG mode painter not support method "`+e+`"`)}}function AN(e,t,n,r){var i;if(n&&n!==`none`){if(i=yM(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),Jr(n))rN({fill:n},i.attrs,`fill`,r);else if(Gr(n))iN({style:{fill:n},dirty:Pe,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Nr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function jN(e){e.registerPainter(`svg`,ON)}var MN=({visualization:e,data:t})=>{let{bindings:{y:n=[]}={}}=e||{},{columns:r=[]}=t||{};return r.map((e,t)=>n.includes(e)?t:null).filter(e=>e).map(e=>e?r[e]:null).filter(e=>e!==null)},NN=({visualization:e,data:t})=>{let{bindings:{x:n=``}={}}=e||{},{columns:r=[],rows:i=[]}=t||{},a=r.map((e,t)=>n===e?t:null).filter(e=>e!==null)[0]??null;return i.map(e=>a===null?null:e[a]).filter(e=>e!==null)},PN=({visualization:e={},data:t={}})=>{let{bindings:{y:n=[]}={},series:r=[]}=e||{},{columns:i=[],rows:a=[]}=t||{},o=i.map((e,t)=>n.includes(e)?t:null).filter(e=>e),s=r.some(({key:e})=>a.some(t=>t.includes(e)))||!1,c=r.some(({key:e})=>i.includes(e))||!1,l=n.map((e,t)=>{let n=o[t]||null;return{name:e,data:a.map(e=>n&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`bar`,stack:t+1,itemStyle:{borderRadius:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}}}}),u=NN({visualization:e,data:t}),d=MN({visualization:e,data:t});return l.map(e=>{let{stack:t=0,data:n=[]}=e||{},i=n.map((e,t)=>{let n=u[t];return{value:e,itemStyle:{color:r.find(({key:e})=>e===n)?.color||`var(--orange-90)`}}}),a=s?i:n,o=d[t-1],l=r.find(({key:e})=>e===o)?.color||`var(--orange-90)`,f=c?l:null;return{...e,color:f,data:a,emphasis:{...e.emphasis,itemStyle:{...e.emphasis.itemStyle,color:f}}}})},FN=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};ME([cA,QA,$j,jN]);var IN=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=PN({visualization:e,data:t}),c=NN({visualization:e,data:t}),{series:l=[]}=e||{},u=FN({xData:c,series:l});return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=lC(a.current,void 0,{renderer:`svg`});let e=s.reduce((e,t)=>{let n=t.data.map(e=>typeof e==`number`?e:e.value),r=Math.max(...n);return r>e?r:e},0),t=Array.from({length:s.length}).map((t,n)=>({color:`var(--gray-15)`,data:s[n].data.map(t=>typeof t==`number`?e-t:e-t.value),stack:Number(n+1),type:`bar`,itemStyle:{borderRadius:[16,16,0,0]},silent:!0})),n=[...s,...t],r={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};u.forEach(({image:e},t)=>{e&&(r[`img_${t}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let i={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,t)=>{let n=`img_${t}`;return r[n]?`{valueStyle|${e}}\n{${n}|}`:`{valueStyle|${e}}`},rich:r}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:n};o.current.setOption(i);let l=new ResizeObserver(()=>{o.current?.resize()});return l.observe(a.current),()=>{l.disconnect(),o.current?.dispose(),o.current=null}},[s,c,u]),(0,n.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:a,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},LN=({data:e={}})=>{let{data:t={},metadata:{title:r=``,description:a=``,source:o=``,image:c=void 0}={},visualization:l={},visualization:{settings:{showChart:u=!0,showDescription:d=!0,showImage:f=!0,showLegend:p=!0,showSource:m=!0,showTitle:h=!0}={}}={}}=e||{};return(0,n.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,n.jsx)(s,{title:r,showTitle:h,subtitle:a,showSubtitle:d}),u?(0,n.jsx)(IN,{data:t,visualization:l,showLegend:p}):null,!m||!o?null:(0,n.jsx)(i,{showLogo:f,logoSrc:c,source:o,showSource:m})]})};exports.Title=s,exports.VerticalBar=LN;
24
+ `+DM+`
25
+
26
+ `)}function jM(e){return R(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+OM:``)+r.join(OM))}),n.join(`
27
+ `)}).join(`
28
+
29
+ `+DM+`
30
+
31
+ `)}function MM(e){var t=kM(e);return{value:B([AM(t.seriesGroupByCategoryAxis),jM(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
32
+
33
+ `+DM+`
34
+
35
+ `),meta:t.meta}}function NM(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function PM(e){if(e.slice(0,e.indexOf(`
36
+ `)).indexOf(OM)>=0)return!0}var FM=RegExp(`[`+OM+`]+`,`g`);function IM(e){for(var t=e.split(/\n+/g),n=NM(t.shift()).split(FM),r=[],i=R(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=NM(t[a]).split(FM);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function LM(e){for(var t=e.split(/\n+/g),n=NM(t.shift()),r=[],i=0;i<t.length;i++){var a=NM(t[i]);if(a){var o=a.split(FM),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function RM(e,t){var n=e.split(RegExp(`
37
+ *`+DM+`
38
+ *`,`g`)),r={series:[]};return L(n,function(e,n){if(PM(e)){var i=IM(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=LM(e);r.series.push(i)}}),r}var zM=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=MM(e);if(U(l)){var f=l(t.getOption());W(f)?s.innerHTML=f:he(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}wt(_,`click`,b),wt(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){process.env.NODE_ENV!==`production`&&Ho("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var e;try{e=U(u)?u(s,t.getOption()):RM(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(pM);function BM(e,t){return R(e,function(e,n){var r=t&&t[n];if(G(r)&&!H(r)){G(e)&&!H(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=F(e,r),i&&delete e.name,e}return e})}DC({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];L(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(P({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:BM(e.data,i)})}}),t.mergeOption(F({series:n},e.newOption))});var VM=L,HM=ys();function UM(e,t){var n=qM(e);VM(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function WM(e){var t=qM(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return VM(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function GM(e){HM(e).snapshots=null}function KM(e){return qM(e).length}function qM(e){var t=HM(e);return t.snapshots||=[{}],t.snapshots}var JM=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){GM(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(pM);DC({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var YM=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],XM=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=QM(t,e);L($M,function(e,t){(!n||!n.include||I(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=nN[e.brushType](0,n,t);e.__rangeOffset={offset:iN[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){L(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&L(r.coordSyses,function(r){n(e,nN[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){L(e,function(e){var n=this.findTargetInfo(e,t);if(process.env.NODE_ENV!==`production`&&(q(!n||n===!0||e.coordRange,`coordRange must be specified when coord index specified.`),q(!n||n!==!0||e.range,`range must be specified in global brush.`)),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=nN[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?iN[e.brushType](r.values,i.offset,oN(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return R(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Hj(r),isTargetByCursor:Wj(r,e,n.coordSysModel),getLinearBrushOtherExtent:Uj(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&I(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=QM(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<eN.length;s++)if(eN[s](r,a))return a}return!0},e}();function ZM(e){return e[0]>e[1]&&e.reverse(),e}function QM(e,t){return xs(e,t,{includeMainTypes:YM})}var $M={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=J(),o={},s={};!n&&!r&&!i||(L(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),L(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),L(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];L(i.getCartesians(),function(e,t){(I(n,e.getAxis(`x`).model)>=0||I(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:tN.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){L(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:tN.geo})})}},eN=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],tN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=IA(null,e);return rn(t,t,FA(null,e)),t}},nN={lineX:ue(rN,0),lineY:ue(rN,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[ZM([i[0],a[0]]),ZM([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[As(),As()];return{values:R(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function rN(e,t,n,r){process.env.NODE_ENV!==`production`&&q(n.type===`cartesian2d`,`lineX/lineY brush is available only in cartesian2d.`);var i=n.getAxis([`x`,`y`][e]),a=ZM(R([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var iN={lineX:ue(aN,0),lineY:ue(aN,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return R(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function aN(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function oN(e,t){var n=sN(e),r=sN(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function sN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var cN=L,lN=hs(`toolbox-dataZoom_`),uN={x:`width`,y:`height`},dN=function(e){l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new aj(n.getZr()),this._brushController.on(`brush`,le(this._onBrush,this)).mount()),hN(e,t,this,r,n),mN(e,t)},t.prototype.onclick=function(e,t,n){fN[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new XM(pN(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),UM(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=WA(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=xo(d,i[uN[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?Z(o[0],f):o[0],endValue:isFinite(f)?Z(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];cN(e,function(e,n){t.push(M(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(pM),fN={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(WM(this.ecModel))}};function pN(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function mN(e,t){e.setIconStatus(`back`,KM(t)>1?`emphasis`:`normal`)}function hN(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new XM(pN(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}Jg(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=xs(e,pN(r));cN(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),cN(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:lN+t+a};o[n]=a,i.push(o)}return i});function gN(e){e.registerComponentModel(_M),e.registerComponentView(yM),hM(`saveAsImage`,SM),hM(`magicType`,TM),hM(`dataView`,zM),hM(`dataZoom`,dN),hM(`restore`,JM),HE(fM)}var _N=function(e){l(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}(kg);function vN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function yN(e){if(d.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var bN=yN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),xN=yN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function SN(e,t){if(!e)return t;t=Qh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function CN(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var wN=SN(xN,`transition`),TN=SN(bN,`transform`),EN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(d.transform3dSupported?`will-change:transform;`:``);function DN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function ON(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=ag(t);var a=DN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=TN+`:`,l;I([`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 kN(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(d.transformSupported?``+TN+i:`,left`+i+`,top`+i)),wN+`:`+a}function AN(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!d.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=d.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+TN+`:`+o+`;`:[[`top`,0],[`left`,0],[bN,o]]}function jN(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=K(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),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function MN(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=Ey(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(kN(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Qh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(jN(d)),f!=null&&i.push(`padding:`+$h(f).join(`px `)+`px`),i.join(`;`)+`;`}function NN(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&st(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 PN=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,d.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):he(i)?i:U(i)&&i(e.getDom()));NN(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;St(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=CN(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=EN+MN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+AN(i[0],i[1],!0)+(`border-color:`+ag(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(W(i)&&n.get(`trigger`)===`item`&&!vN(n)&&(o=ON(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)he(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(NN(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;L(AN(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`,d.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(le(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;ct(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}(),FN=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),RN(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;G(e)&&qo(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 mu({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:Ey(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),L([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),L([`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=LN(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;RN(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=IN(i.borderWidth||0),o=LN(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(le(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function IN(e){return Math.max(0,e)}function LN(e){var t=IN(e.shadowBlur||0),n=IN(e.shadowOffsetX||0),r=IN(e.shadowOffsetY||0);return{left:IN(t-n),right:IN(t+n),top:IN(t-r),bottom:IN(t+r)}}function RN(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var zN=new lu({shape:{x:-1,y:-1,width:2,height:2}}),BN=function(e){l(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(!(d.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=ks(n.get(`renderMode`));this._tooltipContent=r===`richText`?new FN(t):new PN(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(d.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`)?tb(this,`_updatePosition`,50,`fixRate`):nb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);Zk(`itemTooltip`,this._api,le(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||d.node||!n.getDom())){var i=HN(r,n);this._ticket=``;var a=r.dataByCoordSys,o=qN(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=zN;c.x=r.x,c.y=r.y,c.update(),Ou(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=aA(r,t),u=l.point[0],f=l.point[1];u!=null&&f!=null&&this._tryShow({offsetX:u,offsetY:f,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(HN(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&&VN([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(Ou(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Hb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Ou(e).dataIndex==null?Ou(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=le(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=VN([t.tooltipOption],r),o=this._renderMode,s=[],c=fy(`section`,{blocks:[],noHeader:!0}),l=[],u=new Dy;L(e,function(e){L(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=Lk(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=fy(`section`,{header:f,noHeader:!Ce(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(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=FT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,ag(m.color),o);var h=Ov(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=VN([a],r).get(`valueFormatter`);p.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=vy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
39
+
40
+ `:`<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=Ou(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=VN([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 Dy;h.marker=g.makeTooltipMarker(`item`,ag(h.color),d);var _=Ov(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?vy(y?P({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=Ou(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=ht(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=VN(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Dy;this._showOrMove(d,function(){var n=M(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(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Nh(m.axisValue,d,p)),d=rg(d,n,!0)}else if(U(u)){var g=le(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`||H(t))return{color:r||i};if(!H(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),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=mo(t[0],s),r=mo(t[1],c);else if(G(t)){var p=t;p.width=l[0],p.height=l[1];var m=bg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=GN(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=UN(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=KN(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=KN(d)?l[1]/2:d===`bottom`?l[1]:0),vN(e)){var h=WN(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&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(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&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(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){d.node||!t.getDom()||(nb(this,`_updatePosition`),this._tooltipContent.dispose(),rA(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(Vy);function VN(e,t,n){var r=t.ecModel,i;n?(i=new Km(n,r,r),i=new Km(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Km&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new Km(o,i,r)))}return i}function HN(e,t){return e.dispatchAction||le(t.dispatchAction,t)}function UN(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 WN(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 GN(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 KN(e){return e===`center`||e===`middle`}function qN(e,t,n){var r=Ss(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Ts(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=Ou(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function JN(e){HE(vA),e.registerComponentModel(_N),e.registerComponentView(BN),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Pe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Pe)}function YN(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Tv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Tv(e,t,n[o]));return a.join(` `)}}function XN(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(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(` `)}function ZN(e,t){return e.type===t}function QN(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 lu({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=U(i)?function(e){i(e,d)}:null;yp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function $N(e,t,n){var r=e.getArea(),i=Z(r.r0,1),a=Z(r.r,1),o=new If({shape:{cx:Z(e.cx,1),cy:Z(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,yp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function eP(e,t,n,r,i){return e?e.type===`polar`?$N(e,t,n):e.type===`cartesian2d`?QN(e,t,n,r,i):null:null}var tP={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},nP=function(e){return Math.round(e.length/2)};function rP(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=tP[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,nP))}}}}}var iP=zs(),aP=`__ec_stack_`;function oP(e){return e.get(`stack`)||aP+e.seriesIndex}function sP(e,t){var n=cP(e,t);return n.columnMap=lP(n),n}function cP(e,t){var n=OA(t,ID),r=[],i=fD(e,{fromStat:{key:n},min:1});return rE(e,n,function(e){r.push({barWidth:mo(e.get(`barWidth`),i.w),barMaxWidth:mo(e.get(`barMaxWidth`),i.w),barMinWidth:mo(e.get(`barMinWidth`)||(fP(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:oP(e)})}),{bandWidthResult:i,seriesInfo:r}}function lP(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};L(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Ne(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=no(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??=X(35-o.length*4,15)+`%`;var c=mo(i,t),l=mo(a,1),u=(n-c)/(r+(r-1)*l);u=X(u,0),L(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=no(o,i)),a&&(o=X(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=no(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=X(u,0);var d=0,f;L(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 L(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 uP(e){return{seriesType:e,overallReset:function(t){var n=OA(e,ID);aE(t,n,function(t){process.env.NODE_ENV!==`production`&&q(t instanceof ZD);var r=sP(t,e);rE(t,n,function(e){var t=r.columnMap[oP(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function dP(e){return{seriesType:e,plan:Hy(),reset:function(e){if(NO(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=Cw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(jA(i))),p=fP(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&&SA(r*3),c=p&&s&&SA(r*3),l=p&&SA(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,ro(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,ro(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 fP(e){return e.pipelineContext&&e.pipelineContext.large}function pP(e){return DA(OA(e,ID))}function mP(e){iP(e,function(){function t(t){var n=OA(t,ID);AA(e,n,t,ID),OE(n,pP(t))}t(`bar`),t(`pictorialBar`)})}var hP=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return Dw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(My);My.registerClass(hP);var gP=function(e){l(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Dw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Gs(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Zm(hP.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(hP),_P=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),vP=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new _P},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Yl);function yP(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return wa(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+xP(m,s+_,!1),x=u+p*y(m)+SP(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+xP(m,-s+_,!1),x=u+p*y(m)+SP(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+xP(h,s+_,!0),x=u+p*y(h)+SP(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+xP(h,-s+_,!0),x=u+p*y(h)+SP(h,-s+_,!0),S=`right`,C=`middle`;break;default:return wa(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function bP(e,t,n,r){if(fe(r)){e.setTextConfig({rotation:r});return}if(H(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function xP(e,t,n){return t*Math.sin(e)*(n?-1:1)}function SP(e,t,n){return t*Math.cos(e)*(n?1:-1)}function CP(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:R(r,function(e){return Ca(e,i)})}}var wP=Math.max,TP=Math.min,EP=function(e){l(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&Ho(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){om(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=kP(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=FP[s.type](a,e);if(!t)return null;var n=KP(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=FP[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!PP[s.type](r)))){var o=!1;f&&(o=DP[s.type](p,r));var g=OP[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),RP(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?AP(d,u,g,r,t,l,!1,!1):yp(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=FP[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=FP[s.type](a,t),E=GP(l,T,s);vp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!PP[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=DP[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Cp(D,e,n),D=null),D?wp(D):D=OP[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Nm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else RP(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?AP(d,u,D,C,t,l,!0,x):vp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&Cp(n,e,t)}).execute();var C=this._backgroundGroup||=new Ha;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),HP(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),HP(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&eP(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:R(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Cp(t,e,Ou(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Gy),DP={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=wP(t.x,e.x),s=TP(t.x+t.width,i),c=wP(t.y,e.y),l=TP(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=TP(t.r,e.r),a=wP(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},OP={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new lu({shape:P({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?vP:If,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=yP(LP(i),{isRoundCap:l===vP}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?vp:yp)(u,{shape:p},a)}return u}};function kP(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Ho("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Ho("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function AP(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?vp:yp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?vp:yp)(n,{shape:l},u,i)}function jP(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var MP=[`x`,`y`,`width`,`height`],NP=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],PP={cartesian2d:function(e){return!jP(e,MP)},polar:function(e){return!jP(e,NP)}},FP={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?zP(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function IP(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function LP(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function RP(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;P(u,CP(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?qP(i,a.coordinateSystem):JP(i,a.coordinateSystem),p=Cm(r);Sm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:YN(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,bP(e,h===`outside`?f:h,LP(o),r.get([`label`,`rotate`]))}Pm(m,p,a.getRawValue(n),function(e){return XN(t,e)});var g=r.getModel([`emphasis`]);Id(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Bd(e,r),IP(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function zP(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var BP=function(){function e(){}return e}(),VP=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new BP},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Yl);function HP(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Ws(e):0;if(l){var d=new VP({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new VP({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Ou(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,UP),f.on(`mousemove`,UP)),n&&n.push(f)}var UP=eb(function(e){var t=this,n=WP(t,e.offsetX,e.offsetY);Ou(t).dataIndex=n>=0?n:null},30,!1);function WP(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function GP(e,t,n){if(ZN(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function KP(e,t,n){return new(e.type===`polar`?If:lu)({shape:GP(t,n,e),silent:!0,z2:0})}function qP(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function JP(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function YP(e){e.registerChartView(EP),e.registerSeriesModel(gP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,uP(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dP(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rP(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),mP(e)}var XP=Math.sin,ZP=Math.cos,QP=Math.PI,$P=Math.PI*2,eF=180/QP,tF=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=zr(u-$P)||(l?c>=$P:-c>=$P),f=c>0?c%$P:c%$P+$P,p=!1;p=d?!0:!zr(u)&&f>=QP==!!l;var m=e+n*ZP(a),h=t+r*XP(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*eF);if(d){var _=1/this._p,v=(l?1:-1)*($P-_);this._add(`A`,n,r,g,1,+l,e+n*ZP(a+v),t+r*XP(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*ZP(o),b=t+r*XP(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),nF=`none`,rF=Math.round;function iF(e){var t=e.fill;return t!=null&&t!==nF}function aF(e){var t=e.stroke;return t!=null&&t!==nF}var oF=[`lineCap`,`miterLimit`,`lineJoin`],sF=R(oF,function(e){return`stroke-`+e.toLowerCase()});function cF(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof tu){e(`opacity`,i);return}if(iF(t)){var a=Lr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,nF);if(aF(t)){var s=Lr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=yx(n),p=f[0],m=f[1];p&&(m=rF(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,nF);for(var h=0;h<oF.length;h++){var g=oF[h];if(r||t[g]!==Kl[g]){var _=t[g]||Kl[g];_&&e(sF[h],_)}}}else r&&e(`stroke`,nF)}var lF=`http://www.w3.org/2000/svg`,uF=`http://www.w3.org/1999/xlink`,dF=`http://www.w3.org/2000/xmlns/`,fF=`http://www.w3.org/XML/1998/namespace`,pF=`ecmeta_`;function mF(e){return document.createElementNS(lF,e)}function hF(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function gF(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function _F(e){return`</`+e+`>`}function vF(e,t){t||={};var n=t.newline?`
41
+ `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return gF(i,a)+(i===`style`?o||``:ht(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+_F(i)}return r(e)}function yF(e,t,n){n||={};var r=n.newline?`
42
+ `:``,i=` {`+r,a=r+`}`,o=R(V(e),function(t){return t+i+R(V(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(V(t),function(e){return`@keyframes `+e+i+R(V(t[e]),function(n){return n+i+R(V(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function bF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xF(e,t,n,r){return hF(`svg`,`root`,{width:e,height:t,xmlns:lF,"xmlns:xlink":uF,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var SF=0;function CF(){return SF++}var wF={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},TF=`transform-origin`;function EF(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new tF;return i.reset(ei(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function DF(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[TF]=n+`px `+r+`px`)}var OF={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function kF(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function AF(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=bF(n.zrId);t.animation=!0,MF(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=V(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=kF(i,n);return a.replace(o,s)}}function jF(e){return W(e)?wF[e]?`cubic-bezier(`+wF[e]+`)`:ur(e)?e:``:``}function MF(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof ep){var s=AF(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=jF(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=jF(d.easing),m=d.rawValue;(W(m)||fe(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};ua(g,e),P(g,s[h]);var _=ti(g),v=s[h][u];l[h]=_?{transform:_}:{},DF(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new wl);var S=y.len();y.reset(),l[h].d=EF(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return OF[e]})}for(var w=V(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][TF]!==l[O][TF]){T=!1;break}E=l[D][TF]}if(T&&E){for(var h in l)l[h][TF]&&delete l[h][TF];t[TF]=E}if(B(w,function(e){return V(l[e]).length>0}).length)return kF(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+CF();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function NF(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};PF(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Fr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),PF(r,t,n,!0)}}}function PF(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+CF(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var FF=Math.round;function IF(e){return e&&W(e.src)}function LF(e){return e&&U(e.toDataURL)}function RF(e,t,n,r){cF(function(i,a){var o=i===`fill`||i===`stroke`;o&&Qr(a)?$F(t,e,i,r):o&&Yr(a)?eI(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),QF(n,e,r)}function zF(e,t){var n=Za(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[pF+`silent`]=`true`))}function BF(e){return zr(e[0]-1)&&zr(e[1])&&zr(e[2])&&zr(e[3]-1)}function VF(e){return zr(e[4])&&zr(e[5])}function HF(e,t,n){if(t&&!(VF(t)&&BF(t))){var r=n?10:1e4;e.transform=BF(t)?`translate(`+FF(t[4]*r)/r+` `+FF(t[5]*r)/r+`)`:Hr(t)}}function UF(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(FF(r[a][0]*n)/n),i.push(FF(r[a][1]*n)/n);t.points=i.join(` `)}function WF(e){return!e.smooth}function GF(e){var t=R(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=FF(o*r)/r)}}}var KF={circle:[GF([`cx`,`cy`,`r`])],polyline:[UF,WF],polygon:[UF,WF]};function qF(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function JF(e,t){var n=e.style,r=e.shape,i=KF[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&ei(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&qF(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new tF,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return HF(a,e.transform),RF(a,n,e,t),zF(a,e),t.animation&&MF(e,a,t),t.emphasis&&NF(e,a,t),hF(s,e.id+``,a)}function YF(e,t){var n=e.style,r=n.image;if(r&&!W(r)&&(IF(r)?r=r.src:LF(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),HF(c,e.transform),RF(c,n,e,t),zF(c,e),t.animation&&MF(e,c,t),hF(`image`,e.id+``,c)}}function XF(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Wr(n.y||0,Sa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Ur[n.textAlign]||n.textAlign};if(bu(n)){var c=``,l=n.fontStyle,u=vu(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),HF(s,e.transform),RF(s,n,e,t),zF(s,e),t.animation&&MF(e,s,t),hF(`text`,e.id+``,s,void 0,r)}}function ZF(e,t){if(e instanceof Yl)return JF(e,t);if(e instanceof tu)return YF(e,t);if(e instanceof Zl)return XF(e,t)}function QF(e,t,n){var r=e.style;if(Gr(r)){var i=Kr(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Lr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=hF(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[hF(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=$r(o)}}function $F(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Xr(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Zr(i))a=`radialGradient`,o.cx=K(i.x,.5),o.cy=K(i.y,.5),o.r=K(i.r,.5);else{process.env.NODE_ENV!==`production`&&ne(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=Vr(s[l].offset)*100+`%`,f=s[l].color,p=Lr(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(hF(`stop`,l+``,g))}var _=vF(hF(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=hF(a,y,o,c)),t[n]=$r(y)}function eI(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(qr(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(W(h)?m=h:IF(h)?m=h.src:LF(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;q(f,g),q(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=fc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=hF(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=ti(i);x&&(o.patternTransform=x);var S=hF(`pattern`,``,o,[d]),C=vF(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=hF(`pattern`,T,o,[d])),t[n]=$r(T)}}function tI(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=hF(`clipPath`,a,o,[JF(e,n)])}t[`clip-path`]=$r(a)}function nI(e){return document.createTextNode(e)}function rI(e,t,n){e.insertBefore(t,n)}function iI(e,t){e.removeChild(t)}function aI(e,t){e.appendChild(t)}function oI(e){return e.parentNode}function sI(e){return e.nextSibling}function cI(e,t){e.textContent=t}var lI=58,uI=120,dI=hF(``,``);function fI(e){return e===void 0}function pI(e){return e!==void 0}function mI(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function hI(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function gI(e){var t,n=e.children,r=e.tag;if(pI(r)){var i=e.elm=mF(r);if(yI(dI,e),H(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&aI(i,gI(a))}else pI(e.text)&&!G(e.text)&&aI(i,nI(e.text))}else e.elm=nI(e.text);return e.elm}function _I(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&rI(e,gI(a),t)}}function vI(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(pI(i.tag)?iI(oI(i.elm),i.elm):iI(e,i.elm))}}function yI(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===uI?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(dF,n,o):n.charCodeAt(3)===lI?r.setAttributeNS(fF,n,o):n.charCodeAt(5)===lI?r.setAttributeNS(uF,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function bI(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:hI(o,l)?(xI(o,l),o=t[++r],l=n[++i]):hI(s,u)?(xI(s,u),s=t[--a],u=n[--c]):hI(o,u)?(xI(o,u),rI(e,o.elm,sI(s.elm)),o=t[++r],u=n[--c]):hI(s,l)?(xI(s,l),rI(e,s.elm,o.elm),s=t[--a],l=n[++i]):(fI(d)&&(d=mI(t,r,a)),f=d[l.key],fI(f)?rI(e,gI(l),o.elm):(p=t[f],p.tag===l.tag?(xI(p,l),t[f]=void 0,rI(e,p.elm,o.elm)):rI(e,gI(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,_I(e,m,n,i,c)):vI(e,t,r,a))}function xI(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(yI(e,t),fI(t.text)?pI(r)&&pI(i)?r!==i&&bI(n,r,i):pI(i)?(pI(e.text)&&cI(n,``),_I(n,null,i,0,i.length-1)):pI(r)?vI(n,r,0,r.length-1):pI(e.text)&&cI(n,``):e.text!==t.text&&(pI(r)&&vI(n,r,0,r.length-1),cI(n,t.text)))}function SI(e,t){if(hI(e,t))xI(e,t);else{var n=e.elm,r=oI(n);gI(t),r!==null&&(rI(r,t.elm,sI(n)),vI(r,[e],0,0))}return t}var CI=0,wI=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=TI(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+CI++,this._oldVNode=xF(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=mF(`svg`);yI(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,SI(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return ZF(e,bF(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=bF(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=EI(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=hF(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(V(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(hF(`defs`,`defs`,{},c)),e.animation){var l=yF(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=hF(`style`,`stl`,{},[],l);a.push(u)}}return xF(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},vF(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};tI(d[g],_,t);var v=hF(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=ZF(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=_x(r,0,n),t=_x(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(Yr(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=ni(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function TI(e){return function(){process.env.NODE_ENV!==`production`&&ne(`In SVG mode painter not support method "`+e+`"`)}}function EI(e,t,n,r){var i;if(n&&n!==`none`){if(i=hF(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),Qr(n))$F({fill:n},i.attrs,`fill`,r);else if(Yr(n))eI({style:{fill:n},dirty:Pe,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Lr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function DI(e){e.registerPainter(`svg`,wI)}var OI=({visualization:e,data:t})=>{let{bindings:{y:n=[]}={}}=e||{},{columns:r=[]}=t||{};return r.map((e,t)=>n.includes(e)?t:null).filter(e=>e).map(e=>e?r[e]:null).filter(e=>e!==null)},kI=({visualization:e,data:t})=>{let{bindings:{x:n=``}={}}=e||{},{columns:r=[],rows:i=[]}=t||{},a=r.map((e,t)=>n===e?t:null).filter(e=>e!==null)[0]??null;return i.map(e=>a===null?null:e[a]).filter(e=>e!==null)},AI=({visualization:e={},data:t={}})=>{let{bindings:{y:n=[]}={},series:r=[]}=e||{},{columns:i=[],rows:a=[]}=t||{},o=i.map((e,t)=>n.includes(e)?t:null).filter(e=>e),s=r.some(({key:e})=>a.some(t=>t.includes(e)))||!1,c=r.some(({key:e})=>i.includes(e))||!1,l=n.map((e,t)=>{let n=o[t]||null;return{name:e,data:a.map(e=>n&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`bar`,stack:t+1,itemStyle:{borderRadius:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}},showBackground:!0,backgroundStyle:{color:`rgba(175, 175, 175, 0.1)`,borderRadius:[16,16,0,0]}}}),u=kI({visualization:e,data:t}),d=OI({visualization:e,data:t});return l.map(e=>{let{stack:t=0,data:n=[]}=e||{},i=n.map((e,t)=>{let n=u[t];return{value:e,itemStyle:{color:r.find(({key:e})=>e===n)?.color||`var(--orange-90)`}}}),a=s?i:n,o=d[t-1],l=r.find(({key:e})=>e===o)?.color||`var(--orange-90)`,f=c?l:null;return{...e,color:f,data:a,emphasis:{...e.emphasis,itemStyle:{...e.emphasis.itemStyle,color:f}}}})},jI=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};HE([yA,JN,gN,YP,DI]);var MI=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=AI({visualization:e,data:t}),c=kI({visualization:e,data:t}),{series:l=[]}=e||{},u=jI({xData:c,series:l});return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=yC(a.current,void 0,{renderer:`svg`});let e=[...s],t={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};u.forEach(({image:e},n)=>{e&&(t[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let n={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},toolbox:{feature:{saveAsImage:{type:`png`,name:`grafico`,pixelRatio:2}}},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,n)=>{let r=`img_${n}`;return t[r]?`{valueStyle|${e}}\n{${r}|}`:`{valueStyle|${e}}`},rich:t}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:e};o.current.setOption(n);let r=new ResizeObserver(()=>{o.current?.resize()});return r.observe(a.current),()=>{r.disconnect(),o.current?.dispose(),o.current=null}},[s,c,u]),(0,n.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:a,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},NI=({data:e={}})=>{let{data:t={},metadata:{title:r=``,description:a=``,source:o=``,image:c=void 0}={},visualization:l={},visualization:{settings:{showChart:u=!0,showDescription:d=!0,showImage:f=!0,showLegend:p=!0,showSource:m=!0,showTitle:h=!0}={}}={}}=e||{};return(0,n.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,n.jsx)(s,{title:r,showTitle:h,subtitle:a,showSubtitle:d}),u?(0,n.jsx)(MI,{data:t,visualization:l,showLegend:p}):null,!m||!o?null:(0,n.jsx)(i,{showLogo:f,logoSrc:c,source:o,showSource:m})]})};exports.Title=s,exports.VerticalBar=NI;