@datosgeo-atdt/core-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/core-ui.css +1 -0
- package/dist/index.cjs.js +26 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +22332 -0
- package/dist/index.es.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zh=require("react/jsx-runtime"),yn=require("react");var vl=function(r,t){return vl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},vl(r,t)};function B(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var F0=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),z0=(function(){function r(){this.browser=new F0,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 r})(),J=new z0;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(J.wxa=!0,J.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?J.worker=!0:!J.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(J.node=!0,J.svgSupported=!0):H0(navigator.userAgent,J);function H0(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in u||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var Of=12,G0="sans-serif",Dr=Of+"px "+G0,W0=20,U0=100,Y0="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function X0(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-W0)/U0;t[i]=n}return t}var $0=X0(Y0),ar={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=ar.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Dr),r.measureText(e);e=e||"",i=i||Dr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Of,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=$0[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},Up=vn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Yp=vn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),cn=Object.prototype.toString,ys=Array.prototype,Z0=ys.forEach,q0=ys.filter,Nf=ys.slice,K0=ys.map,qh=(function(){}).constructor,Da=qh?qh.prototype:null,Rf="__proto__",Q0=2311;function Xp(){return Q0++}function ci(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var t=r,e=cn.call(r);if(e==="[object Array]"){if(!Yn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=rt(r[i])}}else if(Yp[e]){if(!Yn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!Up[e]&&!Yn(r)&&!Ji(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Rf&&(t[o]=rt(r[o]))}return t}function lt(r,t,e){if(!X(t)||!X(r))return e?rt(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Rf){var n=r[i],a=t[i];X(a)&&X(n)&&!F(a)&&!F(n)&&!Ji(a)&&!Ji(n)&&!Kh(a)&&!Kh(n)&&!Yn(a)&&!Yn(n)?lt(n,a,e):(e||!(i in r))&&(r[i]=rt(t[i]))}return r}function R(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Rf&&(r[e]=t[e]);return r}function ct(r,t,e){for(var i=mt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function st(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function J0(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ue(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else ct(r,t)}function Jt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Z0)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function q(r,t,e){if(!r)return[];if(!t)return kf(r);if(r.map&&r.map===K0)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function vn(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function At(r,t,e){if(!r)return[];if(!t)return kf(r);if(r.filter&&r.filter===q0)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function j0(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function mt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function t_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Nf.call(arguments)))}}var dt=Da&&K(Da.bind)?Da.call.bind(Da.bind):t_;function Ct(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Nf.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):cn.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function U(r){return typeof r=="string"}function Po(r){return cn.call(r)==="[object String]"}function pt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Kh(r){return!!Up[cn.call(r)]}function Wt(r){return!!Yp[cn.call(r)]}function Ji(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function _s(r){return r.colorStops!=null}function e_(r){return r.image!=null}function r_(r){return cn.call(r)==="[object RegExp]"}function ji(r){return r!==r}function tn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function Z(r,t){return r??t}function xr(r,t,e){return r??t??e}function kf(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Nf.apply(r,t)}function Bf(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function $(r,t){if(!r)throw new Error(t)}function Ne(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $p="__ec_primitive__";function dl(r){r[$p]=!0}function Yn(r){return r[$p]}var i_=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),Zp=typeof Map=="function";function n_(){return Zp?new Map:new i_}var a_=(function(){function r(t){var e=F(t);this.data=n_();var i=this;t instanceof r?t.each(n):t&&T(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Zp?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function et(r){return new a_(r)}function o_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Ss(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&R(e,t),e}function qp(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function be(r,t){return r.hasOwnProperty(t)}function Qt(){}var s_=180/Math.PI;function dn(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function u_(r){return[r[0],r[1]]}function Qh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function l_(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function f_(r){return Math.sqrt(h_(r))}function h_(r){return r[0]*r[0]+r[1]*r[1]}function Ys(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function c_(r,t){var e=f_(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function pl(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var v_=pl;function d_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var qi=d_;function me(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Wi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ui(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Ti=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),p_=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ti(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Ti(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Ti(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Ti(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ti(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ti(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ye=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),g_=Math.log(2);function gl(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/g_);return r[e][u]}for(var l=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*gl(r,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function Jh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=gl(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*gl(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var Oo="___zrEVENTSAVED",Xs=[];function m_(r,t,e,i,n){return ml(Xs,t,i,n,!0)&&ml(r,e,Xs[0],Xs[1])}function y_(r,t){r&&e(r),t&&e(t);function e(i){var n=i[Oo];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Oo])}}function ml(r,t,e,i,n){if(t.getBoundingClientRect&&J.domSupported&&!Kp(t)){var a=t[Oo]||(t[Oo]={}),o=__(t,a),s=S_(o,a,n);if(s)return s(r,e,i),!0}return!1}function __(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=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",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){T(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function S_(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?Jh(s,o):Jh(o,s))}function Kp(r){return r.nodeName.toUpperCase()==="CANVAS"}var b_=/([&<>"'])/g,x_={"&":"&","<":"<",">":">",'"':""","'":"'"};function $t(r){return r==null?"":(r+"").replace(b_,function(t,e){return x_[e]})}var w_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$s=[],T_=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function yl(r,t,e,i){return e=e||{},i?jh(r,t,e):T_&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):jh(r,t,e),e}function jh(r,t,e){if(J.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Kp(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(ml($s,r,i,n)){e.zrX=$s[0],e.zrY=$s[1];return}}e.zrX=e.zrY=0}function Vf(r){return r||window.event}function le(r,t,e){if(t=Vf(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&yl(r,o,t,e)}else{yl(r,t,t,e);var a=C_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&w_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function C_(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function D_(r,t,e,i){r.addEventListener(t,e,i)}function M_(r,t,e,i){r.removeEventListener(t,e,i)}var Qp=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},A_=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=yl(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Zs)if(Zs.hasOwnProperty(e)){var i=Zs[e](this._track,t);if(i)return i}},r})();function tc(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function E_(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zs={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=tc(i)/tc(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=E_(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ir(){return[1,0,0,1,0,0]}function Ff(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Jp(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Xn(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function _l(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function zf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-i[0])+f*(l-i[1])+i[0],r[5]=h*(l-i[1])-f*(o-i[0])+i[1],r}function L_(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function _a(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var vt=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),ui=Math.min,Yi=Math.max,Sl=Math.abs,ec=["x","y"],I_=["width","height"],kr=new vt,Br=new vt,Vr=new vt,Fr=new vt,ee=jp(),Bn=ee.minTv,bl=ee.maxTv,$n=[0,0],tt=(function(){function r(t,e,i,n){r.set(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=ui(t.x,this.x),i=ui(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yi(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yi(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=ir();return _l(a,a,[-e.x,-e.y]),L_(a,a,[i,n]),_l(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&vt.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=r.set(P_,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(O_,e.x,e.y,e.width,e.height));var s=!!i;ee.reset(n,s);var u=ee.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,c=t.y+t.height-u,v=e.x+u,d=e.x+e.width-u,g=e.y+u,m=e.y+e.height-u;if(l>f||h>c||v>d||g>m)return!1;var p=!(f<v||d<l||c<g||m<h);return(s||a)&&($n[0]=1/0,$n[1]=0,rc(l,f,v,d,0,s,a,o),rc(h,c,g,m,1,s,a,o),s&&vt.copy(i,p?ee.useDir?ee.dirMinTv:Bn:bl)),p},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}kr.x=Vr.x=e.x,kr.y=Fr.y=e.y,Br.x=Fr.x=e.x+e.width,Br.y=Vr.y=e.y+e.height,kr.transform(i),Fr.transform(i),Br.transform(i),Vr.transform(i),t.x=ui(kr.x,Br.x,Vr.x,Fr.x),t.y=ui(kr.y,Br.y,Vr.y,Fr.y);var u=Yi(kr.x,Br.x,Vr.x,Fr.x),l=Yi(kr.y,Br.y,Vr.y,Fr.y);t.width=u-t.x,t.height=l-t.y},r})(),P_=new tt(0,0,0,0),O_=new tt(0,0,0,0);function rc(r,t,e,i,n,a,o,s){var u=Sl(t-e),l=Sl(i-r),f=ui(u,l),h=ec[n],c=ec[1-n],v=I_[n];t<e||i<r?u<l?(a&&(bl[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(bl[h]=l),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=Yi(r,e),o[v]=ui(t,i)-o[h]),a&&(f<$n[0]||ee.useDir)&&($n[0]=ui(f,$n[0]),(u<l||!ee.bidirectional)&&(Bn[h]=u,Bn[c]=0,ee.useDir&&ee.calcDirMTV()),(u>=l||!ee.bidirectional)&&(Bn[h]=-l,Bn[c]=0,ee.useDir&&ee.calcDirMTV())))}function jp(){var r=0,t=new vt,e=new vt,i={minTv:new vt,maxTv:new vt,useDir:!1,dirMinTv:new vt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Yi(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(r),l=Math.cos(r),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*l/f,e.y=s*u/f,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Sl(a)<1e-10}return i}var tg="silent";function N_(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:R_}}function R_(){Qp(this.event)}var k_=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ye),_n=(function(){function r(t,e){this.x=t,this.y=e}return r})(),B_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qs=new tt(0,0,0,0),eg=(function(r){B(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new _n(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new k_,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new p_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(B_,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=rg(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new _n(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new _n(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=N_(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new _n(e,i);if(ic(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new tt(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(qs.copy(c.getBoundingRect()),c.transform&&qs.applyTransform(c.transform),qs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,m=0;m<l;m+=v)for(var p=0;p<g;p+=d){var y=e+m*Math.cos(p),_=i+m*Math.sin(p);if(ic(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new A_);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new _n;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Ye);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){eg.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=rg(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||v_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function V_(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?tg:!0}return!1}function ic(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=V_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==tg)){t.target=o;break}}}function rg(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var ig=32,Sn=7;function F_(r){for(var t=0;r>=ig;)t|=r&1,r>>=1;return r+t}function nc(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;z_(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function z_(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function ac(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function Ks(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u<s&&a(r,t[e+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(r,t[e+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Qs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;u<s&&a(r,t[e+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(r,t[e+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function H_(r,t){var e=Sn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],g=n[v],m=i[v+1],p=n[v+1];n[v]=g+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var y=Qs(r[m],r,d,g,0,t);d+=y,g-=y,g!==0&&(p=Ks(r[d+g-1],r,m,p,p-1,t),p!==0&&(g<=p?h(d,g,m,p):c(d,g,m,p)))}function h(v,d,g,m){var p=0;for(p=0;p<d;p++)o[p]=r[v+p];var y=0,_=g,S=v;if(r[S++]=r[_++],--m===0){for(p=0;p<d;p++)r[S+p]=o[y+p];return}if(d===1){for(p=0;p<m;p++)r[S+p]=r[_+p];r[S+m]=o[y];return}for(var x=e,b,w,C;;){b=0,w=0,C=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],w++,b=0,--m===0){C=!0;break}}else if(r[S++]=o[y++],b++,w=0,--d===1){C=!0;break}while((b|w)<x);if(C)break;do{if(b=Qs(r[_],o,y,d,0,t),b!==0){for(p=0;p<b;p++)r[S+p]=o[y+p];if(S+=b,y+=b,d-=b,d<=1){C=!0;break}}if(r[S++]=r[_++],--m===0){C=!0;break}if(w=Ks(o[y],r,_,m,0,t),w!==0){for(p=0;p<w;p++)r[S+p]=r[_+p];if(S+=w,_+=w,m-=w,m===0){C=!0;break}}if(r[S++]=o[y++],--d===1){C=!0;break}x--}while(b>=Sn||w>=Sn);if(C)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(p=0;p<m;p++)r[S+p]=r[_+p];r[S+m]=o[y]}else{if(d===0)throw new Error;for(p=0;p<d;p++)r[S+p]=o[y+p]}}function c(v,d,g,m){var p=0;for(p=0;p<m;p++)o[p]=r[g+p];var y=v+d-1,_=m-1,S=g+m-1,x=0,b=0;if(r[S--]=r[y--],--d===0){for(x=S-(m-1),p=0;p<m;p++)r[x+p]=o[p];return}if(m===1){for(S-=d,y-=d,b=S+1,x=y+1,p=d-1;p>=0;p--)r[b+p]=r[x+p];r[S]=o[_];return}for(var w=e;;){var C=0,M=0,A=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],C++,M=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],M++,C=0,--m===1){A=!0;break}while((C|M)<w);if(A)break;do{if(C=d-Qs(o[_],r,v,d,d-1,t),C!==0){for(S-=C,y-=C,d-=C,b=S+1,x=y+1,p=C-1;p>=0;p--)r[b+p]=r[x+p];if(d===0){A=!0;break}}if(r[S--]=o[_--],--m===1){A=!0;break}if(M=m-Ks(r[y],o,0,m,m-1,t),M!==0){for(S-=M,_-=M,m-=M,b=S+1,x=_+1,p=0;p<M;p++)r[b+p]=o[x+p];if(m<=1){A=!0;break}}if(r[S--]=r[y--],--d===0){A=!0;break}w--}while(C>=Sn||M>=Sn);if(A)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),m===1){for(S-=d,y-=d,b=S+1,x=y+1,p=d-1;p>=0;p--)r[b+p]=r[x+p];r[S]=o[_]}else{if(m===0)throw new Error;for(x=S-(m-1),p=0;p<m;p++)r[x+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function yo(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<ig){a=nc(r,e,i,t),ac(r,e,i,e+a,t);return}var o=H_(r,t),s=F_(n);do{if(a=nc(r,e,i,t),a<s){var u=n;u>s&&(u=s),ac(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var re=1,Vn=2,Gi=4,oc=!1;function Js(){oc||(oc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function sc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var G_=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=sc}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,yo(i,sc)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<e.length;u++)s[o++]=e[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=re),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Js(),d.z=0),isNaN(d.z2)&&(Js(),d.z2=0),isNaN(d.zlevel)&&(Js(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=st(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),No;No=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Zn={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Zn.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Zn.bounceIn(r*2)*.5:Zn.bounceOut(r*2-1)*.5+.5}},Ma=Math.pow,wr=Math.sqrt,Ro=1e-8,ng=1e-4,uc=wr(3),Aa=1/3,Oe=dn(),ce=dn(),Ki=dn();function Sr(r){return r>-Ro&&r<Ro}function ag(r){return r>Ro||r<-Ro}function Pt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function lc(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function ko(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Sr(f)&&Sr(h))if(Sr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Sr(g)){var m=h/f,d=-s/o+m,p=-m/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(g>0){var y=wr(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-Ma(-_,Aa):_=Ma(_,Aa),S<0?S=-Ma(-S,Aa):S=Ma(S,Aa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*h)/(2*wr(f*f*f)),b=Math.acos(x)/3,w=wr(f),C=Math.cos(b),d=(-s-2*w*C)/(3*o),p=(-s+w*(C+uc*Math.sin(b)))/(3*o),M=(-s+w*(C-uc*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),M>=0&&M<=1&&(a[v++]=M)}}return v}function og(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,u=0;if(Sr(o)){if(ag(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(Sr(f))n[0]=-a/(2*o);else if(f>0){var h=wr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function Bo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function W_(r,t,e,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,m,p;Oe[0]=u,Oe[1]=l;for(var y=0;y<1;y+=.05)ce[0]=Pt(r,e,n,o,y),ce[1]=Pt(t,i,a,s,y),m=qi(Oe,ce),m<v&&(h=y,v=m);v=1/0;for(var _=0;_<32&&!(c<ng);_++)d=h-c,g=h+c,ce[0]=Pt(r,e,n,o,d),ce[1]=Pt(t,i,a,s,d),m=qi(ce,Oe),d>=0&&m<v?(h=d,v=m):(Ki[0]=Pt(r,e,n,o,g),Ki[1]=Pt(t,i,a,s,g),p=qi(Ki,Oe),g<=1&&p<v?(h=g,v=p):c*=.5);return wr(v)}function U_(r,t,e,i,n,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=Pt(r,e,n,o,d),m=Pt(t,i,a,s,d),p=g-l,y=m-f;h+=Math.sqrt(p*p+y*y),l=g,f=m}return h}function Zt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function fc(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Y_(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,u=0;if(Sr(a)){if(ag(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(Sr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=wr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function sg(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Vo(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function X_(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;Oe[0]=o,Oe[1]=s;for(var c=0;c<1;c+=.05){ce[0]=Zt(r,e,n,c),ce[1]=Zt(t,i,a,c);var v=qi(Oe,ce);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<ng);d++){var g=l-f,m=l+f;ce[0]=Zt(r,e,n,g),ce[1]=Zt(t,i,a,g);var v=qi(ce,Oe);if(g>=0&&v<h)l=g,h=v;else{Ki[0]=Zt(r,e,n,m),Ki[1]=Zt(t,i,a,m);var p=qi(Ki,Oe);m<=1&&p<h?(l=m,h=p):f*=.5}}return wr(h)}function $_(r,t,e,i,n,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Zt(r,e,n,c),d=Zt(t,i,a,c),g=v-s,m=d-u;l+=Math.sqrt(g*g+m*m),s=v,u=d}return l}var Z_=/cubic-bezier\(([0-9,\.e ]+)\)/;function ug(r){var t=r&&Z_.exec(r);if(t){var e=t[1].split(","),i=+Ne(e[0]),n=+Ne(e[1]),a=+Ne(e[2]),o=+Ne(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:ko(0,i,a,1,u,s)&&Pt(0,n,o,1,s[0])}}}var q_=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Qt,this.ondestroy=t.ondestroy||Qt,this.onrestart=t.onrestart||Qt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:Zn[t]||ug(t)},r})(),lg=(function(){function r(t){this.value=t}return r})(),K_=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new lg(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),en=(function(){function r(t){this._list=new K_,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new lg(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),hc={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 Tr(r){return r=Math.round(r),r<0?0:r>255?255:r}function xl(r){return r<0?0:r>1?1:r}function js(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Tr(parseFloat(t)/100*255):Tr(parseInt(t,10))}function vi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?xl(parseFloat(t)/100):xl(parseFloat(t))}function tu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ea(r,t,e){return r+(t-r)*e}function ue(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function wl(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var fg=new en(20),La=null;function Ci(r,t){La&&wl(La,t),La=fg.put(r,La||t.slice())}function Be(r,t){if(r){t=t||[];var e=fg.get(r);if(e)return wl(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in hc)return wl(t,hc[i]),Ci(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ue(t,0,0,0,1);return}return ue(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ci(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ue(t,0,0,0,1);return}return ue(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ci(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ue(t,+l[0],+l[1],+l[2],1):ue(t,0,0,0,1);f=vi(l.pop());case"rgb":if(l.length>=3)return ue(t,js(l[0]),js(l[1]),js(l[2]),l.length===3?f:vi(l[3])),Ci(r,t),t;ue(t,0,0,0,1);return;case"hsla":if(l.length!==4){ue(t,0,0,0,1);return}return l[3]=vi(l[3]),Tl(l,t),Ci(r,t),t;case"hsl":if(l.length!==3){ue(t,0,0,0,1);return}return Tl(l,t),Ci(r,t),t;default:return}}ue(t,0,0,0,1)}}function Tl(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=vi(r[1]),n=vi(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ue(t,Tr(tu(o,a,e+1/3)*255),Tr(tu(o,a,e)*255),Tr(tu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Q_(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?u=c-h:e===a?u=1/3+f-c:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return r[3]!=null&&v.push(r[3]),v}}function cc(r,t){var e=Be(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Sa(e,e.length===4?"rgba":"rgb")}}function J_(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Be(t[n]),s=Be(t[a]),u=i-n,l=Sa([Tr(Ea(o[0],s[0],u)),Tr(Ea(o[1],s[1],u)),Tr(Ea(o[2],s[2],u)),xl(Ea(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Cl(r,t,e,i){var n=Be(r);if(r)return n=Q_(n),e!=null&&(n[1]=vi(K(e)?e(n[1]):e)),i!=null&&(n[2]=vi(K(i)?i(n[2]):i)),Sa(Tl(n),"rgba")}function Sa(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Fo(r,t){var e=Be(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var vc=new en(100);function dc(r){if(U(r)){var t=vc.get(r);return t||(t=cc(r,-.1),vc.put(r,t)),t}else if(_s(r)){var e=R({},r);return e.colorStops=q(r.colorStops,function(i){return{offset:i.offset,color:cc(i.color,-.1)}}),e}return r}function j_(r){return r.type==="linear"}function t1(r){return r.type==="radial"}(function(){return J.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return process.env.NODE_ENV!=="production"&&ci("Base64 isn't natively supported in the current environment."),null}})();var Dl=Array.prototype.slice;function Je(r,t,e){return(t-r)*e+r}function eu(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Je(t[a],e[a],i);return r}function e1(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Je(t[o][s],e[o][s],i)}return r}function Ia(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function pc(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function r1(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function i1(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(e===1?n[u]:Dl.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(e===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function _o(r){if(Jt(r)){var t=r.length;if(Jt(r[0])){for(var e=[],i=0;i<t;i++)e.push(Dl.call(r[i]));return e}return Dl.call(r)}return r}function So(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function n1(r){return Jt(r&&r[0])?2:1}var Pa=0,bo=1,hg=2,Fn=3,Ml=4,Al=5,gc=6;function mc(r){return r===Ml||r===Al}function Oa(r){return r===bo||r===hg}var bn=[0,0,0,0],a1=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=gc,u=e;if(Jt(e)){var l=n1(e);s=l,(l===1&&!pt(e[0])||l===2&&!pt(e[0][0]))&&(o=!0)}else if(pt(e)&&!ji(e))s=Pa;else if(U(e))if(!isNaN(+e))s=Pa;else{var f=Be(e);f&&(u=f,s=Fn)}else if(_s(e)){var h=R({},u);h.colorStops=q(e.colorStops,function(v){return{offset:v.offset,color:Be(v.color)}}),j_(e)?s=Ml:t1(e)&&(s=Al),u=h}a===0?this.valType=s:(s!==this.valType||s===gc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=K(i)?i:Zn[i]||ug(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,m){return g.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=Oa(n),l=mc(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?i1(c,v,n):l&&r1(c.colorStops,v.colorStops))}if(!s&&n!==Al&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===Pa?i[f].additiveValue=i[f].value-d:n===Fn?i[f].additiveValue=Ia([],i[f].value,d,-1):Oa(n)&&(i[f].additiveValue=n===bo?Ia([],i[f].value,d,-1):pc([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Fn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var m=d.percent-v.percent,p=m===0?1:c((e-v.percent)/m,1);d.easingFunc&&(p=d.easingFunc(p));var y=i?this._additiveValue:l?bn:t[u];if((Oa(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=p<1?v.rawValue:d.rawValue;else if(Oa(a))a===bo?eu(y,v[n],d[n],p):e1(y,v[n],d[n],p);else if(mc(a)){var _=v[n],S=d[n],x=a===Ml;t[u]={type:x?"linear":"radial",x:Je(_.x,S.x,p),y:Je(_.y,S.y,p),colorStops:q(_.colorStops,function(w,C){var M=S.colorStops[C];return{offset:Je(w.offset,M.offset,p),color:So(eu([],w.color,M.color,p))}}),global:S.global},x?(t[u].x2=Je(_.x2,S.x2,p),t[u].y2=Je(_.y2,S.y2,p)):t[u].r=Je(_.r,S.r,p)}else if(l)eu(y,v[n],d[n],p),i||(t[u]=So(y));else{var b=Je(v[n],d[n],p);i?this._additiveValue=b:t[u]=b}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Pa?t[i]=t[i]+n:e===Fn?(Be(t[i],bn),Ia(bn,bn,n,1),t[i]=So(bn)):e===bo?Ia(t[i],t[i],n,1):e===hg&&pc(t[i],t[i],n,1)},r})(),Hf=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){ci("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,mt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new a1(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Fn&&l&&(l=So(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,_o(l),n),this._trackKeys.push(s)}u.addKeyframe(t,_o(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new q_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,m=0;m<d.length;m++)if(d[m]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(e._target,v);var p=e._onframeCbs;if(p)for(var m=0;m<p.length;m++)p[m](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return q(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=_o(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||mt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})();function Xi(){return new Date().getTime()}var o1=(function(r){B(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}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 i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Xi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(No(i),!e._paused&&e.update())}No(i)},t.prototype.start=function(){this._running||(this._time=Xi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Xi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Xi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Hf(e,i.loop);return this.addAnimator(n),n},t})(Ye),s1=300,ru=J.domSupported,iu=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=q(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),yc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_c=!1;function El(r){var t=r.pointerType;return t==="pen"||t==="touch"}function u1(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function nu(r){r&&(r.zrByTouch=!0)}function l1(r,t){return le(r.dom,new f1(r,t),!0)}function cg(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var f1=(function(){function r(t,e){this.stopPropagation=Qt,this.stopImmediatePropagation=Qt,this.preventDefault=Qt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),_e={mousedown:function(r){r=le(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=le(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=le(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=le(this.dom,r);var t=r.toElement||r.relatedTarget;cg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){_c=!0,r=le(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){_c||(r=le(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=le(this.dom,r),nu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_e.mousemove.call(this,r),_e.mousedown.call(this,r)},touchmove:function(r){r=le(this.dom,r),nu(r),this.handler.processGesture(r,"change"),_e.mousemove.call(this,r)},touchend:function(r){r=le(this.dom,r),nu(r),this.handler.processGesture(r,"end"),_e.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<s1&&_e.click.call(this,r)},pointerdown:function(r){_e.mousedown.call(this,r)},pointermove:function(r){El(r)||_e.mousemove.call(this,r)},pointerup:function(r){_e.mouseup.call(this,r)},pointerout:function(r){El(r)||_e.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){_e[r]=function(t){t=le(this.dom,t),this.trigger(r,t)}});var Ll={pointermove:function(r){El(r)||Ll.mousemove.call(this,r)},pointerup:function(r){Ll.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function h1(r,t){var e=t.domHandlers;J.pointerEventsSupported?T(iu.pointer,function(i){xo(t,i,function(n){e[i].call(r,n)})}):(J.touchEventsSupported&&T(iu.touch,function(i){xo(t,i,function(n){e[i].call(r,n),u1(t)})}),T(iu.mouse,function(i){xo(t,i,function(n){n=Vf(n),t.touching||e[i].call(r,n)})}))}function c1(r,t){J.pointerEventsSupported?T(yc.pointer,e):J.touchEventsSupported||T(yc.mouse,e);function e(i){function n(a){a=Vf(a),cg(r,a.target)||(a=l1(r,a),t.domHandlers[i].call(r,a))}xo(t,i,n,{capture:!0})}}function xo(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,D_(r.domTarget,t,e,i)}function au(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&M_(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Sc=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),v1=(function(r){B(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Sc(e,_e),ru&&(n._globalHandlerScope=new Sc(document,Ll)),h1(n,n._localHandlerScope),n}return t.prototype.dispose=function(){au(this._localHandlerScope),ru&&au(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,ru&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?c1(this,i):au(i)}},t})(Ye),vg=1;J.hasGlobalWindow&&(vg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zo=vg,Il=.4,Pl="#333",Ol="#ccc",d1="#eee",bc=Ff,xc=5e-5;function zr(r){return r>xc||r<-xc}var Hr=[],Di=[],ou=ir(),su=Math.abs,Gf=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return zr(this.rotation)||zr(this.x)||zr(this.y)||zr(this.scaleX-1)||zr(this.scaleY-1)||zr(this.skewX)||zr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(bc(i),this.invTransform=null);return}i=i||ir(),e?this.getLocalTransform(i):bc(i),t&&(e?Xn(i,t,i):Jp(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Hr);var i=Hr[0]<0?-1:1,n=Hr[1]<0?-1:1,a=((Hr[0]-i)*e+i)/Hr[0]||0,o=((Hr[1]-n)*e+n)/Hr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ir(),_a(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ir(),Xn(Di,t.invTransform,e),e=Di);var i=this.originX,n=this.originY;(i||n)&&(ou[4]=i,ou[5]=n,Xn(Di,e,ou),Di[4]-=i,Di[5]-=n,e=Di),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&me(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&me(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&su(t[0]-1)>1e-10&&su(t[3]-1)>1e-10?Math.sqrt(su(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Nl(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,g=n+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&zf(e,e,l),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=(function(){var t=r.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})(),r})(),na=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nl(r,t){for(var e=0;e<na.length;e++){var i=na[e];r[i]=t[i]}}function Ve(r){Na||(Na=new en(100)),r=r||Dr;var t=Na.get(r);return t||(t={font:r,strWidthCache:new en(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ar.measureText("国",r).width,asciiCharWidth:ar.measureText("a",r).width},Na.put(r,t)),t}var Na;function p1(r){if(!(uu>=wc)){r=r||Dr;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=ar.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?uu=wc:n>2&&uu++,t}}var uu=0,wc=5;function dg(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=p1(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Fe(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=ar.measureText(t,r.font).width,e.put(t,i)),i}function Tc(r,t,e,i){var n=Fe(Ve(t),r),a=bs(t),o=rn(0,n,e),s=di(0,a,i),u=new tt(o,s,n,a);return u}function pg(r,t,e,i){var n=((r||"")+"").split(`
|
|
2
|
+
`),a=n.length;if(a===1)return Tc(n[0],t,e,i);for(var o=new tt(0,0,0,0),s=0;s<n.length;s++){var u=Tc(n[s],t,e,i);s===0?o.copy(u):o.union(u)}return o}function rn(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function di(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function bs(r){return Ve(r).stWideCharWidth}function Mr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ho(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=Mr(i[0],e.width),l+=Mr(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var lu="__zr_normal__",fu=na.concat(["ignore"]),g1=vn(na,function(r,t){return r[t]=!0,r},{ignore:!1}),Mi={},m1=new tt(0,0,0,0),Ra=[],xs=(function(){function r(t){this.id=Xp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(e);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=m1,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Mi,i,c):Ho(Mi,i,c),a.x=Mi.x,a.y=Mi.y,o=Mi.align,s=Mi.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=c.width*.5,g=c.height*.5):(d=Mr(v[0],c.width),g=Mr(v[1],c.height)),l=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+g+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],l||(a.originX=-m[0],a.originY=-m[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=p.overflowRect=p.overflowRect||new tt(0,0,0,0);a.getLocalTransform(Ra),_a(Ra,Ra),tt.copy(y,c),y.applyTransform(Ra)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=i.insideFill,x=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=i.outsideFill,x=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==p.fill||x!==p.stroke||b!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=S,p.stroke=x,p.autoStroke=b,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=re,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ol:Pl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Be(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Sa(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},R(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(X(t))for(var i=t,n=mt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==lu)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,fu)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(lu,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===lu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(st(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ci("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~re),l}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,c),m&&m.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~re)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=st(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=st(n,t),o=st(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];R(e,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<fu.length;f++){var h=fu[f],c=a&&g1[h];e&&e[h]!=null?c?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new Gf,this._attachComponent(t),this._textContent=t,this.markRedraw()}},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=re;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!n){ci('Property "'+t+'" is not existed in element '+this.id);return}var a=new Hf(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=st(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){hu(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){hu(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=hu(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=re;var e={};function i(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function n(a,o,s,u){Object.defineProperty(t,a,{get:function(){if(process.env.NODE_ENV!=="production"&&i(a,s,u),!this[o]){var f=this[o]=[];l(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&i(a,s,u),this[s]=f[0],this[u]=f[1],this[o]=f,l(this,f)}});function l(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[u]},set:function(c){f[u]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();Ue(xs,Ye);Ue(xs,Gf);function hu(r,t,e,i,n){e=e||{};var a=[];gg(r,"",r,t,e,i,a,n);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function cu(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function y1(r){return Jt(r[0])}function _1(r,t,e){if(Jt(t[e]))if(Jt(r[e])||(r[e]=[]),Wt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),cu(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(y1(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?cu(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else cu(a,n,o);a.length=n.length}else r[e]=t[e]}function S1(r,t){return r===t||Jt(r)&&Jt(t)&&b1(r,t)}function b1(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function gg(r,t,e,i,n,a,o,s){for(var u=mt(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!X(a),d=r.animators,g=[],m=0;m<u.length;m++){var p=u[m],y=i[p];if(y!=null&&e[p]!=null&&(v||a[p]))if(X(y)&&!Jt(y)&&!_s(y)){if(t){s||(e[p]=y,r.updateDuringAnimation(t));continue}gg(r,p,e[p],y,n,a&&a[p],o,s)}else g.push(p);else s||(e[p]=y,r.updateDuringAnimation(t),g.push(p))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(g);if(b){var w=st(d,x);d.splice(w,1)}}}if(n.force||(g=At(g,function(D){return!S1(i[D],e[D])}),_=g.length),_>0||n.force&&!o.length){var C=void 0,M=void 0,A=void 0;if(s){M={},c&&(C={});for(var S=0;S<_;S++){var p=g[S];M[p]=e[p],c?C[p]=i[p]:e[p]=i[p]}}else if(c){A={};for(var S=0;S<_;S++){var p=g[S];A[p]=_o(e[p]),_1(e,i,p)}}var x=new Hf(e,!1,!1,h?At(d,function(L){return L.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),c&&C&&x.whenWithKeys(0,C,g),A&&x.whenWithKeys(0,A,g),x.whenWithKeys(l??500,s?M:i,g).delay(f||0),r.addAnimator(x,t),o.push(x)}}var Lt=(function(r){B(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}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 i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[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,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=st(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=st(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new tt(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(tt.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(xs);Lt.prototype.type="group";var zn={},mg={};function x1(r){delete mg[r]}function w1(r){if(!r)return!1;if(typeof r=="string")return Fo(r,1)<Il;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Fo(t[n].color,1);return e/=i,e<Il}return!1}var T1=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new G_,o=i.renderer||"canvas";if(zn[o]||(o=mt(zn)[0]),process.env.NODE_ENV!=="production"&&!zn[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new zn[o](e,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!J.node&&!J.worker&&!u?new v1(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?J.touchEventsSupported:!!f,c=44,v;h&&(v=Z(i.pointerSize,c)),this.handler=new eg(a,s,l,s.root,v),this.animation=new o1({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=w1(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Xi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Xi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Lt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,x1(this.id))},r})();function Cc(r,t){var e=new T1(Xp(),r,t);return mg[e.id]=e,e}function C1(r,t){zn[r]=t}var Dc=1e-4,yg=20;function D1(r){return r.replace(/^\s+|\s+$/g,"")}var aa=Math.min,ie=Math.max,Re=Math.abs;function Mc(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/u*l+o}var Ht=M1;function M1(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Rl(r,t,e)}function Rl(r,t,e){return U(r)?D1(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Ot(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),yg),r=(+r).toFixed(t),e?r:+r}function tr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return kl(r)}function kl(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function A1(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Re(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function E1(r,t){var e=Math.max(tr(r),tr(t)),i=r+t;return e>yg?i:Ot(i,e)}function _g(r){var t=Math.PI*2;return(r%t+t)%t}function Go(r){return r>-Dc&&r<Dc}var L1=/^(?:(\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 pn(r){if(r instanceof Date)return r;if(U(r)){var t=L1.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function I1(r){return Math.pow(10,ws(r))}function ws(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Sg(r,t){var e=ws(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Wo(r){var t=parseFloat(r);return t==r&&(t!==0||!U(r)||r.indexOf("x")<=0)?t:NaN}function bg(r){return!isNaN(Wo(r))}function xg(){return Math.round(Math.random()*9)}function wg(r,t){return t===0?r:wg(t,r%t)}function Ac(r,t){return r==null?t:t==null?r:r*t/wg(r,t)}var P1="[ECharts] ",Ec={},O1=typeof console<"u"&&console.warn&&console.log;function Ts(r,t,e){if(O1){if(e){if(Ec[t])return;Ec[t]=!0}console[r](P1+t)}}function Tg(r,t){Ts("log",r,t)}function kt(r,t){Ts("warn",r,t)}function ft(r,t){Ts("error",r,t)}function or(r){process.env.NODE_ENV!=="production"&&Ts("warn","DEPRECATED: "+r,!0)}function Et(r,t,e){process.env.NODE_ENV!=="production"&&or((e?"["+e+"]":"")+(r+" is deprecated; use "+t+" instead."))}function Uo(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e="";if(process.env.NODE_ENV!=="production"){var i=function(n){return n===void 0?"undefined":n===1/0?"Infinity":n===-1/0?"-Infinity":ji(n)?"NaN":n instanceof Date?"Date("+n.toISOString()+")":K(n)?"function () { ... }":r_(n)?n+"":null};e=q(r,function(n){if(U(n))return n;var a=i(n);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(n,function(o,s){var u=i(s);return u??s})}catch{return"?"}else return"?"}).join(" ")}return e}function qt(r){throw new Error(r)}function Lc(r,t,e){return(t-r)*e+r}var Cg="series\0",N1="\0_ec_\0";function Gt(r){return r instanceof Array?r:r==null?[]:[r]}function Ic(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Pc=["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"];function ba(r){return X(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function R1(r){return X(r)&&!(r instanceof Array)}function k1(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=et();T(t,function(u,l){if(!X(u)){t[l]=null;return}process.env.NODE_ENV!=="production"&&(u.id!=null&&!Nc(u.id)&&Oc(u.id),u.name!=null&&!Nc(u.name)&&Oc(u.name))});var s=B1(r,o,e);return(i||n)&&V1(s,r,o,t),i&&F1(s,t),i||n?z1(s,t,n):a&&H1(s,t),G1(s),s}function B1(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||nn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function V1(r,t,e,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=qn(n.id),s=e.get(o);if(s!=null){var u=r[s];$(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function F1(r,t){T(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!nn(e)&&!nn(a)&&Dg("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function z1(r,t,e){T(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||nn(n.existing)||n.existing&&i.id!=null&&!Dg("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function H1(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function G1(r){var t=et();T(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),T(r,function(e){var i=e.newOption;$(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),T(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(X(a)){if(o.name=a.name!=null?qn(a.name):n?n.name:Cg+i,n)o.id=qn(n.id);else if(a.id!=null)o.id=qn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Dg(r,t,e){var i=ze(t[r],null),n=ze(e[r],null);return i!=null&&n!=null&&i===n}function qn(r){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;return ze(r,"")}function ze(r,t){return r==null?t:U(r)?r:pt(r)||Po(r)?r+"":t}function Oc(r){process.env.NODE_ENV!=="production"&&kt("`"+r+"` is invalid id or name. Must be a string or number.")}function Nc(r){return Po(r)||bg(r)}function Wf(r){var t=r.name;return!!(t&&t.indexOf(Cg))}function nn(r){return r&&r.id!=null&&qn(r.id).indexOf(N1)===0}function W1(r,t,e){T(r,function(i){var n=i.newOption;X(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=U1(t,n,i.existing,e))})}function U1(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function _i(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?q(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?q(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function xt(){var r="__ec_inner_"+Y1++;return function(t){return t[r]||(t[r]={})}}var Y1=xg();function vu(r,t,e){var i=Uf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=e?e.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=xa(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Uf(r,t){var e;if(U(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=et(),a={},o=!1;return T(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&st(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var pe={useDefault:!0,enableAll:!1,enableNone:!1};function xa(r,t,e,i){i=i||pe;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=r.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&ft('`"none"` or `false` is not a valid value on index option.'),n=-1}return n==="all"&&(i.enableAll?n=a=o=null:(process.env.NODE_ENV!=="production"&&ft('`"all"` is not a valid value on index option.'),n=-1)),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Mg(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function X1(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function $1(r){return r==="auto"?J.domSupported?"html":"richText":r||"html"}function Z1(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(pt(i)){var o=Lc(e||0,i,n);return Ot(o,a?Math.max(tr(e||0),tr(i)):t)}else{if(U(i))return n<1?e:i;for(var s=[],u=e,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=Lc(v,d,n);s[h]=Ot(o,a?Math.max(tr(v),tr(d)):t)}}return s}}var q1=".",Gr="___EC__COMPONENT__CONTAINER___",Ag="___EC__EXTENDED_CLASS___";function ke(r){var t={main:"",sub:""};if(r){var e=r.split(q1);t.main=e[0]||"",t.sub=e[1]||""}return t}function K1(r){$(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Q1(r){return!!(r&&r[Ag])}function Yf(r,t){r.$constructor=r,r.extend=function(e){process.env.NODE_ENV!=="production"&&T(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var i=this,n;return J1(i)?n=(function(a){B(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(e.$constructor||i).apply(this,arguments)},J0(n,this)),R(n.prototype,e),n[Ag]=!0,n.extend=this.extend,n.superCall=eS,n.superApply=rS,n.superClass=i,n}}function J1(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Eg(r,t){r.extend=t.extend}var j1=Math.round(Math.random()*10);function tS(r){var t=["__\0is_clz",j1++].join("_");r.prototype[t]=!0,process.env.NODE_ENV!=="production"&&$(!r.isInstance,'The method "is" can not be defined.'),r.isInstance=function(e){return!!(e&&e[t])}}function eS(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function rS(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Cs(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){K1(n),i.prototype.type=n;var a=ke(n);if(!a.sub)process.env.NODE_ENV!=="production"&&t[a.main]&&console.warn(a.main+" exists."),t[a.main]=i;else if(a.sub!==Gr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Gr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=ke(i),a=[],o=t[n.main];return o&&o[Gr]?T(o,function(s,u){u!==Gr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=ke(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return T(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=ke(i),a=t[n.main];return a&&a[Gr]};function e(i){var n=t[i.main];return(!n||!n[Gr])&&(n=t[i.main]={},n[Gr]=!0),n}}function oa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(n&&st(n,u)>=0||a&&st(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var iS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],nS=oa(iS),aS=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return nS(this,t,e)},r})(),Bl=new en(50);function oS(r){if(typeof r=="string"){var t=Bl.get(r);return t&&t.image}else return r}function Lg(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Bl.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Ds(t)&&a.pending.push(o)):(t=ar.loadImage(r,Rc,Rc),t.__zrImageSrc=r,Bl.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Rc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ds(r){return r&&r.width&&r.height}var du=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function sS(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
|
+
`);a=Ig(e,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Pg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
|
|
4
|
+
`),r.isTruncated=s}function Ig(r,t,e,i){i=i||{};var n=R({},i);e=Z(e,"..."),n.maxIterations=Z(i.maxIterations,2);var a=n.minChar=Z(i.minChar,0),o=n.fontMeasureInfo=Ve(t),s=o.asciiCharWidth;n.placeholder=Z(i.placeholder,"");for(var u=r=Math.max(0,r-1),l=0;l<a&&u>=s;l++)u-=s;var f=Fe(o,e);return f>u&&(e="",f=0),u=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=r,n}function Pg(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Fe(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?uS(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=Fe(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function uS(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=dg(e,r.charCodeAt(n));return n}function lS(r,t,e,i){var n=Xf(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=bs(l),c=Z(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,g=t.width;g==null&&e!=null&&(g=e-s);var m=t.height;m==null&&i!=null&&(m=i-u);var p;g!=null&&(a==="break"||a==="breakAll")?p=n?Og(n,t.font,g,a==="breakAll",0).lines:[]:p=n?n.split(`
|
|
5
|
+
`):[];var y=p.length*c;if(m==null&&(m=y),y>m&&v){var _=Math.floor(m/c);d=d||p.length>_,p=p.slice(0,_),y=p.length*c}if(n&&f&&g!=null)for(var S=Ig(g,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;b<p.length;b++)Pg(x,p[b],S),p[b]=x.textLine,d=d||x.isTruncated;for(var w=m,C=0,M=Ve(l),b=0;b<p.length;b++)C=Math.max(Fe(M,p[b]),C);g==null&&(g=C);var A=g;return w+=u,A+=s,{lines:p,height:m,outerWidth:A,outerHeight:w,lineHeight:c,calculatedLineHeight:h,contentWidth:C,contentHeight:y,width:g,isTruncated:d}}var fS=(function(){function r(){}return r})(),kc=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),hS=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function cS(r,t,e,i,n){var a=new hS,o=Xf(r);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-u);var h=t.height;h==null&&i!=null&&(h=i-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=du.lastIndex=0,g;(g=du.exec(o))!=null;){var m=g.index;m>d&&pu(a,o.substring(d,m),t,v),pu(a,g[2],t,v,g[1]),d=du.lastIndex}d<o.length&&pu(a,o.substring(d,o.length),t,v);var p=[],y=0,_=0,S=c==="truncate",x=t.lineOverflow==="truncate",b={};function w(Ut,Me,$e){Ut.width=Me,Ut.lineHeight=$e,y+=$e,_=Math.max(_,Me)}t:for(var C=0;C<a.lines.length;C++){for(var M=a.lines[C],A=0,D=0,L=0;L<M.tokens.length;L++){var E=M.tokens[L],I=E.styleName&&t.rich[E.styleName]||{},P=E.textPadding=I.padding,O=P?P[1]+P[3]:0,W=E.font=I.font||t.font;E.contentHeight=bs(W);var N=Z(I.height,E.contentHeight);if(E.innerHeight=N,P&&(N+=P[0]+P[2]),E.height=N,E.lineHeight=xr(I.lineHeight,t.lineHeight,N),E.align=I&&I.align||n,E.verticalAlign=I&&I.verticalAlign||"middle",x&&h!=null&&y+E.lineHeight>h){var V=a.lines.length;L>0?(M.tokens=M.tokens.slice(0,L),w(M,D,A),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<V;break t}var H=I.width,G=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")E.percentWidth=H,p.push(E),E.contentWidth=Fe(Ve(W),E.text);else{if(G){var z=I.backgroundColor,Q=z&&z.image;Q&&(Q=oS(Q),Ds(Q)&&(E.width=Math.max(E.width,Q.width*N/Q.height)))}var at=S&&f!=null?f-D:null;at!=null&&at<E.width?!G||at<O?(E.text="",E.width=E.contentWidth=0):(sS(b,E.text,at-O,W,t.ellipsis,{minChar:t.truncateMinChar}),E.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,E.width=E.contentWidth=Fe(Ve(W),E.text)):E.contentWidth=Fe(Ve(W),E.text)}E.width+=O,D+=E.width,I&&(A=Math.max(A,E.lineHeight))}w(M,D,A)}a.outerWidth=a.width=Z(f,_),a.outerHeight=a.height=Z(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var C=0;C<p.length;C++){var E=p[C],yt=E.percentWidth;E.width=parseInt(yt,10)/100*a.width}return a}function pu(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,u=o.font||e.font,l=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Mr(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
|
|
6
|
+
`),l=!0),i.accumWidth=d}else{var g=Og(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}f||(f=t.split(`
|
|
7
|
+
`));for(var m=Ve(u),p=0;p<f.length;p++){var y=f[p],_=new fS;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Fe(m,y),!p&&!l){var S=(s[s.length-1]||(s[0]=new kc)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(y||!x||a)&&S.push(_)}else s.push(new kc([_]))}}function vS(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var dS=vn(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function pS(r){return vS(r)?!!dS[r]:!0}function Og(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=Ve(t),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
|
|
8
|
+
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=dg(h,v.charCodeAt(0)),g=i?!1:!pS(v);if(a.length?f+d>e:n+f+d>e){f?(s||u)&&(g?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):g?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,g?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function Bc(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;tt.set(Vc,rn(e,o,n),di(i,s,a),o,s),tt.intersect(t,Vc,null,Fc);var u=Fc.outIntersectRect;r.outerWidth=u.width,r.outerHeight=u.height,r.baseX=rn(u.x,u.width,n,!0),r.baseY=di(u.y,u.height,a,!0)}}var Vc=new tt(0,0,0,0),Fc={outIntersectRect:{},clamp:!0};function Xf(r){return r!=null?r+="":r=""}function gS(r){var t=Xf(r.text),e=r.font,i=Fe(Ve(e),t),n=bs(e);return Vl(r,i,n,null)}function Vl(r,t,e,i){var n=new tt(rn(r.x||0,t,r.textAlign),di(r.y||0,e,r.textBaseline),t,e),a=i??(Ng(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Ng(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var Fl="__zr_style_"+Math.round(Math.random()*10),pi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ms={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pi[Fl]=!0;var zc=["z","z2","invisible"],mS=["invisible"],wa=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=mt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&yS(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new tt(0,0,0,0)),i?tt.applyTransform(e,n,i):e.copy(n),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new tt(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(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:R(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Vn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Vn)},t.prototype.styleUpdated=function(){this.__dirty&=~Vn},t.prototype.createStyle=function(e){return Ss(pi,e)},t.prototype.useStyle=function(e){e[Fl]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Fl]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,zc)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=mt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=mt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var g=this.__inHover?mS:zc,c=0;c<g.length;c++){var v=g[c];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return R(e,i),e},t.prototype.getAnimationStyleProps=function(){return Ms},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=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=re|Vn})(),t})(xs),gu=new tt(0,0,0,0),mu=new tt(0,0,0,0);function yS(r,t,e){return gu.copy(r.getBoundingRect()),r.transform&&gu.applyTransform(r.transform),mu.width=t,mu.height=e,!gu.intersect(mu)}var ve=Math.min,de=Math.max,yu=Math.sin,_u=Math.cos,Wr=Math.PI*2,ka=dn(),Ba=dn(),Va=dn();function Hc(r,t,e,i,n,a){n[0]=ve(r,e),n[1]=ve(t,i),a[0]=de(r,e),a[1]=de(t,i)}var Gc=[],Wc=[];function _S(r,t,e,i,n,a,o,s,u,l){var f=og,h=Pt,c=f(r,e,n,o,Gc);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,Gc[v]);u[0]=ve(d,u[0]),l[0]=de(d,l[0])}c=f(t,i,a,s,Wc);for(var v=0;v<c;v++){var g=h(t,i,a,s,Wc[v]);u[1]=ve(g,u[1]),l[1]=de(g,l[1])}u[0]=ve(r,u[0]),l[0]=de(r,l[0]),u[0]=ve(o,u[0]),l[0]=de(o,l[0]),u[1]=ve(t,u[1]),l[1]=de(t,l[1]),u[1]=ve(s,u[1]),l[1]=de(s,l[1])}function SS(r,t,e,i,n,a,o,s){var u=sg,l=Zt,f=de(ve(u(r,e,n),1),0),h=de(ve(u(t,i,a),1),0),c=l(r,e,n,f),v=l(t,i,a,h);o[0]=ve(r,n,c),o[1]=ve(t,a,v),s[0]=de(r,n,c),s[1]=de(t,a,v)}function bS(r,t,e,i,n,a,o,s,u){var l=Wi,f=Ui,h=Math.abs(n-a);if(h%Wr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(ka[0]=_u(n)*e+r,ka[1]=yu(n)*i+t,Ba[0]=_u(a)*e+r,Ba[1]=yu(a)*i+t,l(s,ka,Ba),f(u,ka,Ba),n=n%Wr,n<0&&(n=n+Wr),a=a%Wr,a<0&&(a=a+Wr),n>a&&!o?a+=Wr:n<a&&o&&(n+=Wr),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Va[0]=_u(v)*e+r,Va[1]=yu(v)*i+t,l(s,Va,s),f(u,Va,u))}var ut={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ur=[],Yr=[],Ae=[],lr=[],Ee=[],Le=[],Su=Math.min,bu=Math.max,Xr=Math.cos,$r=Math.sin,Ze=Math.abs,zl=Math.PI,yr=zl*2,xu=typeof Float32Array<"u",xn=[];function wu(r){var t=Math.round(r/zl*1e8)/1e8;return t%2*zl}function xS(r,t){var e=wu(r[0]);e<0&&(e+=yr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=yr?n=e+yr:t&&e-n>=yr?n=e-yr:!t&&e>n?n=e+(yr-wu(e-n)):t&&e<n&&(n=e-(yr-wu(n-e))),r[0]=e,r[1]=n}var Si=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Ze(i/zo/t)||0,this._uy=Ze(i/zo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ut.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ze(t-this._xi),n=Ze(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(ut.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(ut.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(ut.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),xn[0]=n,xn[1]=a,xS(xn,o),n=xn[0],a=xn[1];var s=a-n;return this.addData(ut.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Xr(a)*i+t,this._yi=$r(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(ut.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ut.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&xu&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(xu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,xu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ae[0]=Ae[1]=Ee[0]=Ee[1]=Number.MAX_VALUE,lr[0]=lr[1]=Le[0]=Le[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],i=t[o+1],n=e,a=i),s){case ut.M:e=n=t[o++],i=a=t[o++],Ee[0]=n,Ee[1]=a,Le[0]=n,Le[1]=a;break;case ut.L:Hc(e,i,t[o],t[o+1],Ee,Le),e=t[o++],i=t[o++];break;case ut.C:_S(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ee,Le),e=t[o++],i=t[o++];break;case ut.Q:SS(e,i,t[o++],t[o++],t[o],t[o+1],Ee,Le),e=t[o++],i=t[o++];break;case ut.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];u&&(n=Xr(v)*h+l,a=$r(v)*c+f),bS(l,f,h,c,v,d,g,Ee,Le),e=Xr(d)*h+l,i=$r(d)*c+f;break;case ut.R:n=e=t[o++],a=i=t[o++];var m=t[o++],p=t[o++];Hc(n,a,n+m,a+p,Ee,Le);break;case ut.Z:e=n,i=a;break}Wi(Ae,Ae,Ee),Ui(lr,lr,Le)}return o===0&&(Ae[0]=Ae[1]=lr[0]=lr[1]=0),new tt(Ae[0],Ae[1],lr[0]-Ae[0],lr[1]-Ae[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var g=-1;switch(v){case ut.M:a=s=t[c++],o=u=t[c++];break;case ut.L:{var m=t[c++],p=t[c++],y=m-a,_=p-o;(Ze(y)>i||Ze(_)>n||c===e-1)&&(g=Math.sqrt(y*y+_*_),a=m,o=p);break}case ut.C:{var S=t[c++],x=t[c++],m=t[c++],p=t[c++],b=t[c++],w=t[c++];g=U_(a,o,S,x,m,p,b,w,10),a=b,o=w;break}case ut.Q:{var S=t[c++],x=t[c++],m=t[c++],p=t[c++];g=$_(a,o,S,x,m,p,10),a=m,o=p;break}case ut.A:var C=t[c++],M=t[c++],A=t[c++],D=t[c++],L=t[c++],E=t[c++],I=E+L;c+=1,d&&(s=Xr(L)*A+C,u=$r(L)*D+M),g=bu(A,D)*Su(yr,Math.abs(E)),a=Xr(I)*A+C,o=$r(I)*D+M;break;case ut.R:{s=a=t[c++],u=o=t[c++];var P=t[c++],O=t[c++];g=P*2+O*2;break}case ut.Z:{var y=s-a,_=u-o;g=Math.sqrt(y*y+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,g,m=0,p=0,y,_=0,S,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=e*g,!y)))t:for(var b=0;b<o;){var w=i[b++],C=b===1;switch(C&&(l=i[b],f=i[b+1],s=l,u=f),w!==ut.L&&_>0&&(t.lineTo(S,x),_=0),w){case ut.M:s=l=i[b++],u=f=i[b++],t.moveTo(l,f);break;case ut.L:{h=i[b++],c=i[b++];var M=Ze(h-l),A=Ze(c-f);if(M>n||A>a){if(v){var D=d[p++];if(m+D>y){var L=(y-m)/D;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}m+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var E=M*M+A*A;E>_&&(S=h,x=c,_=E)}break}case ut.C:{var I=i[b++],P=i[b++],O=i[b++],W=i[b++],N=i[b++],V=i[b++];if(v){var D=d[p++];if(m+D>y){var L=(y-m)/D;Bo(l,I,O,N,L,Ur),Bo(f,P,W,V,L,Yr),t.bezierCurveTo(Ur[1],Yr[1],Ur[2],Yr[2],Ur[3],Yr[3]);break t}m+=D}t.bezierCurveTo(I,P,O,W,N,V),l=N,f=V;break}case ut.Q:{var I=i[b++],P=i[b++],O=i[b++],W=i[b++];if(v){var D=d[p++];if(m+D>y){var L=(y-m)/D;Vo(l,I,O,L,Ur),Vo(f,P,W,L,Yr),t.quadraticCurveTo(Ur[1],Yr[1],Ur[2],Yr[2]);break t}m+=D}t.quadraticCurveTo(I,P,O,W),l=O,f=W;break}case ut.A:var H=i[b++],G=i[b++],z=i[b++],Q=i[b++],at=i[b++],yt=i[b++],Ut=i[b++],Me=!i[b++],$e=z>Q?z:Q,jt=Ze(z-Q)>.001,It=at+yt,j=!1;if(v){var D=d[p++];m+D>y&&(It=at+yt*(y-m)/D,j=!0),m+=D}if(jt&&t.ellipse?t.ellipse(H,G,z,Q,Ut,at,It,Me):t.arc(H,G,$e,at,It,Me),j)break t;C&&(s=Xr(at)*z+H,u=$r(at)*Q+G),l=Xr(It)*z+H,f=$r(It)*Q+G;break;case ut.R:s=l=i[b],u=f=i[b+1],h=i[b++],c=i[b++];var it=i[b++],Rr=i[b++];if(v){var D=d[p++];if(m+D>y){var Ft=y-m;t.moveTo(h,c),t.lineTo(h+Su(Ft,it),c),Ft-=it,Ft>0&&t.lineTo(h+it,c+Su(Ft,Rr)),Ft-=Rr,Ft>0&&t.lineTo(h+bu(it-Ft,0),c+Rr),Ft-=it,Ft>0&&t.lineTo(h,c+bu(Rr-Ft,0));break t}m+=D}t.rect(h,c,it,Rr);break;case ut.Z:if(v){var D=d[p++];if(m+D>y){var L=(y-m)/D;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}m+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=ut,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Ai(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-i)/(r-e),l=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function wS(r,t,e,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>r+h&&l>e+h&&l>n+h&&l>o+h||l<r-h&&l<e-h&&l<n-h&&l<o-h)return!1;var c=W_(r,t,e,i,n,a,o,s,l,f);return c<=h/2}function TS(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>r+l&&s>e+l&&s>n+l||s<r-l&&s<e-l&&s<n-l)return!1;var f=X_(r,t,e,i,n,a,s,u);return f<=l/2}var Uc=Math.PI*2;function Fa(r){return r%=Uc,r<0&&(r+=Uc),r}var wn=Math.PI*2;function CS(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(i-n)%wn<1e-4)return!0;if(a){var h=i;i=Fa(n),n=Fa(h)}else i=Fa(i),n=Fa(n);i>n&&(n+=wn);var c=Math.atan2(u,s);return c<0&&(c+=wn),c>=i&&c<=n||c+wn>=i&&c+wn<=n}function Zr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(e-r)+r;return u===n?1/0:u>n?s:0}var fr=Si.CMD,qr=Math.PI*2,DS=1e-4;function MS(r,t){return Math.abs(r-t)<DS}var zt=[-1,-1,-1],he=[-1,-1];function AS(){var r=he[0];he[0]=he[1],he[1]=r}function ES(r,t,e,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=ko(t,i,a,s,l,zt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var m=zt[g],p=m===0||m===1?.5:1,y=Pt(r,e,n,o,m);y<u||(c<0&&(c=og(t,i,a,s,he),he[1]<he[0]&&c>1&&AS(),v=Pt(t,i,a,s,he[0]),c>1&&(d=Pt(t,i,a,s,he[1]))),c===2?m<he[0]?h+=v<t?p:-p:m<he[1]?h+=d<v?p:-p:h+=s<d?p:-p:m<he[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function LS(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=Y_(t,i,a,s,zt);if(u===0)return 0;var l=sg(t,i,a);if(l>=0&&l<=1){for(var f=0,h=Zt(t,i,a,l),c=0;c<u;c++){var v=zt[c]===0||zt[c]===1?.5:1,d=Zt(r,e,n,zt[c]);d<o||(zt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=zt[0]===0||zt[0]===1?.5:1,d=Zt(r,e,n,zt[0]);return d<o?0:a<t?v:-v}}function IS(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);zt[0]=-u,zt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=qr-1e-4){i=0,n=qr;var f=a?1:-1;return o>=zt[0]+r&&o<=zt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=qr,n+=qr);for(var c=0,v=0;v<2;v++){var d=zt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=qr+g),(g>=i&&g<=n||g+qr>=i&&g+qr<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Rg(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],m=d===1;switch(g===fr.M&&d>1&&(e||(s+=Zr(u,l,f,h,i,n))),m&&(u=a[d],l=a[d+1],f=u,h=l),g){case fr.M:f=a[d++],h=a[d++],u=f,l=h;break;case fr.L:if(e){if(Ai(u,l,a[d],a[d+1],t,i,n))return!0}else s+=Zr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case fr.C:if(e){if(wS(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=ES(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case fr.Q:if(e){if(TS(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=LS(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case fr.A:var p=a[d++],y=a[d++],_=a[d++],S=a[d++],x=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);c=Math.cos(x)*_+p,v=Math.sin(x)*S+y,m?(f=c,h=v):s+=Zr(u,l,c,v,i,n);var C=(i-p)*S/_+p;if(e){if(CS(p,y,S,x,x+b,w,t,C,n))return!0}else s+=IS(p,y,S,x,x+b,w,C,n);u=Math.cos(x+b)*_+p,l=Math.sin(x+b)*S+y;break;case fr.R:f=u=a[d++],h=l=a[d++];var M=a[d++],A=a[d++];if(c=f+M,v=h+A,e){if(Ai(f,h,c,h,t,i,n)||Ai(c,h,c,v,t,i,n)||Ai(c,v,f,v,t,i,n)||Ai(f,v,f,h,t,i,n))return!0}else s+=Zr(c,h,c,v,i,n),s+=Zr(f,v,f,h,i,n);break;case fr.Z:if(e){if(Ai(u,l,f,h,t,i,n))return!0}else s+=Zr(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!MS(l,h)&&(s+=Zr(u,l,f,h,i,n)||0),s!==0}function PS(r,t,e){return Rg(r,0,!1,t,e)}function OS(r,t,e,i){return Rg(r,t,!0,e,i)}var kg=ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pi),NS={style:ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ms.style)},Tu=na.concat(["invisible","culling","z","z2","zlevel","parent"]),ht=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){e.buildPath(u,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Tu.length;++s)n[Tu[s]]=this[Tu[s]];n.__dirty|=re}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=mt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):r.prototype.attrKV.call(this,o,s)}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(U(e)){var i=Fo(e,0);return i>.5?Pl:i>.2?d1:Ol}else if(e)return Ol}return Pl},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(U(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Fo(e,0)<Il;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Gi},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 Si(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Gi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),OS(s,u/l,e,i)))return!0}if(this.hasFill())return PS(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gi,this._rect&&(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(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:R(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Gi)},t.prototype.createStyle=function(e){return Ss(kg,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=R({},n.shape),R(l,i.shape)):(l=R({},a?this.shape:n.shape),R(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=mt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return NS},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){B(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return rt(e.style)},o.prototype.getDefaultShape=function(){return rt(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=re|Vn|Gi})(),t})(wa),RS=ct({strokeFirst:!0,font:Dr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},kg),Yo=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Ng(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Ss(RS,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=gS(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(wa);Yo.prototype.type="tspan";var kS=ct({x:0,y:0},pi),BS={style:ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ms.style)};function VS(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Or=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ss(kS,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=VS(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return BS},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new tt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(wa);Or.prototype.type="image";function FS(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var $i=Math.round;function Bg(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&($i(i*2)===$i(n*2)&&(r.x1=r.x2=li(i,s,!0)),$i(a*2)===$i(o*2)&&(r.y1=r.y2=li(a,s,!0))),r}}function Vg(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=li(i,s,!0),r.y=li(n,s,!0),r.width=Math.max(li(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(li(n+o,s,!1)-r.y,o===0?0:1)),r}}function li(r,t,e){if(!t)return r;var i=$i(r*2);return(i+$i(t))%2===0?i/2:(i+(e?1:-1))/2}var zS=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),HS={},bt=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Vg(HS,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?FS(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ht);bt.prototype.type="rect";var Yc={fill:"#000"},Xc=2,Ie={},GS={style:ct({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},Ms.style)},Bt=(function(r){B(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Yc,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,$S(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new tt(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Yc},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return R(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=mt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},R(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return GS},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Dr,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,u=e.align||a.align||"left",l=e.verticalAlign||a.verticalAlign||"top";Bc(Ie,a.overflowRect,o,s,u,l),o=Ie.baseX,s=Ie.baseY;var f=jc(e),h=lS(f,e,Ie.outerWidth,Ie.outerHeight),c=Cu(e),v=!!e.backgroundColor,d=h.outerHeight,g=h.outerWidth,m=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=di(s,h.contentHeight,l);if(c||n){var S=rn(o,g,u),x=di(s,d,l);c&&this._renderBackground(e,e,S,x,g,d)}_+=p/2,n&&(y=Jc(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var b=0,w=!1,C=!1,M=Qc("fill"in e?e.fill:(C=!0,a.fill)),A=Kc("stroke"in e?e.stroke:!v&&(!a.autoStroke||C)?(b=Xc,w=!0,a.stroke):null),D=e.textShadowBlur>0,L=0;L<m.length;L++){var E=this._getOrCreateChild(Yo),I=E.createStyle();E.useStyle(I),I.text=m[L],I.x=y,I.y=_,I.textAlign=u,I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=A,I.fill=M,A&&(I.lineWidth=e.lineWidth||b,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=i,Zc(I,e),_+=p,E.setBoundingRect(Vl(I,h.contentWidth,h.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;Bc(Ie,i.overflowRect,o,s,n,a),o=Ie.baseX,s=Ie.baseY;var u=jc(e),l=cS(u,e,Ie.outerWidth,Ie.outerHeight,n),f=l.width,h=l.outerWidth,c=l.outerHeight,v=e.padding;this.isTruncated=!!l.isTruncated;var d=rn(o,h,n),g=di(s,c,a),m=d,p=g;v&&(m+=v[3],p+=v[0]);var y=m+f;Cu(e)&&this._renderBackground(e,e,d,g,h,c);for(var _=!!e.backgroundColor,S=0;S<l.lines.length;S++){for(var x=l.lines[S],b=x.tokens,w=b.length,C=x.lineHeight,M=x.width,A=0,D=m,L=y,E=w-1,I=void 0;A<w&&(I=b[A],!I.align||I.align==="left");)this._placeToken(I,e,C,p,D,"left",_),M-=I.width,D+=I.width,A++;for(;E>=0&&(I=b[E],I.align==="right");)this._placeToken(I,e,C,p,L,"right",_),M-=I.width,L-=I.width,E--;for(D+=(f-(D-m)-(y-L)-M)/2;A<=E;)I=b[A],this._placeToken(I,e,C,p,D+I.width/2,"center",_),D+=I.width,A++;p+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,u){var l=i.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&Cu(l);c&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=Jc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Yo),m=g.createStyle();g.useStyle(m);var p=this._defaultStyle,y=!1,_=0,S=!1,x=Qc("fill"in l?l.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=Kc("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!p.autoStroke||y)?(_=Xc,S=!0,p.stroke):null),w=l.textShadowBlur>0||i.textShadowBlur>0;m.text=e.text,m.x=o,m.y=h,w&&(m.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,m.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=e.font||Dr,m.opacity=xr(l.opacity,i.opacity,1),Zc(m,l),b&&(m.lineWidth=xr(l.lineWidth,i.lineWidth,_),m.lineDash=Z(l.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),x&&(m.fill=x),g.setBoundingRect(Vl(m,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,g,m;if(c||e.lineHeight||l&&f){g=this._getOrCreateChild(bt),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=v,g.dirtyShape()}if(c){var y=g.style;y.fill=u||null,y.fillOpacity=Z(e.fillOpacity,1)}else if(h){m=this._getOrCreateChild(Or),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var y=g.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=Z(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=xr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return XS(e)&&(i=[e.fontStyle,e.fontWeight,YS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Ne(i)||e.textFont||e.font},t})(wa),WS={left:!0,right:1,center:1},US={top:1,bottom:1,middle:1},$c=["fontStyle","fontWeight","fontSize","fontFamily"];function YS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Of+"px":r+"px"}function Zc(r,t){for(var e=0;e<$c.length;e++){var i=$c[e],n=t[i];n!=null&&(r[i]=n)}}function XS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function $S(r){return qc(r),T(r.rich,qc),r}function qc(r){if(r){r.font=Bt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||WS[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||US[e]?e:"top";var i=r.padding;i&&(r.padding=Bf(r.padding))}}function Kc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Qc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Jc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function jc(r){var t=r.text;return t!=null&&(t+=""),t}function Cu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var nt=xt(),ZS=function(r,t,e,i){if(i){var n=nt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=nt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},tv=1,ev={},Fg=xt(),$f=xt(),Zf=0,As=1,Es=2,Ge=["emphasis","blur","select"],rv=["normal","emphasis","blur","select"],qS=10,KS=9,gi="highlight",wo="downplay",Xo="select",Hl="unselect",$o="toggleSelect",qf="selectchanged";function Ei(r){return r!=null&&r!=="none"}function Ls(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function zg(r){Ls(r,"emphasis",Es)}function Hg(r){r.hoverState===Es&&Ls(r,"normal",Zf)}function Kf(r){Ls(r,"blur",As)}function Gg(r){r.hoverState===As&&Ls(r,"normal",Zf)}function QS(r){r.selected=!0}function JS(r){r.selected=!1}function iv(r,t,e){t(r,e)}function ur(r,t,e){iv(r,t,e),r.isGroup&&r.traverse(function(i){iv(i,t,e)})}function nv(r,t){switch(t){case"emphasis":r.hoverState=Es;break;case"normal":r.hoverState=Zf;break;case"blur":r.hoverState=As;break;case"select":r.selected=!0}}function jS(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function tb(r,t,e,i){var n=e&&st(e,"select")>=0,a=!1;if(r instanceof ht){var o=Fg(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(Ei(s)||Ei(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=R({},i),l=R({},l),l.fill=s):!Ei(l.fill)&&Ei(s)?(a=!0,i=R({},i),l=R({},l),l.fill=dc(s)):!Ei(l.stroke)&&Ei(u)&&(a||(i=R({},i),l=R({},l)),l.stroke=dc(u)),i.style=l}}if(i&&i.z2==null){a||(i=R({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??qS)}return i}function eb(r,t,e){if(e&&e.z2==null){e=R({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??KS)}return e}function rb(r,t,e){var i=st(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:jS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=R({},e),o=R({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Du(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return tb(this,r,t,e);if(r==="blur")return rb(this,r,e);if(r==="select")return eb(this,r,e)}return e}function ib(r){r.stateProxy=Du;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Du),e&&(e.stateProxy=Du)}function av(r,t){!Xg(r,t)&&!r.__highByOuter&&ur(r,zg)}function ov(r,t){!Xg(r,t)&&!r.__highByOuter&&ur(r,Hg)}function Zo(r,t){r.__highByOuter|=1<<(t||0),ur(r,zg)}function qo(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ur(r,Hg)}function nb(r){ur(r,Kf)}function Wg(r){ur(r,Gg)}function Ug(r){ur(r,QS)}function Yg(r){ur(r,JS)}function Xg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function $g(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=$f(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Gg(l)}),s&&e.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Gl(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Wg(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||Kf(m)}),Jt(t))a(l.getData(),t);else if(X(t))for(var d=mt(t),g=0;g<d.length;g++)a(l.getData(d[g]),t[d[g]]);u.push(l),$f(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function Wl(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){$f(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Kf(a)})}}}function ab(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(!n){process.env.NODE_ENV!=="production"&&ft("Unknown dataType "+t.dataType);return}var a=_i(n,t);a=(F(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=nt(o);Gl(i,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Gl(i,f,h,e)}}function Qf(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(process.env.NODE_ENV!=="production"&&!an(s[l])&&ft("param should be highDownDispatcher"),nt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function ob(r,t,e){process.env.NODE_ENV!=="production"&&!an(r)&&ft("param should be highDownDispatcher");var i=nt(r),n=Qf(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Wl(i.componentMainType,i.componentIndex,e),T(a,function(s){return av(s,t)})):(Gl(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Wl(i.componentMainType,i.componentIndex,e),av(r,t))}function sb(r,t,e){process.env.NODE_ENV!=="production"&&!an(r)&&ft("param should be highDownDispatcher"),$g(e);var i=nt(r),n=Qf(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?T(n,function(a){return ov(a,t)}):ov(r,t)}function ub(r,t,e){if(Xl(t)){var i=t.dataType,n=r.getData(i),a=_i(n,t);F(a)||(a=[a]),r[t.type===$o?"toggleSelect":t.type===Xo?"select":"unselect"](a,i)}}function sv(r){var t=r.getAllData();T(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?Ug(a):Yg(a)})})}function lb(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();T(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Ul(r,t,e){Zg(r,!0),ur(r,ib),hb(r,t,e)}function fb(r){Zg(r,!1)}function Ko(r,t,e,i){i?fb(r):Ul(r,t,e)}function hb(r,t,e){var i=nt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var uv=["emphasis","blur","select"],cb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yl(r,t,e,i){e=e||"itemStyle";for(var n=0;n<uv.length;n++){var a=uv[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[cb[e]]()}}function Zg(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function an(r){return!!(r&&r.__highDownDispatcher)}function vb(r){var t=ev[r];return t==null&&tv<=32&&(t=ev[r]=tv++),t}function Xl(r){var t=r.type;return t===Xo||t===Hl||t===$o}function lv(r){var t=r.type;return t===gi||t===wo}function db(r){var t=Fg(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Li=Si.CMD,pb=[[],[],[]],fv=Math.sqrt,gb=Math.atan2;function mb(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,u,l,f=Li.M,h=Li.C,c=Li.L,v=Li.R,d=Li.A,g=Li.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var m=t[4],p=t[5],y=fv(t[0]*t[0]+t[1]*t[1]),_=fv(t[2]*t[2]+t[3]*t[3]),S=gb(-t[1]/_,t[0]/y);e[o]*=y,e[o++]+=m,e[o]*=_,e[o++]+=p,e[o++]*=y,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:l[0]=e[o++],l[1]=e[o++],me(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],me(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var x=pb[u];x[0]=e[o++],x[1]=e[o++],me(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var Mu=Math.sqrt,za=Math.sin,Ha=Math.cos,Tn=Math.PI;function hv(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function $l(r,t){return(r[0]*t[0]+r[1]*t[1])/(hv(r)*hv(t))}function cv(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos($l(r,t))}function vv(r,t,e,i,n,a,o,s,u,l,f){var h=u*(Tn/180),c=Ha(h)*(r-e)/2+za(h)*(t-i)/2,v=-1*za(h)*(r-e)/2+Ha(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Mu(d),s*=Mu(d));var g=(n===a?-1:1)*Mu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,m=g*o*v/s,p=g*-s*c/o,y=(r+e)/2+Ha(h)*m-za(h)*p,_=(t+i)/2+za(h)*m+Ha(h)*p,S=cv([1,0],[(c-m)/o,(v-p)/s]),x=[(c-m)/o,(v-p)/s],b=[(-1*c-m)/o,(-1*v-p)/s],w=cv(x,b);if($l(x,b)<=-1&&(w=Tn),$l(x,b)>=1&&(w=0),w<0){var C=Math.round(w/Tn*1e6)/1e6;w=Tn*2+C%2*Tn}f.addData(l,y,_,o,s,S,w,h,a)}var yb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_b=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sb(r){var t=new Si;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Si.CMD,u=r.match(yb);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(_b)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var m=0;m<d;){var p=void 0,y=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=e,M=i,A=void 0,D=void 0;switch(h){case"l":e+=v[m++],i+=v[m++],c=s.L,t.addData(c,e,i);break;case"L":e=v[m++],i=v[m++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[m++],i+=v[m++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[m++],i=v[m++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[m++],c=s.L,t.addData(c,e,i);break;case"H":e=v[m++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[m++],c=s.L,t.addData(c,e,i);break;case"V":i=v[m++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),e=v[m-2],i=v[m-1];break;case"c":c=s.C,t.addData(c,v[m++]+e,v[m++]+i,v[m++]+e,v[m++]+i,v[m++]+e,v[m++]+i),e+=v[m-2],i+=v[m-1];break;case"S":p=e,y=i,A=t.len(),D=t.data,o===s.C&&(p+=e-D[A-4],y+=i-D[A-3]),c=s.C,C=v[m++],M=v[m++],e=v[m++],i=v[m++],t.addData(c,p,y,C,M,e,i);break;case"s":p=e,y=i,A=t.len(),D=t.data,o===s.C&&(p+=e-D[A-4],y+=i-D[A-3]),c=s.C,C=e+v[m++],M=i+v[m++],e+=v[m++],i+=v[m++],t.addData(c,p,y,C,M,e,i);break;case"Q":C=v[m++],M=v[m++],e=v[m++],i=v[m++],c=s.Q,t.addData(c,C,M,e,i);break;case"q":C=v[m++]+e,M=v[m++]+i,e+=v[m++],i+=v[m++],c=s.Q,t.addData(c,C,M,e,i);break;case"T":p=e,y=i,A=t.len(),D=t.data,o===s.Q&&(p+=e-D[A-4],y+=i-D[A-3]),e=v[m++],i=v[m++],c=s.Q,t.addData(c,p,y,e,i);break;case"t":p=e,y=i,A=t.len(),D=t.data,o===s.Q&&(p+=e-D[A-4],y+=i-D[A-3]),e+=v[m++],i+=v[m++],c=s.Q,t.addData(c,p,y,e,i);break;case"A":_=v[m++],S=v[m++],x=v[m++],b=v[m++],w=v[m++],C=e,M=i,e=v[m++],i=v[m++],c=s.A,vv(C,M,e,i,b,w,_,S,x,c,t);break;case"a":_=v[m++],S=v[m++],x=v[m++],b=v[m++],w=v[m++],C=e,M=i,e+=v[m++],i+=v[m++],c=s.A,vv(C,M,e,i,b,w,_,S,x,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var qg=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(ht);function Kg(r){return r.setData!=null}function Qg(r,t){var e=Sb(r),i=R({},t);return i.buildPath=function(n){var a=Kg(n);if(a&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&e.rebuildPath(o,1)}},i.applyTransform=function(n){mb(e,n),this.dirtyShape()},i}function bb(r,t){return new qg(Qg(r,t))}function xb(r,t){var e=Qg(r,t),i=(function(n){B(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(qg);return i}function wb(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new ht(t);return o.createPathProxy(),o.buildPath=function(s){if(Kg(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Tb=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Is=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Tb},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(ht);Is.prototype.type="circle";var Cb=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),Jf=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cb},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t})(ht);Jf.prototype.type="ellipse";var Jg=Math.PI,Au=Jg*2,Kr=Math.sin,Ii=Math.cos,Db=Math.acos,Nt=Math.atan2,dv=Math.abs,Kn=Math.sqrt,Hn=Math.max,Pe=Math.min,ye=1e-4;function Mb(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<ye))return c=(f*(t-a)-h*(r-n))/c,[r+c*u,t+c*l]}function Ga(r,t,e,i,n,a,o){var s=r-e,u=t-i,l=(o?a:-a)/Kn(s*s+u*u),f=l*u,h=-l*s,c=r+f,v=t+h,d=e+f,g=i+h,m=(c+d)/2,p=(v+g)/2,y=d-c,_=g-v,S=y*y+_*_,x=n-a,b=c*g-d*v,w=(_<0?-1:1)*Kn(Hn(0,x*x*S-b*b)),C=(b*_-y*w)/S,M=(-b*y-_*w)/S,A=(b*_+y*w)/S,D=(-b*y+_*w)/S,L=C-m,E=M-p,I=A-m,P=D-p;return L*L+E*E>I*I+P*P&&(C=A,M=D),{cx:C,cy:M,x0:-f,y0:-h,x1:C*(n/x-1),y1:M*(n/x-1)}}function Ab(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Eb(r,t){var e,i=Hn(t.r,0),n=Hn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=dv(l-u),d=v>Au&&v%Au;if(d>ye&&(v=d),!(i>ye))r.moveTo(f,h);else if(v>Au-ye)r.moveTo(f+i*Ii(u),h+i*Kr(u)),r.arc(f,h,i,u,l,!c),n>ye&&(r.moveTo(f+n*Ii(l),h+n*Kr(l)),r.arc(f,h,n,l,u,c));else{var g=void 0,m=void 0,p=void 0,y=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,M=void 0,A=void 0,D=void 0,L=void 0,E=void 0,I=void 0,P=i*Ii(u),O=i*Kr(u),W=n*Ii(l),N=n*Kr(l),V=v>ye;if(V){var H=t.cornerRadius;H&&(e=Ab(H),g=e[0],m=e[1],p=e[2],y=e[3]);var G=dv(i-n)/2;if(_=Pe(G,p),S=Pe(G,y),x=Pe(G,g),b=Pe(G,m),M=w=Hn(_,S),A=C=Hn(x,b),(w>ye||C>ye)&&(D=i*Ii(l),L=i*Kr(l),E=n*Ii(u),I=n*Kr(u),v<Jg)){var z=Mb(P,O,E,I,D,L,W,N);if(z){var Q=P-z[0],at=O-z[1],yt=D-z[0],Ut=L-z[1],Me=1/Kr(Db((Q*yt+at*Ut)/(Kn(Q*Q+at*at)*Kn(yt*yt+Ut*Ut)))/2),$e=Kn(z[0]*z[0]+z[1]*z[1]);M=Pe(w,(i-$e)/(Me+1)),A=Pe(C,(n-$e)/(Me-1))}}}if(!V)r.moveTo(f+P,h+O);else if(M>ye){var jt=Pe(p,M),It=Pe(y,M),j=Ga(E,I,P,O,i,jt,c),it=Ga(D,L,W,N,i,It,c);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),M<w&&jt===It?r.arc(f+j.cx,h+j.cy,M,Nt(j.y0,j.x0),Nt(it.y0,it.x0),!c):(jt>0&&r.arc(f+j.cx,h+j.cy,jt,Nt(j.y0,j.x0),Nt(j.y1,j.x1),!c),r.arc(f,h,i,Nt(j.cy+j.y1,j.cx+j.x1),Nt(it.cy+it.y1,it.cx+it.x1),!c),It>0&&r.arc(f+it.cx,h+it.cy,It,Nt(it.y1,it.x1),Nt(it.y0,it.x0),!c))}else r.moveTo(f+P,h+O),r.arc(f,h,i,u,l,!c);if(!(n>ye)||!V)r.lineTo(f+W,h+N);else if(A>ye){var jt=Pe(g,A),It=Pe(m,A),j=Ga(W,N,D,L,n,-It,c),it=Ga(P,O,E,I,n,-jt,c);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),A<C&&jt===It?r.arc(f+j.cx,h+j.cy,A,Nt(j.y0,j.x0),Nt(it.y0,it.x0),!c):(It>0&&r.arc(f+j.cx,h+j.cy,It,Nt(j.y0,j.x0),Nt(j.y1,j.x1),!c),r.arc(f,h,n,Nt(j.cy+j.y1,j.cx+j.x1),Nt(it.cy+it.y1,it.cx+it.x1),c),jt>0&&r.arc(f+it.cx,h+it.cy,jt,Nt(it.y1,it.x1),Nt(it.y0,it.x0),!c))}else r.lineTo(f+W,h+N),r.arc(f,h,n,l,u,c)}r.closePath()}}}var Lb=(function(){function r(){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 r})(),gn=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Lb},t.prototype.buildPath=function(e,i){Eb(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ht);gn.prototype.type="sector";var Ib=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),jf=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ib},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t})(ht);jf.prototype.type="ring";function Pb(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Wi(f,f,r[c]),Ui(h,h,r[c]);Wi(f,f,i[0]),Ui(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)u=r[c?c-1:v-1],l=r[(c+1)%v];else if(c===0||c===v-1){n.push(u_(r[c]));continue}else u=r[c-1],l=r[c+1];l_(a,l,u),Ys(a,a,t);var g=pl(d,u),m=pl(d,l),p=g+m;p!==0&&(g/=p,m/=p),Ys(o,a,-g),Ys(s,a,m);var y=Qh([],d,o),_=Qh([],d,s);i&&(Ui(y,y,f),Wi(y,y,h),Ui(_,_,f),Wi(_,_,h)),n.push(y),n.push(_)}return e&&n.push(n.shift()),n}function jg(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Pb(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Ob=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),th=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ob},t.prototype.buildPath=function(e,i){jg(e,i,!0)},t})(ht);th.prototype.type="polygon";var Nb=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),eh=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nb},t.prototype.buildPath=function(e,i){jg(e,i,!1)},t})(ht);eh.prototype.type="polyline";var Rb={},kb=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Ar=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kb},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Bg(Rb,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(e.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t})(ht);Ar.prototype.type="line";var Yt=[],Bb=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function pv(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?lc:Pt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?lc:Pt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?fc:Zt)(r.x1,r.cpx1,r.x2,t),(e?fc:Zt)(r.y1,r.cpy1,r.y2,t)]}var rh=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Bb},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(Vo(n,u,o,c,Yt),u=Yt[1],o=Yt[2],Vo(a,l,s,c,Yt),l=Yt[1],s=Yt[2]),e.quadraticCurveTo(u,l,o,s)):(c<1&&(Bo(n,u,f,o,c,Yt),u=Yt[1],f=Yt[2],o=Yt[3],Bo(a,l,h,s,c,Yt),l=Yt[1],h=Yt[2],s=Yt[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return pv(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=pv(this.shape,e,!0);return c_(i,i)},t})(ht);rh.prototype.type="bezier-curve";var Vb=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Ps=(function(r){B(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vb},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,u,!l)},t})(ht);Ps.prototype.type="arc";var Fb=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ht.prototype.getBoundingRect.call(this)},t})(ht),tm=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),em=(function(r){B(t,r);function t(e,i,n,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(tm),zb=(function(r){B(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(tm),Eu=Math.min,Hb=Math.max,Wa=Math.abs,Qr=[0,0],Jr=[0,0],Mt=jp(),Ua=Mt.minTv,Ya=Mt.maxTv,rm=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new vt;for(var i=0;i<2;i++)this._axes[i]=new vt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),e)for(var l=0;l<4;l++)i[l].transform(e);vt.sub(n[0],i[1],i[0]),vt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},r.prototype.intersect=function(t,e,i){var n=!0,a=!e;return e&&vt.set(e,0,0),Mt.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Mt.negativeSize&&vt.copy(e,n?Mt.useDir?Mt.dirMinTv:Ua:Ya),n},r.prototype._intersectCheckOneSide=function(t,e,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Qr),t._getProjMinMaxOnAxis(o,e._corners,Jr),Mt.negativeSize||Qr[1]<Jr[0]||Qr[0]>Jr[1]){if(a=!1,Mt.negativeSize||i)return a;var u=Wa(Jr[0]-Qr[1]),l=Wa(Qr[0]-Jr[1]);Eu(u,l)>Ya.len()&&(u<l?vt.scale(Ya,s,-u*n):vt.scale(Ya,s,l*n))}else if(!i){var u=Wa(Jr[0]-Qr[1]),l=Wa(Qr[0]-Jr[1]);(Mt.useDir||Eu(u,l)<Ua.len())&&((u<l||!Mt.bidirectional)&&(vt.scale(Ua,s,u*n),Mt.useDir&&Mt.calcDirMTV()),(u>=l||!Mt.bidirectional)&&(vt.scale(Ua,s,-l*n),Mt.useDir&&Mt.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(n)+a[t];s=Eu(f,s),u=Hb(f,u)}i[0]=s+Mt.touchThreshold,i[1]=u-Mt.touchThreshold,Mt.negativeSize=i[1]<i[0]},r})(),Gb=[],Wb=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},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,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new tt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Gb)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t})(wa),Ub=xt();function Yb(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=Z(i.duration,200),f=Z(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(e,n)),K(l)&&(l=l(e));var c={duration:l||0,delay:h,easing:f};return c}else return null}function ih(r,t,e,i,n,a,o){var s=!1,u;K(n)?(o=a,a=n,n=null):X(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=Yb(r,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function ne(r,t,e,i,n,a){ih("update",r,t,e,i,n,a)}function sr(r,t,e,i,n,a){ih("enter",r,t,e,i,n,a)}function Qn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Qo(r,t,e,i,n,a){Qn(r)||ih("leave",r,t,e,i,n,a)}function gv(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Qo(r,{style:{opacity:0}},t,e,i)}function To(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||gv(n,t,e,i)}):gv(r,t,e,i)}function im(r){Ub(r).oldStyle=r.style}var Zl={},oi=["x","y"],sa=["width","height"];function Xb(r){return ht.extend(r)}var $b=xb;function Zb(r,t){return $b(r,t)}function Ce(r,t){Zl[r]=t}function qb(r){if(Zl.hasOwnProperty(r))return Zl[r]}function nh(r,t,e,i){var n=bb(r,t);return e&&(i==="center"&&(e=am(e,n.getBoundingRect())),om(n,e)),n}function nm(r,t,e){var i=new Or({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(am(t,a))}}});return i}function am(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Kb=wb;function om(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function ua(r,t){return Bg(r,r,{lineWidth:t}),r}function Qb(r,t){return Vg(r,r,t),r}var Jb=li;function jb(r,t){for(var e=Ff([]);r&&r!==t;)Xn(e,r.getLocalTransform(),e),r=r.parent;return e}function ah(r,t,e){return t&&!Jt(t)&&(t=Gf.getLocalTransform(t)),e&&(t=_a([],t)),me([],r,t)}function tx(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Re(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Re(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=ah(a,t,e),Re(a[0])>Re(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function mv(r){return!r.isGroup}function ex(r){return r.shape!=null}function sm(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){mv(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ex(o)&&(s.shape=rt(o.shape)),s}var a=i(r);t.traverse(function(o){if(mv(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),ne(o,u,e,nt(o).dataIndex)}}})}function rx(r,t){return q(r,function(e){var i=e[0];i=ie(i,t.x),i=aa(i,t.x+t.width);var n=e[1];return n=ie(n,t.y),n=aa(n,t.y+t.height),[i,n]})}function ix(r,t){var e=ie(r.x,t.x),i=aa(r.x+r.width,t.x+t.width),n=ie(r.y,t.y),a=aa(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function oh(r,t,e){var i=R({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ct(n,e),new Or(i)):nh(r.replace("path://",""),i,e,"center")}function nx(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(um(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function um(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=Lu(f,h,u,l);if(ax(c))return!1;var v=r-n,d=t-a,g=Lu(v,d,u,l)/c;if(g<0||g>1)return!1;var m=Lu(v,d,f,h)/c;return!(m<0||m>1)}function Lu(r,t,e,i){return r*i-e*t}function ax(r){return r<=1e-6&&r>=-1e-6}function Jo(r,t,e,i,n){return t==null||(pt(t)?gt[0]=gt[1]=gt[2]=gt[3]=t:(process.env.NODE_ENV!=="production"&&$(t.length===4),gt[0]=t[0],gt[1]=t[1],gt[2]=t[2],gt[3]=t[3]),i&&(gt[0]=ie(0,gt[0]),gt[1]=ie(0,gt[1]),gt[2]=ie(0,gt[2]),gt[3]=ie(0,gt[3])),e&&(gt[0]=-gt[0],gt[1]=-gt[1],gt[2]=-gt[2],gt[3]=-gt[3]),yv(r,gt,"x","width",3,1,n&&n[0]||0),yv(r,gt,"y","height",0,2,n&&n[1]||0)),r}var gt=[0,0,0,0];function yv(r,t,e,i,n,a,o){var s=t[a]+t[n],u=r[i];r[i]+=s,o=ie(0,aa(o,u)),r[i]<o?(r[i]=o,r[e]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:Re(s)>1e-8?(u-o)*t[n]/s:0):r[e]-=t[n]}function Os(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=U(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&T(mt(u),function(f){be(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=nt(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:ct({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function ql(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Ns(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)ql(r[e],t);else ql(r,t)}function sh(r){return!r||Re(r[1])<Xa&&Re(r[2])<Xa||Re(r[0])<Xa&&Re(r[3])<Xa}var Xa=1e-5;function la(r,t){return r?tt.copy(r,t):t.clone()}function uh(r,t){return t?Jp(r||ir(),t):void 0}function lm(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function ox(r){var t=-1/0,e=1/0;ql(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function fm(r,t,e){hm(r,t,e,-1/0)}function hm(r,t,e,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),u=0;u<s.length;u++)i=ie(hm(s[u],t,e,i),i);else r.z=t,r.zlevel=e,i=ie(r.z2||0,i);if(n&&(n.z=t,n.zlevel=e,isFinite(i)&&(n.z2=i+2)),a){var l=r.textGuideLineConfig;a.z=t,a.zlevel=e,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}Ce("circle",Is);Ce("ellipse",Jf);Ce("sector",gn);Ce("ring",jf);Ce("polygon",th);Ce("polyline",eh);Ce("rect",bt);Ce("line",Ar);Ce("bezierCurve",rh);Ce("arc",Ps);const sx=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ps,BezierCurve:rh,BoundingRect:tt,Circle:Is,CompoundPath:Fb,Ellipse:Jf,Group:Lt,Image:Or,IncrementalDisplayable:Wb,Line:Ar,LinearGradient:em,OrientedBoundingRect:rm,Path:ht,Point:vt,Polygon:th,Polyline:eh,RadialGradient:zb,Rect:bt,Ring:jf,Sector:gn,Text:Bt,WH:sa,XY:oi,applyTransform:ah,calcZ2Range:ox,clipPointsByRect:rx,clipRectByRect:ix,createIcon:oh,ensureCopyRect:la,ensureCopyTransform:uh,expandOrShrinkRect:Jo,extendPath:Zb,extendShape:Xb,getShapeClass:qb,getTransform:jb,groupTransition:sm,initProps:sr,isBoundingRectAxisAligned:sh,isElementRemoved:Qn,lineLineIntersect:um,linePolygonIntersect:nx,makeImage:nm,makePath:nh,mergePath:Kb,registerShape:Ce,removeElement:Qo,removeElementWithFadeOut:To,resizePath:om,retrieveZInfo:lm,setTooltipConfig:Os,subPixelOptimize:Jb,subPixelOptimizeLine:ua,subPixelOptimizeRect:Qb,transformDirection:tx,traverseElements:Ns,traverseUpdateZ:fm,updateProps:ne},Symbol.toStringTag,{value:"Module"}));var Rs={};function ux(r,t){for(var e=0;e<Ge.length;e++){var i=Ge[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function _v(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var u={normal:s},l=0;l<Ge.length;l++){var f=Ge[l],h=t[f];u[f]=Z(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function ks(r,t,e,i){e=e||Rs;for(var n=r instanceof Bt,a=!1,o=0;o<rv.length;o++){var s=t[rv[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?r:r.getTextContent();if(a){n||(u||(u=new Bt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=_v(e,t),f=t.normal,h=!!f.getShallow("show"),c=Er(f,i&&i.normal,e,!1,!n);c.text=l.normal,n||r.setTextConfig(Sv(f,e,!1));for(var o=0;o<Ge.length;o++){var v=Ge[o],s=t[v];if(s){var d=u.ensureState(v),g=!!Z(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=Er(s,i&&i[v],e,!0,!n),d.style.text=l[v],!n){var m=r.ensureState(v);m.textConfig=Sv(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),e.enableTextSetter&&(Vs(u).setLabelText=function(p){var y=_v(e,t,p);ux(u,y)})}else u&&(u.ignore=!0);r.dirty()}function Bs(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Ge.length;i++){var n=Ge[i];e[n]=r.getModel([n,t])}return e}function Er(r,t,e,i,n){var a={};return lx(a,r,e,i,n),t&&R(a,t),a}function Sv(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=Z(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function lx(r,t,e,i,n){e=e||Rs;var a=t.ecModel,o=a&&a.option.textStyle,s=fx(t),u;if(s){u={};var l="richInheritPlainLabel",f=Z(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);Tv(u[h]={},c,o,t,f,e,i,n,!1,!0)}}u&&(r.rich=u);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var g=r,m=t.get("minMargin");if(m!=null)m=pt(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=Zi.minMargin;else{var p=t.get("textMargin");p!=null&&(g.margin=Bf(p),g.__marginType=Zi.textMargin)}Tv(r,t,o,null,null,e,i,n,!0,!1)}function fx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Rs).rich;if(e){t=t||{};for(var i=mt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var bv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Tv(r,t,e,i,n,a,o,s,u,l){e=!o&&e||Rs;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=Z(t.getShallow("opacity"),e.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&Et("color: 'auto'","color: 'inherit'"),f?h=f:h=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Et("color: 'auto'","color: 'inherit'"),f?c=f:c=null),s||(h=h||e.color,c=c||e.textBorderColor),h!=null&&(r.fill=h),c!=null&&(r.stroke=c);var d=Z(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var g=Z(t.getShallow("textBorderType"),e.textBorderType);g!=null&&(r.lineDash=g);var m=Z(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var p=0;p<bv.length;p++){var y=bv[p],_=n!==!1&&i?xr(t.getShallow(y),i.getShallow(y),e[y]):Z(t.getShallow(y),e[y]);_!=null&&(r[y]=_)}for(var p=0;p<xv.length;p++){var y=xv[p],_=t.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!u||!a.disableBox){for(var p=0;p<wv.length;p++){var y=wv[p],_=t.getShallow(y);_!=null&&(r[y]=_)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&r.backgroundColor==="auto"&&Et("backgroundColor: 'auto'","backgroundColor: 'inherit'"),r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&r.borderColor==="auto"&&Et("borderColor: 'auto'","borderColor: 'inherit'"),r.borderColor=f)}}function hx(r,t){var e=t&&t.getModel("textStyle");return Ne([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Vs=xt();function cx(r,t,e,i){if(r){var n=Vs(r);n.prevValue=n.value,n.value=e;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var Zi={minMargin:1,textMargin:2},vx=["textStyle","color"],Iu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Pu=new Bt,dx=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(vx):null)},r.prototype.getFont=function(){return hx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Iu.length;i++)e[Iu[i]]=this.getShallow(Iu[i]);return Pu.useStyle(e),Pu.update(),Pu.getBoundingRect()},r})(),cm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],px=oa(cm),gx=(function(){function r(){}return r.prototype.getLineStyle=function(t){return px(this,t)},r})(),vm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],mx=oa(vm),yx=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return mx(this,t,e)},r})(),_t=(function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){lt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r})();Yf(_t);tS(_t);Ue(_t,gx);Ue(_t,yx);Ue(_t,aS);Ue(_t,dx);var _x=Math.round(Math.random()*10);function Fs(r){return[r||"",_x++].join("_")}function Sx(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=ke(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=ke(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function bx(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,c={};for(T(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),T(d.successor,g?p:m)}T(c,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Uo("Circular dependency may exists: ",c,a,o)),new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function p(y){c[y]=!0,m(y)}};function e(a){var o={},s=[];return T(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),T(h,function(c){st(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);st(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(u){st(o,u)>=0&&s.push(u)}),s}}function dm(r,t){return lt(lt({},r,!0),t,!0)}const xx={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:". "}}}},Tx={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:""}}}};var jo="ZH",lh="EN",Qi=lh,Co={},fh={},pm=J.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qi).toUpperCase();return r.indexOf(jo)>-1?jo:Qi})():Qi;function gm(r,t){r=r.toUpperCase(),fh[r]=new _t(t),Co[r]=t}function Cx(r){if(U(r)){var t=Co[r.toUpperCase()]||{};return r===jo||r===lh?rt(t):lt(rt(t),rt(Co[Qi]),!1)}else return lt(rt(r),rt(Co[Qi]),!1)}function Dx(r){return fh[r]}function Mx(){return fh[Qi]}gm(lh,xx);gm(jo,Tx);var Ax=null;function ts(){return Ax}var hh=1e3,ch=hh*60,Jn=ch*60,ge=Jn*24,Cv=ge*365,Ex={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})/},Do={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Lx="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",$a="{yyyy}-{MM}-{dd}",Dv={year:"{yyyy}",month:"{yyyy}-{MM}",day:$a,hour:$a+" "+Do.hour,minute:$a+" "+Do.minute,second:$a+" "+Do.second,millisecond:Lx},mi=["year","month","day","hour","minute","second","millisecond"],Ix=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Px(r){return!U(r)&&!K(r)?Ox(r):r}function Ox(r){r=r||{};var t={},e=!0;return T(mi,function(i){e&&(e=r[i]==null)}),T(mi,function(i,n){var a=r[i];t[i]={};for(var o=null,s=n;s>=0;s--){var u=mi[s],l=X(a)&&!F(a)?a[u]:a,f=void 0;F(l)?(f=l.slice(),o=f[0]||""):U(l)?(o=l,f=[o]):(o==null?o=Do[i]:Ex[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[i][u]=f}}),t}function hr(r,t){return r+="","0000".substr(0,t-r.length)+r}function jn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Nx(r){return r===jn(r)}function Rx(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zs(r,t,e,i){var n=pn(r),a=n[mm(e)](),o=n[vh(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[dh(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[ph(e)](),h=(f-1)%12+1,c=n[gh(e)](),v=n[mh(e)](),d=n[yh(e)](),g=f>=12?"pm":"am",m=g.toUpperCase(),p=i instanceof _t?i:Dx(i||pm)||Mx(),y=p.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),x=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,hr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,hr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,hr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,x[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,hr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,hr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,hr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,hr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,hr(d,3)).replace(/{S}/g,d+"")}function kx(r,t,e,i,n){var a=null;if(U(e))a=e;else if(K(e)){var o={time:r.time,level:r.time.level},s=ts();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=e(r.value,t,o)}else{var u=r.time;if(u){var l=e[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=es(r.value,n);a=e[f][f][0]}}return zs(new Date(r.value),a,n,i)}function es(r,t){var e=pn(r),i=e[vh(t)]()+1,n=e[dh(t)](),a=e[ph(t)](),o=e[gh(t)](),s=e[mh(t)](),u=e[yh(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Kl(r,t,e){switch(t){case"year":r[ym(e)](0);case"month":r[_m(e)](1);case"day":r[Sm(e)](0);case"hour":r[bm(e)](0);case"minute":r[xm(e)](0);case"second":r[wm(e)](0)}return r}function mm(r){return r?"getUTCFullYear":"getFullYear"}function vh(r){return r?"getUTCMonth":"getMonth"}function dh(r){return r?"getUTCDate":"getDate"}function ph(r){return r?"getUTCHours":"getHours"}function gh(r){return r?"getUTCMinutes":"getMinutes"}function mh(r){return r?"getUTCSeconds":"getSeconds"}function yh(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Bx(r){return r?"setUTCFullYear":"setFullYear"}function ym(r){return r?"setUTCMonth":"setMonth"}function _m(r){return r?"setUTCDate":"setDate"}function Sm(r){return r?"setUTCHours":"setHours"}function bm(r){return r?"setUTCMinutes":"setMinutes"}function xm(r){return r?"setUTCSeconds":"setSeconds"}function wm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Tm(r){if(!bg(r))return U(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Cm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Hs=Bf;function Ql(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ne(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?pn(r):r;if(isNaN(+u)){if(s)return"-"}else return zs(u,i,e)}if(t==="ordinal")return Po(r)?n(r):pt(r)&&a(r)?r+"":"-";var l=Wo(r);return a(l)?Tm(l):Po(r)?n(r):typeof r=="boolean"?r+"":"-"}var Mv=["a","b","c","d","e","f","g"],Ou=function(r,t){return"{"+r+(t??"")+"}"};function Dm(r,t,e){F(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Mv[a];r=r.replace(Ou(o),Ou(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];r=r.replace(Ou(Mv[u],s),e?$t(l):l)}return r}function Vx(r,t){var e=U(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+$t(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+$t(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function bi(r,t){return t=t||"transparent",U(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Av(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Mo={},Nu={},_h=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=i(Mo,!0),this._normalMasterList=i(Nu,!1);function i(n,a){var o=[];return T(n,function(s,u){var l=s.create(t,e);o=o.concat(l||[]),process.env.NODE_ENV!=="production"&&a&&T(l,function(f){return $(!f.update)})}),o}},r.prototype.update=function(t,e){T(this._normalMasterList,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Mo[t]=e;return}Nu[t]=e},r.get=function(t){return Nu[t]||Mo[t]},r})();function Fx(r){return!!Mo[r]}var Ev={coord:1,coord2:2},zx=et();function Hx(r){var t=r.getShallow("coord",!0),e=Ev.coord;if(t==null){var i=zx.get(r.type);i&&i.getCoord2&&(e=Ev.coord2,t=i.getCoord2(r))}return{coord:t,from:e}}var je={none:0,dataCoordSys:1,boxCoordSys:2};function Gx(r,t){var e=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=je.none;if(e){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=je.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&n&&t&&ft('coordinateSystemUsage "data" is not supported in non-series components.'),a=je.none)):i==="box"&&(a=je.boxCoordSys,!o&&!Fx(e)&&(process.env.NODE_ENV!=="production"&&n&&t&&ft('coordinateSystem "'+e+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+r.type+'" yet.')),a=je.none))}return{coordSysType:e,kind:a}}function Wx(r){var t=r.targetModel,e=r.coordSysType,i=r.coordSysProvider,n=r.isDefaultDataCoordSys,a=r.allowNotFound;process.env.NODE_ENV!=="production"&&$(!!e);var o=Gx(t,!0),s=o.kind,u=o.coordSysType;if(n&&s!==je.dataCoordSys&&(s=je.dataCoordSys,u=e),s===je.none||u!==e)return!1;var l=i(e,t);return l?(s===je.dataCoordSys?(process.env.NODE_ENV!=="production"&&$(t.mainType==="series"),t.coordinateSystem=l):t.boxCoordinateSystem=l,!0):(process.env.NODE_ENV!=="production"&&(a||ft(e+" cannot be found for"+(" "+t.type+" (index: "+t.componentIndex+")."))),!1)}var Ao=T,Ux=["left","right","top","bottom","width","height"],Za=[["width","left","right"],["height","top","bottom"]];function Sh(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>i||u.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);d=o+m,d>n||u.newline?(a+=s+e,o=0,d=m,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var ta=Sh;Ct(Sh,"vertical");Ct(Sh,"horizontal");function Yx(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function on(r,t,e){e=Hs(e||0);var i=t.width,n=t.height,a=Ht(r.left,i),o=Ht(r.top,n),s=Ht(r.right,i),u=Ht(r.bottom,n),l=Ht(r.width,i),f=Ht(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new tt((t.x||0)+a+e[3],(t.y||0)+o+e[0],l,f);return d.margin=e,d}var Ru={rect:1};function bh(r,t,e){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var u=Hx(r),l=u.coord,f=u.from;if(o.dataToLayout){a=Ru.rect,s=f;var h=o.dataToLayout(l);i=h.contentRect||h.rect}else process.env.NODE_ENV!=="production"&&ft(r.type+"["+r.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Ru.rect),a===Ru.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function fa(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Lr(r,t,e){var i=e&&e.ignoreSize;!F(i)&&(i=[i,i]);var n=o(Za[0],0),a=o(Za[1],1);u(Za[0],r,n),u(Za[1],r,a);function o(l,f){var h={},c=0,v={},d=0,g=2;if(Ao(l,function(y){v[y]=r[y]}),Ao(l,function(y){be(t,y)&&(h[y]=v[y]=t[y]),s(h,y)&&c++,s(v,y)&&d++}),i[f])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(d===g||!c)return v;if(c>=g)return h;for(var m=0;m<l.length;m++){var p=l[m];if(!be(h,p)&&be(r,p)){h[p]=r[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){Ao(l,function(c){f[c]=h[c]})}}function Ta(r){return Xx({},r)}function Xx(r,t){return t&&r&&Ao(Ux,function(e){be(t,e)&&(r[e]=t[e])}),r}var $x=xt(),ot=(function(r){B(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Fs("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=fa(this),a=n?Ta(e):{},o=i.getTheme();lt(e,o.get(this.mainType)),lt(e,this.getDefaultOption()),n&&Lr(e,a,n)},t.prototype.mergeOption=function(e,i){lt(this.option,e,!0);var n=fa(this);n&&Lr(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Q1(e))return e.defaultOption;var i=$x(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=lt(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return xa(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return Yx(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})(_t);Eg(ot,_t);Cs(ot);Sx(ot);bx(ot,Zx);function Zx(r){var t=[];return T(ot.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=q(t,function(e){return ke(e).main}),r!=="dataset"&&st(t,"dataset")<=0&&t.unshift("dataset"),t}var Y={color:{},darkColor:{},size:{}},St=Y.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)"};R(St,{primary:St.neutral80,secondary:St.neutral70,tertiary:St.neutral60,quaternary:St.neutral50,disabled:St.neutral20,border:St.neutral30,borderTint:St.neutral20,borderShade:St.neutral40,background:St.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:St.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:St.neutral70,axisLineTint:St.neutral40,axisTick:St.neutral70,axisTickMinor:St.neutral60,axisLabel:St.neutral70,axisSplitLine:St.neutral15,axisMinorSplitLine:St.neutral05});for(var jr in St)if(St.hasOwnProperty(jr)){var Lv=St[jr];jr==="theme"?Y.darkColor.theme=St.theme.slice():jr==="highlight"?Y.darkColor.highlight="rgba(255,231,130,0.4)":jr.indexOf("accent")===0?Y.darkColor[jr]=Cl(Lv,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Y.darkColor[jr]=Cl(Lv,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Y.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Mm="";typeof navigator<"u"&&(Mm=navigator.platform||"");var Pi="rgba(0, 0, 0, 0.2)",Am=Y.color.theme[0],qx=Cl(Am,null,null,.9);const Kx={darkMode:"auto",colorBy:"series",color:Y.color.theme,gradientColor:[qx,Am],aria:{decal:{decals:[{color:Pi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Mm.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};var Jl=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ae="original",Vt="arrayRows",De="objectRows",Xe="keyedColumns",nr="typedArray",Em="unknown",He="column",xi="row",te={Must:1,Might:2,Not:3},Lm=xt();function Qx(r){Lm(r).datasetMap=et()}function Jx(r,t,e){var i={},n=Im(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=Lm(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),T(r,function(g,m){var p=X(g)?g:r[m]={name:g};p.type==="ordinal"&&f==null&&(f=m,h=d(p)),i[p.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});T(r,function(g,m){var p=g.name,y=d(g);if(f==null){var _=c.valueWayDim;v(i[p],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===m)v(i[p],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(i[p],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(g,m,p){for(var y=0;y<p;y++)g.push(m+y)}function d(g){var m=g.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Im(r){var t=r.get("data",!0);if(!t)return xa(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},pe).models[0]}function jx(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:xa(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},pe).models}function Pm(r,t){return tw(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function tw(r,t,e,i,n,a){var o,s=5;if(Wt(r))return te.Not;var u,l;if(i){var f=i[a];X(f)?(u=f.name,l=f.type):U(f)&&(u=f)}if(l!=null)return l==="ordinal"?te.Must:te.Not;if(t===Vt){var h=r;if(e===xi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===De){var g=r;if(!u)return te.Not;for(var v=0;v<g.length&&v<s;v++){var m=g[v];if(m&&(o=S(m[u]))!=null)return o}}else if(t===Xe){var p=r;if(!u)return te.Not;var c=p[u];if(!c||Wt(c))return te.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===ae)for(var y=r,v=0;v<y.length&&v<s;v++){var m=y[v],_=ba(m);if(!F(_))return te.Not;if((o=S(_[a]))!=null)return o}function S(x){var b=U(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?te.Might:te.Not;if(b&&x!=="-")return te.Must}return te.Not}var ew=et();function rw(r,t,e){var i=ew.get(t);if(!i)return e;var n=i(r);if(!n)return e;if(process.env.NODE_ENV!=="production")for(var a=0;a<n.length;a++)$(nn(n[a]));return e.concat(n)}var Iv=xt();xt();var xh=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Gt(this.get("color",!0)),a=this.get("colorLayer",!0);return nw(this,Iv,n,a,t,e,i)},r.prototype.clearColorPalette=function(){aw(this,Iv)},r})();function iw(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function nw(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:iw(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function aw(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qa,Cn,Pv,ku="\0_ec_inner",Ov=1,ow={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"},sw={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"},rs={};function uw(r){T(r,function(t,e){if(!ot.hasClass(e)){var i=ow[e];i&&!rs[i]&&(ft("Component "+e+` is used but not imported.
|
|
9
|
+
import { `+i+` } from 'echarts/components';
|
|
10
|
+
echarts.use([`+i+"]);"),rs[i]=!0)}})}var wh=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new _t(a),this._locale=new _t(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){process.env.NODE_ENV!=="production"&&($(e!=null,"option is null/undefined"),$(e[ku]!==Ov,"please use chart.getOption()"));var a=kv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,kv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");process.env.NODE_ENV!=="production"&&uw(o),!this.option||e==="recreate"?Pv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&T(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=et(),l=i&&i.replaceMergeMainTypeMap;Qx(this),T(e,function(h,c){h!=null&&(ot.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?rt(h):lt(n[c],h,!0))}),l&&l.each(function(h,c){ot.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),f,this);function f(h){var c=rw(this,h,Gt(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=k1(v,c,d);W1(g,h,ot),n[h]=null,a.set(h,null),o.set(h,0);var m=[],p=[],y=0,_,S;T(g,function(x,b){var w=x.existing,C=x.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var M=h==="series",A=ot.getClass(h,x.keyInfo.subType,!M);if(!A){if(process.env.NODE_ENV!=="production"){var D=x.keyInfo.subType,L=sw[D];rs[D]||(rs[D]=!0,ft(L?"Series "+D+` is used but not imported.
|
|
11
|
+
import { `+L+` } from 'echarts/charts';
|
|
12
|
+
echarts.use([`+L+"]);":"Unknown series "+D))}return}if(h==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(kt("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(w&&w.constructor===A)w.name=x.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var E=R({componentIndex:b},x.keyInfo);w=new A(C,this,this,E),R(w,E),x.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),p.push(w),y++):(m.push(void 0),p.push(void 0))},this),n[h]=m,a.set(h,p),o.set(h,y),h==="series"&&qa(this)}this._seriesIndices||qa(this)},t.prototype.getOption=function(){var e=rt(this.option);return T(e,function(i,n){if(ot.hasClass(n)){for(var a=Gt(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!nn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[ku],e},t.prototype.setTheme=function(e){this._theme=new _t(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,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],T(Gt(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=Nv("id",a,s):o!=null?u=Nv("name",o,s):u=At(s,function(l){return!!l}),Rv(u,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):At(this._componentsMap.get(n),function(l){return!!l});return u(Rv(o,e));function s(l){var f=n+"Index",h=n+"Id",c=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:n,index:l[f],id:l[h],name:l[c]}:null}function u(l){return e.filter?At(l,e.filter):l}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(K(e)){var o=i,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=U(e)?a.get(e):X(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=ze(e,null);return At(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return At(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return At(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Cn(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){T(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){Cn(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return T(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return Cn(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Cn(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=et(n)},t.prototype.restoreData=function(e){qa(this);var i=this._componentsMap,n=[];i.each(function(a,o){ot.hasClass(o)&&n.push(o)}),ot.topologicalTravel(n,ot.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!lw(o,e))&&o.restoreData()})})},t.internalField=(function(){qa=function(e){var i=e._seriesIndices=[];T(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=et(i)},Cn=function(e){if(process.env.NODE_ENV!=="production"&&!e._seriesIndices)throw new Error("Option should contains series.")},Pv=function(e,i){e.option={},e.option[ku]=Ov,e._componentsMap=et({series:[]}),e._componentsCount=et();var n=i.aria;X(n)&&n.enabled==null&&(n.enabled=!0),fw(i,e._theme.option),lt(i,Kx,!1),e._mergeOption(i,null)}})(),t})(_t);function lw(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function fw(r,t){var e=r.color&&!r.colorLayer;T(t,function(i,n){n==="colorLayer"&&e||n==="color"&&r.color||ot.hasClass(n)||(typeof i=="object"?r[n]=r[n]?lt(r[n],i,!1):rt(i):r[n]==null&&(r[n]=i))})}function Nv(r,t,e){if(F(t)){var i=et();return T(t,function(a){if(a!=null){var o=ze(a,null);o!=null&&i.set(a,!0)}}),At(e,function(a){return a&&i.get(a[r])})}else{var n=ze(t,null);return At(e,function(a){return a&&n!=null&&a[r]===n})}}function Rv(r,t){return t.hasOwnProperty("subType")?At(r,function(e){return e&&e.subType===t.subType}):r}function kv(r){var t=et();return r&&T(Gt(r.replaceMerge),function(e){process.env.NODE_ENV!=="production"&&$(ot.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ue(wh,xh);var hw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Om=(function(){function r(t){T(hw,function(e){this[e]=dt(t[e],t)},this)}return r})(),cw=/^(min|max)?(.+)$/,vw=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(T(Gt(t.series),function(o){o&&o.data&&Wt(o.data)&&dl(o.data)}),T(Gt(t.dataset),function(o){o&&o.source&&Wt(o.source)&&dl(o.source)})),t=rt(t);var n=this._optionBackup,a=dw(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],rt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=rt(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)pw(n[u].query,e,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!mw(o,this._currentMediaIndices)&&(s=q(o,function(f){return rt(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function dw(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&(F(l)?T(l,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&X(v.query)&&X(v.query.option)&&ft("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?i.push(v):n||(n=v))}):process.env.NODE_ENV!=="production"&&ft("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),T(u,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function pw(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return T(r,function(a,o){var s=o.match(cw);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();gw(i[l],a,u)||(n=!1)}}),n}function gw(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function mw(r,t){return r.join(",")===t.join(",")}var oe=T,ha=X,Bv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Bu(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=Bv.length;e<i;e++){var n=Bv[e],a=t.normal,o=t.emphasis;a&&a[n]&&(process.env.NODE_ENV!=="production"&&Et("itemStyle.normal."+n,n),r[n]=r[n]||{},r[n].normal?lt(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(process.env.NODE_ENV!=="production"&&Et("itemStyle.emphasis."+n,"emphasis."+n),r[n]=r[n]||{},r[n].emphasis?lt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Rt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(process.env.NODE_ENV!=="production"&&or("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(r[t].normal=r[t].emphasis=null,ct(r[t],i)):r[t]=i),n&&(process.env.NODE_ENV!=="production"&&or(t+".emphasis has been changed to emphasis."+t+" since 4.0"),r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Gn(r){Rt(r,"itemStyle"),Rt(r,"lineStyle"),Rt(r,"areaStyle"),Rt(r,"label"),Rt(r,"labelLine"),Rt(r,"upperLabel"),Rt(r,"edgeLabel")}function wt(r,t){var e=ha(r)&&r[t],i=ha(e)&&e.textStyle;if(i){process.env.NODE_ENV!=="production"&&or("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var n=0,a=Pc.length;n<a;n++){var o=Pc[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}}function fe(r){r&&(Gn(r),wt(r,"label"),r.emphasis&&wt(r.emphasis,"label"))}function yw(r){if(ha(r)){Bu(r),Gn(r),wt(r,"label"),wt(r,"upperLabel"),wt(r,"edgeLabel"),r.emphasis&&(wt(r.emphasis,"label"),wt(r.emphasis,"upperLabel"),wt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Bu(t),fe(t));var e=r.markLine;e&&(Bu(e),fe(e));var i=r.markArea;i&&fe(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Wt(a))for(var o=0;o<a.length;o++)fe(a[o]);T(r.categories,function(l){Gn(l)})}if(n&&!Wt(n))for(var o=0;o<n.length;o++)fe(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)fe(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)F(u[o])?(fe(u[o][0]),fe(u[o][1])):fe(u[o]);r.type==="gauge"?(wt(r,"axisLabel"),wt(r,"title"),wt(r,"detail")):r.type==="treemap"?(Rt(r.breadcrumb,"itemStyle"),T(r.levels,function(l){Gn(l)})):r.type==="tree"&&Gn(r.leaves)}}function qe(r){return F(r)?r:r?[r]:[]}function Vv(r){return(F(r)?r[0]:r)||{}}function _w(r,t){oe(qe(r.series),function(i){ha(i)&&yw(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),oe(e,function(i){oe(qe(r[i]),function(n){n&&(wt(n,"axisLabel"),wt(n.axisPointer,"label"))})}),oe(qe(r.parallel),function(i){var n=i&&i.parallelAxisDefault;wt(n,"axisLabel"),wt(n&&n.axisPointer,"label")}),oe(qe(r.calendar),function(i){Rt(i,"itemStyle"),wt(i,"dayLabel"),wt(i,"monthLabel"),wt(i,"yearLabel")}),oe(qe(r.radar),function(i){wt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,process.env.NODE_ENV!=="production"&&or("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,process.env.NODE_ENV!=="production"&&or("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&oe(i.indicator,function(n){n.text&&Et("text","name","radar.indicator")})}),oe(qe(r.geo),function(i){ha(i)&&(fe(i),oe(qe(i.regions),function(n){fe(n)}))}),oe(qe(r.timeline),function(i){fe(i),Rt(i,"label"),Rt(i,"itemStyle"),Rt(i,"controlStyle",!0);var n=i.data;F(n)&&T(n,function(a){X(a)&&(Rt(a,"label"),Rt(a,"itemStyle"))})}),oe(qe(r.toolbox),function(i){Rt(i,"iconStyle"),oe(i.feature,function(n){Rt(n,"iconStyle")})}),wt(Vv(r.axisPointer),"label"),wt(Vv(r.tooltip).axisPointer,"label")}function Sw(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function bw(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function Fv(r){r&&T(xw,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var xw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ww=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Dn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Vu.length;e++){var i=Vu[e][1],n=Vu[e][0];t[i]!=null&&(t[n]=t[i],process.env.NODE_ENV!=="production"&&Et(i,n))}}function zv(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Et("label.margin","label.edgeDistance","pie"),r.edgeDistance=r.margin)}function Hv(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay,process.env.NODE_ENV!=="production"&&Et("downplay","blur","sunburst"))}function Tw(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Et("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),r.emphasis.focus="adjacency"))}function Nm(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Nm(r[e].children,t)}function Rm(r,t){_w(r,t),r.series=Gt(r.series),T(r.series,function(e){if(X(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!=="production"&&Et("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!=="production"&&Et("clockWise","clockwise")),zv(e.label);var n=e.data;if(n&&!Wt(n))for(var a=0;a<n.length;a++)zv(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Et("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=Sw(e,"pointer.color");o!=null&&bw(e,"itemStyle.color",o)}else if(i==="bar"){Dn(e),Dn(e.backgroundStyle),Dn(e.emphasis);var n=e.data;if(n&&!Wt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Dn(n[a]),Dn(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Et("highlightPolicy","emphasis.focus","sunburst"))),Hv(e),Nm(e.data,Hv)}else i==="graph"||i==="sankey"?Tw(e):i==="map"&&(e.mapType&&!e.map&&(process.env.NODE_ENV!=="production"&&Et("mapType","map","map"),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!=="production"&&or("`mapLocation` is not used anymore."),ct(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Et("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),Fv(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(ww,function(e){var i=r[e];i&&(F(i)||(i=[i]),T(i,function(n){Fv(n)}))})}function Cw(r){var t=et();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var i=e[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),T(e,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),Dw(e)}})}function Dw(r){T(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,m=e-1;m>=0;m--){var p=r[m];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var y=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&c>=0&&y>0||u==="samesign"&&c<=0&&y<0){c=E1(c,y),g=y;break}}}return i[0]=c,i[1]=g,i})})}var Gs=(function(){function r(t){this.data=t.data||(t.sourceFormat===Xe?{}:[]),this.sourceFormat=t.sourceFormat||Em,this.seriesLayoutBy=t.seriesLayoutBy||He,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&Pm(this,i)===te.Must&&(n.type="ordinal")}}return r})();function Th(r){return r instanceof Gs}function jl(r,t,e){e=e||Bm(r);var i=t.seriesLayoutBy,n=Aw(r,e,i,t.sourceHeader,t.dimensions),a=new Gs({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function km(r){return new Gs({data:r,sourceFormat:Wt(r)?nr:ae})}function Mw(r){return new Gs({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:rt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Bm(r){var t=Em;if(Wt(r))t=nr;else if(F(r)){r.length===0&&(t=Vt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(F(n)||Wt(n)){t=Vt;break}else if(X(n)){t=De;break}}}}else if(X(r)){for(var a in r)if(be(r,a)&&Jt(r[a])){t=Xe;break}}return t}function Aw(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Gv(n),startIndex:o,dimensionsDetectedCount:a};if(t===Vt){var s=r;i==="auto"||i==null?Wv(function(l){l!=null&&l!=="-"&&(U(l)?o==null&&(o=1):o=0)},e,s,10):o=pt(i)?i:i?1:0,!n&&o===1&&(n=[],Wv(function(l,f){n[f]=l!=null?l+"":""},e,s,1/0)),a=n?n.length:e===xi?s.length:s[0]?s[0].length:null}else if(t===De)n||(n=Ew(r));else if(t===Xe)n||(n=[],T(r,function(l,f){n.push(f)}));else if(t===ae){var u=ba(r[0]);a=F(u)&&u.length||1}else t===nr&&process.env.NODE_ENV!=="production"&&$(!!n,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Gv(n),dimensionsDetectedCount:a}}function Ew(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return mt(e)}function Gv(r){if(r){var t=et();return q(r,function(e,i){e=X(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function Wv(r,t,e,i){if(t===xi)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function Vm(r){var t=r.sourceFormat;return t===De||t===Xe}var ti,ei,ri,ii,Uv,Yv,Fm=(function(){function r(t,e){var i=Th(t)?t:km(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===nr){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=n}if(process.env.NODE_ENV!=="production"){var s=Lw[is(a,o)];s&&s(n,i.dimensionsDefine)}Yv(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Yv=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Uv[is(l,f)];if(process.env.NODE_ENV!=="production"&&$(v,"Invalide sourceFormat: "+l),R(o,v),l===nr)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=zm(l,f);o.getItem=dt(d,null,s,h,c);var g=Hm(l,f);o.count=dt(g,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],m=s-o,p=u[c],y=0;y<m;y++){var _=f[y*h+c];p[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};Uv=(t={},t[Vt+"_"+He]={pure:!0,appendData:a},t[Vt+"_"+xi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[De]={pure:!0,appendData:a},t[Xe]={pure:!0,appendData:function(o){var s=this._data;T(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ae]={appendData:a},t[nr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&$(Wt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Ka=function(r){F(r)||ft("series.data or dataset.source must be an array.")},Lw=(ti={},ti[Vt+"_"+He]=Ka,ti[Vt+"_"+xi]=Ka,ti[De]=Ka,ti[Xe]=function(r,t){for(var e=0;e<t.length;e++){var i=t[e].name;i==null&&ft("dimension name must not be null/undefined.")}},ti[ae]=Ka,ti),Xv=function(r,t,e,i){return r[i]},Iw=(ei={},ei[Vt+"_"+He]=function(r,t,e,i){return r[i+t]},ei[Vt+"_"+xi]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},ei[De]=Xv,ei[Xe]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,u=s!=null?r[s]:null;a[o]=u?u[i]:null}return a},ei[ae]=Xv,ei);function zm(r,t){var e=Iw[is(r,t)];return process.env.NODE_ENV!=="production"&&$(e,'Do not support get item on "'+r+'", "'+t+'".'),e}var $v=function(r,t,e){return r.length},Pw=(ri={},ri[Vt+"_"+He]=function(r,t,e){return Math.max(0,r.length-t)},ri[Vt+"_"+xi]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},ri[De]=$v,ri[Xe]=function(r,t,e){var i=e[0].name,n=i!=null?r[i]:null;return n?n.length:0},ri[ae]=$v,ri);function Hm(r,t){var e=Pw[is(r,t)];return process.env.NODE_ENV!=="production"&&$(e,'Do not support count on "'+r+'", "'+t+'".'),e}var Fu=function(r,t,e){return r[t]},Ow=(ii={},ii[Vt]=Fu,ii[De]=function(r,t,e){return r[e]},ii[Xe]=Fu,ii[ae]=function(r,t,e){var i=ba(r);return i instanceof Array?i[t]:i},ii[nr]=Fu,ii);function Gm(r){var t=Ow[r];return process.env.NODE_ENV!=="production"&&$(t,'Do not support get value on "'+r+'".'),t}function is(r,t){return r===Vt?r+"_"+t:r}function sn(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Gm(a)(i,o,s)}else{var u=i;return a===ae&&(u=ba(i)),u}}}}var Nw=/\{@(.+?)\}/g,Rw=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&F(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(K(a))return u.status=e,u.dimensionIndex=n,a(u);if(U(a)){var f=Dm(a,u);return f.replace(Nw,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&ft("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var g=sn(s,t,d);if(o&&F(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return sn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r})();function Zv(r){var t,e;return X(r)?r.type?e=r:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Uo(r)):t=r,{text:t,frag:e}}function ea(r){return new kw(r)}var kw=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?(process.env.NODE_ENV!=="production"&&$(e._outputDueEnd!=null),this._dueEnd=e._outputDueEnd):(process.env.NODE_ENV!=="production"&&$(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var g=this._progress;if(F(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&$(p>=this._outputDueEnd),this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){qv.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:qv.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&$(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),qv=(function(){var r,t,e,i,n,a={reset:function(u,l,f,h){t=u,r=l,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%n*e+Math.ceil(t/n),l=t>=r?null:u<i?u:t;return t++,l}})();function Eo(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!pt(r)&&r!=null&&r!=="-"&&(r=+pn(r)),r==null||r===""?NaN:Number(r))}et({number:function(r){return parseFloat(r)},time:function(r){return+pn(r)},trim:function(r){return U(r)?Ne(r):r}});var Bw=(function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=pt(t)?t:Wo(t),n=pt(e)?e:Wo(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=U(t),u=U(e);s&&(i=u?t:0),u&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r})(),Vw=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Eo(t,e)},r})();function Fw(r,t){var e=new Vw,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==He&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),qt(o));var s=[],u={},l=r.dimensionsDefine;if(l)T(l,function(g,m){var p=g.name,y={index:m,name:p,displayName:g.displayName};if(s.push(y),p!=null){var _="";be(u,p)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+p+'" duplicated.'),qt(_)),u[p]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=zm(n,He);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(i,a,s,g)},e.getRawData=dt(zw,null,r)),e.cloneRawData=dt(Hw,null,r);var c=Hm(n,He);e.count=dt(c,null,i,a,s);var v=Gm(n);e.retrieveValue=function(g,m){var p=h(i,a,s,g);return d(p,m)};var d=e.retrieveValueFromItem=function(g,m){if(g!=null){var p=s[m];if(p)return v(g,m,p.name)}};return e.getDimensionInfo=dt(Gw,null,s,u),e.cloneAllDimensionInfo=dt(Ww,null,s),e}function zw(r){var t=r.sourceFormat;if(!Ch(t)){var e="";process.env.NODE_ENV!=="production"&&(e="`getRawData` is not supported in source format "+t),qt(e)}return r.data}function Hw(r){var t=r.sourceFormat,e=r.data;if(!Ch(t)){var i="";process.env.NODE_ENV!=="production"&&(i="`cloneRawData` is not supported in source format "+t),qt(i)}if(t===Vt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===De){for(var n=[],a=0,o=e.length;a<o;a++)n.push(R({},e[a]));return n}}function Gw(r,t,e){if(e!=null){if(pt(e)||!isNaN(e)&&!be(t,e))return r[e];if(be(t,e))return t[e]}}function Ww(r){return rt(r)}var Wm=et();function Uw(r){r=rt(r);var t=r.type,e="";t||(process.env.NODE_ENV!=="production"&&(e="Must have a `type` when `registerTransform`."),qt(e));var i=t.split(":");i.length!==2&&(process.env.NODE_ENV!=="production"&&(e='Name must include namespace like "ns:regression".'),qt(e));var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,Wm.set(t,r)}function Yw(r,t,e){var i=Gt(r),n=i.length,a="";n||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),qt(a));for(var o=0,s=n;o<s;o++){var u=i[o];t=Xw(u,t,e,n===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Xw(r,t,e,i){var n="";t.length||(process.env.NODE_ENV!=="production"&&(n="Must have at least one upstream dataset."),qt(n)),X(r)||(process.env.NODE_ENV!=="production"&&(n="transform declaration must be an object rather than "+typeof r+"."),qt(n));var a=r.type,o=Wm.get(a);o||(process.env.NODE_ENV!=="production"&&(n='Can not find transform on type "'+a+'".'),qt(n));var s=q(t,function(f){return Fw(f,o)}),u=Gt(o.transform({upstream:s[0],upstreamList:s,config:rt(r.config)}));if(process.env.NODE_ENV!=="production"&&r.print){var l=q(u,function(f){var h=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+e.datasetIndex+h+" ===","- transform result data:",Uo(f.data),"- transform result dimensions:",Uo(f.dimensions)].join(`
|
|
13
|
+
`)}).join(`
|
|
14
|
+
`);Tg(l)}return q(u,function(f,h){var c="";X(f)||(process.env.NODE_ENV!=="production"&&(c="A transform should not return some empty results."),qt(c)),f.data||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be not be null or undefined"),qt(c));var v=Bm(f.data);Ch(v)||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be array rows or object rows."),qt(c));var d,g=t[0];if(g&&h===0&&!f.dimensions){var m=g.startIndex;m&&(f.data=g.data.slice(0,m).concat(f.data)),d={seriesLayoutBy:He,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else d={seriesLayoutBy:He,sourceHeader:0,dimensions:f.dimensions};return jl(f.data,d,null)})}function Ch(r){return r===Vt||r===De}var Ws="undefined",$w=typeof Uint32Array===Ws?Array:Uint32Array,Zw=typeof Uint16Array===Ws?Array:Uint16Array,Um=typeof Int32Array===Ws?Array:Int32Array,Kv=typeof Float64Array===Ws?Array:Float64Array,Ym={float:Kv,int:Um,ordinal:Array,number:Array,time:Kv},zu;function Oi(r){return r>65535?$w:Zw}function Ni(){return[1/0,-1/0]}function qw(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Qv(r,t,e,i,n){var a=Ym[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(i)}var tf=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=et()}return r.prototype.initData=function(t,e,i){process.env.NODE_ENV!=="production"&&$(K(t.getItem)&&K(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=zu[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Vm(n);this._dimensions=q(e,function(s){return process.env.NODE_ENV!=="production"&&o&&$(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new Ym[e||"float"](this._rawCount),this._rawExtent[a]=Ni(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Ni());for(var u=a[t],l=o;l<s;l++){var f=i[l]=e.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&$(!this._indices,"appendData can only be called on raw data.");var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=n[l];Qv(i,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],g=zu.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=g;var m=o[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=q(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Ni()),Qv(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,u);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],m=this._dimValueGetter(c,l[d],v,d);g[v]=m;var p=u[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=Oi(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Oi(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(u===0)v=e(c);else if(u===1){var g=h[f][d];v=e(g,c)}else{for(var m=0;m<u;m++)s[m]=h[t[m]][d];s[m]=c,v=e.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=mt(t),a=n.length;if(!a)return this;var o=e.count(),s=Oi(e._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var g=0;if(a===1){for(var m=v[n[0]],p=0;p<i;p++){var y=m[p];(y>=h&&y<=c||isNaN(y))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var m=v[n[0]],_=v[n[1]],S=t[n[1]][0],x=t[n[1]][1],p=0;p<i;p++){var y=m[p],b=_[p];(y>=h&&y<=c||isNaN(y))&&(b>=S&&b<=x||isNaN(b))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var w=e.getRawIndex(p),y=v[n[0]][w];(y>=h&&y<=c||isNaN(y))&&(u[l++]=w)}else for(var p=0;p<o;p++){for(var C=!0,w=e.getRawIndex(p),M=0;M<a;M++){var A=n[M],y=v[A][w];(y<t[A][0]||y>t[A][1])&&(C=!1)}C&&(u[l++]=e.getRawIndex(p))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=Ni();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[e[v]][c];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=e[f],m=d[f],p=l[g],y=n[g];y&&(y[c]=m),m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(Oi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),m=Math.min(d+u*2,o),p=(m+g)/2,y=0,_=g;_<m;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(y+=x)}y/=m-g;var b=d,w=Math.min(d+u,o),C=d-1,M=a[l];f=-1,c=b;for(var A=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){D++,A<0&&(A=S);continue}h=Math.abs((C-p)*(x-M)-(C-_)*(y-M)),h>f&&(f=h,c=S)}D>0&&D<w-b&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),u=new(Oi(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var m=0;m<g;m++){var p=this.getRawIndex(f+m),y=o[p];y<c&&(c=y,h=f+m),y>d&&(d=y,v=f+m)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=Ni(),c=new(Oi(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var g=0;g<u;g++){var m=this.getRawIndex(d+g);s[g]=l[m]}var p=i(s),y=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));l[y]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Ni();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&vn(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?qw(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,i,n,a){return Eo(e[a],this._dimensions[a])}zu={arrayRows:t,objectRows:function(e,i,n,a){return Eo(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Eo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}})(),r})(),Kw=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Mn(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Wt(s)?nr:ae,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=Z(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=Z(h.sourceHeader,c.sourceHeader),g=Z(h.dimensions,c.dimensions),m=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;n=m?[jl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var p=t;if(i){var y=this._applyTransform(e);n=y.sourceList,a=y.upstreamSignList}else{var _=p.get("source",!0);n=[jl(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&$(n&&a),this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&$(n!=null||i!=null),n!=null){var a="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),Jv(a))}var o,s=[],u=[];return T(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+n),Jv(h)),s.push(f),u.push(l._getVersionSign())}),i?o=Yw(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Mw(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&$(Mn(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];Mn(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,i):(s=new tf,s.initData(new Fm(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mn(t)){var e=Im(t);return e?[e.getSourceManager()]:[]}else return q(jx(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Mn(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r})();function Mn(r){return r.mainType==="series"}function Jv(r){throw new Error(r)}var Qw="line-height:1";function Xm(r){var t=r.lineHeight;return t==null?Qw:"line-height:"+$t(t+"")+"px"}function $m(r,t){var e=r.color||Y.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||Y.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+$t(i+"")+"px;color:"+$t(e)+";font-weight:"+$t(n+""),valueStyle:"font-size:"+$t(o+"")+"px;color:"+$t(a)+";font-weight:"+$t(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Jw=[0,10,20,30],jw=["",`
|
|
15
|
+
`,`
|
|
16
|
+
|
|
17
|
+
`,`
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`];function ca(r,t){return t.type=r,t}function ef(r){return r.type==="section"}function Zm(r){return ef(r)?tT:eT}function qm(r){if(ef(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return T(r.blocks,function(n){var a=qm(n);a>=t&&(t=a+ +(i&&(!a||ef(n)&&!n.noHeader)))}),t}return 0}function tT(r,t,e,i){var n=t.noHeader,a=rT(qm(t)),o=[],s=t.blocks||[];$(!s||F(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(be(l,u)){var f=new Bw(l[u],null);s.sort(function(g,m){return f.evaluate(g.sortParam,m.sortParam)})}else u==="seriesDesc"&&s.reverse()}T(s,function(g,m){var p=t.valueFormatter,y=Zm(g)(p?R(R({},r),{valueFormatter:p}):r,g,m>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):rf(i,o.join(""),n?e:a.html);if(n)return h;var c=Ql(t.header,"ordinal",r.useUTC),v=$m(i,r.renderMode).nameStyle,d=Xm(i);return r.renderMode==="richText"?Km(r,c,v)+a.richText+h:rf(i,'<div style="'+v+";"+d+';">'+$t(c)+"</div>"+h,e)}function eT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],q(S,function(x,b){return Ql(x,F(v)?v[b]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Y.color.secondary,n),c=a?"":Ql(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,m=!s&&a,p=$m(i,n),y=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":Km(r,c,y))+(o?"":aT(r,d,g,m,_)):rf(i,(s?"":h)+(a?"":iT(c,!s,y))+(o?"":nT(d,g,m,_)),e)}}function jv(r,t,e,i,n,a){if(r){var o=Zm(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function rT(r){return{html:Jw[r],richText:jw[r]}}function rf(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=Xm(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function iT(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+$t(r)+"</span>"}function nT(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],'<span style="'+a+";"+i+'">'+q(r,function(o){return $t(o)}).join(" ")+"</span>"}function Km(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function aT(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function oT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return bi(i)}function Qm(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Hu=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=xg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=Vx({color:e,type:t,renderMode:i,markerId:n});return U(a)?a:(process.env.NODE_ENV!=="production"&&$(n),this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};F(e)?T(e,function(a){return R(i,a)}):R(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r})();function sT(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=F(s),l=oT(t,e),f,h,c,v;if(o>1||u&&!o){var d=uT(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);v=f=sn(n,e,a[0]),h=g.type}else v=f=u?s[0]:s;var m=Wf(t),p=m&&t.name||"",y=n.getName(e),_=i?p:y;return ca("section",{header:p,noHeader:i||!m,sortParam:v,blocks:[ca("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ne(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function uT(r,t,e,i,n){var a=t.getData(),o=vn(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?T(i,function(h){f(sn(a,e,h),h)}):T(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ca("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var cr=xt();function Qa(r,t){return r.getName(t)||r.getId(t)}var lT="__universalTransitionEnabled",We=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=ea({count:hT,reset:cT}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=cr(this).sourceManager=new Kw(this);a.prepareSource();var o=this.getInitialData(e,n);ed(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&$(o,"getInitialData returned invalid data."),cr(this).dataBeforeProcessed=o,td(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=fa(this),a=n?Ta(e):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),lt(e,i.getTheme().get(this.subType)),lt(e,this.getDefaultOption()),Ic(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Lr(e,a,n)},t.prototype.mergeOption=function(e,i){e=lt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fa(this);n&&Lr(this.option,e,n);var a=cr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);ed(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cr(this).dataBeforeProcessed=o,td(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Wt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ic(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=nf(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return cr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=nf(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}cr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return et(e)},t.prototype.getSourceManager=function(){return cr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return cr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"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,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(e);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(i,function(d,g){var m=u.dataToCoord(d),p=l-m,y=Math.abs(p);y<=a&&((y<h||y===h&&p>=0&&c<0)&&(h=y,c=p,v=0),p===c&&(f[v++]=g))}),f.length=v,f},t.prototype.formatTooltip=function(e,i,n){return sT({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(J.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=xh.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},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,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var u=e[s],l=Qa(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=mt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Qa(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lT])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=Qa(e,h);l[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=Qa(e,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return ot.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})(ot);Ue(We,Rw);Ue(We,xh);Eg(We,ot);function td(r){var t=r.name;Wf(r)||(r.name=fT(r)||t)}function fT(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return T(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function hT(r){return r.model.getRawData().count()}function cT(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),vT}function vT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ed(r,t){T(o_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Ct(dT,t))})}function dT(r,t){var e=nf(r);return e&&e.setOutputEnd((t||this).count()),t}function nf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var we=(function(){function r(){this.group=new Lt,this.uid=Fs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Yf(we);Cs(we);function Dh(){var r=xt();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Jm=xt(),pT=Dh(),xe=(function(){function r(){this.group=new Lt,this.uid=Fs("viewChart"),this.renderTask=ea({plan:gT,reset:mT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);if(!a){process.env.NODE_ENV!=="production"&&ft("Unknown dataType "+n.dataType);return}id(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);if(!a){process.env.NODE_ENV!=="production"&&ft("Unknown dataType "+n.dataType);return}id(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Ns(this.group,t)},r.markUpdateMethod=function(t,e){Jm(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function rd(r,t,e){r&&an(r)&&(t==="emphasis"?Zo:qo)(r,e)}function id(r,t,e){var i=_i(r,t),n=t&&t.highlightKey!=null?vb(t.highlightKey):null;i!=null?T(Gt(i),function(a){rd(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){rd(a,e,n)})}Yf(xe,["dispose"]);Cs(xe);function gT(r){return pT(r.model)}function mT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Jm(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),yT[u]}var yT={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ns="\0__throttleOriginMethod",nd="\0__throttleRate",ad="\0__throttleType";function Mh(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),u=this,l=v;var g=f||t,m=f||e;f=null,s=i-(m?n:a)-g,clearTimeout(o),m?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function jm(r,t,e,i){var n=r[t];if(n){var a=n[ns]||n,o=n[ad],s=n[nd];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Mh(a,e,i==="debounce"),n[ns]=a,n[ad]=i,n[nd]=e}return n}}function af(r,t){var e=r[t];e&&e[ns]&&(e.clear&&e.clear(),r[t]=e[ns])}var od=xt(),sd={itemStyle:oa(vm,!0),lineStyle:oa(cm,!0)},_T={lineStyle:"stroke",itemStyle:"fill"};function ty(r,t){var e=r.visualStyleMapper||sd[t];return e||(console.warn("Unknown style type '"+t+"'."),sd.itemStyle)}function ey(r,t){var e=r.visualDrawType||_T[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var ST={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=ty(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=ey(r,i),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),m=R({},o);m[u]=f(g),v.setItemVisual(d,"style",m)}}}},An=new _t,bT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=ty(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){An.option=u[i];var l=n(An),f=o.ensureUniqueItemVisual(s,"style");R(f,l),An.option.decal&&(o.setItemVisual(s,"decal",An.option.decal),An.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},xT={performRawSeries:!0,overallReset:function(r){var t=et();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),od(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=od(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=ey(e,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Ja=Math.PI;function wT(r,t){t=t||{},ct(t,{text:"loading",textColor:Y.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Y.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Lt,i=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Bt({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 bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Ps({shape:{startAngle:-Ja/2,endAngle:-Ja/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:Ja*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ja*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var ry=(function(){function r(t,e,i,n){this._stageTaskMap=et(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=et();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),$(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;T(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(m){s(n,m)&&(m.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var g=o.getPerformArgs(c,n.block);d.each(function(m){m.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(m,p){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!u.performRawSeries&&e.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=et(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ea({plan:AT,reset:ET,count:IT}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||ea({reset:TT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=et(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),$(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,T(i.getSeries(),d));function d(g){var m=g.uid,p=u.set(m,s&&s.get(m)||(c=!0,ea({reset:CT,onDirty:MT})));p.context={model:g,overallProgress:h},p.agent=o,p.__block=h,a._pipe(g,p)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:PT(t)}),t.uid=Fs("stageHandler"),e&&(t.visualType=e),t},r})();function TT(r){r.overallReset(r.ecModel,r.api,r.payload)}function CT(r){return r.overallProgress&&DT}function DT(){this.agent.dirty(),this.getDownstream().dirty()}function MT(){this.agent&&this.agent.dirty()}function AT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function ET(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Gt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?q(t,function(e,i){return iy(i)}):LT}var LT=iy(0);function iy(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function IT(r){return r.data.count()}function PT(r){as=null;try{r(va,ny)}catch{}return as}var va={},ny={},as;ay(va,wh);ay(ny,Om);va.eachSeriesByType=va.eachRawSeriesByType=function(r){as=r};va.eachComponent=function(r){r.mainType==="series"&&r.subType&&(as=r.subType)};function ay(r,t){for(var e in t.prototype)r[e]=Qt}var k=Y.darkColor,OT=k.background,En=function(){return{axisLine:{lineStyle:{color:k.axisLine}},splitLine:{lineStyle:{color:k.axisSplitLine}},splitArea:{areaStyle:{color:[k.backgroundTint,k.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:k.axisMinorSplitLine}},axisLabel:{color:k.axisLabel},axisName:{}}},ud={label:{color:k.secondary},itemStyle:{borderColor:k.borderTint},dividerLineStyle:{color:k.border}},oy={darkMode:!0,color:k.theme,backgroundColor:OT,axisPointer:{lineStyle:{color:k.border},crossStyle:{color:k.borderShade},label:{color:k.tertiary}},legend:{textStyle:{color:k.secondary},pageTextStyle:{color:k.tertiary}},textStyle:{color:k.secondary},title:{textStyle:{color:k.primary},subtextStyle:{color:k.quaternary}},toolbox:{iconStyle:{borderColor:k.accent50}},tooltip:{backgroundColor:k.neutral20,defaultBorderColor:k.border,textStyle:{color:k.tertiary}},dataZoom:{borderColor:k.accent10,textStyle:{color:k.tertiary},brushStyle:{color:k.backgroundTint},handleStyle:{color:k.neutral00,borderColor:k.accent20},moveHandleStyle:{color:k.accent40},emphasis:{handleStyle:{borderColor:k.accent50}},dataBackground:{lineStyle:{color:k.accent30},areaStyle:{color:k.accent20}},selectedDataBackground:{lineStyle:{color:k.accent50},areaStyle:{color:k.accent30}}},visualMap:{textStyle:{color:k.secondary},handleStyle:{borderColor:k.neutral30}},timeline:{lineStyle:{color:k.accent10},label:{color:k.tertiary},controlStyle:{color:k.accent30,borderColor:k.accent30}},calendar:{itemStyle:{color:k.neutral00,borderColor:k.neutral20},dayLabel:{color:k.tertiary},monthLabel:{color:k.secondary},yearLabel:{color:k.secondary}},matrix:{x:ud,y:ud,backgroundColor:{borderColor:k.axisLine},body:{itemStyle:{borderColor:k.borderTint}}},timeAxis:En(),logAxis:En(),valueAxis:En(),categoryAxis:En(),line:{symbol:"circle"},graph:{color:k.theme},gauge:{title:{color:k.secondary},axisLine:{lineStyle:{color:[[1,k.neutral05]]}},axisLabel:{color:k.axisLabel},detail:{color:k.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:k.background}},radar:(function(){var r=En();return r.axisName={color:k.axisLabel},r.axisLine.lineStyle.color=k.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:k.neutral20,textStyle:{color:k.secondary}},emphasis:{itemStyle:{color:k.neutral30}}}},sunburst:{itemStyle:{borderColor:k.background}},map:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},label:{color:k.tertiary},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}}},geo:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{color:k.highlight}}}};oy.categoryAxis.splitLine.show=!1;var NT=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(U(t)){var a=ke(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),of=["symbol","symbolSize","symbolRotate","symbolOffset"],ld=of.concat(["symbolKeepAspect"]),RT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<of.length;o++){var s=of[o],u=r.get(s);K(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(R({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var l=mt(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),g=0;g<l.length;g++){var m=l[g];h.setItemVisual(c,m,n[m](v,d))}}return{dataEach:a?f:null}}},kT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<ld.length;s++){var u=ld[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?i:null}}};function BT(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function VT(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Ri(r,t,e,i,n){var a=r+t;e.isSilent(a)||(process.env.NODE_ENV!=="production"&&or("event "+a+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=_i(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(c)?h.getName(c[0]):h.getName(c),selected:U(u)?u:R({},u)})}}))}function FT(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(Ri("map","selectchanged",t,n,i),Ri("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Ri("map","selected",t,n,i),Ri("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Ri("map","unselected",t,n,i),Ri("pie","unselected",t,n,i))})}function Wn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var zT=Math.round(Math.random()*9),HT=typeof Object.defineProperty=="function",GT=(function(){function r(){this._id="__ec_inner_"+zT++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return HT?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})(),WT=ht.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),UT=ht.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),YT=ht.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*v,u+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,u+s+c*v,e-f,u+s),r.closePath()}}),XT=ht.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),$T={line:Ar,rect:bt,roundRect:bt,square:bt,circle:Is,diamond:UT,pin:YT,arrow:XT,triangle:WT},ZT={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},sf={};T($T,function(r,t){sf[t]=new r});var qT=ht.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Ho(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=sf[i];n||(i="rect",n=sf[i]),ZT[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function KT(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||Y.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function un(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=nm(r.slice(8),new tt(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?u=nh(r.slice(7),{},new tt(t,e,i,n),o?"center":"cover"):u=new qT({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=KT,a&&u.setColor(a),u}function QT(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function sy(r,t){if(r!=null)return F(r)||(r=[r,r]),[Ht(r[0],t[0])||0,Ht(Z(r[1],r[0]),t[1])||0]}function fi(r){return isFinite(r)}function JT(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=fi(i)?i:0,n=fi(n)?n:1,a=fi(a)?a:0,o=fi(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function jT(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,u=u*a),o=fi(o)?o:.5,s=fi(s)?s:.5,u=u>=0&&fi(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function uf(r,t,e){for(var i=t.type==="radial"?jT(r,t,e):JT(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function tC(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function ja(r){return parseInt(r,10)}function to(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||ja(s[i])||ja(r.style[i]))-(ja(s[a])||0)-(ja(s[o])||0)|0}function eC(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:pt(r)?[r]:F(r)?r:null}function uy(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&eC(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=q(e,function(a){return a/n}),i/=n)}return[e,i]}var rC=new Si(!0);function os(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function fd(r){return typeof r=="string"&&r!=="none"}function ss(r){var t=r.fill;return t!=null&&t!=="none"}function hd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function cd(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function lf(r,t,e){var i=Lg(t.image,t.__image,e);if(Ds(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*s_),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function iC(r,t,e,i){var n,a=os(e),o=ss(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||rC,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,m=o&&!!c.image,p=a&&!!v.image,y=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||g)&&(b=t.getBoundingRect()),d&&(y=h?uf(r,c,b):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?uf(r,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(S=h||!t.__canvasFillPattern?lf(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(x=h||!t.__canvasStrokePattern?lf(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=y:m&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:p&&(x?r.strokeStyle=x:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,M;r.setLineDash&&e.lineDash&&(n=uy(t),C=n[0],M=n[1]);var A=!0;(l||h&Gi)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,u?s:1),C&&(r.setLineDash(C),r.lineDashOffset=M),i||(e.strokeFirst?(a&&cd(r,e),o&&hd(r,e)):(o&&hd(r,e),a&&cd(r,e))),C&&r.setLineDash([])}function nC(r,t,e){var i=t.__image=Lg(e.image,t.__image,t,t.onload);if(!(!i||!Ds(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(i,l,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function aC(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Dr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=uy(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(os(e)&&r.strokeText(n,e.x,e.y),ss(e)&&r.fillText(n,e.x,e.y)):(ss(e)&&r.fillText(n,e.x,e.y),os(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var vd=["shadowBlur","shadowOffsetX","shadowOffsetY"],dd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ly(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Kt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?pi.opacity:o}(i||t.blend!==e.blend)&&(a||(Kt(r,n),a=!0),r.globalCompositeOperation=t.blend||pi.blend);for(var s=0;s<vd.length;s++){var u=vd[s];(i||t[u]!==e[u])&&(a||(Kt(r,n),a=!0),r[u]=r.dpr*(t[u]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Kt(r,n),a=!0),r.shadowColor=t.shadowColor||pi.shadowColor),a}function pd(r,t,e,i,n){var a=da(t,n.inHover),o=i?null:e&&da(e,n.inHover)||{};if(a===o)return!1;var s=ly(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Kt(r,n),s=!0),fd(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Kt(r,n),s=!0),fd(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Kt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(Kt(r,n),s=!0),r.lineWidth=l)}for(var f=0;f<dd.length;f++){var h=dd[f],c=h[0];(i||a[c]!==o[c])&&(s||(Kt(r,n),s=!0),r[c]=a[c]||h[1])}return s}function oC(r,t,e,i,n){return ly(r,da(t,n.inHover),e&&da(e,n.inHover),i,n)}function fy(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function sC(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),fy(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function uC(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var gd=1,md=2,yd=3,_d=4;function lC(r){var t=ss(r),e=os(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Kt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function da(r,t){return t&&r.__hoverStyle||r.style}function hy(r,t){hi(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function hi(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~re,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||tC(a,o))&&(o&&o.length&&(Kt(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Kt(r,e),r.save(),sC(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof ht&&t.autoBatch&&lC(t.style);s||uC(n,l.transform)?(Kt(r,e),fy(r,t)):f||Kt(r,e);var h=da(t,e.inHover);t instanceof ht?(e.lastDrawType!==gd&&(u=!0,e.lastDrawType=gd),pd(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),iC(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Yo?(e.lastDrawType!==yd&&(u=!0,e.lastDrawType=yd),pd(r,t,l,u,e),aC(r,t,h)):t instanceof Or?(e.lastDrawType!==md&&(u=!0,e.lastDrawType=md),oC(r,t,l,u,e),nC(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==_d&&(u=!0,e.lastDrawType=_d),fC(r,t,e)),f&&i&&Kt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function fC(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),hi(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),hi(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Gu=new GT,Sd=new en(100),bd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ff(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&Gu.delete(r);var a=Gu.get(r);if(a)return a;var o=ct(r,{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 u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Gu.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,c=0;c<bd.length;++c){var v=o[bd[c]];if(v!=null&&!F(v)&&!U(v)&&!pt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var g=Sd.get(d);g&&(n?l.svgElement=g:l.image=g)}var m=vy(o.dashArrayX),p=hC(o.dashArrayY),y=cy(o.symbol),_=cC(m),S=dy(p),x=!n&&ar.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),C;x&&(x.width=w.width*e,x.height=w.height*e,C=x.getContext("2d")),A(),h&&Sd.put(d,x||b),l.image=x,l.svgElement=b,l.svgWidth=w.width,l.svgHeight=w.height;function M(){for(var D=1,L=0,E=_.length;L<E;++L)D=Ac(D,_[L]);for(var I=1,L=0,E=y.length;L<E;++L)I=Ac(I,y[L].length);D*=I;var P=S*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(W){console.warn("Calculated decal size is greater than "+W+" due to decal option settings so "+W+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+W+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&O("maxTileWidth"),P>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var D=0,L=0;L<p.length;++L)D+=p[L];if(D<=0)return;for(var E=-S,I=0,P=0,O=0;E<w.height;){if(I%2===0){for(var W=P/2%y.length,N=0,V=0,H=0;N<w.width*2;){for(var G=0,L=0;L<m[O].length;++L)G+=m[O][L];if(G<=0)break;if(V%2===0){var z=(1-o.symbolSize)*.5,Q=N+m[O][V]*z,at=E+p[I]*z,yt=m[O][V]*o.symbolSize,Ut=p[I]*o.symbolSize,Me=H/2%y[W].length;$e(Q,at,yt,Ut,y[W][Me])}N+=m[O][V],++H,++V,V===m[O].length&&(V=0)}++O,O===m.length&&(O=0)}E+=p[I],++P,++I,I===p.length&&(I=0)}function $e(jt,It,j,it,Rr){var Ft=n?1:e,Xh=un(Rr,jt*Ft,It*Ft,j*Ft,it*Ft,o.color,o.symbolKeepAspect);if(n){var $h=i.painter.renderOneToVNode(Xh);$h&&b.children.push($h)}else hy(C,Xh)}}}}function cy(r){if(!r||r.length===0)return[["rect"]];if(U(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!U(r[e])){t=!1;break}if(t)return cy([r]);for(var i=[],e=0;e<r.length;++e)U(r[e])?i.push([r[e]]):i.push(r[e]);return i}function vy(r){if(!r||r.length===0)return[[0,0]];if(pt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!pt(r[i])){e=!1;break}if(e)return vy([r]);for(var n=[],i=0;i<r.length;++i)if(pt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=q(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function hC(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(pt(r)){var t=Math.ceil(r);return[t,t]}var e=q(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function cC(r){return q(r,function(t){return dy(t)})}function dy(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function vC(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=ff(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=ff(n,t)}}})}var Se=new Ye,us={};function dC(r,t){process.env.NODE_ENV!=="production"&&us[r]&&ft("Already has an implementation of "+r+"."),us[r]=t}function pC(r){return process.env.NODE_ENV!=="production"&&(us[r]||ft("Implementation of "+r+" doesn't exists.")),us[r]}var gC=1,mC=800,yC=900,_C=1e3,SC=2e3,bC=5e3,py=1e3,xC=1100,Ah=2e3,gy=3e3,wC=4e3,Us=4500,TC=4600,CC=5e3,DC=6e3,my=7e3,MC={PROCESSOR:{FILTER:_C,SERIES_FILTER:mC,STATISTIC:bC},VISUAL:{LAYOUT:py,PROGRESSIVE_LAYOUT:xC,GLOBAL:Ah,CHART:gy,POST_CHART_LAYOUT:TC,COMPONENT:wC,BRUSH:CC,CHART_ITEM:Us,ARIA:DC,DECAL:my}},Tt="__flagInMainProcess",eo="__mainProcessVersion",Dt="__pendingUpdate",Wu="__needsUpdateStatus",xd=/^[a-zA-Z0-9_]+$/,Uu="__connectUpdateStatus",wd=0,AC=1,EC=2;function yy(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){Xt(this.id);return}return Sy(this,r,t)}}function _y(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Sy(this,r,t)}}function Sy(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ye.prototype[t].apply(r,e)}var by=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ye),xy=by.prototype;xy.on=_y("on");xy.off=_y("off");var ni,Yu,ro,Ke,io,Xu,$u,ki,Bi,Td,Cd,Zu,Dd,no,Md,wy,se,Ad,Vi,Ty=(function(r){B(t,r);function t(e,i,n){var a=r.call(this,new NT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=e;var o="canvas",s="auto",u=!1;if(a[eo]=1,process.env.NODE_ENV!=="production"){var l=J.hasGlobalWindow?window:global;l&&(o=Z(l.__ECHARTS__DEFAULT__RENDERER__,o),s=Z(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),u=Z(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,u))}n.ssr;var f=a._zr=Cc(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Z(n.useDirtyRect,u),useCoarsePointer:Z(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Mh(dt(f.flush,f),17),a._updateTheme(i),a._locale=Cx(n.locale||pm),a._coordSysMgr=new _h;var h=a._api=Md(a);function c(v,d){return v.__prio-d.__prio}return yo(hs,c),yo(cf,c),a._scheduler=new ry(a,h,cf,hs),a._messageCenter=new by,a._initEvents(),a.resize=dt(a.resize,a),f.animation.on("frame",a._onframe,a),Td(f,a),Cd(f,a),dl(a),a}return t.prototype._onframe=function(){if(!this._disposed){Ad(this);var e=this._scheduler;if(this[Dt]){var i=this[Dt].silent;this[Tt]=!0,Vi(this);try{ni(this),Ke.update.call(this,null,this[Dt].updateParams)}catch(u){throw this[Tt]=!1,this[Dt]=null,u}this._zr.flush(),this[Tt]=!1,this[Dt]=null,ki.call(this,i),Bi.call(this,i)}else if(e.unfinished){var n=gC,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Xu(this,a),e.performVisualTasks(a),no(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(this[Tt]){process.env.NODE_ENV!=="production"&&ft("`setOption` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var a,o,s;if(X(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Tt]=!0,Vi(this),!this._model||i){var u=new vw(this._api),l=this._theme,f=this._model=new wh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},vf);var h={seriesTransition:s,optionChanged:!0};if(n)this[Dt]={silent:a,updateParams:h},this[Tt]=!1,this.getZr().wakeUp();else{try{ni(this),Ke.update.call(this,null,h)}catch(c){throw this[Dt]=null,this[Tt]=!1,c}this._ssr||this._zr.flush(),this[Dt]=null,this[Tt]=!1,ki.call(this,a),Bi.call(this,a)}},t.prototype.setTheme=function(e,i){if(this[Tt]){process.env.NODE_ENV!=="production"&&ft("`setTheme` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Dt]&&(a==null&&(a=this[Dt].silent),o=this[Dt].updateParams,this[Dt]=null),this[Tt]=!0,Vi(this);try{this._updateTheme(e),n.setTheme(this._theme),ni(this),Ke.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Tt]=!1,s}this[Tt]=!1,ki.call(this,a),Bi.call(this,a)}},t.prototype._updateTheme=function(e){U(e)&&(e=Cy[e]),e&&(e=rt(e),e&&Rm(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||J.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!=="production"&&Et("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,i=e.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){Xt(this.id);return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;T(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){Xt(this.id);return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Ed[n]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();T(ra,function(_,S){if(_.group===n){var x=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(e)),b=_.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),h=o(b.bottom,h),c.push({dom:x,left:b.left,top:b.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,m=ar.createCanvas(),p=Cc(m,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:g}),i){var y="";return T(c,function(_){var S=_.left-u,x=_.top-l;y+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&p.painter.setBackgroundColor(e.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return e.connectedBackgroundColor&&p.add(new bt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),T(c,function(_){var S=new Or({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});p.add(S)}),p.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i,n){return io(this,"convertToPixel",e,i,n)},t.prototype.convertToLayout=function(e,i,n){return io(this,"convertToLayout",e,i,n)},t.prototype.convertFromPixel=function(e,i,n){return io(this,"convertFromPixel",e,i,n)},t.prototype.containPixel=function(e,i){if(this._disposed){Xt(this.id);return}var n=this._model,a,o=vu(n,e);return T(o,function(s,u){u.indexOf("Models")>=0&&T(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint?a=a||h.containPoint(i,l):process.env.NODE_ENV!=="production"&&kt(u+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&kt(u+": containPoint is not supported")},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=vu(n,e,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||kt("There is no specified series model"));var s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?BT(s,u,i):VT(s,i)},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;T(LC,function(n){var a=function(o){var s=e.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&Wn(u,function(g){var m=nt(g);if(m&&m.dataIndex!=null){var p=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return l=p&&p.getDataParams(m.dataIndex,m.dataType,u)||{},!0}else if(m.eventData)return l=R({},m.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&kt("model or view can not be found by params"),l.event=o,l.type=n,e._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},e.trigger(n,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)});var i=this._messageCenter;T(hf,function(n,a){i.on(a,function(o){e.trigger(a,o)})}),FT(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Xt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Xt(this.id);return}this._disposed=!0;var e=this.getDom();e&&Mg(this.getDom(),Lh,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete ra[i.id]},t.prototype.resize=function(e){if(this[Tt]){process.env.NODE_ENV!=="production"&&ft("`resize` should not be called during main process.");return}if(this._disposed){Xt(this.id);return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Dt]&&(a==null&&(a=this[Dt].silent),n=!0,this[Dt]=null),this[Tt]=!0,Vi(this);try{n&&ni(this),Ke.update.call(this,{type:"resize",animation:R({duration:0},e&&e.animation)})}catch(o){throw this[Tt]=!1,o}this[Tt]=!1,ki.call(this,a),Bi.call(this,a)}},t.prototype.showLoading=function(e,i){if(this._disposed){Xt(this.id);return}if(X(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!df[e]){process.env.NODE_ENV!=="production"&&kt("Loading effects "+e+" not exists.");return}var n=df[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)},t.prototype.hideLoading=function(){if(this._disposed){Xt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=R({},e);return i.type=fs[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){Xt(this.id);return}if(X(i)||(i={silent:!!i}),!!ls[e.type]&&this._model){if(this[Tt]){this._pendingActions.push(e);return}var n=i.silent;$u.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),ki.call(this,n),Bi.call(this,n)}},t.prototype.updateLabelLayout=function(){Se.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){Xt(this.id);return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);process.env.NODE_ENV!=="production"&&$(e.data&&a),a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){ni=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Yu(h,!0),Yu(h,!1),c.plan()},Yu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,m=c?h._componentsMap:h._chartsMap,p=h._zr,y=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(b,w){b!=="series"&&S(w)}):v.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,M=!w&&m[C];if(!M){var A=ke(b.type),D=c?we.getClass(A.main,A.sub):xe.getClass(A.sub);process.env.NODE_ENV!=="production"&&$(D,A.sub+" does not exist."),M=new D,M.init(v,y),m[C]=M,g.push(M),p.add(M.group)}b.__viewId=M.__id=C,M.__alive=!0,M.__model=b,M.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&d.prepareView(M,b,v,y)}for(var _=0;_<g.length;){var x=g[_];x.__alive?_++:(!c&&x.renderTask.dispose(),p.remove(x.group),x.dispose(v,y),g.splice(_,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},ro=function(h,c,v,d,g){var m=h._model;if(m.setUpdatePayload(v),!d){T([].concat(h._componentsViews).concat(h._chartsViews),x);return}var p={};p[d+"Id"]=v[d+"Id"],p[d+"Index"]=v[d+"Index"],p[d+"Name"]=v[d+"Name"];var y={mainType:d,query:p};g&&(y.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=et(),T(Gt(_),function(b){var w=ze(b,null);w!=null&&S.set(w,!0)})),m&&m.eachComponent(y,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(lv(v))if(b instanceof We)v.type===gi&&!v.notBlur&&!b.get(["emphasis","disabled"])&&ab(b,v,h._api);else{var C=Qf(b.mainType,b.componentIndex,v.name,h._api),M=C.focusSelf,A=C.dispatchers;v.type===gi&&M&&!v.notBlur&&Wl(b.mainType,b.componentIndex,h._api),A&&T(A,function(D){v.type===gi?Zo(D):qo(D)})}else Xl(v)&&b instanceof We&&(ub(b,v,h._api),sv(b),se(h))},h),m&&m.eachComponent(y,function(b){var w=S&&S.get(b.id)!=null;w||x(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function x(b){b&&b.__alive&&b[c]&&b[c](b.__model,m,h._api,v)}},Ke={prepareAndUpdate:function(h){ni(this),Ke.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,m=this._coordSysMgr,p=this._scheduler;if(v){v.setUpdatePayload(h),p.restoreData(v,h),p.performSeriesTasks(v),m.create(v,d),p.performDataProcessorTasks(v,h),Xu(this,v),m.update(v,d),i(v),p.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Zu(this,v,d,h,c),Se.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(p,y){if(p!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var m=et();v.eachSeries(function(p){var y=c._chartsMap[p.__viewId];if(y.updateTransform){var _=y.updateTransform(p,v,d,h);_&&_.update&&m.set(p.uid,1)}else m.set(p.uid,1)}),i(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:m}),no(this,v,d,h,{},m),Se.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),xe.markUpdateMethod(h,"updateView"),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Zu(this,c,this._api,h,{}),Se.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),xe.markUpdateMethod(h,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var m=c.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),Se.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ke.update.call(this,h)}};function e(h,c,v,d,g){if(h._disposed){Xt(h.id);return}for(var m=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,_=vu(m,v),S=0;S<p.length;S++){var x=p[S];if(x[c]&&(y=x[c](m,_,d,g))!=null)return y}process.env.NODE_ENV!=="production"&&kt("No coordinate system that supports "+c+" found by the given finder.")}io=e,Xu=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},$u=function(h,c){var v=this,d=this.getModel(),g=h.type,m=h.escapeConnect,p=ls[g],y=(p.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&ke(y[0]);this[Tt]=!0,Vi(this);var x=[h],b=!1;h.batch&&(b=!0,x=q(h.batch,function(O){return O=ct(R({},O),h),O.batch=null,O}));var w=[],C,M=[],A=p.nonRefinedEventType,D=Xl(h),L=lv(h);if(L&&$g(this._api),T(x,function(O){var W=p.action(O,d,v._api);if(p.refineEvent?M.push(W):C=W,C=C||R({},O),C.type=A,w.push(C),L){var N=Uf(h),V=N.queryOptionMap,H=N.mainTypeSpecified,G=H?V.keys()[0]:"series";ro(v,_,O,G),se(v)}else D?(ro(v,_,O,"series"),se(v)):S&&ro(v,_,O,S.main,S.sub)}),_!=="none"&&!L&&!D&&!S)try{this[Dt]?(ni(this),Ke.update.call(this,h),this[Dt]=null):Ke[_].call(this,h)}catch(O){throw this[Tt]=!1,O}if(b?C={type:A,escapeConnect:m,batch:w}:C=w[0],this[Tt]=!1,!c){var E=void 0;if(p.refineEvent){var I=p.refineEvent(M,h,d,this._api).eventContent;$(X(I)),E=ct({type:p.refinedEventType},I),E.fromAction=h.type,E.fromActionPayload=h,E.escapeConnect=!0}var P=this._messageCenter;P.trigger(C.type,C),E&&P.trigger(E.type,E)}},ki=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();$u.call(this,v,h)}},Bi=function(h){!h&&this.trigger("updated")},Td=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Dt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Cd=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Wn(d,an);g&&(ob(g,v,c._api),se(c))}).on("mouseout",function(v){var d=v.target,g=Wn(d,an);g&&(sb(g,v,c._api),se(c))}).on("click",function(v){var d=v.target,g=Wn(d,function(y){return nt(y).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",p=nt(g);c._api.dispatchAction({type:m,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?v:c).push({zlevel:S,z:x,idx:_.componentIndex,type:y,key:b})}),d){var g=c.concat(v),m,p;yo(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(g,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,x=y.key;m!=null&&(S=Math.max(m,S)),x?(S===m&&x!==p&&S++,p=x):p&&(S===m&&S++,p=""),m=S,_.setZLevel(S)})}}Zu=function(h,c,v,d,g){n(c),Dd(h,c,v,d,g),T(h._chartsViews,function(m){m.__alive=!1}),no(h,c,v,d,g),T(h._chartsViews,function(m){m.__alive||m.remove(c,v)})},Dd=function(h,c,v,d,g,m){T(m||h._componentsViews,function(p){var y=p.__model;l(y,p),p.render(y,c,v,d),u(y,p),f(y,p)})},no=function(h,c,v,d,g,m){var p=h._scheduler;g=R(g||{},{updatedSeries:c.getSeries()}),Se.trigger("series:beforeupdate",c,v,g);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;p.updatePayload(x,d),l(_,S),m&&m.get(_.uid)&&x.dirty(),x.perform(p.getPerformArgs(x))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),sv(_)}),p.unfinished=y||p.unfinished,Se.trigger("series:layoutlabels",c,v,g),Se.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,c),Se.trigger("series:afterupdate",c,v,g)},se=function(h){h[Wu]=!0,h.getZr().wakeUp()},Vi=function(h){h[eo]=(h[eo]+1)%1e3},Ad=function(h){h[Wu]&&(h.getZr().storage.traverse(function(c){Qn(c)||a(c)}),h[Wu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Es&&h.states.emphasis?c.push("emphasis"):h.hoverState===As&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!J.node&&!J.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var p=h._chartsMap[m.__viewId];p.__alive&&p.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(h,c){if(!h.preventAutoZ){var v=lm(h);c.eachRendered(function(d){return fm(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!Qn(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),m=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(Qn(p))return;if(p instanceof ht&&db(p),p.__dirty){var y=p.prevStates;y&&p.useStates(y)}if(d){p.stateTransition=m;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}p.__dirty&&a(p)}})}Md=function(h){return new((function(c){B(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){Zo(d,g),se(h)},v.prototype.leaveEmphasis=function(d,g){qo(d,g),se(h)},v.prototype.enterBlur=function(d){nb(d),se(h)},v.prototype.leaveBlur=function(d){Wg(d),se(h)},v.prototype.enterSelect=function(d){Ug(d),se(h)},v.prototype.leaveSelect=function(d){Yg(d),se(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[eo]},v})(Om))(h)},wy=function(h){function c(v,d){for(var g=0;g<v.length;g++){var m=v[g];m[Uu]=d}}T(fs,function(v,d){h._messageCenter.on(d,function(g){if(Ed[h.group]&&h[Uu]!==wd){if(g&&g.escapeConnect)return;var m=h.makeActionFromEvent(g),p=[];T(ra,function(y){y!==h&&y.group===h.group&&p.push(y)}),c(p,wd),T(p,function(y){y[Uu]!==AC&&y.dispatchAction(m)}),c(p,EC)}})})}})(),t})(Ye),Eh=Ty.prototype;Eh.on=yy("on");Eh.off=yy("off");Eh.one=function(r,t,e){var i=this;or("ECharts#one is deprecated.");function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var LC=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Xt(r){process.env.NODE_ENV!=="production"&&kt("Instance "+r+" has been disposed")}var ls={},fs={},hf={},cf=[],vf=[],hs=[],Cy={},df={},ra={},Ed={},IC=+new Date-0,Lh="_echarts_instance_";function PC(r,t,e){{if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Initialize failed: invalid dom.");var i=OC(r);if(i)return process.env.NODE_ENV!=="production"&&kt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Ji(r)&&r.nodeName.toUpperCase()!=="CANVAS"&&(!r.clientWidth&&!e||!r.clientHeight&&!e)&&kt("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 n=new Ty(r,t,e);return n.id="ec_"+IC++,ra[n.id]=n,Mg(r,Lh,n.id),wy(n),Se.trigger("afterinit",n),n}function OC(r){return ra[X1(r,Lh)]}function Dy(r,t){Cy[r]=t}function My(r){st(vf,r)<0&&vf.push(r)}function Ay(r,t){Ph(cf,r,t,SC)}function NC(r){Ih("afterinit",r)}function RC(r){Ih("afterupdate",r)}function Ih(r,t){Se.on(r,t)}function mn(r,t,e){var i,n,a,o,s;K(t)&&(e=t,t=""),X(r)?(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),a=r.refineEvent):(i=r,n=t);function u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;ls[i]||($(xd.test(i)&&xd.test(n)),a&&$(n!==i),ls[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:e,refineEvent:a},hf[n]=1,a&&s&&(hf[l]=1),process.env.NODE_ENV!=="production"&&fs[l]&&ft(l+' must not be shared; use "refineEvent" if you intend to share an event name.'),fs[l]=i)}function kC(r,t){_h.register(r,t)}function BC(r,t){Ph(hs,r,t,py,"layout")}function wi(r,t){Ph(hs,r,t,gy,"visual")}var Ld=[];function Ph(r,t,e,i,n){if((K(t)||X(t))&&(e=t,t=i),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");T(r,function(o){$(o.__raw!==e)})}if(!(st(Ld,e)>=0)){Ld.push(e);var a=ry.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function Ey(r,t){df[r]=t}function VC(r,t,e){var i=pC("registerMap");i&&i(r,t,e)}var FC=Uw;wi(Ah,ST);wi(Us,bT);wi(Us,xT);wi(Ah,RT);wi(Us,kT);wi(my,vC);My(Rm);Ay(yC,Cw);Ey("default",wT);mn({type:gi,event:gi,update:gi},Qt);mn({type:wo,event:wo,update:wo},Qt);mn({type:Xo,event:qf,update:Xo,action:Qt,refineEvent:Oh,publishNonRefinedEvent:!0});mn({type:Hl,event:qf,update:Hl,action:Qt,refineEvent:Oh,publishNonRefinedEvent:!0});mn({type:$o,event:qf,update:$o,action:Qt,refineEvent:Oh,publishNonRefinedEvent:!0});function Oh(r,t,e,i){return{eventContent:{selected:lb(e),isFromClick:t.isFromClick||!1}}}Dy("default",{});Dy("dark",oy);function Ln(r){return r==null?0:r.length||1}function Id(r){return r}var zC=(function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Id,this._newKeyGetter=n||Id,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=Ln(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=Ln(l),c=Ln(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=Ln(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var u=e[s],l=Ln(u);l===0?(e[s]=o,a&&i.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r})(),HC=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function GC(r,t){var e={},i=e.encode={},n=et(),a=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&$(Jl.get(d)==null);var g=v.coordDimIndex;qu(i,d)[g]=c,v.isExtraCoord||(n.set(d,1),UC(v.type)&&(a[0]=c),qu(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Jl.each(function(m,p){var y=qu(i,p),_=v.otherDims[p];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=q(u,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new HC(s,t),e}function qu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function WC(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function UC(r){return!(r==="ordinal"||r==="time")}var Lo=(function(){function r(t){this.otherDims={},t!=null&&R(this,t)}return r})(),YC=xt(),XC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ly=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Oy(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Z(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Vm(this.source),i=!Ny(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=e?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=XC[l]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Iy(r){return r instanceof Ly}function Py(r){for(var t=et(),e=0;e<(r||[]).length;e++){var i=r[e],n=X(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Oy(r){var t=YC(r);return t.dimNameMap||(t.dimNameMap=Py(r.dimensionsDefine))}function Ny(r){return r>30}var In=X,vr=q,$C=typeof Int32Array>"u"?Array:Int32Array,ZC="e\0\0",Pd=-1,qC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],KC=["_approximateExtent"],Od,ao,Pn,Fi,Ku,On,Qu,QC=(function(){function r(t,e){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 i,n=!1;Iy(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],c=U(h)?new Lo({name:h}):h instanceof Lo?h:new Lo(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]);var g=f;pt(c.storeDimIndex)&&(g=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=g),d.itemId===0&&(this._idDimIdx=g),process.env.NODE_ENV!=="production"&&$(n||c.storeDimIndex>=0),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=et();T(o,function(p){m.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(pt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&e==null)throw new Error("Unknown dimension "+t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof tf&&(a=t),!a){var o=this.dimensions,s=Th(t)||Jt(t)?new Fm(t,o.length):t;a=new tf;var u=vr(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=GC(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=e[u],o&&Qu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==nr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===ae;if(u&&!n.pure)for(var l=[],f=t;f<e;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&R1(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ze(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ze(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Qu(this,f);Od(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){In(t)?R(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Pn(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return ao(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return F(t)?n.getValues(vr(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("Do not supported yet");var n=i&&i[e];return n==null||isNaN(n)?Pd:n},r.prototype.each=function(t,e,i){K(t)&&(i=e,e=t,t=[]);var n=i||this,a=vr(Fi(t),this._getStoreDimIndex,this);this._store.each(a,n?dt(e,n):e)},r.prototype.filterSelf=function(t,e,i){K(t)&&(i=e,e=t,t=[]);var n=i||this,a=vr(Fi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?dt(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=mt(t);return T(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){K(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=vr(Fi(t),this._getStoreDimIndex,this),s=On(this);return s._store=this._store.map(o,a?dt(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=this,o=i||n||this;process.env.NODE_ENV!=="production"&&T(Fi(t),function(u){var l=a.getDimensionInfo(u);l.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=vr(Fi(t),this._getStoreDimIndex,this);this._store.modify(s,o?dt(e,o):e)},r.prototype.downSample=function(t,e,i,n){var a=On(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=On(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=On(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new _t(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new zC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ao(t,i)},function(i){return ao(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},In(t)?R(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():In(a)&&(a=R({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,In(e)?R(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){In(t)?R(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?R(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;ZS(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:vr(this.dimensions,this._getDimInfo,this),this.hostModel)),Ku(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(kf(arguments)))})},r.internalField=(function(){Od=function(t){var e=t._invertedIndicesMap;T(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new $C(o.categories.length);for(var u=0;u<i.length;u++)i[u]=Pd;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},Pn=function(t,e,i){return ze(t._getCategory(e,i),null)},ao=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Pn(t,t._idDimIdx,e)),i==null&&(i=ZC+e),i},Fi=function(t){return F(t)||(t=t!=null?[t]:[]),t},On=function(t){var e=new r(t._schema?t._schema:vr(t.dimensions,t._getDimInfo,t),t.hostModel);return Ku(e,t),e},Ku=function(t,e){T(qC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,T(KC,function(i){t[i]=rt(e[i])}),t._calculationInfo=R({},e._calculationInfo)},Qu=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],u=n[e];if(s==null&&a!=null&&(i[e]=s=Pn(t,a,e)),u==null&&o!=null&&(n[e]=u=Pn(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[e]=u}}})(),r})();function JC(r,t){Th(r)||(r=km(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=et(),a=[],o=tD(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ny(o),u=i===r.dimensionsDefine,l=u?Oy(r):Py(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=et(f),c=new Um(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var A=c[M];if(A<0){var D=i[M],L=X(D)?D:{name:D},E=new Lo,I=L.name;I!=null&&l.get(I)!=null&&(E.name=E.displayName=I),L.type!=null&&(E.type=L.type),L.displayName!=null&&(E.displayName=L.displayName);var P=a.length;return c[M]=P,E.storeDimIndex=M,a.push(E),E}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,A){var D=Gt(M).slice();if(D.length===1&&!U(D[0])&&D[0]<0){h.set(A,!1);return}var L=h.set(A,[]);T(D,function(E,I){var P=U(E)?l.get(E):E;P!=null&&P<o&&(L[I]=P,m(d(P),A,I))})});var g=0;T(e,function(M){var A,D,L,E;if(U(M))A=M,E={};else{E=M,A=E.name;var I=E.ordinalMeta;E.ordinalMeta=null,E=R({},E),E.ordinalMeta=I,D=E.dimsDef,L=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var P=h.get(A);if(P!==!1){if(P=Gt(P),!P.length)for(var O=0;O<(D&&D.length||1);O++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&P.push(g++)}T(P,function(W,N){var V=d(W);if(u&&E.type!=null&&(V.type=E.type),m(ct(V,E),A,N),V.name==null&&D){var H=D[N];!X(H)&&(H={name:H}),V.name=V.displayName=H.name,V.defaultTooltip=H.defaultTooltip}L&&ct(V.otherDims,L)})}});function m(M,A,D){Jl.get(A)!=null?M.otherDims[A]=D:(M.coordDim=A,M.coordDimIndex=D,n.set(A,!0))}var p=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=p?y||1:0;var S=p||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)T(a,function(M){x(M)}),a.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),C=w.coordDim;C==null&&(w.coordDim=eD(S,n,_),w.coordDimIndex=0,(!p||y<=0)&&(w.isExtraCoord=!0),y--),x(w),w.type==null&&(Pm(r,b)===te.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return jC(a),new Ly({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function jC(r){for(var t=et(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function tD(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return T(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function eD(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var rD=(function(){function r(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return r})();function iD(r){var t=r.get("coordinateSystem"),e=new rD(t),i=nD[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var nD={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",pe).models[0],a=r.getReferringComponents("yAxis",pe).models[0];if(process.env.NODE_ENV!=="production"){if(!n)throw new Error('xAxis "'+tn(r.get("xAxisIndex"),r.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+tn(r.get("xAxisIndex"),r.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),zi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),zi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",pe).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",n),zi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",pe).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),zi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),zi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),f=o[u];e.set(f,l),zi(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(r,t,e,i){var n=r.getReferringComponents("matrix",pe).models[0];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("matrix coordinate system should be specified.");t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",a),e.set("y",o),i.set("x",a),i.set("y",o)}};function zi(r){return r.get("type")==="category"}function aD(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;oD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(T(a,function(y,_){U(y)&&(a[_]=y={name:y}),u&&!y.isExtraCoord&&(!i&&!l&&y.ordinalMeta&&(l=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(f=y))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;T(a,function(y){y.coordDim===v&&g++});var m={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(p)):(a.push(m),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function oD(r){return!Iy(r.schema)}function ln(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function sD(r,t){return ln(r,t)?r.getCalculationInfo("stackResultDimension"):t}function uD(r,t){var e=r.get("coordinateSystem"),i=_h.get(e),n;return t&&t.coordSysDims&&(n=q(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=WC(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function lD(r,t,e){var i,n;return e&&T(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function Nh(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===ae;var o=iD(t),s=uD(t,o),u=e.useEncodeDefaulter,l=K(u)?u:u?Ct(Jx,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=JC(n,f),c=lD(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=aD(t,{schema:h,store:v}),g=new QC(h,t);g.setCalculationInfo(d);var m=c!=null&&fD(n)?function(p,y,_,S){return S===c?_:this.defaultDimValueGetter(p,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?n:v,null,m),g}function fD(r){if(r.sourceFormat===ae){var t=hD(r.data||[]);return!F(ba(t))}}function hD(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function cD(r){var t=Math.pow(10,ws(Math.abs(r))),e=Math.abs(r/t);return e===0||e===1||e===2||e===3||e===5}function pf(r){return r.type==="interval"||r.type==="log"}function vD(r,t,e,i,n){var a={},o=a.interval=Sg(t/e);i!=null&&o<i&&(o=a.interval=i),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=pa(o),u=a.niceTickExtent=[Ot(Math.ceil(r[0]/o)*o,s),Ot(Math.floor(r[1]/o)*o,s)];return dD(u,r),a}function Ju(r){var t=Math.pow(10,ws(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Ot(e*t)}function pa(r){return tr(r)+2}function Nd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function dD(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Nd(r,0,t),Nd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Rh(r,t){return r>=t[0]&&r<=t[1]}var pD=(function(){function r(){this.normalize=Rd,this.scale=kd}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=dt(t.normalize,t),this.scale=dt(t.scale,t)):(this.normalize=Rd,this.scale=kd)},r})();function Rd(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function kd(r,t){return r*(t[1]-t[0])+t[0]}function gf(r,t,e){var i=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/i,Math.log(e?t[1]:Math.max(0,t[1]))/i]}var Nr=(function(){function r(t){this._calculator=new pD,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e),this._brkCtx&&this._brkCtx.update(i)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Cs(Nr);var gD=0,mf=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gD,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&q(i,mD);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!U(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r})();function mD(r){return X(r)&&r.value!=null?r.value:r+""}var Ry=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new mf({})),F(n)&&(n=new mf({categories:q(n,function(a){return X(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:U(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Rh(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,i.length);o<u;++o){var l=i[o];n[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Nr);Nr.registerClass(Ry);var dr=Ot,fn=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return Rh(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pa(e)},t.prototype.getTicks=function(e){e=e||{};var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=ts(),u=[];if(!i)return u;e.breakTicks;var l=1e4;n[0]<a[0]&&(e.expandToNicedExtent?u.push({value:dr(a[0]-i,o)}):u.push({value:n[0]}));for(var f=function(d,g){return Math.round((g-d)/i)},h=a[0];h<=a[1];){if(u.push({value:h}),h=dr(h+i,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=dr(h+c*i,o))}if(u.length>0&&h===u[u.length-1].value)break;if(u.length>l)return[]}var v=u.length?u[u.length-1].value:a[1];return n[1]>v&&(e.expandToNicedExtent?u.push({value:dr(v+i,o)}):u.push({value:n[1]})),e.breakTicks,u},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks({expandToNicedExtent:!0}),n=[],a=this.getExtent(),o=1;o<i.length;o++){var s=i[o],u=i[o-1];if(!(u.break||s.break)){for(var l=0,f=[],h=s.value-u.value,c=h/e,v=pa(c);l<e-1;){var d=dr(u.value+(l+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),l++}var g=ts();g&&g.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(m){return m},this._interval,a),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=tr(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=dr(e.value,n,!0);return Tm(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=vD(a,o,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent.slice();if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this._innerSetExtent(i[0],i[1]),i=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(i[0]=dr(Math.floor(i[0]/o)*o,s)),e.fixMax||(i[1]=dr(Math.ceil(i[1]/o)*o,s)),this._innerSetExtent(i[0],i[1])},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t})(Nr);Nr.registerClass(fn);var ky=typeof Float32Array<"u",yD=ky?Float32Array:Array;function er(r){return F(r)?ky?new Float32Array(r):r:new yD(r)}var _D="__ec_stack_";function By(r){return r.get("stack")||_D+r.seriesIndex}function kh(r){return r.dim+r.index}function Vy(r,t){var e=[];return t.eachSeriesByType(r,function(i){zy(i)&&e.push(i)}),e}function SD(r){var t={};T(r,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,m=d.count();g<m;++g){var p=d.get(v,g);t[c]?t[c].push(p):t[c]=[p]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(u,l){return u-l});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function Fy(r){var t=SD(r),e=[];return T(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ht(i.get("barWidth"),s),g=Ht(i.get("barMaxWidth"),s),m=Ht(i.get("barMinWidth")||(Hy(i)?.5:1),s),p=i.get("barGap"),y=i.get("barCategoryGap"),_=i.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:m,barGap:p,barCategoryGap:y,defaultBarGap:_,axisKey:kh(a),stackId:By(i)})}),bD(e)}function bD(r){var t={};T(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:i.defaultBarGap||0,stacks:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var c=i.barMinWidth;c&&(u[l].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return T(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=mt(a).length;s=Math.max(35-u*4,15)+"%"}var l=Ht(s,o),f=Ht(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(p){var y=p.maxWidth,_=p.minWidth;if(p.width){var S=p.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),p.width=S,h-=S+f*S,c--}else{var S=v;y&&y<S&&(S=Math.min(y,h)),_&&_>S&&(S=_),S!==v&&(p.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;T(a,function(p,y){p.width||(p.width=v),g=p,d+=p.width*(1+f)}),g&&(d-=g.width*f);var m=-d/2;T(a,function(p,y){e[n][y]=e[n][y]||{bandWidth:o,offset:m,width:p.width},m+=p.width*(1+f)})}),e}function xD(r,t,e){if(r&&t){var i=r[kh(t)];return i}}function wD(r,t){var e=Vy(r,t),i=Fy(e);T(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),u=By(n),l=i[kh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function TD(r){return{seriesType:r,plan:Dh(),reset:function(t){if(zy(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=ln(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=CD(n,a),d=Hy(t),g=t.get("barMinHeight")||0,m=f&&e.getDimensionIndex(f),p=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&er(x*3),w=d&&u&&er(x*3),C=d&&er(x),M=i.master.getRect(),A=c?M.width:M.height,D,L=S.getStore(),E=0;(D=_.next())!=null;){var I=L.get(h?m:o,D),P=L.get(s,D),O=v,W=void 0;h&&(W=+I-L.get(o,D));var N=void 0,V=void 0,H=void 0,G=void 0;if(c){var z=i.dataToPoint([I,P]);if(h){var Q=i.dataToPoint([W,P]);O=Q[0]}N=O,V=z[1]+y,H=z[0]-O,G=p,Math.abs(H)<g&&(H=(H<0?-1:1)*g)}else{var z=i.dataToPoint([P,I]);if(h){var Q=i.dataToPoint([P,W]);O=Q[1]}N=z[0]+y,V=O,H=p,G=z[1]-O,Math.abs(G)<g&&(G=(G<=0?-1:1)*g)}d?(b[E]=N,b[E+1]=V,b[E+2]=c?H:G,w&&(w[E]=c?M.x:N,w[E+1]=c?V:M.y,w[E+2]=A),C[D]=D):S.setItemLayout(D,{x:N,y:V,width:H,height:G}),E+=3}d&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function zy(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Hy(r){return r.pipelineContext&&r.pipelineContext.large}function CD(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var DD=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},Gy=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return zs(e.value,Dv[Rx(jn(this._minLevelUnit))]||Dv.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return kx(e,i,n,o,a)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=[];if(!i)return a;var o=this.getSetting("useUTC"),s=es(n[1],o);a.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var u=ND(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(u);var l=es(n[1],o);a.push({value:n[1],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}}),this.getSetting("useUTC");var f=mi.length-1,h=0;return T(a,function(c){f=Math.min(f,st(mi,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},t.prototype.calcNiceExtent=function(e){var i=this.getExtent();if(i[0]===i[1]&&(i[0]-=ge,i[1]+=ge),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-ge}this._innerSetExtent(i[0],i[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=oo.length,s=Math.min(DD(oo,this._approxInterval,0,o),o-1);this._interval=oo[s][1],this._intervalPrecision=pa(this._interval),this._minLevelUnit=oo[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return pt(e)?e:+pn(e)},t.prototype.contain=function(e){return Rh(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(fn),oo=[["second",hh],["minute",ch],["hour",Jn],["quarter-day",Jn*6],["half-day",Jn*12],["day",ge*1.2],["half-week",ge*3.5],["week",ge*7],["month",ge*31],["quarter",ge*95],["half-year",Cv/2],["year",Cv]];function MD(r,t,e,i){return Kl(new Date(t),r,i).getTime()===Kl(new Date(e),r,i).getTime()}function AD(r,t){return r/=ge,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function ED(r){var t=30*ge;return r/=t,r>6?6:r>3?3:r>2?2:1}function LD(r){return r/=Jn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Bd(r,t){return r/=t?ch:hh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function ID(r){return Sg(r)}function PD(r,t,e){var i=Math.max(0,st(mi,t)-1);return Kl(new Date(r),mi[i],e).getTime()}function OD(r,t){var e=new Date(0);e[r](1);var i=e.getTime();e[r](1+t);var n=e.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function ND(r,t,e,i,n,a){var o=1e4,s=Ix,u=0;function l(E,I,P,O,W,N,V){for(var H=OD(W,E),G=I,z=new Date(G);G<P&&G<=i[1];){if(V.push({value:G}),u++>o){process.env.NODE_ENV!=="production"&&kt("Exceed safe limit in time scale.");break}if(z[W](z[O]()+E),G=z.getTime(),a){var Q=a.calcNiceTickMultiple(G,H);Q>0&&(z[W](z[O]()+Q*E),G=z.getTime())}}V.push({value:G,notAdd:!0})}function f(E,I,P){var O=[],W=!I.length;if(!MD(jn(E),i[0],i[1],e)){W&&(I=[{value:PD(i[0],E,e)},{value:i[1]}]);for(var N=0;N<I.length-1;N++){var V=I[N].value,H=I[N+1].value;if(V!==H){var G=void 0,z=void 0,Q=void 0,at=!1;switch(E){case"year":G=Math.max(1,Math.round(t/ge/365)),z=mm(e),Q=Bx(e);break;case"half-year":case"quarter":case"month":G=ED(t),z=vh(e),Q=ym(e);break;case"week":case"half-week":case"day":G=AD(t),z=dh(e),Q=_m(e),at=!0;break;case"half-day":case"quarter-day":case"hour":G=LD(t),z=ph(e),Q=Sm(e);break;case"minute":G=Bd(t,!0),z=gh(e),Q=bm(e);break;case"second":G=Bd(t,!1),z=mh(e),Q=xm(e);break;case"millisecond":G=ID(t),z=yh(e),Q=wm(e);break}H>=i[0]&&V<=i[1]&&l(G,V,H,z,Q,at,O),E==="year"&&P.length>1&&N===0&&P.unshift({value:P[0].value-G})}}for(var N=0;N<O.length;N++)P.push(O[N])}}for(var h=[],c=[],v=0,d=0,g=0;g<s.length;++g){var m=jn(s[g]);if(Nx(s[g])){f(s[g],h[h.length-1]||[],c);var p=s[g+1]?jn(s[g+1]):null;if(m!==p){if(c.length){d=v,c.sort(function(E,I){return E.value-I.value});for(var y=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(y.push(c[_]),S>=i[0]&&S<=i[1]&&v++)}var x=n/t;if(v>x*1.5&&d>x/1.5||(h.push(y),v>x||r===s[g]))break}c=[]}}}for(var b=At(q(h,function(E){return At(E,function(I){return I.value>=i[0]&&I.value<=i[1]&&!I.notAdd})}),function(E){return E.length>0}),w=[],C=b.length-1,g=0;g<b.length;++g)for(var M=b[g],A=0;A<M.length;++A){var D=es(M[A].value,e);w.push({value:M[A].value,time:{level:C-g,upperTimeUnit:D,lowerTimeUnit:D}})}w.sort(function(E,I){return E.value-I.value});for(var L=[],g=0;g<w.length;++g)(g===0||w[g].value!==w[g-1].value)&&L.push(w[g]);return L}Nr.registerClass(Gy);var yf=Ot,RD=Math.floor,kD=Math.ceil,so=Math.pow,uo=Math.log,Wy=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new fn,e}return t.prototype.getTicks=function(e){e=e||{};var i=this._extent.slice(),n=this._originalScale.getExtent(),a=r.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),q(a,function(s){var u=s.value,l=null,f=so(o,u);u===i[0]&&this._fixMin?l=n[0]:u===i[1]&&this._fixMax&&(l=n[1]);var h;return l!=null&&(f=ju(f,l)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,i){this._originalScale.setExtent(e,i);var n=gf(this.base,[e,i]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,i=r.prototype.getExtent.call(this);i[0]=so(e,i[0]),i[1]=so(e,i[1]);var n=this._originalScale.getExtent();return this._fixMin&&(i[0]=ju(i[0],n[0])),this._fixMax&&(i[1]=ju(i[1],n[1])),i},t.prototype.unionExtentFromData=function(e,i){this._originalScale.unionExtentFromData(e,i);var n=gf(this.base,e.getApproximateExtent(i),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var a=I1(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[yf(kD(i[0]/a)*a),yf(RD(i[1]/a)*a)];this._interval=a,this._intervalPrecision=pa(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=uo(e)/uo(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=uo(e)/uo(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),so(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t})(fn);function ju(r,t){return yf(r,tr(t))}Nr.registerClass(Wy);var BD=(function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=lo(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=lo(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(K(s)?this._modelMaxNum=lo(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=lo(t,s)),n)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),l=F(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Mr(l[0],1),Mr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),u==null&&(u=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=ji(s)||ji(u)||t&&!n;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){process.env.NODE_ENV!=="production"&&$(!this.frozen),this[FD[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=VD[t];process.env.NODE_ENV!=="production"&&$(!this.frozen&&this[i]==null),this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),VD={min:"_determinedMin",max:"_determinedMax"},FD={min:"_dataMin",max:"_dataMax"};function zD(r,t,e){var i=r.rawExtentInfo;return i||(i=new BD(r,t,e),r.rawExtentInfo=i,i)}function lo(r,t){return t==null?null:ji(t)?NaN:r.parse(t)}function Uy(r,t){var e=r.type,i=zD(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=Vy("bar",o),u=!1;if(T(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Fy(s),f=HD(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function HD(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=xD(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;T(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function Vd(r,t){var e=t,i=Uy(r,e),n=i.extent,a=e.get("splitNumber");r instanceof Wy&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setBreaksFromOption(Xy(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function GD(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ry({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Gy({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Nr.getClass(t)||fn)}}function WD(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Ca(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=Px(t);return function(n,a){return r.scale.getFormattedLabel(n,a,e)}}else{if(U(t))return function(n){var a=r.scale.getLabel(n),o=t.replace("{value}",a??"");return o};if(K(t)){if(r.type==="category")return function(n,a){return t(cs(r,n),n.value-r.scale.getExtent()[0],null)};var i=ts();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(cs(r,n),a,o)}}else return function(n){return r.scale.getLabel(n)}}}function cs(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Bh(r){var t=r.get("interval");return t??"auto"}function Yy(r){return r.type==="category"&&Bh(r.getLabelModel())===0}function UD(r,t){var e={};return T(r.mapDimensionsAll(t),function(i){e[sD(r,i)]=!0}),mt(e)}function hn(r){return r==="middle"||r==="center"}function ga(r){return r.getShallow("show")}function Xy(r){var t=r.get("breaks",!0);if(t!=null){process.env.NODE_ENV!=="production"&&ft('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var YD=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})(),Fd=[],XD={registerPreprocessor:My,registerProcessor:Ay,registerPostInit:NC,registerPostUpdate:RC,registerUpdateLifecycle:Ih,registerAction:mn,registerCoordinateSystem:kC,registerLayout:BC,registerVisual:wi,registerTransform:FC,registerLoading:Ey,registerMap:VC,registerImpl:dC,PRIORITY:MC,ComponentModel:ot,ComponentView:we,SeriesModel:We,ChartView:xe,registerComponentModel:function(r){ot.registerClass(r)},registerComponentView:function(r){we.registerClass(r)},registerSeriesModel:function(r){We.registerClass(r)},registerChartView:function(r){xe.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){ot.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){C1(r,t)}};function Ir(r){if(F(r)){T(r,function(t){Ir(t)});return}st(Fd,r)>=0||(Fd.push(r),K(r)&&(r={install:r}),r.install(XD))}var $D=xt(),ia=xt(),Te={estimate:1,determine:2};function vs(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function $y(r,t){var e=q(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function ZD(r,t){var e=r.getLabelModel().get("customValues");if(e){var i=Ca(r),n=r.scale.getExtent(),a=$y(r,e),o=At(a,function(s){return s>=n[0]&&s<=n[1]});return{labels:q(o,function(s){var u={value:s};return{formattedLabel:i(u),rawLabel:r.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?KD(r,t):JD(r)}function qD(r,t,e){var i=r.getTickModel().get("customValues");if(i){var n=r.scale.getExtent(),a=$y(r,i);return{ticks:At(a,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?QD(r,t):{ticks:q(r.scale.getTicks(e),function(o){return o.value})}}function KD(r,t){var e=r.getLabelModel(),i=Zy(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:i}function Zy(r,t,e){var i=tM(r),n=Bh(t),a=e.kind===Te.estimate;if(!a){var o=Ky(i,n);if(o)return o}var s,u;K(n)?s=jy(r,n):(u=n==="auto"?eM(r,e):n,s=Jy(r,u));var l={labels:s,labelCategoryInterval:u};return a?e.out.noPxChangeTryDetermine.push(function(){return _f(i,n,l),!0}):_f(i,n,l),l}function QD(r,t){var e=jD(r),i=Bh(t),n=Ky(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),K(i))a=jy(r,i,!0);else if(i==="auto"){var s=Zy(r,r.getLabelModel(),vs(Te.determine));o=s.labelCategoryInterval,a=q(s.labels,function(u){return u.tickValue})}else o=i,a=Jy(r,o,!0);return _f(e,i,{ticks:a,tickCategoryInterval:o})}function JD(r){var t=r.scale.getTicks(),e=Ca(r);return{labels:q(t,function(i,n){return{formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value,time:i.time,break:i.break}})}}var jD=qy("axisTick"),tM=qy("axisLabel");function qy(r){return function(e){return ia(e)[r]||(ia(e)[r]={list:[]})}}function Ky(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function _f(r,t,e){return r.list.push({key:t,value:e}),e}function eM(r,t){if(t.kind===Te.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return ia(r).autoInterval=e,!0}),e}var i=ia(r).autoInterval;return i??(ia(r).autoInterval=r.calculateCategoryInterval(t))}function rM(r,t){var e=t.kind,i=nM(r),n=Ca(r),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var h=s[0],c=r.dataToCoord(h+1)-r.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),g=0,m=0;h<=s[1];h+=l){var p=0,y=0,_=pg(n({value:h}),i.font,"center","top");p=_.width*1.3,y=_.height*1.3,g=Math.max(g,p,7),m=Math.max(m,y,7)}var S=g/v,x=m/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===Te.estimate)return t.out.noPxChangeTryDetermine.push(dt(iM,null,r,b,u)),b;var w=Qy(r,b,u);return w??b}function iM(r,t,e){return Qy(r,t,e)==null}function Qy(r,t,e){var i=$D(r.model),n=r.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-e)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=e,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function nM(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Jy(r,t,e){var i=Ca(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=n.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=Yy(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(m){var p={value:m};s.push(e?m:{formattedLabel:i(p),rawLabel:n.getLabel(p),tickValue:m,time:void 0,break:void 0})}return s}function jy(r,t,e){var i=r.scale,n=Ca(r),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:n(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var zd=[0,1],aM=(function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return A1(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Hd(i,n.count())),Mc(t,zd,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Hd(i,n.count()));var a=Mc(t,i,zd,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=qD(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=i.ticks,a=q(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return oM(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=q(i,function(a){return q(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||vs(Te.determine),ZD(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(t){return t=t||vs(Te.determine),rM(this,t)},r})();function Hd(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function oM(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[n-1].tickValue-t[0].tickValue,l=(t[n-1].coord-t[0].coord)/u;T(t,function(v){v.coord-=l/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+l*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function c(v,d){return v=Ot(v),d=Ot(d),h?v>d:v<d}}var Gd=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],sM=1,ds=2,t0=sM|ds;function ps(r,t,e){e=e||t0,t?r.dirty|=e:r.dirty&=~e}function e0(r,t){return t=t||t0,r.dirty==null||!!(r.dirty&t)}function Pr(r){if(r)return e0(r)&&uM(r,r.label,r),r}function uM(r,t,e){var i=t.getComputedTransform();r.transform=uh(r.transform,i);var n=r.localRect=la(r.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=e&&e.marginForce,u=e&&e.minMarginForce,l=e&&e.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Zi.textMargin);for(var h=0;h<4;h++)tl[h]=f===Zi.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Zi.textMargin&&Jo(n,tl,!1,!1);var c=r.rect=la(r.rect,n);return i&&c.applyTransform(i),f===Zi.minMargin&&Jo(c,tl,!1,!1),r.axisAligned=sh(i),(r.label=r.label||{}).ignore=t.ignore,ps(r,!1),ps(r,!0,ds),r}var tl=[0,0,0,0];function lM(r,t,e){return r.transform=uh(r.transform,e),r.localRect=la(r.localRect,t),r.rect=la(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=sh(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function fM(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var i=r.rect;i&&(i.x+=t.x,i.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function Wd(r,t){for(var e=0;e<Gd.length;e++){var i=Gd[e];r[i]==null&&(r[i]=t[i])}return Pr(r)}function Ud(r){var t=r.obb;return(!t||e0(r,ds))&&(r.obb=t=t||new rm,t.fromBoundingRect(r.localRect,r.transform),ps(r,!1,ds)),t}function hM(r){var t=[];r.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function e(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var i=0;i<r.length;i++){var n=Pr(r[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(Vh(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(e(a),o&&e(o)):t.push(n)}}}function Vh(r,t,e,i){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,i)?!1:r.axisAligned&&t.axisAligned?!0:Ud(r).intersect(Ud(t),e,i)}var cM=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!=="production"){var i=e.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Nh(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new Lt,n=un("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=un(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);i.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=Y.color.neutral00,l.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(We);function Fh(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=sn(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(sn(r,t,e[o]));return a.join(" ")}}function r0(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var i=[],n=0;n<e.length;n++){var a=r.getDimensionIndex(e[n]);a>=0&&i.push(t[a])}return i.join(" ")}var zh=(function(r){B(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o,s){this.removeAll();var u=un(e,-1,-1,2,2,null,s);u.attr({z2:Z(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=vM,this._symbolType=e,this.add(u)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Zo(this.childAt(0))},t.prototype.downplay=function(){qo(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,i),l=t.getSymbolZ2(e,i),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var c=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,u,l,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};h?v.attr(d):ne(v,d,s,i),im(v)}if(this._updateCommon(e,i,u,n,a),f){var v=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,sr(v,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,g,m,p;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Bs(y),m=_.getShallow("scale"),p=y.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=sy(e.getItemVisual(i,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),p&&s.attr("cursor",p);var b=e.getItemVisual(i,"style"),w=b.fill;if(s instanceof Or){var C=s.style;s.useStyle(R({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(R({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(i,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;ks(s,g,{labelFetcher:u,labelDataIndex:i,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(P){return D?e.getName(P):Fh(e,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var E=s.ensureState("emphasis");E.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;E.scaleX=this._sizeX*I,E.scaleY=this._sizeY*I,this.setSymbolScale(1),Ko(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&Qo(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Qo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return QT(e.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(e,i){return e.getItemVisual(i,"z2")},t})(Lt);function vM(r,t){this.parent.drift(r,t)}function el(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Yd(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Xd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Bs(t),cursorStyle:t.get("cursor")}}var dM=(function(){function r(t){this.group=new Lt,this._SymbolCtor=t||zh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Yd(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=Xd(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(el(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!el(t,d,h,e)){i.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==g)i.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var p={x:d[0],y:d[1]};s?v.attr(p):ne(v,p,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Xd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Yd(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(el(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Ns(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r})();function i0(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=pM(n,e),o=i.dim,s=n.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=q(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return ln(t,h[0])&&(c=!0,h[0]=v),ln(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function pM(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:pt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function n0(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function gM(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function mM(r,t,e,i,n,a,o,s){for(var u=gM(r,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],m=i0(n,t,o),p=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var C=p[b],M=p[b+1],A=y[w],D=y[w+1];(isNaN(C)||isNaN(M))&&(C=A,M=D),l.push(C,M),f.push(A,D),h.push(e[b],e[b+1]),c.push(i[w],i[w+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,E=m.dataDimsForPoint,I=n.dataToPoint([t.get(E[0],L),t.get(E[1],L)]);w=L*2,l.push(I[0],I[1]),f.push(y[w],y[w+1]);var P=n0(m,n,t,L);h.push(P[0],P[1]),c.push(i[w],i[w+1]),g.push(t.getRawIndex(L));break;case"-":x=!1}x&&(v.push(S),d.push(d.length))}d.sort(function(yt,Ut){return g[yt]-g[Ut]});for(var O=l.length,W=er(O),N=er(O),V=er(O),H=er(O),G=[],_=0;_<d.length;_++){var z=d[_],Q=_*2,at=z*2;W[Q]=l[at],W[Q+1]=l[at+1],N[Q]=f[at],N[Q+1]=f[at+1],V[Q]=h[at],V[Q+1]=h[at+1],H[Q]=c[at],H[Q+1]=c[at+1],G[_]=v[z]}return{current:W,next:N,stackedOnCurrent:V,stackedOnNext:H,status:G}}var pr=Math.min,gr=Math.max;function yi(r,t){return isNaN(r)||isNaN(t)}function Sf(r,t,e,i,n,a,o,s,u){for(var l,f,h,c,v,d,g=e,m=0;m<i;m++){var p=t[g*2],y=t[g*2+1];if(g>=n||g<0)break;if(yi(p,y)){if(u){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](p,y),h=p,c=y;else{var _=p-l,S=y-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var x=g+a,b=t[x*2],w=t[x*2+1];b===p&&w===y&&m<i;)m++,x+=a,g+=a,b=t[x*2],w=t[x*2+1],p=t[g*2],y=t[g*2+1],_=p-l,S=y-f;var C=m+1;if(u)for(;yi(b,w)&&C<i;)C++,x+=a,b=t[x*2],w=t[x*2+1];var M=.5,A=0,D=0,L=void 0,E=void 0;if(C>=i||yi(b,w))v=p,d=y;else{A=b-l,D=w-f;var I=p-l,P=b-p,O=y-f,W=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(I),V=Math.abs(P);var H=A>0?1:-1;v=p-H*N*o,d=y,L=p+H*V*o,E=y}else if(s==="y"){N=Math.abs(O),V=Math.abs(W);var G=D>0?1:-1;v=p,d=y-G*N*o,L=p,E=y+G*V*o}else N=Math.sqrt(I*I+O*O),V=Math.sqrt(P*P+W*W),M=V/(V+N),v=p-A*o*(1-M),d=y-D*o*(1-M),L=p+A*o*M,E=y+D*o*M,L=pr(L,gr(b,p)),E=pr(E,gr(w,y)),L=gr(L,pr(b,p)),E=gr(E,pr(w,y)),A=L-p,D=E-y,v=p-A*N/V,d=y-D*N/V,v=pr(v,gr(l,p)),d=pr(d,gr(f,y)),v=gr(v,pr(l,p)),d=gr(d,pr(f,y)),A=p-v,D=y-d,L=p+A*V/N,E=y+D*V/N}r.bezierCurveTo(h,c,v,d,p,y),h=L,c=E}else r.lineTo(p,y)}l=p,f=y,g+=a}return m}var a0=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),yM=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:Y.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new a0},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&yi(n[o*2-2],n[o*2-1]);o--);for(;a<o&&yi(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Sf(e,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Si.CMD,s,u,l=i==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,g=void 0,m=void 0,p=void 0,y=void 0,_=void 0;switch(c){case o.M:s=a[h++],u=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=l?(e-s)/(v-s):(e-u)/(d-u),_<=1&&_>=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],m=a[h++],p=a[h++],y=a[h++];var x=l?ko(s,v,g,p,e,f):ko(u,d,m,y,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=l?Pt(u,d,m,y,w):Pt(s,v,g,p,w);return l?[e,S]:[S,e]}}s=p,u=y;break}}},t})(ht),_M=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(a0),SM=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new _M},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;s>0&&yi(n[s*2-2],n[s*2-1]);s--);for(;o<s&&yi(n[o*2],n[o*2+1]);o++);}for(;o<s;){var l=Sf(e,n,o,s,s,1,i.smooth,u,i.connectNulls);Sf(e,a,o+l-1,l,s,-1,i.stackedOnSmooth,u,i.connectNulls),o+=l+1,e.closePath()}},t})(ht);function o0(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new bt({shape:{x:o,y:s,width:u,height:l}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var g=K(n)?function(m){n(m,h)}:null;sr(h,{shape:{width:u,height:l,x:o,y:s}},e,null,i,g)}return h}function s0(r,t,e){var i=r.getArea(),n=Ot(i.r0,1),a=Ot(i.r,1),o=new gn({shape:{cx:Ot(r.cx,1),cy:Ot(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,sr(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function bM(r,t,e,i,n){if(r){if(r.type==="polar")return s0(r,t,e);if(r.type==="cartesian2d")return o0(r,t,e,i,n)}else return null;return null}function Hh(r,t){return r.type===t}function $d(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Zd(r){for(var t=1/0,e=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[i,n]]}function qd(r,t){var e=Zd(r),i=e[0],n=e[1],a=Zd(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Kd(r){return pt(r)?r:r?.5:0}function xM(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=er(i*2),a=0;a<i;a++){var o=n0(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function mr(r,t,e,i,n){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],h=[],c=[];if(n){for(u=0;u<r.length;u+=2){var v=t||r;!isNaN(v[u])&&!isNaN(v[u+1])&&c.push(r[u],r[u+1])}r=c}for(u=0;u<r.length-2;u+=2)switch(h[0]=r[u+2],h[1]=r[u+3],f[0]=r[u],f[1]=r[u+1],s.push(f[0],f[1]),i){case"end":l[o]=h[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+h[o])/2,g=[];l[o]=g[o]=d,l[1-o]=f[1-o],g[1-o]=h[1-o],s.push(l[0],l[1]),s.push(g[0],g[1]);break;default:l[o]=f[o],l[1-o]=h[1-o],s.push(l[0],l[1])}return s.push(r[u++],r[u++]),s}function wM(r,t){var e=[],i=r.length,n,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=J_(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<i;s++){var u=r[s],l=u.coord;if(l<0)n=u;else if(l>t){a?e.push(o(a,u,t)):n&&e.push(o(n,u,0),o(n,u,t));break}else n&&(e.push(o(n,u,0)),n=null),e.push(u),a=u}return e}function TM(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var u=t.getAxis(n),l=q(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=wM(l,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,m=c[v-1].coord+d,p=m-g;if(p<.001)return"transparent";T(c,function(_){_.offset=(_.coord-g)/p}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new em(0,0,0,0,c,!0);return y[n]=g,y[n+"2"]=m,y}}function CM(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&DM(a,t))){var o=t.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function DM(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(zh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function MM(r,t){return isNaN(r)||isNaN(t)}function AM(r){for(var t=r.length/2;t>0&&MM(r[t*2-2],r[t*2-1]);t--);return t-1}function Qd(r,t){return[r[t*2],r[t*2+1]]}function EM(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,u=-1,l=0;l<i;l++)if(o=r[l*2+n],!(isNaN(o)||isNaN(r[l*2+1-n]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function u0(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ge.length;t++)if(r.get([Ge[t],"endLabel","show"]))return!0;return!1}function rl(r,t,e,i){if(Hh(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},u=u0(i)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,n,t)}:null,l=t.getBaseAxis().isHorizontal(),f=o0(t,e,i,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},u);if(!i.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);l?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return u&&u(1,f),f}else return process.env.NODE_ENV!=="production"&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),s0(t,e,i)}function LM(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),n=e.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var IM=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Lt,i=new dM;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=dt(this._changePolyState,this)},t.prototype.render=function(e,i,n){var a=e.coordinateSystem,o=this.group,s=e.getData(),u=e.getModel("lineStyle"),l=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,m=this._lineGroup,p=!i.ssr&&e.get("animation"),y=!l.isEmpty(),_=l.get("origin"),S=i0(a,s,_),x=y&&xM(a,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),C=b&&!h&&CM(e,s,a),M=this._data;M&&M.eachItemGraphicEl(function(yt,Ut){yt.__temp&&(o.remove(yt),M.setItemGraphicEl(Ut,null))}),b||v.remove(),o.add(m);var A=h?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=TM(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&A===this._step))b&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),p&&this._initSymbolLabelAnimation(s,a,D),A&&(x&&(x=mr(x,f,a,A,w)),f=mr(f,null,a,A,w)),d=this._newPolyline(f),y?g=this._newPolygon(f,x):g&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,bi(L)),m.setClipPath(rl(this,a,!0,e));else{y&&!g?g=this._newPolygon(f,x):g&&!y&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,bi(L));var E=m.getClipPath();if(E){var I=rl(this,a,!1,e);sr(E,{shape:I.shape},e)}else m.setClipPath(rl(this,a,!0,e));b&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),(!$d(this._stackedOnPoints,x)||!$d(this._points,f))&&(p?this._doUpdateAnimation(s,x,a,n,A,_,w):(A&&(x&&(x=mr(x,f,a,A,w)),f=mr(f,null,a,A,w)),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:x})))}var P=e.getModel("emphasis"),O=P.get("focus"),W=P.get("blurScope"),N=P.get("disabled");if(d.useStyle(ct(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Yl(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=e.seriesIndex,Ko(d,O,W,N);var H=Kd(e.get("smooth")),G=e.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:G,connectNulls:w}),g){var z=s.getCalculationInfo("stackedOnSeries"),Q=0;g.useStyle(ct(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),z&&(Q=Kd(z.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:Q,smoothMonotone:G,connectNulls:w}),Yl(g,e,"areaStyle"),nt(g).seriesIndex=e.seriesIndex,Ko(g,O,W,N)}var at=this._changePolyState;s.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=at)}),this._polyline.onHoverStateChange=at,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,i){nt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=_i(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new zh(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else xe.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=_i(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else xe.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;nv(this._polyline,e),i&&nv(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new yM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new SM({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),u=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");K(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=K(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var m=[v.x,v.y],p=void 0,y=void 0,_=void 0;if(n)if(o){var S=n,x=i.pointToCoord(m);a?(p=S.startAngle,y=S.endAngle,_=-x[1]/180*Math.PI):(p=S.r0,y=S.r,_=x[0])}else{var b=n;a?(p=b.x,y=b.x+b.width,_=v.x):(p=b.y+b.height,y=b.y,_=v.y)}var w=y===p?0:(_-p)/(y-p);u&&(w=1-w);var C=K(h)?h(d):f*w+c,M=g.getSymbolPath(),A=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(u0(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Bt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=AM(u);f>=0&&(ks(s,Bs(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?r0(o,v):Fh(o,h)},enableTextSetter:!0},LM(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,m=u.getBaseAxis(),p=m.isHorizontal(),y=m.inverse,_=i.shape,S=y?p?_.x:_.y+_.height:p?_.x+_.width:_.y,x=(p?g:0)*(y?-1:1),b=(p?0:-g)*(y?-1:1),w=p?"x":"y",C=EM(h,S,w),M=C.range,A=M[1]-M[0],D=void 0;if(A>=1){if(A>1&&!v){var L=Qd(h,M[0]);l.attr({x:L[0]+x,y:L[1]+b}),o&&(D=c.getRawValue(M[0]))}else{var L=f.getPointOn(S,w);L&&l.attr({x:L[0]+x,y:L[1]+b});var E=c.getRawValue(M[0]),I=c.getRawValue(M[1]);o&&(D=Z1(n,d,E,I,C.t))}a.lastFrameIndex=M[0]}else{var P=e===1||a.lastFrameIndex>0?M[0]:0,L=Qd(h,P);o&&(D=c.getRawValue(P)),l.attr({x:L[0]+x,y:L[1]+b})}if(o){var O=Vs(l);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=mM(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,m=c.stackedOnNext;if(o&&(d=mr(c.stackedOnCurrent,c.current,n,o,u),v=mr(c.current,null,n,o,u),m=mr(c.stackedOnNext,c.next,n,o,u),g=mr(c.next,null,n,o,u)),qd(v,g)>3e3||f&&qd(d,m)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:m}));return}l.shape.__points=c.current,l.shape.points=v;var p={shape:{points:g}};c.current!==v&&(p.shape.__points=c.next),l.stopAnimation(),ne(l,p,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),ne(f,{shape:{stackedOnPoints:m}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var y=[],_=c.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&y.push({el:b,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var w=l.shape.__points,C=0;C<y.length;C++){var M=y[C].el,A=y[C].ptIdx*2;M.x=w[A],M.y=w[A+1],M.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(xe);function PM(r,t){return{seriesType:r,plan:Dh(),reset:function(e){var i=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var a=q(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),o=a.length,s=i.getCalculationInfo("stackResultDimension");ln(i,a[0])&&(a[0]=s),ln(i,a[1])&&(a[1]=s);var u=i.getStore(),l=i.getDimensionIndex(a[0]),f=i.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=er(v*o),g=[],m=[],p=h.start,y=0;p<h.end;p++){var _=void 0;if(o===1){var S=u.get(l,p);_=n.dataToPoint(S,null,m)}else g[0]=u.get(l,p),g[1]=u.get(f,p),_=n.dataToPoint(g,null,m);d[y++]=_[0],d[y++]=_[1]}c.setLayout("points",d)}}}}}}var OM={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},NM=function(r){return Math.round(r.length/2)};function l0(r){return{seriesType:r,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/v));var d=void 0;U(a)?d=OM[a]:K(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(l.dim),1/v,d,NM))}}}}}function RM(r){r.registerChartView(IM),r.registerSeriesModel(cM),r.registerLayout(PM("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,l0("line"))}var bf=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return Nh(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),m=o[v],p=i[v]==="x1"||i[v]==="y1";if(p&&!g&&(m+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[p?1:0]);return}for(var y=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(w===m){_=b;break}else if(w<m)y=b;else if(y!=null&&w>m){_=(b+y)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(We);We.registerClass(bf);var kM=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Nh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=dm(bf.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:Y.color.primary,borderWidth:2}},realtimeSort:!1}),t})(bf),BM=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Jd=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new BM},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),u=(s-o)*.5,l=o+u,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),m=Math.sin(f),p=Math.cos(h),y=Math.sin(h);d?(e.moveTo(g*o+n,m*o+a),e.arc(g*l+n,m*l+a,u,-Math.PI+f,f,!c)):e.moveTo(g*s+n,m*s+a),e.arc(n,a,s,f,h,!c),e.arc(p*l+n,y*l+a,u,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(n,a,o,h,f,c)},t})(ht);function VM(r,t){t=t||{};var e=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Ho(i,n,a);var s=r(o),u=n.distance!=null?n.distance:5,l=this.shape,f=l.cx,h=l.cy,c=l.r,v=l.r0,d=(c+v)/2,g=l.startAngle,m=l.endAngle,p=(g+m)/2,y=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(g),b=h+c*S(g),w="left",C="top";switch(s){case"startArc":x=f+(v-u)*_(p),b=h+(v-u)*S(p),w="center",C="top";break;case"insideStartArc":x=f+(v+u)*_(p),b=h+(v+u)*S(p),w="center",C="bottom";break;case"startAngle":x=f+d*_(g)+fo(g,u+y,!1),b=h+d*S(g)+ho(g,u+y,!1),w="right",C="middle";break;case"insideStartAngle":x=f+d*_(g)+fo(g,-u+y,!1),b=h+d*S(g)+ho(g,-u+y,!1),w="left",C="middle";break;case"middle":x=f+d*_(p),b=h+d*S(p),w="center",C="middle";break;case"endArc":x=f+(c+u)*_(p),b=h+(c+u)*S(p),w="center",C="bottom";break;case"insideEndArc":x=f+(c-u)*_(p),b=h+(c-u)*S(p),w="center",C="top";break;case"endAngle":x=f+d*_(m)+fo(m,u+y,!0),b=h+d*S(m)+ho(m,u+y,!0),w="left",C="middle";break;case"insideEndAngle":x=f+d*_(m)+fo(m,-u+y,!0),b=h+d*S(m)+ho(m,-u+y,!0),w="right",C="middle";break;default:return Ho(i,n,a)}return i=i||{},i.x=x,i.y=b,i.align=w,i.verticalAlign=C,i}}function FM(r,t,e,i){if(pt(i)){r.setTextConfig({rotation:i});return}else if(F(t)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,u,l=e(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function fo(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ho(r,t,e){return t*Math.cos(r)*(e?1:-1)}function zM(r,t,e){var i=r.get("borderRadius");if(i==null)return{cornerRadius:0};F(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:q(i,function(a){return Mr(a,n)})}}var il=Math.max,nl=Math.min;function HM(r,t){var e=r.getArea&&r.getArea();if(Hh(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var GM=(function(r){B(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,n,a){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,n):this._renderNormal(e,i,n,a)):process.env.NODE_ENV!=="production"&&kt("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,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){Ns(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,n,a){var o=this.group,s=e.getData(),u=this._data,l=e.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=WM(e,l);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,g=HM(l,s);o.removeClipPath();var m=e.get("roundCap",!0),p=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,S=[],x=this._backgroundEls,b=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function C(D){var L=co[l.type](s,D);if(!L)return null;var E=KM(l,h,L);return E.useStyle(y.getItemStyle()),l.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),S[D]=E,E}s.diff(u).add(function(D){var L=s.getItemModel(D),E=co[l.type](s,D,L);if(E&&(p&&C(D),!(!s.hasValue(D)||!ip[l.type](E)))){var I=!1;d&&(I=jd[l.type](g,E));var P=tp[l.type](e,s,D,E,h,c,f.model,!1,m);v&&(P.forceLabelAnimation=!0),np(P,s,D,L,E,e,h,l.type==="polar"),b?P.attr({shape:E}):v?ep(v,c,P,E,D,h,!1,!1):sr(P,{shape:E},e,D),s.setItemGraphicEl(D,P),o.add(P),P.ignore=I}}).update(function(D,L){var E=s.getItemModel(D),I=co[l.type](s,D,E);if(I){if(p){var P=void 0;x.length===0?P=C(L):(P=x[L],P.useStyle(y.getItemStyle()),l.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[D]=P);var O=co[l.type](s,D),W=h0(h,O,l);ne(P,{shape:W},c,D)}var N=u.getItemGraphicEl(L);if(!s.hasValue(D)||!ip[l.type](I)){o.remove(N);return}var V=!1;d&&(V=jd[l.type](g,I),V&&o.remove(N));var H=N&&(N.type==="sector"&&m||N.type==="sausage"&&!m);if(H&&(N&&To(N,e,L),N=null),N?im(N):N=tp[l.type](e,s,D,I,h,c,f.model,!0,m),v&&(N.forceLabelAnimation=!0),w){var G=N.getTextContent();if(G){var z=Vs(G);z.prevValue!=null&&(z.prevValue=z.value)}}else np(N,s,D,E,I,e,h,l.type==="polar");b?N.attr({shape:I}):v?ep(v,c,N,I,D,h,!0,w):ne(N,{shape:I},e,D,null),s.setItemGraphicEl(D,N),N.ignore=V,o.add(N)}}).remove(function(D){var L=u.getItemGraphicEl(D);L&&To(L,e,D)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Lt);M.removeAll();for(var A=0;A<S.length;++A)M.add(S[A]);o.add(M),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,i,n){this._clear(),op(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),op(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&bM(e.coordinateSystem,!1,e),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,n){var a=this;if(i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,n),this._isFirstFrame=!1;else{var s=function(u){var l=i.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,n){var a=[];return e.each(e.mapDimension(i.dim),function(o,s){var u=n(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,n){for(var a=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){To(a,e,nt(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(xe),jd={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=il(t.x,r.x),s=nl(t.x+t.width,n),u=il(t.y,r.y),l=nl(t.y+t.height,a),f=s<o,h=l<u;return t.x=f&&o>n?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=nl(t.r,r.r),a=il(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},tp={cartesian2d:function(r,t,e,i,n,a,o,s,u){var l=new bt({shape:R({},i),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=n?"height":"width";f[h]=0}return l},polar:function(r,t,e,i,n,a,o,s,u){var l=!n&&u?Jd:gn,f=new l({shape:i,z2:1});f.name="item";var h=f0(n);if(f.calculateTextPosition=VM(h,{isRoundCap:l===Jd}),a){var c=f.shape,v=n?"r":"endAngle",d={};c[v]=n?i.r0:i.startAngle,d[v]=i[v],(s?ne:sr)(f,{shape:d},a)}return f}};function WM(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&e&&(i.type!=="category"&&kt("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&kt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function ep(r,t,e,i,n,a,o,s){var u,l;a?(l={x:i.x,width:i.width},u={y:i.y,height:i.height}):(l={y:i.y,height:i.height},u={x:i.x,width:i.width}),s||(o?ne:sr)(e,{shape:u},t,n,null);var f=t?r.baseAxis.model:null;(o?ne:sr)(e,{shape:l},f,n)}function rp(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var UM=["x","y","width","height"],YM=["cx","cy","r","startAngle","endAngle"],ip={cartesian2d:function(r){return!rp(r,UM)},polar:function(r){return!rp(r,YM)}},co={cartesian2d:function(r,t,e){var i=r.getItemLayout(t);if(!i)return null;var n=e?$M(e,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function XM(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function f0(r){return(function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}})(r)}function np(r,t,e,i,n,a,o,s){var u=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=zM(i.getModel("itemStyle"),f);R(f,h),r.setShape(f)}}else{var l=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(u);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Bs(i);ks(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Fh(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,FM(r,m==="outside"?v:m,f0(o),i.get(["label","rotate"]))}cx(g,d,a.getRawValue(e),function(y){return r0(t,y)});var p=i.getModel(["emphasis"]);Ko(r,p.get("focus"),p.get("blurScope"),p.get("disabled")),Yl(r,i),XM(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function $M(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var ZM=(function(){function r(){}return r})(),ap=(function(r){B(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new ZM},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<n.length;f+=3)u[a]=l,u[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],e.rect(s[0],s[1],u[0],u[1])},t})(ht);function op(r,t,e,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),u=r.getModel("backgroundStyle"),l=n.getLayout("largeBackgroundPoints");if(l){var f=new ap({shape:{points:l},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),e&&e.push(f)}var h=new ap({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,nt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",sp),h.on("mousemove",sp)),e&&e.push(h)}var sp=Mh(function(r){var t=this,e=qM(t,r.offsetX,r.offsetY);nt(t).dataIndex=e>=0?e:null},30,!1);function qM(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(u[i]=l,u[n]=a[c+2],s[i]=a[c+i],s[n]=a[c+n],u[n]<0&&(s[n]+=u[n],u[n]=-u[n]),t>=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function h0(r,t,e){if(Hh(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function KM(r,t,e){var i=r.type==="polar"?gn:bt;return new i({shape:h0(t,e,r),silent:!0,z2:0})}function QM(r){r.registerChartView(GM),r.registerSeriesModel(kM),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ct(wD,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,TD("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,l0("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var c0={left:0,right:0,top:0,bottom:0},gs=["25%","25%"],JM=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,i){var n=Ta(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Lr(e.outerBounds,n)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Lr(this.option.outerBounds,e.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:c0,outerBoundsContain:"all",outerBoundsClampWidth:gs[0],outerBoundsClampHeight:gs[1],backgroundColor:Y.color.transparent,borderWidth:1,borderColor:Y.color.neutral30},t})(ot),xf=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pe).models[0]},t.type="cartesian2dAxis",t})(ot);Ue(xf,YD);var v0={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Y.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:Y.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Y.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Y.color.backgroundTint,Y.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Y.color.neutral00,borderColor:Y.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},jM=lt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},v0),Gh=lt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Y.color.axisMinorSplitLine,width:1}}},v0),tA=lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Gh),eA=ct({logBase:10},Gh);const rA={category:jM,value:Gh,time:tA,log:eA};var iA={value:1,category:1,time:1,log:1},nA=null;function aA(){return nA}function up(r,t,e,i){T(iA,function(n,a){var o=lt(lt({},rA[a],!0),i,!0),s=(function(u){B(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=fa(this),v=c?Ta(f):{},d=h.getTheme();lt(f,d.get(a+"Axis")),lt(f,this.getDefaultOption()),f.type=lp(f),c&&Lr(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=mf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",lp)}function lp(r){return r.type||(r.data?"category":"value")}var oA=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return q(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),At(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),wf=["x","y"];function fp(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var sA=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=wf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!fp(e)||!fp(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=_a([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.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,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new tt(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return me(n,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(e[0]),l=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i,n){if(n=n||[],this._invTransform)return me(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,u=Math.max(n[0],n[1])-o+e;return new tt(a,o,s,u)},t})(oA),uA=(function(r){B(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(aM),lA="expandAxisBreak",br=Math.PI,fA=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],hA=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ma=xt(),d0=xt(),p0=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[e]||(n[e]=[]);return a[i]||(a[i]={ready:{}})},r})();function cA(r,t,e,i){var n=e.axis,a=t.ensureRecord(e),o=[],s,u=Wh(r.axisName)&&hn(r.nameLocation);T(i,function(d){var g=Pr(d);if(!(!g||g.label.ignore)){o.push(g);var m=a.transGroup;u&&(m.transform?_a(Nn,m.transform):Ff(Nn),g.transform&&Xn(Nn,Nn,g.transform),tt.copy(vo,g.localRect),vo.applyTransform(Nn),s?s.union(vo):tt.copy(s=new tt(0,0,0,0),vo))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,g){return Math.abs(d.label[l]-f)-Math.abs(g.label[l]-f)}),u&&s){var h=n.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new tt(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Nn=ir(),vo=new tt(0,0,0,0),g0=function(r,t,e,i,n,a){if(hn(r.nameLocation)){var o=a.stOccupiedRect;o&&m0(lM({},o,a.transGroup.transform),i,n)}else y0(a.labelInfoList,a.dirVec,i,n)};function m0(r,t,e){var i=new vt;Vh(r,t,i,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&fM(t,i)}function y0(r,t,e,i){for(var n=vt.dot(i,t)>=0,a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];s.label.ignore||m0(s,e,i)}}var Cr=(function(){function r(t,e,i,n){this.group=new Lt,this._axisModel=t,this._api=e,this._local={},this._shared=n||new p0(g0),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(t){if(process.env.NODE_ENV!=="production"){var e=this._shared.ensureRecord(this._axisModel).ready;$(!e.axisLine&&!e.axisTickLabelDetermine),e.axisName=e.axisTickLabelEstimate=!1}var i=this._cfg.raw;i.position=t.position,i.labelOffset=t.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=Z(t.axisName,e.get("name")),a=e.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Z(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:Z(t.nameDirection,1),tickDirection:Z(t.tickDirection,1),labelDirection:Z(t.labelDirection,1),labelOffset:Z(t.labelOffset,0),silent:Z(t.silent,!0),axisName:n,nameLocation:xr(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Wh(n)&&a,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&($(o.position!=null),$(o.rotation!=null)),this._cfg=o;var s=new Lt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(e);u.transGroup=this._transformGroup,u.dirVec=new vt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(vA,function(n){t[n]&&dA[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},r.innerTextLayout=function(t,e,i){var n=_g(e-t),a,o;return Go(n)?(o=i>0?"top":"bottom",a="center"):Go(n-br)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<br?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),vA=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],dA={axisLine:function(r,t,e,i,n,a,o){if(process.env.NODE_ENV!=="production"){var s=e.ensureRecord(i).ready;$(!s.axisLine),s.axisLine=!0}var u=i.get(["axisLine","show"]);if(u==="auto"&&(u=!0,r.raw.axisLineAutoShow!=null&&(u=!!r.raw.axisLineAutoShow)),!!u){var l=i.axis.getExtent(),f=a.transform,h=[l[0],0],c=[l[1],0],v=h[0]>c[0];f&&(me(h,h,f),me(c,c,f));var d=R({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())aA().buildAxisBreakLine(i,n,a,g);else{var m=new Ar(R({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},g));ua(m.shape,m.style.lineWidth),m.anid="line",n.add(m)}var p=i.get(["axisLine","symbol"]);if(p!=null){var y=i.get(["axisLine","symbolSize"]);U(p)&&(p=[p,p]),(U(y)||pt(y))&&(y=[y,y]);var _=sy(i.get(["axisLine","symbolOffset"])||0,y),S=y[0],x=y[1];T([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(b,w){if(p[w]!=="none"&&p[w]!=null){var C=un(p[w],-S/2,-x/2,S,x,d.stroke,!0),M=b.r+b.offset,A=v?c:h;C.attr({rotation:b.rotate,x:A[0]+M*Math.cos(r.rotation),y:A[1]-M*Math.sin(r.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(r,t,e,i,n,a,o,s){if(process.env.NODE_ENV!=="production"){var u=e.ensureRecord(i).ready;$(!u.axisTickLabelDetermine),u.axisTickLabelEstimate=!0}var l=cp(t,n,s);l&&hp(r,t,e,i,n,a,o,Te.estimate)},axisTickLabelDetermine:function(r,t,e,i,n,a,o,s){if(process.env.NODE_ENV!=="production"){var u=e.ensureRecord(i).ready;u.axisTickLabelDetermine=!0}var l=cp(t,n,s);l&&hp(r,t,e,i,n,a,o,Te.determine);var f=yA(r,n,a,i);mA(r,t.labelLayoutList,f),_A(r,n,a,i,r.tickDirection)},axisName:function(r,t,e,i,n,a,o,s){var u=e.ensureRecord(i);if(process.env.NODE_ENV!=="production"){var l=u.ready;$(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var f=r.axisName;if(Wh(f)){var h=r.nameLocation,c=r.nameDirection,v=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,g=i.axis.getExtent(),m=i.axis.inverse?-1:1,p=new vt(0,0),y=new vt(0,0);h==="start"?(p.x=g[0]-m*d,y.x=-m):h==="end"?(p.x=g[1]+m*d,y.x=m):(p.x=(g[0]+g[1])/2,p.y=r.labelOffset+c*d,y.y=c);var _=ir();y.transform(zf(_,_,r.rotation));var S=i.get("nameRotate");S!=null&&(S=S*br/180);var x,b;hn(h)?x=Cr.innerTextLayout(r.rotation,S??r.rotation,c):(x=pA(r.rotation,h,S||0,g),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(x.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),C=i.get("nameTruncate",!0)||{},M=C.ellipsis,A=tn(r.raw.nameTruncateMaxWidth,C.maxWidth,b),D=s.nameMarginLevel||0,L=new Bt({x:p.x,y:p.y,rotation:x.rotation,silent:Cr.isLabelSilent(i),style:Er(v,{text:f,font:w,overflow:"truncate",width:A,ellipsis:M,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||x.textAlign,verticalAlign:v.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Os({el:L,componentModel:i,itemName:f}),L.__fullText=f,L.anid="name",i.get("triggerEvent")){var E=Cr.makeAxisEventDataBase(i);E.targetType="axisName",E.name=f,nt(L).eventData=E}a.add(L),L.updateTransform(),t.nameEl=L;var I=u.nameLayout=Pr({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:hn(h)?fA[D]:hA[D]});if(u.nameLocation=h,n.add(L),L.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=e.ensureRecord(i);process.env.NODE_ENV!=="production"&&$(P.labelInfoList),e.resolveAxisNameOverlap(r,e,i,I,y,P)}}}};function hp(r,t,e,i,n,a,o,s){S0(t)||SA(r,t,n,s,i,o);var u=t.labelLayoutList;bA(r,i,u,a),r.rotation;var l=r.optionHideOverlap;gA(i,u,l),l&&hM(At(u,function(f){return f&&!f.label.ignore})),cA(r,e,i,u)}function pA(r,t,e,i){var n=_g(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return Go(n-br/2)?(o=u?"bottom":"top",a="center"):Go(n-br*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<br*1.5&&n>br/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function gA(r,t,e){if(Yy(r.axis))return;function i(s,u,l){var f=Pr(t[u]),h=Pr(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){Un(f.label);return}if(h.suggestIgnore){Un(h.label);return}var c=.1;if(!e){var v=[0,0,0,0];f=Wd({marginForce:v},f),h=Wd({marginForce:v},h)}Vh(f,h,null,{touchThreshold:c})&&Un(s?h.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function mA(r,t,e){r.showMinorTicks||T(t,function(i){if(i&&i.label.ignore)for(var n=0;n<e.length;n++){var a=e[n],o=d0(a),s=ma(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Un(a);return}}})}function Un(r){r&&(r.ignore=!0)}function _0(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(me(o,o,t),me(s,s,t));var f=new Ar({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ua(f.shape,f.style.lineWidth),f.anid=n+"_"+r[u].tickValue,a.push(f);var h=d0(f);h.onBand=!!r[u].onBand,h.tickValue=r[u].tickValue}return a}function yA(r,t,e,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),l=n.getTicksCoords(),f=_0(l,e.transform,u,ct(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function _A(r,t,e,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=n*o.get("length"),f=ct(u.getLineStyle(),ct(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=_0(s[h],e.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function cp(r,t,e){if(S0(r)){var i=r.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&$(r.labelGroup&&i);var n=i.out.noPxChangeTryDetermine;if(e.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(r.labelGroup),Tf(r,null,null,null))}return!0}function SA(r,t,e,i,n,a){var o=n.axis,s=tn(r.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new Lt;e.add(u);var l=vs(i);if(!s||o.scale.isBlank()){Tf(t,[],u,l);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(l),c=(tn(r.raw.labelRotate,f.get("rotate"))||0)*br/180,v=Cr.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),g=[],m=n.get("triggerEvent"),p=1/0,y=-1/0;T(h,function(S,x){var b,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,C=S.formattedLabel,M=S.rawLabel,A=f;if(d&&d[w]){var D=d[w];X(D)&&D.textStyle&&(A=new _t(D.textStyle,f,n.ecModel))}var L=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=A.getShallow("align",!0)||v.textAlign,I=Z(A.getShallow("alignMinLabel",!0),E),P=Z(A.getShallow("alignMaxLabel",!0),E),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,W=Z(A.getShallow("verticalAlignMinLabel",!0),O),N=Z(A.getShallow("verticalAlignMaxLabel",!0),O),V=10+(((b=S.time)===null||b===void 0?void 0:b.level)||0);p=Math.min(p,V),y=Math.max(y,V);var H=new Bt({x:0,y:0,rotation:0,silent:Cr.isLabelSilent(n),z2:V,style:Er(A,{text:C,align:x===0?I:x===h.length-1?P:E,verticalAlign:x===0?W:x===h.length-1?N:O,fill:K(L)?L(o.type==="category"?M:o.type==="value"?w+"":w,x):L})});H.anid="label_"+w;var G=ma(H);if(G.break=S.break,G.tickValue=w,G.layoutRotation=v.rotation,Os({el:H,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:M,tickIndex:x}}),m){var z=Cr.makeAxisEventDataBase(n);z.targetType="axisLabel",z.value=M,z.tickIndex=x,S.break&&(z.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(z.dataIndex=w),nt(H).eventData=z,S.break&&wA(n,a,H,S.break)}g.push(H),u.add(H)});var _=q(g,function(S){return{label:S,priority:ma(S).break?S.z2+(y-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});Tf(t,_,u,l)}function S0(r){return!!r.labelLayoutList}function Tf(r,t,e,i){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=i}function bA(r,t,e,i){var n=t.get(["axisLabel","margin"]);T(e,function(a,o){var s=Pr(a);if(s){var u=s.label,l=ma(u);s.suggestIgnore=u.ignore,u.ignore=!1,Nl(Qe,xA),Qe.x=t.axis.dataToCoord(l.tickValue),Qe.y=r.labelOffset+r.labelDirection*n,Qe.rotation=l.layoutRotation,i.add(Qe),Qe.updateTransform(),i.remove(Qe),Qe.decomposeTransform(),Nl(u,Qe),u.markRedraw(),ps(s,!0),Pr(s)}})}var Qe=new bt,xA=new bt;function Wh(r){return!!r}function wA(r,t,e,i){e.on("click",function(n){var a={type:lA,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(a)})}function ms(r,t,e){e=e||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}n.position=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),tn(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}function TA(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function vp(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,pe).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(n+' "'+xr(r.get(n+"Index"),r.get(n+"Id"),0)+'" not found');t[i]=a}),t}function CA(r,t,e,i,n,a){for(var o=ms(r,e),s=!1,u=!1,l=0;l<t.length;l++)pf(t[l].getOtherAxis(e.axis).scale)&&(s=u=!0,e.axis.type==="category"&&e.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new Cr(e,i,o,n)}function DA(r,t,e){var i=ms(t,e);if(process.env.NODE_ENV!=="production"){var n=r.__getRawCfg();T(mt(i),function(a){a!=="position"&&a!=="labelOffset"&&$(i[a]===n[a])})}r.updateCfg(i)}function MA(r,t,e){var i,n=fn.prototype,a=n.getTicks.call(e),o=n.getTicks.call(e,{expandToNicedExtent:!0}),s=a.length-1,u=n.getInterval.call(e),l=Uy(r,t),f=l.extent,h=l.fixMin,c=l.fixMax;r.type==="log"&&(f=gf(r.base,f,!0)),r.setBreaksFromOption(Xy(t)),r.setExtent(f[0],f[1]),r.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:c});var v=n.getExtent.call(r);h&&(f[0]=v[0]),c&&(f[1]=v[1]);var d=n.getInterval.call(r),g=f[0],m=f[1];if(h&&c)d=(m-g)/s;else if(h)for(m=f[0]+d*s;m<f[1]&&isFinite(m)&&isFinite(f[1]);)d=Ju(d),m=f[0]+d*s;else if(c)for(g=f[1]-d*s;g>f[0]&&isFinite(g)&&isFinite(f[0]);)d=Ju(d),g=f[1]-d*s;else{var p=r.getTicks().length-1;p>s&&(d=Ju(d));var y=d*s;m=Math.ceil(f[1]/d)*d,g=Ot(m-y),g<0&&f[0]>=0?(g=0,m=Ot(y)):m>0&&f[1]<=0&&(m=0,g=-Ot(y))}var _=(a[0].value-o[0].value)/u,S=(a[s].value-o[s].value)/u;if(n.setExtent.call(r,g+d*_,m+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,m-d),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(r);x[1]&&(!cD(d)||kl(x[1].value)>kl(d))&&kt("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+(" and alignTicks: true. ("+((i=t.axis)===null||i===void 0?void 0:i.dim)+"AxisIndex: "+t.componentIndex+")"),!0)}}var dp=[[3,1],[0,2]],AA=(function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wf,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,u=mt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;pf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Vd(g,d),pf(g)&&(s=v))}f.length&&(s||(s=f.pop(),Vd(s.scale,s.model)),T(f,function(m){MA(m.scale,m.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){pp(i,"y",o,a)}),T(i.y,function(o){pp(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=bh(t,e),a=this._rect=on(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(b0(o,a),!i){var l=LA(a,s,o,u,e),f=void 0;if(u)process.env.NODE_ENV!=="production"&&Tg("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=yp(a.clone(),"axisLabel",null,a,o,l,n);else{var h=IA(t,a,n),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=yp(c,v,d,a,o,l,n))}x0(a,o,Te.determine,null,f,n)}T(this._coordsList,function(g){g.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}X(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",pe).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",pe).models[0],a=t.gridModel,o=this._coordsList,s,u;if(e)s=e.coordinateSystem,st(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(n)u=this.getAxis("y",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var d="x"+h+"y"+v,g=new sA(d);g.master=n,g.model=t,n._coordsMap[d]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function l(f){return function(h,c){if(al(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new uA(f,GD(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(TA(n)){var a=vp(n),o=a.xAxisModel,s=a.yAxisModel;if(!al(o,e)||!al(s,e))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=n.getData(),f=u.getAxis("x"),h=u.getAxis("y");i(l,f),i(l,h)}},this);function i(n,a){T(UD(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return T(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);st(e,a)<0&&e.push(a),st(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){Wx({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=vp(n),s=o.xAxisModel,u=o.yAxisModel,l=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+xr(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==u.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=l.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),i},r.dimensions=wf,r})();function al(r,t){return r.getCoordSysModel()===t}function pp(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)gp(n[u])&&(a=n[u]);else for(var l in n)if(n.hasOwnProperty(l)&&gp(n[l])&&!i[f(n[l])]){a=n[l];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function gp(r){return r&&r.type!=="category"&&r.type!=="time"&&WD(r)}function EA(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}function b0(r,t){T(r.x,function(e){return mp(e,t.x,t.width)}),T(r.y,function(e){return mp(e,t.y,t.height)})}function mp(r,t,e){var i=[0,e],n=r.inverse?1:0;r.setExtent(i[n],i[1-n]),EA(r,t)}function yp(r,t,e,i,n,a,o){process.env.NODE_ENV!=="production"&&$(t==="all"||t==="axisLabel"),x0(i,n,Te.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(i,0,NaN),f(i,1,NaN);var u=j0(s,function(c){return c>0})==null;return Jo(i,s,!0,!0,e),b0(n,i),u;function l(c){T(n[oi[c]],function(v){if(ga(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var m=0;m<g.length;m++){var p=g[m],y=v.scale.normalize(ma(p.label).tickValue);y=c===1?1-y:y,f(p.rect,c,y),f(p.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=hn(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var g=r[oi[v]]-c[oi[v]],m=c[sa[v]]+c[oi[v]]-(r[sa[v]]+r[oi[v]]);g=h(g,1-d),m=h(m,d);var p=dp[v][0],y=dp[v][1];s[p]=ie(s[p],g),s[y]=ie(s[y],m)}function h(c,v){return c>0&&!ji(v)&&v>1e-4&&(c/=v),c}}function LA(r,t,e,i,n){var a=new p0(PA);return T(e,function(o){return T(o,function(s){if(ga(s.model)){var u=!i;s.axisBuilder=CA(r,t,s.model,n,a,u)}})}),a}function x0(r,t,e,i,n,a){var o=e===Te.determine;T(t,function(l){return T(l,function(f){ga(f.model)&&(DA(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[oi[1-l]]=r[sa[l]]<=a.refContainer[sa[l]]*.5?0:1-l===1?2:1}T(t,function(l,f){return T(l,function(h){ga(h.model)&&((i==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function IA(r,t,e){var i,n=r.get("outerBoundsMode",!0);n==="same"?i=t.clone():n==null||n==="auto"?i=on(r.get("outerBounds",!0)||c0,e.refContainer):n!=="none"&&process.env.NODE_ENV!=="production"&&ft("Invalid grid["+r.componentIndex+"].outerBoundsMode.");var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":st(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&ft("Invalid grid["+r.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[Rl(Z(r.get("outerBoundsClampWidth",!0),gs[0]),t.width),Rl(Z(r.get("outerBoundsClampHeight",!0),gs[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var PA=function(r,t,e,i,n,a){var o=e.axis.dim==="x"?"y":"x";g0(r,t,e,i,n,a),hn(r.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&y0(s.labelInfoList,s.dirVec,i,n)})};function OA(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return NA(e,r,t),e.seriesInvolved&&kA(e,r),e}function NA(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=ya(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(T(s.getAxes(),Ct(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&T(d.baseAxes,Ct(g,v?"cross":!0,c)),v&&T(d.otherAxes,Ct(g,"cross",!1))}function g(m,p,y){var _=y.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!m&&!Cf(_))){p==null&&(p=_.get("triggerTooltip")),_=m?RA(y,h,n,t,m,p):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=ya(y.model),C=p||x||y.type==="category",M=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:Cf(_),seriesModels:[],linkGroup:null};l[w]=M,r.seriesInvolved=r.seriesInvolved||C;var A=BA(a,y);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[w]=M,D.mapper=a[A].mapper,M.linkGroup=D}}}})}function RA(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};T(s,function(c){u[c]=rt(o.get(c))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ct(l,h.textStyle)}}return r.model.getModel("axisPointer",new _t(u,e,i))}function kA(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[ya(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function BA(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(ol(a[i+"AxisId"],e.id)||ol(a[i+"AxisIndex"],e.componentIndex)||ol(a[i+"AxisName"],e.name))return n}}function ol(r,t){return r==="all"||F(r)&&st(r,t)>=0||r===t}function VA(r){var t=Uh(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Cf(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Uh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ya(r)]}function FA(r){var t=Uh(r);return t&&t.axisPointerModel}function Cf(r){return!!r.get(["handle","show"])}function ya(r){return r.type+"||"+r.id}var sl={},w0=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&VA(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=FA(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){if(process.env.NODE_ENV!=="production"&&sl[e])throw new Error("axisPointer "+e+" exists");sl[e]=i},t.getAxisPointerClass=function(e){return e&&sl[e]},t.type="axis",t})(we),Df=xt();function zA(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=Df(r).splitAreaColors,c=et(),v=0;if(h)for(var d=0;d<l.length;d++){var g=h.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var m=n.toGlobalCoord(l[0].coord),p=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<l.length;d++){var y=n.toGlobalCoord(l[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;n.isHorizontal()?(_=m,S=u.y,x=y-_,b=u.height,m=_+x):(_=u.x,S=m,x=u.width,b=y-S,m=S+b);var w=l[d-1].tickValue;w!=null&&c.set(w,v),t.add(new bt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:ct({fill:s[v]},p),autoBatch:!0,silent:!0})),v=(v+1)%f}Df(r).splitAreaColors=c}}}function HA(r){Df(r).splitAreaColors=null}var GA=["splitArea","splitLine","minorSplitLine","breakArea"],T0=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!!ga(e)){this._axisGroup.add(e.axis.axisBuilder.group),T(GA,function(u){e.get([u,"show"])&&WA[u](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||sm(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){HA(this)},t.type="cartesianAxis",t})(w0),WA={splitLine:function(r,t,e,i,n){var a=e.axis;if(!a.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=F(u)?u:[u];for(var h=i.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],p=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var S=d[y].tickValue;c?(g[0]=_,g[1]=h.y,m[0]=_,m[1]=h.y+h.height):(g[0]=h.x,g[1]=_,m[0]=h.x+h.width,m[1]=_);var x=v++%u.length,b=new Ar({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:ct({stroke:u[x]},p),silent:!0});ua(b.shape,p.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,i,n){var a=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=i.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var m=a.toGlobalCoord(f[d][g].coord);l?(h[0]=m,h[1]=u.y,c[0]=m,c[1]=u.y+u.height):(h[0]=u.x,h[1]=m,c[0]=u.x+u.width,c[1]=m);var p=new Ar({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});ua(p.shape,v.lineWidth),t.add(p)}},splitArea:function(r,t,e,i,n){zA(r,t,e,i)},breakArea:function(r,t,e,i,n){e.axis.scale}},C0=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(T0),UA=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=C0.type,e}return t.type="yAxis",t})(T0),YA=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:ct({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(we),_p={offset:0};function XA(r){r.registerComponentView(YA),r.registerComponentModel(JM),r.registerCoordinateSystem("cartesian2d",AA),up(r,"x",xf,_p),up(r,"y",xf,_p),r.registerComponentView(C0),r.registerComponentView(UA),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var si=xt(),Sp=rt,ul=dt,$A=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Lt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),i.getZr().add(s);else{var c=Ct(bp,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}wp(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=Uh(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=si(t).pointerEl=new sx[a.type](Sp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=si(t).labelEl=new Bt(Sp(e.label));t.add(a),xp(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=si(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=si(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),xp(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=oh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Qp(l.event)},onmousedown:ul(this._onHandleDragMove,this,0,0),drift:ul(this._onHandleDragMove,this),ondragend:ul(this._onHandleDragEnd,this)}),i.add(n)),wp(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,jm(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){bp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ll(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(ll(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(ll(n)),si(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),af(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r})();function bp(r,t,e,i){D0(si(e).lastProp,i)||(si(e).lastProp=i,t?ne(e,i,r):(e.stopAnimation(),e.attr(i)))}function D0(r,t){if(X(r)&&X(t)){var e=!0;return T(t,function(i,n){e=e&&D0(r[n],i)}),!!e}else return r===t}function xp(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ll(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function wp(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function ZA(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function qA(r,t,e,i,n){var a=e.get("value"),o=M0(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Hs(s.get("padding")||0),l=s.getFont(),f=pg(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),KA(h,c,v,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Er(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:m}),z2:10}}function KA(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function M0(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:cs(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),U(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function A0(r,t,e){var i=ir();return zf(i,i,e.rotation),_l(i,i,e.position),ah([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function QA(r,t,e,i,n,a){var o=Cr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),qA(t,i,n,a,{position:A0(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JA(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function jA(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var tE=(function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=Tp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=ZA(a),v=eE[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=ms(u.getRect(),n);QA(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=ms(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=A0(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Tp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})($A);function Tp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var eE={line:function(r,t,e){var i=JA([t,e[0]],[t,e[1]],Cp(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:jA([t-i/2,e[0]],[i,n],Cp(r))}}};function Cp(r){return r.dim==="x"?0:1}var rE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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:Y.color.border,width:1,type:"dashed"},shadowStyle:{color:Y.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Y.color.neutral00,padding:[5,7,5,7],backgroundColor:Y.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:Y.color.accent40,throttle:40}},t})(ot),rr=xt(),iE=T;function E0(r,t,e){if(!J.node){var i=t.getZr();rr(i).records||(rr(i).records={}),nE(i,t);var n=rr(i).records[r]||(rr(i).records[r]={});n.handler=e}}function nE(r,t){if(rr(r).initialized)return;rr(r).initialized=!0,e("click",Ct(Dp,"click")),e("mousemove",Ct(Dp,"mousemove")),e("globalout",oE);function e(i,n){r.on(i,function(a){var o=sE(t);iE(rr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),aE(o.pendings,t)})}}function aE(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function oE(r,t,e){r.handler("leave",null,e)}function Dp(r,t,e,i){t.handler(r,e,i)}function sE(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Mf(r,t){if(!J.node){var e=t.getZr(),i=(rr(e).records||{})[r];i&&(rr(e).records[r]=null)}}var uE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";E0("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){Mf("axisPointer",i)},t.prototype.dispose=function(e,i){Mf("axisPointer",i)},t.type="axisPointer",t})(we);function L0(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=_i(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(g)||[]}else e=u.dataToPoint(a.getValues(q(u.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var Mp=xt();function lE(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Io(n)&&(n=L0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Io(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||Io(n),c={},v={},d={list:[],map:{}},g={showPointer:Ct(hE,v),showTooltip:Ct(cE,d)};T(s.coordSysMap,function(p,y){var _=u||p.containPoint(n);T(s.coordSysAxesInfo[y],function(S,x){var b=S.axis,w=gE(l,S);if(!h&&_&&(!l||w)){var C=w&&w.value;C==null&&!u&&(C=b.pointToData(n)),C!=null&&Ap(S,C,g,!1,c)}})});var m={};return T(f,function(p,y){var _=p.linkGroup;_&&!v[y]&&T(_.axesInfo,function(S,x){var b=v[x];if(S!==p&&b){var w=b.value;_.mapper&&(w=p.axis.scale.parse(_.mapper(w,Ep(S),Ep(p)))),m[p.key]=w}})}),T(m,function(p,y){Ap(f[y],p,g,!0,c)}),vE(v,f,c),dE(d,n,r,o),pE(f,o,e),c}}function Ap(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=fE(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function fE(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(i,f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,n=h,a.length=0),T(c,function(m){a.push({seriesIndex:u.seriesIndex,dataIndexInside:m,dataIndex:u.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function hE(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function cE(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=ya(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function vE(r,t,e){var i=e.axesInfo=[];T(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function dE(r,t,e,i){if(Io(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function pE(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Mp(i)[n]||{},o=Mp(i)[n]={};T(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];T(a,function(l,f){!o[f]&&u.push(l)}),T(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function gE(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Ep(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function Io(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function I0(r){w0.registerAxisPointerClass("CartesianAxisPointer",tE),r.registerComponentModel(rE),r.registerComponentView(uE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=OA(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lE)}function mE(r){Ir(XA),Ir(I0)}function yE(r,t){var e=Hs(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new bt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var _E=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Y.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Y.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Y.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Y.color.tertiary,fontSize:14}},t})(ot);function P0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function O0(r){if(J.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var N0=O0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),SE=O0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function R0(r,t){if(!r)return t;t=Cm(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function bE(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var xE=R0(SE,"transition"),Yh=R0(N0,"transform"),wE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(J.transform3dSupported?"will-change:transform;":"");function TE(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function CE(r,t,e){if(!U(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=bi(t);var a=TE(e),o=Math.max(Math.round(n)*1.5,6),s="",u=Yh+":",l;st(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function DE(r,t,e){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return e&&(n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+i,a+=(a.length?",":"")+(J.transformSupported?""+Yh+n:",left"+n+",top"+n)),xE+":"+a}function Lp(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!J.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=J.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Yh+":"+o+";":[["top",0],["left",0],[N0,o]]}function ME(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=Z(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),T(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function AE(r,t,e,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),u=r.get("shadowColor"),l=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),h=r.getModel("textStyle"),c=Qm(r,"html"),v=l+"px "+f+"px "+s+"px "+u;return n.push("box-shadow:"+v),t&&a>0&&n.push(DE(a,e,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var g="border-"+d,m=Cm(g),p=r.get(m);p!=null&&n.push(g+":"+p+(d==="color"?"":"px"))}),n.push(ME(h)),c!=null&&n.push("padding:"+Hs(c).join("px ")+"px"),n.join(";")+";"}function Ip(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&m_(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var EE=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,J.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(U(a)?document.querySelector(a):Ji(a)?a:K(a)&&a(t.getDom()));Ip(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();le(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=bE(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=wE+AE(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Lp(a[0],a[1],!0)+("border-color:"+bi(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(U(a)&&i.get("trigger")==="item"&&!P0(i)&&(s=CE(i,n,a)),U(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u<t.length;u++)Ji(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(Ip(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Lp(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",J.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;y_(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},r})(),LE=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Op(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;X(t)&&qt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Bt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Qm(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=Pp(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;Op(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=_r(a.borderWidth||0),s=Pp(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function _r(r){return Math.max(0,r)}function Pp(r){var t=_r(r.shadowBlur||0),e=_r(r.shadowOffsetX||0),i=_r(r.shadowOffsetY||0);return{left:_r(t-e),right:_r(t+e),top:_r(t-i),bottom:_r(t+i)}}function Op(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var IE=new bt({shape:{x:-1,y:-1,width:2,height:2}}),PE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(J.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=$1(n.get("renderMode"));this._tooltipContent=a==="richText"?new LE(i):new EE(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(J.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?jm(this,"_updatePosition",50,"fixRate"):af(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");E0("itemTooltip",this._api,dt(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||J.node||!n.getDom())){var o=Np(a,n);this._ticket="";var s=a.dataByCoordSys,u=kE(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=IE;f.x=a.x,f.y=a.y,f.update(),nt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=L0(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Np(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=Rn([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=nt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Wn(n,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(nt(f).dataIndex!=null?u=f:nt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(e,u,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=dt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Rn([i.tooltipOption],a),u=this._renderMode,l=[],f=ca("section",{blocks:[],noHeader:!0}),h=[],c=new Hu;T(e,function(y){T(y.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=M0(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ca("section",{header:b,noHeader:!Ne(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(C){var M=n.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,D=M.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=cs(S.axis,{value:x}),D.axisValueLabel=b,D.marker=c.makeTooltipMarker("item",bi(D.color),u);var L=Zv(M.formatTooltip(A,!0,null)),E=L.frag;if(E){var I=Rn([M],a).get("valueFormatter");w.blocks.push(I?R({valueFormatter:I},E):E)}L.text&&h.push(L.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),g=jv(f,c,u,d,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var m=u==="richText"?`
|
|
21
|
+
|
|
22
|
+
`:"<br/>",p=h.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=nt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=Rn([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var p=l.getDataParams(f,h),y=new Hu;p.marker=y.makeTooltipMarker("item",bi(p.color),v);var _=Zv(l.formatTooltip(f,!1,h)),S=g.get("order"),x=g.get("valueFormatter"),b=_.frag,w=b?jv(x?R({valueFormatter:x},b):b,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,w,p,C,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=nt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(U(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=rt(u),u.content=$t(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=Rn(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),m=Math.random()+"",p=new Hu;this._showOrMove(d,function(){var y=rt(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,m,e.offsetX,e.offsetY,e.position,i,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),g=d.color;if(c)if(U(c)){var m=e.ecModel.get("useUTC"),p=F(n)?n[0]:n,y=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,y&&(v=zs(p.axisValue,v,m)),v=Dm(v,n,!0)}else if(K(c)){var _=dt(function(S,x){S===this._ticket&&(h.setContent(x,f,e,g,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a,o){if(n==="axis"||F(i))return{color:a||o};if(!F(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),K(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(i))n=Ht(i[0],l),a=Ht(i[1],f);else if(X(i)){var g=i;g.width=h[0],g.height=h[1];var m=on(g,{width:l,height:f});n=m.x,a=m.y,c=null,v=null}else if(U(i)&&u){var p=RE(i,d,h,e.get("borderWidth"));n=p[0],a=p[1]}else{var p=OE(n,a,o,l,f,c?null:20,v?null:20);n=p[0],a=p[1]}if(c&&(n-=Rp(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Rp(v)?h[1]/2:v==="bottom"?h[1]:0),P0(e)){var p=NE(n,a,o,l,f);n=p[0],a=p[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&T(n,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&T(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===m.length,o&&T(g,function(p,y){var _=m[y];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(p){var y=p.seriesIndex,_=i[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){J.node||!i.getDom()||(af(this,"_updatePosition"),this._tooltipContent.dispose(),Mf("itemTooltip",i))},t.type="tooltip",t})(we);function Rn(r,t,e){var i=t.ecModel,n;e?(n=new _t(e,i,i),n=new _t(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof _t&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new _t(o,n,i)))}return n}function Np(r,t){return r.dispatchAction||dt(t.dispatchAction,t)}function OE(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function NE(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function RE(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Rp(r){return r==="center"||r==="middle"}function kE(r,t,e){var i=Uf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=xa(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=nt(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function BE(r){Ir(I0),r.registerComponentModel(_E),r.registerComponentView(PE),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qt)}var VE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Y.size.m,backgroundColor:Y.color.transparent,borderColor:Y.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Y.color.primary},subtextStyle:{fontSize:12,color:Y.color.quaternary}},t})(ot),FE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=Z(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Bt({style:Er(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Bt({style:Er(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),m=e.get("triggerEvent",!0);f.silent=!d&&!m,v.silent=!g&&!m,d&&f.on("click",function(){Av(d,"_"+e.get("target"))}),g&&v.on("click",function(){Av(g,"_"+e.get("subtarget"))}),nt(f).eventData=nt(v).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var p=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=p.width,y.height=p.height;var _=bh(e,n),S=on(y,_.refContainer,e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?S.x+=S.width:u==="center"&&(S.x+=S.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?S.y+=S.height:l==="middle"&&(S.y+=S.height/2),l=l||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var x={align:u,verticalAlign:l};f.setStyle(x),v.setStyle(x),p=a.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new bt({shape:{x:p.x-b[3],y:p.y-b[0],width:p.width+b[1]+b[3],height:p.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t})(we);function zE(r){r.registerComponentModel(VE),r.registerComponentView(FE)}var HE=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Af=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),F(i)&&T(i,function(a,o){U(a)&&(a={type:a}),i[o]=lt(a,HE(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(u)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Wf(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=et(),s=q(a,function(u){return(U(u)||pt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new _t(u,this,this.ecModel))},this);this._data=At(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;T(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;T(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&st(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Y.size.m,align:"auto",backgroundColor:Y.color.transparent,borderColor:Y.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Y.color.disabled,inactiveBorderColor:Y.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Y.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Y.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Y.color.tertiary,borderWidth:1,borderColor:Y.color.border},emphasis:{selectorLabel:{show:!0,color:Y.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ot),Hi=Ct,Ef=T,po=Lt,k0=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new po),this.group.add(this._selectorGroup=new po),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,u,s,l);var f=bh(e,n).refContainer,h=e.getBoxLayoutParams(),c=e.get("padding"),v=on(h,f,c),d=this.layoutInner(e,o,v,a,u,l),g=on(ct({width:d.width,height:d.height},h),f,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yE(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this.getContentGroup(),f=et(),h=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ef(i.getData(),function(d,g){var m=this,p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
|
23
|
+
`)){var y=new po;y.newline=!0,l.add(y);return}var _=n.getSeriesByName(p)[0];if(!f.get(p)){if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),C=this._createItem(_,p,g,d,i,e,x,w,b,h,a);C.on("click",Hi(kp,p,null,a,v)).on("mouseover",Hi(Lf,_.name,null,a,v)).on("mouseout",Hi(If,_.name,null,a,v)),n.ssr&&C.eachChild(function(M){var A=nt(M);A.seriesIndex=_.seriesIndex,A.dataIndex=g,A.ssrType="legend"}),c&&C.eachChild(function(M){m.packEventData(M,i,_,g,p)}),f.set(p,!0)}else n.eachRawSeries(function(M){var A=this;if(!f.get(p)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(p))return;var L=D.indexOfName(p),E=D.getItemVisual(L,"style"),I=D.getItemVisual(L,"legendIcon"),P=Be(E.fill);P&&P[3]===0&&(P[3]=.2,E=R(R({},E),{fill:Sa(P,"rgba")}));var O=this._createItem(M,p,g,d,i,e,{},E,I,h,a);O.on("click",Hi(kp,null,p,a,v)).on("mouseover",Hi(Lf,null,p,a,v)).on("mouseout",Hi(If,null,p,a,v)),n.ssr&&O.eachChild(function(W){var N=nt(W);N.seriesIndex=M.seriesIndex,N.dataIndex=g,N.ssrType="legend"}),c&&O.eachChild(function(W){A.packEventData(W,i,M,g,p)}),f.set(p,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,i,a,s,u)},t.prototype.packEventData=function(e,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};nt(e).eventData=s},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Ef(e,function(l){var f=l.type,h=new Bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);ks(h,{normal:c,emphasis:v},{defaultText:l.title}),Ul(h)})},t.prototype._createItem=function(e,i,n,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(i),p=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=GE(f,a,u,l,v,m,c),x=new po,b=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:p,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?p==="inherit"?e.getData().getVisual("symbolRotate"):p:0;x.add(WE({itemWidth:d,itemHeight:g,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?d+5:-5,M=s,A=o.get("formatter"),D=i;U(A)&&A?D=A.replace("{name}",i??""):K(A)&&(D=A(i));var L=m?b.getTextColor():a.get("inactiveColor");x.add(new Bt({style:Er(b,{text:D,x:C,y:g/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));var E=new bt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Os({el:E,componentModel:o,itemName:i,itemTooltipOption:I.option}),x.add(E),x.eachChild(function(P){P.silent=!0}),E.silent=!h,this.getContentGroup().add(x),Ul(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();ta(e.get("orient"),u,e.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){ta("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,m=g===0?"width":"height",p=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[m]+d:h[g]+=c[m]+d,v[1-g]+=f[p]/2-c[p]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[m]=f[m]+d+c[m],_[p]=Math.max(f[p],c[p]),_[y]=Math.min(0,c[y]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(we);function GE(r,t,e,i,n,a,o){function s(m,p){m.lineWidth==="auto"&&(m.lineWidth=p.lineWidth>0?2:0),Ef(m,function(y,_){m[_]==="inherit"&&(m[_]=p[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:ff(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:e).opacity),s(l,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function WE(r){var t=r.icon||"roundRect",e=un(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=Y.color.neutral00,e.style.lineWidth=2),e}function kp(r,t,e,i){If(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Lf(r,t,e,i)}function B0(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function Lf(r,t,e,i){B0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function If(r,t,e,i){B0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function UE(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function kn(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),Bp(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){T(n,function(u,l){s[u?"select":"unSelect"](l)}),Bp(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Bp(r,t){var e=t||{};return T(r.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
24
|
+
`||n==="")){var a=r.isSelected(n);be(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function YE(r){r.registerAction("legendToggleSelect","legendselectchanged",Ct(kn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ct(kn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ct(kn,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ct(kn,"select")),r.registerAction("legendUnSelect","legendunselected",Ct(kn,"unSelect"))}function V0(r){r.registerComponentModel(Af),r.registerComponentView(k0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,UE),r.registerSubTypeDefaulter("legend",function(){return"plain"}),YE(r)}var XE=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=Ta(e);r.prototype.init.call(this,e,i,n),Vp(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Vp(this,this.option,e)},t.type="legend.scroll",t.defaultOption=dm(Af.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Y.color.accent50,pageIconInactiveColor:Y.color.accent10,pageIconSize:15,pageTextStyle:{color:Y.color.tertiary},animationDurationUpdate:800}),t})(Af);function Vp(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Lr(t,e,{type:"box",ignoreSize:!!n})}var Fp=Lt,fl=["width","height"],hl=["x","y"],$E=(function(r){B(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Fp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Fp)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=F(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Bt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,m){var p=g+"DataIndex",y=oh(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:dt(l._pageGo,l,p,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=fl[l],h=hl[l],c=fl[1-l],v=hl[1-l];o&&ta("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=u.getBoundingRect(),m=[-g.x,-g.y],p=rt(n);o&&(p[f]=n[f]-g[f]-d);var y=this._layoutContentAndController(e,a,p,l,f,c,v,h);if(o){if(s==="end")m[l]+=y[f]+d;else{var _=g[f]+d;m[l]-=_,y[h]-=_}y[f]+=g[f]+d,m[1-l]+=y[v]+y[c]/2-g[c]/2,y[c]=Math.max(y[c],g[c]),y[v]=Math.min(y[v],g[v]+m[1-l]),u.x=m[0],u.y=m[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;ta(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),ta("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>n[o],m=[-v.x,-v.y];i||(m[a]=f[l]);var p=[0,0],y=[-d.x,-d.y],_=Z(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=n[o]-d[o]:p[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(m),h.setPosition(p),c.setPosition(y);var x={x:0,y:0};if(x[o]=g?n[o]:v[o],x[s]=Math.max(v[s],d[s]),x[u]=Math.min(0,d[u]+y[1-a]),h.__rectSize=n[o],g){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],h.setClipPath(new bt({shape:b})),h.__rectSize=b[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ne(f,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",U(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=fl[o],u=hl[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var m=l+1,p=g,y=g,_=null;m<=c;++m)_=S(f[m]),(!_&&y.e>p.s+a||_&&!x(_,p.s))&&(y.i>p.i?p=y:p=_,p&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=p.i),++d.pageCount)),y=_;for(var m=l-1,p=g,y=g,_=null;m>=-1;--m)_=S(f[m]),(!_||!x(y,_.s))&&p.i<y.i&&(y=p,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=p.i),++d.pageCount,++d.pageIndex),p=_;return d;function S(b){if(b){var w=b.getBoundingRect(),C=w[u]+b[u];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(i=s)}),i??a},t.type="legend.scroll",t})(k0);function ZE(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function qE(r){Ir(V0),r.registerComponentModel(XE),r.registerComponentView($E),ZE(r)}function KE(r){Ir(V0),Ir(qE)}function zp(r,t,e){var i=ar.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var cl=(function(r){B(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||zo,typeof e=="string"?o=zp(e,i,n):X(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(qp(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=zp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new tt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var C=o[w];if(C.intersect(y)){var M=new tt(0,0,0,0);M.copy(C),M.union(y),o[w]=M,S=!0;break}else if(u){l.copy(y),l.union(C);var A=y.width*y.height,D=C.width*C.height,L=l.width*l.height,E=L-A-D;E<x&&(x=E,b=w)}}if(u&&(o[b].union(y),S=!0),!S){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&re||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&re||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var m;do{m=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(m=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(g,m,p,y){if(o.clearRect(g,m,p,y),i&&i!=="transparent"){var _=void 0;if(_s(i)){var S=i.global||i.__width===p&&i.__height===y;_=S&&i.__canvasGradient||uf(o,i,{x:0,y:0,width:p,height:y}),i.__canvasGradient=_,i.__width=p,i.__height=y}else e_(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=lf(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,m,p,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,m,p,y),o.restore())}!n||l?d(0,0,s,u):n.length&&T(n,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(Ye),Hp=1e5,ai=314159,go=.01,QE=.001;function JE(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function jE(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var tL=(function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||zo,this._singleCanvas=a,this.root=t;var o=t.style;o&&(qp(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new cl(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[ai]=v,v.zlevel=ai,s.push(ai),this._domRoot=t}else{this._width=to(t,0,i),this._height=to(t,1,i);var l=this._domRoot=jE(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Hp)),a||(a=i.ctx,a.save()),hi(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Hp)},r.prototype.paintOne=function(t,e){hy(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;No(function(){u._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(ai).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,c=function(g){var m=a[g],p=m.ctx,y=o&&m.createRepaintRects(t,e,v._width,v._height),_=i?m.__startIndex:m.__drawIndex,S=!i&&m.incremental&&Date.now,x=S&&Date.now(),b=m.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,b,y);else if(_===m.__startIndex){var w=t[_];(!w.incremental||!w.notClear||i)&&m.clear(!1,b,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var C,M=function(E){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=_;C<m.__endIndex;C++){var P=t[C];if(P.__inHover&&(h=!0),n._doPaintEl(P,m,o,E,I,C===m.__endIndex-1),S){var O=Date.now()-x;if(O>15)break}}I.prevElClipPaths&&p.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var A=v.dpr,D=0;D<y.length;++D){var L=y[D];p.save(),p.beginPath(),p.rect(L.x*A,L.y*A,L.width*A,L.height*A),p.clip(),M(L),p.restore()}else p.save(),M(),p.restore();m.__drawIndex=C,m.__drawIndex<m.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return J.wxa&&T(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(hi(s,t,a,o),t.setPrevPaintRect(u))}else hi(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ai);var i=this._layers[t];return i||(i=new cl("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?lt(i,this._layerConfig[t],!0):this._layerConfig[t-go]&<(i,this._layerConfig[t-go],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(i[t]){process.env.NODE_ENV!=="production"&&ci("ZLevel "+t+" has been used already");return}if(!JE(e)){process.env.NODE_ENV!=="production"&&ci("Layer of zlevel "+t+" is not valid");return}if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+QE,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?go:0),this._needsManuallyCompositing),f.__builtin__||ci("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&re&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?lt(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+go){var o=this._layers[a];lt(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(st(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=to(a,0,n),e=to(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ai).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ai].dom;var e=new cl("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];hi(i,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function eL(r){r.registerPainter("canvas",tL)}Array(10).fill({id:"250109-400",nombre:"No",ent:"Morelos",marca:"PEMEX",compras:1524,ventas:4544,almacenaje:4544,deficit:-66.7});function Pf(r){return r&&r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const rL="_mainContainer_1b65f_1",iL={mainContainer:rL};Ir([zE,BE,mE,KE,QM,RM,eL]);const mo=r=>t=>Pf(r?Math.abs(t):t),nL=(r,t)=>r===0&&t?.yAxis0?.absolute||r===1&&t?.yAxis1?.absolute,Gp=(r,t,e)=>{let i=e?Math.round(r):r;return t?-i:i},Wp=(r,t,e,i)=>r.map(n=>{const a=t.get(n);if(!a)return 0;const o=Number(a[e])||0;return i?i(o):o}),aL=({data:r,xAxisInfo:t,yAxisInfo:e,mapKey:i,barSeriesKeys:n,lineSeriesKeys:a,showSecondaryYAxis:o=!1,portrait:s=!1})=>{const u=yn.useRef(null),l=yn.useRef(null);yn.useEffect(()=>{if(!u.current)return;l.current=PC(u.current);const h=()=>l.current?.resize();return window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h),l.current?.dispose(),l.current=null}},[]);const f=yn.useMemo(()=>{const h=new Map;return r.forEach(c=>{const v=c[i];h.set(String(v),c)}),console.log(h,"este map"),h},[r]);return yn.useEffect(()=>{if(!l.current||!r?.length)return;const h=[],c=new Set,v=(g,m)=>{g.invert&&nL(m,e)&&c.add(g.name??g.key)};n?.forEach(g=>{const m=g.yAxisIndex??0;v(g,m),h.push({name:g.name??g.key,type:"bar",stack:"Total",emphasis:{focus:"series"},color:g.color,yAxisIndex:s?0:o?g.yAxisIndex??0:0,data:Wp(t,f,g.key,p=>Gp(p,g.invert))})}),a?.forEach(g=>{const m=g.yAxisIndex??0;v(g,m),h.push({name:g.name??g.key,type:"line",symbol:"circle",color:g.bgColor,lineStyle:{type:"dashed"},yAxisIndex:s?0:o?g.yAxisIndex??0:0,data:Wp(t,f,g.key,p=>Gp(p,g.invert,!0)),label:{show:!0,position:"bottom",formatter:p=>Pf(Number(p.value).toFixed(0)),fontSize:12,fontWeight:700,padding:3,color:"white",backgroundColor:`${g.bgColor}99`}})});const d={tooltip:{trigger:"axis",formatter:g=>{let m=`<strong>${g[0].name}</strong><br/>`;return g.forEach(p=>{const y=c.has(p.seriesName)?Math.abs(p.value):p.value;m+=`${p.marker} ${p.seriesName}:
|
|
25
|
+
<strong>${Pf(Number(y).toFixed(0))}</strong><br/>`}),m}},legend:{data:[...n?.map(g=>g.name??g.key)??[],...a?.map(g=>g.name??g.key)??[]],top:10},grid:{left:"3%",right:"4%",bottom:"10%",containLabel:!0},xAxis:s?{type:"value",axisLabel:{formatter:mo(e?.yAxis0?.absolute)}}:{type:"category",data:t,axisPointer:{type:"shadow"}},yAxis:s?[{type:"category",data:t,axisPointer:{type:"shadow"}}]:o?[{type:"value",name:e?.yAxis0?.label1||"",axisLabel:{formatter:mo(e?.yAxis0?.absolute)},min:e?.yAxis0?.limits?.min??0,max:e?.yAxis0?.limits?.max},{type:"value",name:e?.yAxis1?.label||"",axisLabel:{formatter:mo(e?.yAxis1?.absolute)},min:e?.yAxis1?.limits?.min??0,max:e?.yAxis1?.limits?.max}]:[{type:"value",name:e?.yAxis0?.label1||"",axisLabel:{formatter:mo(e?.yAxis0?.absolute)},min:e?.yAxis0?.limits?.min??0,max:e?.yAxis0?.limits?.max}],series:h};l.current.setOption(d,!0)},[r,t,n,a,e,o,f]),Zh.jsx("div",{style:{height:"60dvh",width:"100%"},children:Zh.jsx("div",{ref:u,className:iL.mainContainer,style:{width:"100%",height:"100%"}})})};exports.BarLineChart=aL;
|
|
26
|
+
//# sourceMappingURL=index.cjs.js.map
|