import{b8 as s_,au as $h,a as l_,s as u_,d as f_,bb as h_,b5 as c_,b6 as v_}from"./main.js";import{D as d_,bL as Ys,c as ho,f as p_,j as We,p as g_,w as co,aS as og,u as sg,q as y_,I as m_,i as __,bM as de,n as S_,bP as b_,r as oi,bV as x_,bU as Jt,k as w_,bT as en,bS as si,bR as xa,bW as wa,F as T_,E as qh,bQ as rn}from"./_plugin-vue_export-helper.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var yu=function(r,t){return yu=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])},yu(r,t)};function k(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var C_=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),M_=function(){function r(){this.browser=new C_,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}(),X=new M_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(X.node=!0,X.svgSupported=!0):A_(navigator.userAgent,X);function A_(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),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var If=12,D_="sans-serif",Jr=If+"px "+D_,L_=20,I_=100,P_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function R_(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)-L_)/I_;t[i]=n}return t}var E_=R_(P_),$i={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=$i.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Jr),r.measureText(e);e=e||"",i=i||Jr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||If,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=E_[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},lg=qi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),ug=qi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),ca=Object.prototype.toString,os=Array.prototype,k_=os.forEach,O_=os.filter,Pf=os.slice,B_=os.map,Kh=(function(){}).constructor,Ta=Kh?Kh.prototype:null,Rf="__proto__",N_=2311;function fg(){return N_++}function Ef(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var t=r,e=ca.call(r);if(e==="[object Array]"){if(!Bn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=$(r[i])}}else if(ug[e]){if(!Bn(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(!lg[e]&&!Bn(r)&&!Fi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Rf&&(t[o]=$(r[o]))}return t}function K(r,t,e){if(!H(t)||!H(r))return e?$(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Rf){var n=r[i],a=t[i];H(a)&&H(n)&&!F(a)&&!F(n)&&!Fi(a)&&!Fi(n)&&!Qh(a)&&!Qh(n)&&!Bn(a)&&!Bn(n)?K(n,a,e):(e||!(i in r))&&(r[i]=$(t[i]))}return r}function B(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 tt(r,t,e){for(var i=dt(t),n=0;n<i.length;n++){var a=i[n];r[a]==null&&(r[a]=t[a])}return r}function j(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 F_(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 ke(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 tt(r,t)}function Ht(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,t,e){if(r&&t)if(r.forEach&&r.forEach===k_)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 V(r,t,e){if(!r)return[];if(!t)return kf(r);if(r.map&&r.map===B_)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 qi(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 Lt(r,t,e){if(!r)return[];if(!t)return kf(r);if(r.filter&&r.filter===O_)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 dt(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 z_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(Pf.call(arguments)))}}var U=Ta&&Z(Ta.bind)?Ta.call.bind(Ta.bind):z_;function nt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Pf.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):ca.call(r)==="[object Array]"}function Z(r){return typeof r=="function"}function z(r){return typeof r=="string"}function mu(r){return ca.call(r)==="[object String]"}function ct(r){return typeof r=="number"}function H(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Qh(r){return!!lg[ca.call(r)]}function Gt(r){return!!ug[ca.call(r)]}function Fi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ss(r){return r.colorStops!=null}function V_(r){return r.image!=null}function Io(r){return r!==r}function Kn(){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 J(r,t){return r??t}function vo(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 Pf.apply(r,t)}function hg(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 Pe(r,t){if(!r)throw new Error(t)}function Ae(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var cg="__ec_primitive__";function Po(r){r[cg]=!0}function Bn(r){return r[cg]}var H_=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 dt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),vg=typeof Map=="function";function G_(){return vg?new Map:new H_}var W_=function(){function r(t){var e=F(t);this.data=G_();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 vg?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Y(r){return new W_(r)}function U_(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 ls(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&B(e,t),e}function dg(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function zi(r,t){return r.hasOwnProperty(t)}function kt(){}var Y_=180/Math.PI;function Ki(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Z_(r){return[r[0],r[1]]}function Jh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function X_(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function $_(r){return Math.sqrt(q_(r))}function q_(r){return r[0]*r[0]+r[1]*r[1]}function Zs(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function K_(r,t){var e=$_(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function _u(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Q_=_u;function J_(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ii=J_;function ue(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 Mi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Ai(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var li=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),j_=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 li(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 li(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new li(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new li(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new li(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new li(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),fe=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 l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),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,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.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],l=n.length,u=0;u<l;u++){var f=n[u];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}(),t1=Math.log(2);function Su(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/t1);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*r[e][v]*Su(r,t-1,f,u,n|d,a),c++)}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=Su(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)*Su(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var tc="___zrEVENTSAVED",Xs=[];function e1(r,t,e,i,n){return bu(Xs,t,i,n,!0)&&bu(r,e,Xs[0],Xs[1])}function bu(r,t,e,i,n){if(t.getBoundingClientRect&&X.domSupported&&!pg(t)){var a=t[tc]||(t[tc]={}),o=r1(t,a),s=i1(o,a,n);if(s)return s(r,e,i),!0}return!1}function r1(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,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function i1(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?jh(s,o):jh(o,s))}function pg(r){return r.nodeName.toUpperCase()==="CANVAS"}var n1=/([&<>"'])/g,a1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $t(r){return r==null?"":(r+"").replace(n1,function(t,e){return a1[e]})}var o1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$s=[],s1=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function xu(r,t,e,i){return e=e||{},i?ec(r,t,e):s1&&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):ec(r,t,e),e}function ec(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(pg(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(bu($s,r,i,n)){e.zrX=$s[0],e.zrY=$s[1];return}}e.zrX=e.zrY=0}function Of(r){return r||window.event}function re(r,t,e){if(t=Of(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&&xu(r,o,t,e)}else{xu(r,t,t,e);var a=l1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&o1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function l1(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 wu(r,t,e,i){r.addEventListener(t,e,i)}function u1(r,t,e,i){r.removeEventListener(t,e,i)}var Vi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function rc(r){return r.which===2||r.which===3}var f1=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 l=n[o],u=xu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in qs)if(qs.hasOwnProperty(e)){var i=qs[e](this._track,t);if(i)return i}},r}();function ic(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function h1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var qs={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=ic(i)/ic(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=h1(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Pi(){return[1,0,0,1,0,0]}function Bf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function c1(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 Ri(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],l=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]=l,r}function Tu(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 Nf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=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+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function v1(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 Ff(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var ft=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}(),Ca=Math.min,Ma=Math.max,wr=new ft,Tr=new ft,Cr=new ft,Mr=new ft,nn=new ft,an=new ft,ot=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Ca(t.x,this.x),i=Ca(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ma(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ma(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=Pi();return Tu(a,a,[-e.x,-e.y]),v1(a,a,[i,n]),Tu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<l||u<n||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);a<l||u<n?_>d&&(d=_,p<g?ft.set(an,-p,0):ft.set(an,g,0)):_<c&&(c=_,p<g?ft.set(nn,p,0):ft.set(nn,-g,0)),s<f||h<o?S>d&&(d=S,y<m?ft.set(an,0,-y):ft.set(an,0,m)):_<c&&(c=_,y<m?ft.set(nn,0,y):ft.set(nn,0,-m))}return e&&ft.copy(e,v?nn:an),v},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},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){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},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}wr.x=Cr.x=e.x,wr.y=Mr.y=e.y,Tr.x=Mr.x=e.x+e.width,Tr.y=Cr.y=e.y+e.height,wr.transform(i),Mr.transform(i),Tr.transform(i),Cr.transform(i),t.x=Ca(wr.x,Tr.x,Cr.x,Mr.x),t.y=Ca(wr.y,Tr.y,Cr.y,Mr.y);var l=Ma(wr.x,Tr.x,Cr.x,Mr.x),u=Ma(wr.y,Tr.y,Cr.y,Mr.y);t.width=l-t.x,t.height=u-t.y},r}(),gg="silent";function d1(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:p1}}function p1(){Vi(this.event)}var g1=function(r){k(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}(fe),on=function(){function r(t,e){this.x=t,this.y=e}return r}(),y1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ks=new ot(0,0,0,0),yg=function(r){k(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new on(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new g1,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new j_(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(y1,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=mg(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new on(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"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 on(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=d1(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(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new on(e,i);if(nc(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ot(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ks.copy(v.getBoundingRect()),v.transform&&Ks.applyTransform(v.transform),Ks.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=i+g*Math.sin(y);if(nc(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new f1);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 on;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(fe);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){yg.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=mg(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||Q_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function m1(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.parent}return n?gg:!0}return!1}function nc(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=m1(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==gg)){t.target=o;break}}}function mg(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var _g=32,sn=7;function _1(r){for(var t=0;r>=_g;)t|=r&1,r>>=1;return r+t}function ac(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++;S1(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function S1(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function oc(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){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(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Qs(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Js(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function b1(r,t){var e=sn,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=i[c],p=n[c],g=i[c+1],y=n[c+1];n[c]=p+y,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var m=Js(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Qs(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,M;;){b=0,w=0,M=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){M=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){M=!0;break}while((b|w)<x);if(M)break;do{if(b=Js(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){M=!0;break}}if(r[S++]=r[_++],--g===0){M=!0;break}if(w=Qs(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){M=!0;break}}if(r[S++]=o[m++],--d===1){M=!0;break}x--}while(b>=sn||w>=sn);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var M=0,C=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],M++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,M=0,--g===1){D=!0;break}while((M|C)<w);if(D)break;do{if(M=d-Js(o[_],r,c,d,d-1,t),M!==0){for(S-=M,m-=M,d-=M,b=S+1,x=m+1,y=M-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-Qs(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y<C;y++)r[b+y]=o[x+y];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}w--}while(M>=sn||C>=sn);if(D)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function po(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<_g){a=ac(r,e,i,t),oc(r,e,i,e+a,t);return}var o=b1(r,t),s=_1(n);do{if(a=ac(r,e,i,t),a<s){var l=n;l>s&&(l=s),oc(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var qt=1,Dn=2,wi=4,sc=!1;function js(){sc||(sc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var x1=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lc}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,po(i,lc)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=qt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(js(),f.z=0),isNaN(f.z2)&&(js(),f.z2=0),isNaN(f.zlevel)&&(js(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,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=j(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}(),Ro;Ro=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Nn={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-Nn.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?Nn.bounceIn(r*2)*.5:Nn.bounceOut(r*2-1)*.5+.5}},Aa=Math.pow,vr=Math.sqrt,Eo=1e-8,Sg=1e-4,uc=vr(3),Da=1/3,Me=Ki(),ae=Ki(),Ei=Ki();function fr(r){return r>-Eo&&r<Eo}function bg(r){return r>Eo||r<-Eo}function wt(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 fc(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),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(fr(f)&&fr(h))if(fr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var p=h*h-4*f*v;if(fr(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y)}else if(p>0){var m=vr(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Aa(-_,Da):_=Aa(_,Da),S<0?S=-Aa(-S,Da):S=Aa(S,Da);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var x=(2*f*s-3*o*h)/(2*vr(f*f*f)),b=Math.acos(x)/3,w=vr(f),M=Math.cos(b),d=(-s-2*w*M)/(3*o),y=(-s+w*(M+uc*Math.sin(b)))/(3*o),C=(-s+w*(M-uc*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),C>=0&&C<=1&&(a[c++]=C)}}return c}function xg(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,l=0;if(fr(o)){if(bg(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(fr(f))n[0]=-a/(2*o);else if(f>0){var h=vr(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Oo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function w1(r,t,e,i,n,a,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;Me[0]=l,Me[1]=u;for(var m=0;m<1;m+=.05)ae[0]=wt(r,e,n,o,m),ae[1]=wt(t,i,a,s,m),g=Ii(Me,ae),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<Sg);_++)d=h-v,p=h+v,ae[0]=wt(r,e,n,o,d),ae[1]=wt(t,i,a,s,d),g=Ii(ae,Me),d>=0&&g<c?(h=d,c=g):(Ei[0]=wt(r,e,n,o,p),Ei[1]=wt(t,i,a,s,p),y=Ii(Ei,Me),p<=1&&y<c?(h=p,c=y):v*=.5);return vr(c)}function T1(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=wt(r,e,n,o,d),g=wt(t,i,a,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function Ft(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function hc(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function C1(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(fr(a)){if(bg(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(fr(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=vr(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function wg(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Bo(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 M1(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Me[0]=o,Me[1]=s;for(var v=0;v<1;v+=.05){ae[0]=Ft(r,e,n,v),ae[1]=Ft(t,i,a,v);var c=Ii(Me,ae);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Sg);d++){var p=u-f,g=u+f;ae[0]=Ft(r,e,n,p),ae[1]=Ft(t,i,a,p);var c=Ii(ae,Me);if(p>=0&&c<h)u=p,h=c;else{Ei[0]=Ft(r,e,n,g),Ei[1]=Ft(t,i,a,g);var y=Ii(Ei,Me);g<=1&&y<h?(u=g,h=y):f*=.5}}return vr(h)}function A1(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Ft(r,e,n,v),d=Ft(t,i,a,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var D1=/cubic-bezier\(([0-9,\.e ]+)\)/;function Tg(r){var t=r&&D1.exec(r);if(t){var e=t[1].split(","),i=+Ae(e[0]),n=+Ae(e[1]),a=+Ae(e[2]),o=+Ae(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ko(0,i,a,1,l,s)&&wt(0,n,o,1,s[0])}}}var L1=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||kt,this.ondestroy=t.ondestroy||kt,this.onrestart=t.onrestart||kt,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 l=n%i;this._startTime=t-l,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=Z(t)?t:Nn[t]||Tg(t)},r}(),Cg=function(){function r(t){this.value=t}return r}(),I1=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Cg(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}(),va=function(){function r(t){this._list=new I1,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 l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Cg(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}(),cc={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 dr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Cu(r){return r<0?0:r>1?1:r}function tl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?dr(parseFloat(t)/100*255):dr(parseInt(t,10))}function Fn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Cu(parseFloat(t)/100):Cu(parseFloat(t))}function el(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 La(r,t,e){return r+(t-r)*e}function ee(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Mu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Mg=new va(20),Ia=null;function ui(r,t){Ia&&Mu(Ia,t),Ia=Mg.put(r,Ia||t.slice())}function Xe(r,t){if(r){t=t||[];var e=Mg.get(r);if(e)return Mu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in cc)return Mu(t,cc[i]),ui(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)){ee(t,0,0,0,1);return}return ee(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),ui(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ee(t,0,0,0,1);return}return ee(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),ui(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ee(t,+u[0],+u[1],+u[2],1):ee(t,0,0,0,1);f=Fn(u.pop());case"rgb":if(u.length>=3)return ee(t,tl(u[0]),tl(u[1]),tl(u[2]),u.length===3?f:Fn(u[3])),ui(r,t),t;ee(t,0,0,0,1);return;case"hsla":if(u.length!==4){ee(t,0,0,0,1);return}return u[3]=Fn(u[3]),vc(u,t),ui(r,t),t;case"hsl":if(u.length!==3){ee(t,0,0,0,1);return}return vc(u,t),ui(r,t),t;default:return}}ee(t,0,0,0,1)}}function vc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Fn(r[1]),n=Fn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ee(t,dr(el(o,a,e+1/3)*255),dr(el(o,a,e)*255),dr(el(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function dc(r,t){var e=Xe(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 us(e,e.length===4?"rgba":"rgb")}}function P1(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=Xe(t[n]),s=Xe(t[a]),l=i-n,u=us([dr(La(o[0],s[0],l)),dr(La(o[1],s[1],l)),dr(La(o[2],s[2],l)),Cu(La(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function us(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 No(r,t){var e=Xe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var pc=new va(100);function gc(r){if(z(r)){var t=pc.get(r);return t||(t=dc(r,-.1),pc.put(r,t)),t}else if(ss(r)){var e=B({},r);return e.colorStops=V(r.colorStops,function(i){return{offset:i.offset,color:dc(i.color,-.1)}}),e}return r}function R1(r){return r.type==="linear"}function E1(r){return r.type==="radial"}(function(){return X.hasGlobalWindow&&Z(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Au=Array.prototype.slice;function Ge(r,t,e){return(t-r)*e+r}function rl(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Ge(t[a],e[a],i);return r}function k1(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]=Ge(t[o][s],e[o][s],i)}return r}function Pa(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function yc(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 O1(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 B1(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 l=a;l<o;l++)i.push(e===1?n[l]:Au.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function go(r){if(Ht(r)){var t=r.length;if(Ht(r[0])){for(var e=[],i=0;i<t;i++)e.push(Au.call(r[i]));return e}return Au.call(r)}return r}function yo(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 Ht(r&&r[0])?2:1}var Ra=0,mo=1,Ag=2,Ln=3,Du=4,Lu=5,mc=6;function _c(r){return r===Du||r===Lu}function Ea(r){return r===mo||r===Ag}var ln=[0,0,0,0],F1=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=mc,l=e;if(Ht(e)){var u=N1(e);s=u,(u===1&&!ct(e[0])||u===2&&!ct(e[0][0]))&&(o=!0)}else if(ct(e)&&!Io(e))s=Ra;else if(z(e))if(!isNaN(+e))s=Ra;else{var f=Xe(e);f&&(l=f,s=Ln)}else if(ss(e)){var h=B({},l);h.colorStops=V(e.colorStops,function(c){return{offset:c.offset,color:Xe(c.color)}}),R1(e)?s=Du:E1(e)&&(s=Lu),l=h}a===0?this.valType=s:(s!==this.valType||s===mc)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return i&&(v.easing=i,v.easingFunc=Z(i)?i:Nn[i]||Tg(i)),n.push(v),v},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ea(n),u=_c(n),f=0;f<a;f++){var h=i[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?B1(v,c,n):u&&O1(v.colorStops,c.colorStops))}if(!s&&n!==Lu&&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===Ra?i[f].additiveValue=i[f].value-d:n===Ln?i[f].additiveValue=Pa([],i[f].value,d,-1):Ea(n)&&(i[f].additiveValue=n===mo?Pa([],i[f].value,d,-1):yc([],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,l=this.propName,u=a===Ln,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,y=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=i?this._additiveValue:u?ln:t[l];if((Ea(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:d.rawValue;else if(Ea(a))a===mo?rl(m,c[n],d[n],y):k1(m,c[n],d[n],y);else if(_c(a)){var _=c[n],S=d[n],x=a===Du;t[l]={type:x?"linear":"radial",x:Ge(_.x,S.x,y),y:Ge(_.y,S.y,y),colorStops:V(_.colorStops,function(w,M){var C=S.colorStops[M];return{offset:Ge(w.offset,C.offset,y),color:yo(rl([],w.color,C.color,y))}}),global:S.global},x?(t[l].x2=Ge(_.x2,S.x2,y),t[l].y2=Ge(_.y2,S.y2,y)):t[l].r=Ge(_.r,S.r,y)}else if(u)rl(m,c[n],d[n],y),i||(t[l]=yo(m));else{var b=Ge(c[n],d[n],y);i?this._additiveValue=b:t[l]=b}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Ra?t[i]=t[i]+n:e===Ln?(Xe(t[i],ln),Pa(ln,ln,n,1),t[i]=yo(ln)):e===mo?Pa(t[i],t[i],n,1):e===Ag&&yc(t[i],t[i],n,1)},r}(),zf=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){Ef("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,dt(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],l=a[s];if(!l){l=a[s]=new F1(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Ln&&u&&(u=yo(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,go(u),n),this._trackKeys.push(s)}l.addKeyframe(t,go(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],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new L1({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,c);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.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 V(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,l=s[i?0:s.length-1];l&&(t[a]=go(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||dt(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 Di(){return new Date().getTime()}var z1=function(r){k(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=Di()-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&&(Ro(i),!e._paused&&e.update())}Ro(i)},t.prototype.start=function(){this._running||(this._time=Di(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Di(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Di()-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 zf(e,i.loop);return this.addAnimator(n),n},t}(fe),V1=300,il=X.domSupported,nl=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=V(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Sc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},bc=!1;function Iu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function H1(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 al(r){r&&(r.zrByTouch=!0)}function G1(r,t){return re(r.dom,new W1(r,t),!0)}function Dg(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 W1=function(){function r(t,e){this.stopPropagation=kt,this.stopImmediatePropagation=kt,this.preventDefault=kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ge={mousedown:function(r){r=re(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=re(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=re(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=re(this.dom,r);var t=r.toElement||r.relatedTarget;Dg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){bc=!0,r=re(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){bc||(r=re(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=re(this.dom,r),al(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ge.mousemove.call(this,r),ge.mousedown.call(this,r)},touchmove:function(r){r=re(this.dom,r),al(r),this.handler.processGesture(r,"change"),ge.mousemove.call(this,r)},touchend:function(r){r=re(this.dom,r),al(r),this.handler.processGesture(r,"end"),ge.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<V1&&ge.click.call(this,r)},pointerdown:function(r){ge.mousedown.call(this,r)},pointermove:function(r){Iu(r)||ge.mousemove.call(this,r)},pointerup:function(r){ge.mouseup.call(this,r)},pointerout:function(r){Iu(r)||ge.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){ge[r]=function(t){t=re(this.dom,t),this.trigger(r,t)}});var Pu={pointermove:function(r){Iu(r)||Pu.mousemove.call(this,r)},pointerup:function(r){Pu.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 U1(r,t){var e=t.domHandlers;X.pointerEventsSupported?T(nl.pointer,function(i){_o(t,i,function(n){e[i].call(r,n)})}):(X.touchEventsSupported&&T(nl.touch,function(i){_o(t,i,function(n){e[i].call(r,n),H1(t)})}),T(nl.mouse,function(i){_o(t,i,function(n){n=Of(n),t.touching||e[i].call(r,n)})}))}function Y1(r,t){X.pointerEventsSupported?T(Sc.pointer,e):X.touchEventsSupported||T(Sc.mouse,e);function e(i){function n(a){a=Of(a),Dg(r,a.target)||(a=G1(r,a),t.domHandlers[i].call(r,a))}_o(t,i,n,{capture:!0})}}function _o(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,wu(r.domTarget,t,e,i)}function ol(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&u1(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var xc=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),Z1=function(r){k(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 xc(e,ge),il&&(n._globalHandlerScope=new xc(document,Pu)),U1(n,n._localHandlerScope),n}return t.prototype.dispose=function(){ol(this._localHandlerScope),il&&ol(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,il&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?Y1(this,i):ol(i)}},t}(fe),Lg=1;X.hasGlobalWindow&&(Lg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fo=Lg,Ru=.4,Eu="#333",ku="#ccc",X1="#eee",wc=Bf,Tc=5e-5;function Ar(r){return r>Tc||r<-Tc}var Dr=[],fi=[],sl=Pi(),ll=Math.abs,Vf=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 Ar(this.rotation)||Ar(this.x)||Ar(this.y)||Ar(this.scaleX-1)||Ar(this.scaleY-1)||Ar(this.skewX)||Ar(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(wc(i),this.invTransform=null);return}i=i||Pi(),e?this.getLocalTransform(i):wc(i),t&&(e?Ri(i,t,i):c1(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Dr);var i=Dr[0]<0?-1:1,n=Dr[1]<0?-1:1,a=((Dr[0]-i)*e+i)/Dr[0]||0,o=((Dr[1]-n)*e+n)/Dr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pi(),Ff(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||Pi(),Ri(fi,t.invTransform,e),e=fi);var i=this.originX,n=this.originY;(i||n)&&(sl[4]=i,sl[5]=n,Ri(fi,e,sl),fi[4]-=i,fi[5]-=n,e=fi),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&&ue(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&ue(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&ll(t[0]-1)>1e-10&&ll(t[3]-1)>1e-10?Math.sqrt(ll(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){$1(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,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,p=n+l;e[4]=-d*a-v*p*o,e[5]=-p*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&Nf(e,e,u),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}(),Qn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $1(r,t){for(var e=0;e<Qn.length;e++){var i=Qn[e];r[i]=t[i]}}var Cc={};function Kt(r,t){t=t||Jr;var e=Cc[t];e||(e=Cc[t]=new va(500));var i=e.get(r);return i==null&&(i=$i.measureText(r,t).width,e.put(r,i)),i}function Mc(r,t,e,i){var n=Kt(r,t),a=Hf(t),o=In(0,n,e),s=Ti(0,a,i),l=new ot(o,s,n,a);return l}function fs(r,t,e,i){var n=((r||"")+"").split(`
`),a=n.length;if(a===1)return Mc(n[0],t,e,i);for(var o=new ot(0,0,0,0),s=0;s<n.length;s++){var l=Mc(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function In(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ti(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Hf(r){return Kt("国",r)}function yr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function zo(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=yr(i[0],e.width),u+=yr(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ul="__zr_normal__",fl=Qn.concat(["ignore"]),q1=qi(Qn,function(r,t){return r[t]=!0,r},{ignore:!1}),hi={},K1=new ot(0,0,0,0),hs=function(){function r(t){this.id=fg(),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,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=K1;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hi,i,f):zo(hi,i,f),a.x=hi.x,a.y=hi.y,o=hi.align,s=hi.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=yr(h[0],f.width),c=yr(h[1],f.height)),u=!0,a.originX=-a.x+v+(n?0:f.x),a.originY=-a.y+c+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=qt,l&&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()?ku:Eu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Xe(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,us(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||{},B(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(H(t))for(var i=t,n=dt(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!==ul)){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,fl)},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(ul,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===ul,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(j(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Ef("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,i,f),v&&v.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&=~qt),u}}},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 l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~qt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},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=j(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=j(n,t),o=j(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];B(e,a),a.textConfig&&(i=i||{},B(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=B({},n?this.textConfig:i.textConfig),B(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<fl.length;f++){var h=fl[f],v=a&&q1[h];e&&e[h]!=null?v?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(v?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){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;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Vf,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(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|=qt;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,a=new zf(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=j(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){hl(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){hl(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=hl(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.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=qt;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ke(hs,fe);ke(hs,Vf);function hl(r,t,e,i,n){e=e||{};var a=[];Ig(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function cl(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function Q1(r){return Ht(r[0])}function J1(r,t,e){if(Ht(t[e]))if(Ht(r[e])||(r[e]=[]),Gt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),cl(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(Q1(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?cl(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else cl(a,n,o);a.length=n.length}else r[e]=t[e]}function j1(r,t){return r===t||Ht(r)&&Ht(t)&&tS(r,t)}function tS(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 Ig(r,t,e,i,n,a,o,s){for(var l=dt(i),u=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!H(a),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=i[y];if(m!=null&&e[y]!=null&&(c||a[y]))if(H(m)&&!Ht(m)&&!ss(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}Ig(r,y,e[y],m,n,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(p);if(b){var w=j(d,x);d.splice(w,1)}}}if(n.force||(p=Lt(p,function(A){return!j1(i[A],e[A])}),_=p.length),_>0||n.force&&!o.length){var M=void 0,C=void 0,D=void 0;if(s){C={},v&&(M={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?M[y]=i[y]:e[y]=i[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=go(e[y]),J1(e,i,y)}}var x=new zf(e,!1,!1,h?Lt(d,function(L){return L.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),v&&M&&x.whenWithKeys(0,M,p),D&&x.whenWithKeys(0,D,p),x.whenWithKeys(u??500,s?C:i,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}var yt=function(r){k(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){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),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=j(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=j(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 ot(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ot.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t}(hs);yt.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var So={},Pg={};function eS(r){delete Pg[r]}function rS(r){if(!r)return!1;if(typeof r=="string")return No(r,1)<Ru;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=No(t[n].color,1);return e/=i,e<Ru}return!1}var iS=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 x1,o=i.renderer||"canvas";So[o]||(o=dt(So)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new So[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!X.node&&!X.worker&&!l?new Z1(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?X.touchEventsSupported:!!f,v=44,c;h&&(c=J(i.pointerSize,v)),this.handler=new yg(a,s,u,s.root,c),this.animation=new z1({stage:{update:l?null:function(){return n._flush(!0)}}}),l||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=rS(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=Di();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Di();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 yt&&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,eS(this.id))},r}();function Ac(r,t){var e=new iS(fg(),r,t);return Pg[e.id]=e,e}function nS(r,t){So[r]=t}var Dc=1e-4,Rg=20;function aS(r){return r.replace(/^\s+|\s+$/g,"")}function At(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>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)/l*u+o}function Tt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return z(r)?aS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function St(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Rg),r=(+r).toFixed(t),e?r:+r}function Pn(r){return r.sort(function(t,e){return t-e}),r}function Ue(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 oS(r)}function oS(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 Eg(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function sS(r,t){var e=Math.max(Ue(r),Ue(t)),i=r+t;return e>Rg?i:St(i,e)}function kg(r){var t=Math.PI*2;return(r%t+t)%t}function Vo(r){return r>-Dc&&r<Dc}var lS=/^(?:(\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 $e(r){if(r instanceof Date)return r;if(z(r)){var t=lS.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 uS(r){return Math.pow(10,Gf(r))}function Gf(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 Og(r,t){var e=Gf(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 Ho(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function fS(r){return!isNaN(Ho(r))}function Bg(){return Math.round(Math.random()*9)}function Ng(r,t){return t===0?r:Ng(t,r%t)}function Lc(r,t){return r==null?t:t==null?r:r*t/Ng(r,t)}function zt(r){throw new Error(r)}function Ic(r,t,e){return(t-r)*e+r}var Fg="series\0",zg="\0_ec_\0";function Ot(r){return r instanceof Array?r:r==null?[]:[r]}function Pc(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 Rc=["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 da(r){return H(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function hS(r){return H(r)&&!(r instanceof Array)}function cS(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();T(t,function(l,u){if(!H(l)){t[u]=null;return}});var s=vS(r,o,e);return(i||n)&&dS(s,r,o,t),i&&pS(s,t),i||n?gS(s,t,n):a&&yS(s,t),mS(s),s}function vS(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"||Jn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function dS(r,t,e,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=zn(n.id),s=e.get(o);if(s!=null){var l=r[s];Pe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function pS(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)&&!Jn(e)&&!Jn(a)&&Vg("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function gS(r,t,e){T(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Jn(n.existing)||n.existing&&i.id!=null&&!Vg("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function yS(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function mS(r){var t=Y();T(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),T(r,function(e){var i=e.newOption;Pe(!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(H(a)){if(o.name=a.name!=null?zn(a.name):n?n.name:Fg+i,n)o.id=zn(n.id);else if(a.id!=null)o.id=zn(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 Vg(r,t,e){var i=Le(t[r],null),n=Le(e[r],null);return i!=null&&n!=null&&i===n}function zn(r){return Le(r,"")}function Le(r,t){return r==null?t:z(r)?r:ct(r)||mu(r)?r+"":t}function Wf(r){var t=r.name;return!!(t&&t.indexOf(Fg))}function Jn(r){return r&&r.id!=null&&zn(r.id).indexOf(zg)===0}function _S(r){return zg+r}function SS(r,t,e){T(r,function(i){var n=i.newOption;H(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=bS(t,n,i.existing,e))})}function bS(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function jr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?V(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?V(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function _t(){var r="__ec_inner_"+xS++;return function(t){return t[r]||(t[r]={})}}var xS=Bg();function Vn(r,t,e){var i=Uf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=pa(r,f,u,{useDefault:l===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(z(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Y(),a={},o=!1;return T(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&j(t.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Et={useDefault:!0,enableAll:!1,enableNone:!1},wS={useDefault:!1,enableAll:!0,enableNone:!0};function pa(r,t,e,i){i=i||Et;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(Pe(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Pe(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function Hg(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function TS(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function CS(r){return r==="auto"?X.domSupported?"html":"richText":r||"html"}function MS(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(ct(i)){var o=Ic(e||0,i,n);return St(o,a?Math.max(Ue(e||0),Ue(i)):t)}else{if(z(i))return n<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=Ic(c,d,n);s[h]=St(o,a?Math.max(Ue(c),Ue(d)):t)}}return s}}var AS=".",Lr="___EC__COMPONENT__CONTAINER___",Gg="___EC__EXTENDED_CLASS___";function De(r){var t={main:"",sub:""};if(r){var e=r.split(AS);t.main=e[0]||"",t.sub=e[1]||""}return t}function DS(r){Pe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function LS(r){return!!(r&&r[Gg])}function Yf(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return IS(i)?n=function(a){k(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},F_(n,this)),B(n.prototype,e),n[Gg]=!0,n.extend=this.extend,n.superCall=ES,n.superApply=kS,n.superClass=i,n}}function IS(r){return Z(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Wg(r,t){r.extend=t.extend}var PS=Math.round(Math.random()*10);function RS(r){var t=["__\0is_clz",PS++].join("_");r.prototype[t]=!0,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 kS(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){DS(n),i.prototype.type=n;var a=De(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Lr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Lr]&&(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=De(i),a=[],o=t[n.main];return o&&o[Lr]?T(o,function(s,l){l!==Lr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=De(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=De(i),a=t[n.main];return a&&a[Lr]};function e(i){var n=t[i.main];return(!n||!n[Lr])&&(n=t[i.main]={},n[Lr]=!0),n}}function jn(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 l=r[s][1];if(!(n&&j(n,l)>=0||a&&j(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var OS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],BS=jn(OS),NS=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return BS(this,t,e)},r}(),Ou=new va(50);function FS(r){if(typeof r=="string"){var t=Ou.get(r);return t&&t.image}else return r}function Ug(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Ou.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!vs(t)&&a.pending.push(o)):(t=$i.loadImage(r,Ec,Ec),t.__zrImageSrc=r,Ou.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Ec(){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 vs(r){return r&&r.width&&r.height}var vl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function zS(r,t,e,i,n){if(!t)return"";var a=(r+"").split(`
`);n=Yg(t,e,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=Zg(a[o],n);return a.join(`
`)}function Yg(r,t,e,i){i=i||{};var n=B({},i);n.font=t,e=J(e,"..."),n.maxIterations=J(i.maxIterations,2);var a=n.minChar=J(i.minChar,0);n.cnCharWidth=Kt("国",t);var o=n.ascCharWidth=Kt("a",t);n.placeholder=J(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Kt(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Zg(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=Kt(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?VS(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=Kt(r,i)}return r===""&&(r=t.placeholder),r}function VS(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function HS(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=Hf(n),s=J(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?Xg(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var v=h.length*s,c=J(t.height,v);if(v>c&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=Yg(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=Zg(h[g],p);for(var y=c,m=0,g=0;g<h.length;g++)m=Math.max(Kt(h[g],n),m);f==null&&(f=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var GS=function(){function r(){}return r}(),kc=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),WS=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function US(r,t){var e=new WS;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=vl.lastIndex=0,l;(l=vl.exec(r))!=null;){var u=l.index;u>s&&dl(e,r.substring(s,u),t,o),dl(e,l[2],t,o,l[1]),s=vl.lastIndex}s<r.length&&dl(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(O,N,G){O.width=N,O.lineHeight=G,h+=G,v=Math.max(v,N)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,x=0;x<m.tokens.length;x++){var b=m.tokens[x],w=b.styleName&&t.rich[b.styleName]||{},M=b.textPadding=w.padding,C=M?M[1]+M[3]:0,D=b.font=w.font||t.font;b.contentHeight=Hf(D);var A=J(w.height,b.contentHeight);if(b.innerHeight=A,M&&(A+=M[0]+M[2]),b.height=A,b.lineHeight=vo(w.lineHeight,t.lineHeight,A),b.align=w&&w.align||t.align,b.verticalAlign=w&&w.verticalAlign||"middle",p&&n!=null&&h+b.lineHeight>n){x>0?(m.tokens=m.tokens.slice(0,x),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var L=w.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")b.percentWidth=L,f.push(b),b.contentWidth=Kt(b.text,D);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=FS(R),vs(R)&&(b.width=Math.max(b.width,R.width*A/R.height)))}var E=d&&i!=null?i-S:null;E!=null&&E<b.width?!I||E<C?(b.text="",b.width=b.contentWidth=0):(b.text=zS(b.text,E-C,D,t.ellipsis,{minChar:t.truncateMinChar}),b.width=b.contentWidth=Kt(b.text,D)):b.contentWidth=Kt(b.text,D)}b.width+=C,S+=b.width,w&&(_=Math.max(_,b.lineHeight))}g(m,S,_)}e.outerWidth=e.width=J(i,v),e.outerHeight=e.height=J(n,h),e.contentHeight=h,e.contentWidth=v,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var y=0;y<f.length;y++){var b=f[y],W=b.percentWidth;b.width=parseInt(W,10)/100*e.width}return e}function dl(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=yr(o.width,i.width)+c;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
`),u=!0),i.accumWidth=d}else{var p=Xg(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new GS;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Kt(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new kc)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new kc([m]))}}function YS(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ZS=qi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function XS(r){return YS(r)?!!ZS[r]:!0}function Xg(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Kt(v,t),d=i?!1:!XS(v);if(a.length?f+c>e:n+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Bu="__zr_style_"+Math.round(Math.random()*10),qr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ds={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qr[Bu]=!0;var Oc=["z","z2","invisible"],$S=["invisible"],ga=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=dt(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&&qS(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.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,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ot(0,0,0,0)),i?ot.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ot(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:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Dn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Dn)},t.prototype.styleUpdated=function(){this.__dirty&=~Dn},t.prototype.createStyle=function(e){return ls(qr,e)},t.prototype.useStyle=function(e){e[Bu]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Bu]},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,Oc)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=dt(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=dt(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?$S:Oc,v=0;v<p.length;v++){var c=p[v];i&&i[c]!=null?this[c]=i[c]:l&&n[c]!=null&&(this[c]=n[c])}},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 B(e,i),e},t.prototype.getAnimationStyleProps=function(){return ds},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=qt|Dn}(),t}(hs),pl=new ot(0,0,0,0),gl=new ot(0,0,0,0);function qS(r,t,e){return pl.copy(r.getBoundingRect()),r.transform&&pl.applyTransform(r.transform),gl.width=t,gl.height=e,!pl.intersect(gl)}var oe=Math.min,se=Math.max,yl=Math.sin,ml=Math.cos,Ir=Math.PI*2,ka=Ki(),Oa=Ki(),Ba=Ki();function Bc(r,t,e,i,n,a){n[0]=oe(r,e),n[1]=oe(t,i),a[0]=se(r,e),a[1]=se(t,i)}var Nc=[],Fc=[];function KS(r,t,e,i,n,a,o,s,l,u){var f=xg,h=wt,v=f(r,e,n,o,Nc);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,e,n,o,Nc[c]);l[0]=oe(d,l[0]),u[0]=se(d,u[0])}v=f(t,i,a,s,Fc);for(var c=0;c<v;c++){var p=h(t,i,a,s,Fc[c]);l[1]=oe(p,l[1]),u[1]=se(p,u[1])}l[0]=oe(r,l[0]),u[0]=se(r,u[0]),l[0]=oe(o,l[0]),u[0]=se(o,u[0]),l[1]=oe(t,l[1]),u[1]=se(t,u[1]),l[1]=oe(s,l[1]),u[1]=se(s,u[1])}function QS(r,t,e,i,n,a,o,s){var l=wg,u=Ft,f=se(oe(l(r,e,n),1),0),h=se(oe(l(t,i,a),1),0),v=u(r,e,n,f),c=u(t,i,a,h);o[0]=oe(r,n,v),o[1]=oe(t,a,c),s[0]=se(r,n,v),s[1]=se(t,a,c)}function JS(r,t,e,i,n,a,o,s,l){var u=Mi,f=Ai,h=Math.abs(n-a);if(h%Ir<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(ka[0]=ml(n)*e+r,ka[1]=yl(n)*i+t,Oa[0]=ml(a)*e+r,Oa[1]=yl(a)*i+t,u(s,ka,Oa),f(l,ka,Oa),n=n%Ir,n<0&&(n=n+Ir),a=a%Ir,a<0&&(a=a+Ir),n>a&&!o?a+=Ir:n<a&&o&&(n+=Ir),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(Ba[0]=ml(c)*e+r,Ba[1]=yl(c)*i+t,u(s,Ba,s),f(l,Ba,l))}var st={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pr=[],Rr=[],xe=[],je=[],we=[],Te=[],_l=Math.min,Sl=Math.max,Er=Math.cos,kr=Math.sin,ze=Math.abs,Nu=Math.PI,lr=Nu*2,bl=typeof Float32Array<"u",un=[];function xl(r){var t=Math.round(r/Nu*1e8)/1e8;return t%2*Nu}function jS(r,t){var e=xl(r[0]);e<0&&(e+=lr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=lr?n=e+lr:t&&e-n>=lr?n=e-lr:!t&&e>n?n=e+(lr-xl(e-n)):t&&e<n&&(n=e-(lr-xl(n-e))),r[0]=e,r[1]=n}var ti=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/Fo/t)||0,this._uy=ze(i/Fo/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(st.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(st.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(st.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(st.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(),un[0]=n,un[1]=a,jS(un,o),n=un[0],a=un[1];var s=a-n;return this.addData(st.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Er(a)*i+t,this._yi=kr(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(st.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(st.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){var e=t.length;!(this.data&&this.data.length===e)&&bl&&(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){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();bl&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,l,u){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,bl&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){xe[0]=xe[1]=we[0]=we[1]=Number.MAX_VALUE,je[0]=je[1]=Te[0]=Te[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++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case st.M:e=n=t[o++],i=a=t[o++],we[0]=n,we[1]=a,Te[0]=n,Te[1]=a;break;case st.L:Bc(e,i,t[o],t[o+1],we,Te),e=t[o++],i=t[o++];break;case st.C:KS(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],we,Te),e=t[o++],i=t[o++];break;case st.Q:QS(e,i,t[o++],t[o++],t[o],t[o+1],we,Te),e=t[o++],i=t[o++];break;case st.A:var u=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];l&&(n=Er(c)*h+u,a=kr(c)*v+f),JS(u,f,h,v,c,d,p,we,Te),e=Er(d)*h+u,i=kr(d)*v+f;break;case st.R:n=e=t[o++],a=i=t[o++];var g=t[o++],y=t[o++];Bc(n,a,n+g,a+y,we,Te);break;case st.Z:e=n,i=a;break}Mi(xe,xe,we),Ai(je,je,Te)}return o===0&&(xe[0]=xe[1]=je[0]=je[1]=0),new ot(xe[0],xe[1],je[0]-xe[0],je[1]-xe[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var p=-1;switch(c){case st.M:a=s=t[v++],o=l=t[v++];break;case st.L:{var g=t[v++],y=t[v++],m=g-a,_=y-o;(ze(m)>i||ze(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case st.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],b=t[v++],w=t[v++];p=T1(a,o,S,x,g,y,b,w,10),a=b,o=w;break}case st.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=A1(a,o,S,x,g,y,10),a=g,o=y;break}case st.A:var M=t[v++],C=t[v++],D=t[v++],A=t[v++],L=t[v++],I=t[v++],P=I+L;v+=1,d&&(s=Er(L)*D+M,l=kr(L)*A+C),p=Sl(D,A)*_l(lr,Math.abs(I)),a=Er(P)*D+M,o=kr(P)*A+C;break;case st.R:{s=a=t[v++],l=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case st.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}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,l,u,f,h,v,c=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var w=i[b++],M=b===1;switch(M&&(u=i[b],f=i[b+1],s=u,l=f),w!==st.L&&_>0&&(t.lineTo(S,x),_=0),w){case st.M:s=u=i[b++],l=f=i[b++],t.moveTo(u,f);break;case st.L:{h=i[b++],v=i[b++];var C=ze(h-u),D=ze(v-f);if(C>n||D>a){if(c){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=A}t.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+D*D;I>_&&(S=h,x=v,_=I)}break}case st.C:{var P=i[b++],R=i[b++],E=i[b++],W=i[b++],O=i[b++],N=i[b++];if(c){var A=d[y++];if(g+A>m){var L=(m-g)/A;Oo(u,P,E,O,L,Pr),Oo(f,R,W,N,L,Rr),t.bezierCurveTo(Pr[1],Rr[1],Pr[2],Rr[2],Pr[3],Rr[3]);break t}g+=A}t.bezierCurveTo(P,R,E,W,O,N),u=O,f=N;break}case st.Q:{var P=i[b++],R=i[b++],E=i[b++],W=i[b++];if(c){var A=d[y++];if(g+A>m){var L=(m-g)/A;Bo(u,P,E,L,Pr),Bo(f,R,W,L,Rr),t.quadraticCurveTo(Pr[1],Rr[1],Pr[2],Rr[2]);break t}g+=A}t.quadraticCurveTo(P,R,E,W),u=E,f=W;break}case st.A:var G=i[b++],Q=i[b++],at=i[b++],ut=i[b++],vt=i[b++],Yt=i[b++],pt=i[b++],Fe=!i[b++],ai=at>ut?at:ut,Zt=ze(at-ut)>.001,xt=vt+Yt,q=!1;if(c){var A=d[y++];g+A>m&&(xt=vt+Yt*(m-g)/A,q=!0),g+=A}if(Zt&&t.ellipse?t.ellipse(G,Q,at,ut,pt,vt,xt,Fe):t.arc(G,Q,ai,vt,xt,Fe),q)break t;M&&(s=Er(vt)*at+G,l=kr(vt)*ut+Q),u=Er(xt)*at+G,f=kr(xt)*ut+Q;break;case st.R:s=u=i[b],l=f=i[b+1],h=i[b++],v=i[b++];var et=i[b++],xr=i[b++];if(c){var A=d[y++];if(g+A>m){var It=m-g;t.moveTo(h,v),t.lineTo(h+_l(It,et),v),It-=et,It>0&&t.lineTo(h+et,v+_l(It,xr)),It-=xr,It>0&&t.lineTo(h+Sl(et-It,0),v+xr),It-=et,It>0&&t.lineTo(h,v+Sl(xr-It,0));break t}g+=A}t.rect(h,v,et,xr);break;case st.Z:if(c){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=A}t.closePath(),u=s,f=l}}},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.CMD=st,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function ci(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=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)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function tb(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;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||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var v=w1(r,t,e,i,n,a,o,s,u,f);return v<=h/2}function eb(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=M1(r,t,e,i,n,a,s,l);return f<=u/2}var zc=Math.PI*2;function Na(r){return r%=zc,r<0&&(r+=zc),r}var fn=Math.PI*2;function rb(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-n)%fn<1e-4)return!0;if(a){var h=i;i=Na(n),n=Na(h)}else i=Na(i),n=Na(n);i>n&&(n+=fn);var v=Math.atan2(l,s);return v<0&&(v+=fn),v>=i&&v<=n||v+fn>=i&&v+fn<=n}function Or(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 l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var tr=ti.CMD,Br=Math.PI*2,ib=1e-4;function nb(r,t){return Math.abs(r-t)<ib}var Rt=[-1,-1,-1],ne=[-1,-1];function ab(){var r=ne[0];ne[0]=ne[1],ne[1]=r}function ob(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=ko(t,i,a,s,u,Rt);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=Rt[p],y=g===0||g===1?.5:1,m=wt(r,e,n,o,g);m<l||(v<0&&(v=xg(t,i,a,s,ne),ne[1]<ne[0]&&v>1&&ab(),c=wt(t,i,a,s,ne[0]),v>1&&(d=wt(t,i,a,s,ne[1]))),v===2?g<ne[0]?h+=c<t?y:-y:g<ne[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<ne[0]?h+=c<t?y:-y:h+=s<c?y:-y)}return h}function sb(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=C1(t,i,a,s,Rt);if(l===0)return 0;var u=wg(t,i,a);if(u>=0&&u<=1){for(var f=0,h=Ft(t,i,a,u),v=0;v<l;v++){var c=Rt[v]===0||Rt[v]===1?.5:1,d=Ft(r,e,n,Rt[v]);d<o||(Rt[v]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=Rt[0]===0||Rt[0]===1?.5:1,d=Ft(r,e,n,Rt[0]);return d<o?0:a<t?c:-c}}function lb(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Rt[0]=-l,Rt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Br-1e-4){i=0,n=Br;var f=a?1:-1;return o>=Rt[0]+r&&o<=Rt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Br,n+=Br);for(var v=0,c=0;c<2;c++){var d=Rt[c];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Br+p),(p>=i&&p<=n||p+Br>=i&&p+Br<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function $g(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===tr.M&&d>1&&(e||(s+=Or(l,u,f,h,i,n))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case tr.M:f=a[d++],h=a[d++],l=f,u=h;break;case tr.L:if(e){if(ci(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Or(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case tr.C:if(e){if(tb(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=ob(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case tr.Q:if(e){if(eb(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=sb(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case tr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],x=a[d++],b=a[d++];d+=1;var w=!!(1-a[d++]);v=Math.cos(x)*_+y,c=Math.sin(x)*S+m,g?(f=v,h=c):s+=Or(l,u,v,c,i,n);var M=(i-y)*S/_+y;if(e){if(rb(y,m,S,x,x+b,w,t,M,n))return!0}else s+=lb(y,m,S,x,x+b,w,M,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case tr.R:f=l=a[d++],h=u=a[d++];var C=a[d++],D=a[d++];if(v=f+C,c=h+D,e){if(ci(f,h,v,h,t,i,n)||ci(v,h,v,c,t,i,n)||ci(v,c,f,c,t,i,n)||ci(f,c,f,h,t,i,n))return!0}else s+=Or(v,h,v,c,i,n),s+=Or(f,c,f,h,i,n);break;case tr.Z:if(e){if(ci(l,u,f,h,t,i,n))return!0}else s+=Or(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!nb(u,h)&&(s+=Or(l,u,f,h,i,n)||0),s!==0}function ub(r,t,e){return $g(r,0,!1,t,e)}function fb(r,t,e,i){return $g(r,t,!0,e,i)}var qg=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qr),hb={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ds.style)},wl=Qn.concat(["invisible","culling","z","z2","zlevel","parent"]),lt=function(r){k(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(l){e.buildPath(l,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<wl.length;++s)n[wl[s]]=this[wl[s]];n.__dirty|=qt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=dt(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?B(this.style,s):this.useStyle(s):o==="shape"?B(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(z(e)){var i=No(e,0);return i>.5?Eu:i>.2?X1:ku}else if(e)return ku}return Eu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=No(e,0)<Ru;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~wi},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 ti(!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&wi)&&(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 l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/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 l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fb(s,l/u,e,i)))return!0}if(this.hasFill())return ub(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=wi,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:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&wi)},t.prototype.createStyle=function(e){return ls(qg,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=B({},n.shape),B(u,i.shape)):(u=B({},a?this.shape:n.shape),B(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=dt(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,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 hb},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(a){k(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(e.style)},o.prototype.getDefaultShape=function(){return $(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=qt|Dn|wi}(),t}(ga),cb=tt({strokeFirst:!0,font:Jr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},qg),Go=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return 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.createStyle=function(e){return ls(cb,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=fs(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ga);Go.prototype.type="tspan";var vb=tt({x:0,y:0},qr),db={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ds.style)};function pb(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var br=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ls(vb,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=pb(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 db},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ga);br.prototype.type="image";function gb(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,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 Li=Math.round;function Kg(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&&(Li(i*2)===Li(n*2)&&(r.x1=r.x2=Zr(i,s,!0)),Li(a*2)===Li(o*2)&&(r.y1=r.y2=Zr(a,s,!0))),r}}function Qg(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=Zr(i,s,!0),r.y=Zr(n,s,!0),r.width=Math.max(Zr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Zr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Zr(r,t,e){if(!t)return r;var i=Li(r*2);return(i+Li(t))%2===0?i/2:(i+(e?1:-1))/2}var yb=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),mb={},ht=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new yb},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Qg(mb,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?gb(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(lt);ht.prototype.type="rect";var Vc={fill:"#000"},Hc=2,_b={style:tt({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},ds.style)},bt=function(r){k(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Vc,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,Tb(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 ot(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Vc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return B(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=dt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},B(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return _b},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||Jr,n=e.padding,a=$c(e),o=HS(a,e),s=Tl(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Ti(g,o.contentHeight,m);if(s||n){var x=In(p,f,y),b=Ti(g,u,m);s&&this._renderBackground(e,e,x,b,f,u)}S+=c/2,n&&(_=Xc(p,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var w=0,M=!1,C=Zc("fill"in e?e.fill:(M=!0,d.fill)),D=Yc("stroke"in e?e.stroke:!l&&(!d.autoStroke||M)?(w=Hc,d.stroke):null),A=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<v.length;P++){var R=this._getOrCreateChild(Go),E=R.createStyle();R.useStyle(E),E.text=v[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=D,E.fill=C,D&&(E.lineWidth=e.lineWidth||w,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=i,Wc(E,e),S+=c,L&&R.setBoundingRect(new ot(In(E.x,e.width,E.textAlign),Ti(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,i=$c(e),n=US(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,v=e.align||h.align,c=e.verticalAlign||h.verticalAlign,d=In(u,o,v),p=Ti(f,s,c),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;Tl(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<n.lines.length;S++){for(var x=n.lines[S],b=x.tokens,w=b.length,M=x.lineHeight,C=x.width,D=0,A=g,L=m,I=w-1,P=void 0;D<w&&(P=b[D],!P.align||P.align==="left");)this._placeToken(P,e,M,y,A,"left",_),C-=P.width,A+=P.width,D++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,e,M,y,L,"right",_),C-=P.width,L-=P.width,I--;for(A+=(a-(A-g)-(m-L)-C)/2;D<=I;)P=b[D],this._placeToken(P,e,M,y,A+P.width/2,"center",_),A+=P.width,D++;y+=M}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.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 v=!e.isLineHolder&&Tl(u);v&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=Xc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Go),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Zc("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),x=Yc("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Hc,y.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Jr,g.opacity=vo(u.opacity,i.opacity,1),Wc(g,u),x&&(g.lineWidth=vo(u.lineWidth,i.lineWidth,_),g.lineDash=J(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=e.contentWidth,M=e.contentHeight;p.setBoundingRect(new ot(In(g.x,w,g.textAlign),Ti(g.y,M,g.textBaseline),w,M))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,v=l&&!h,c=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(ht),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=a,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=J(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(br),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=J(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=vo(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return wb(e)&&(i=[e.fontStyle,e.fontWeight,xb(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Ae(i)||e.textFont||e.font},t}(ga),Sb={left:!0,right:1,center:1},bb={top:1,bottom:1,middle:1},Gc=["fontStyle","fontWeight","fontSize","fontFamily"];function xb(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?If+"px":r+"px"}function Wc(r,t){for(var e=0;e<Gc.length;e++){var i=Gc[e],n=t[i];n!=null&&(r[i]=n)}}function wb(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Tb(r){return Uc(r),T(r.rich,Uc),r}function Uc(r){if(r){r.font=bt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||Sb[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||bb[e]?e:"top";var i=r.padding;i&&(r.padding=hg(r.padding))}}function Yc(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Zc(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Xc(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function $c(r){var t=r.text;return t!=null&&(t+=""),t}function Tl(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var it=_t(),Cb=function(r,t,e,i){if(i){var n=it(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=it(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},qc=1,Kc={},Jg=_t(),Zf=_t(),Xf=0,ps=1,gs=2,Re=["emphasis","blur","select"],Qc=["normal","emphasis","blur","select"],Mb=10,Ab=9,Kr="highlight",bo="downplay",Hn="select",xo="unselect",Gn="toggleSelect";function vi(r){return r!=null&&r!=="none"}function ys(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function jg(r){ys(r,"emphasis",gs)}function ty(r){r.hoverState===gs&&ys(r,"normal",Xf)}function $f(r){ys(r,"blur",ps)}function ey(r){r.hoverState===ps&&ys(r,"normal",Xf)}function Db(r){r.selected=!0}function Lb(r){r.selected=!1}function Jc(r,t,e){t(r,e)}function Qe(r,t,e){Jc(r,t,e),r.isGroup&&r.traverse(function(i){Jc(i,t,e)})}function jc(r,t){switch(t){case"emphasis":r.hoverState=gs;break;case"normal":r.hoverState=Xf;break;case"blur":r.hoverState=ps;break;case"select":r.selected=!0}}function Ib(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Pb(r,t,e,i){var n=e&&j(e,"select")>=0,a=!1;if(r instanceof lt){var o=Jg(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(vi(s)||vi(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=B({},i),u=B({},u),u.fill=s):!vi(u.fill)&&vi(s)?(a=!0,i=B({},i),u=B({},u),u.fill=gc(s)):!vi(u.stroke)&&vi(l)&&(a||(i=B({},i),u=B({},u)),u.stroke=gc(l)),i.style=u}}if(i&&i.z2==null){a||(i=B({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Mb)}return i}function Rb(r,t,e){if(e&&e.z2==null){e=B({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??Ab)}return e}function Eb(r,t,e){var i=j(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:Ib(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Cl(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Pb(this,r,t,e);if(r==="blur")return Eb(this,r,e);if(r==="select")return Rb(this,r,e)}return e}function kb(r){r.stateProxy=Cl;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Cl),e&&(e.stateProxy=Cl)}function tv(r,t){!ay(r,t)&&!r.__highByOuter&&Qe(r,jg)}function ev(r,t){!ay(r,t)&&!r.__highByOuter&&Qe(r,ty)}function Hi(r,t){r.__highByOuter|=1<<(t||0),Qe(r,jg)}function Gi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Qe(r,ty)}function Ob(r){Qe(r,$f)}function ry(r){Qe(r,ey)}function iy(r){Qe(r,Db)}function ny(r){Qe(r,Lb)}function ay(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function oy(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=Zf(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){ey(u)}),s&&e.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Fu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&ry(v)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=i.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||$f(g)}),Ht(t))a(u.getData(),t);else if(H(t))for(var d=dt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),Zf(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function zu(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){Zf(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){$f(a)})}}}function Bb(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=jr(n,t);a=(F(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=it(o);Fu(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Fu(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),l,u=0;u<s.length;u++)if(it(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Nb(r,t,e){var i=it(r),n=qf(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&zu(i.componentMainType,i.componentIndex,e),T(a,function(s){return tv(s,t)})):(Fu(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&zu(i.componentMainType,i.componentIndex,e),tv(r,t))}function Fb(r,t,e){oy(e);var i=it(r),n=qf(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?T(n,function(a){return ev(a,t)}):ev(r,t)}function zb(r,t,e){if(Gu(t)){var i=t.dataType,n=r.getData(i),a=jr(n,t);F(a)||(a=[a]),r[t.type===Gn?"toggleSelect":t.type===Hn?"select":"unselect"](a,i)}}function rv(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)?iy(a):ny(a)})})}function Vb(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 Wo(r,t,e){sy(r,!0),Qe(r,kb),Gb(r,t,e)}function Hb(r){sy(r,!1)}function Uo(r,t,e,i){i?Hb(r):Wo(r,t,e)}function Gb(r,t,e){var i=it(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var iv=["emphasis","blur","select"],Wb={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Vu(r,t,e,i){e=e||"itemStyle";for(var n=0;n<iv.length;n++){var a=iv[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[Wb[e]]()}}function sy(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 Hu(r){return!!(r&&r.__highDownDispatcher)}function Ub(r){var t=Kc[r];return t==null&&qc<=32&&(t=Kc[r]=qc++),t}function Gu(r){var t=r.type;return t===Hn||t===xo||t===Gn}function nv(r){var t=r.type;return t===Kr||t===bo}function Yb(r){var t=Jg(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 di=ti.CMD,Zb=[[],[],[]],av=Math.sqrt,Xb=Math.atan2;function $b(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=di.M,h=di.C,v=di.L,c=di.R,d=di.A,p=di.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=av(t[0]*t[0]+t[1]*t[1]),_=av(t[2]*t[2]+t[3]*t[3]),S=Xb(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],ue(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],ue(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var x=Zb[l];x[0]=e[o++],x[1]=e[o++],ue(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var Ml=Math.sqrt,Fa=Math.sin,za=Math.cos,hn=Math.PI;function ov(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Wu(r,t){return(r[0]*t[0]+r[1]*t[1])/(ov(r)*ov(t))}function sv(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Wu(r,t))}function lv(r,t,e,i,n,a,o,s,l,u,f){var h=l*(hn/180),v=za(h)*(r-e)/2+Fa(h)*(t-i)/2,c=-1*Fa(h)*(r-e)/2+za(h)*(t-i)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Ml(d),s*=Ml(d));var p=(n===a?-1:1)*Ml((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+e)/2+za(h)*g-Fa(h)*y,_=(t+i)/2+Fa(h)*g+za(h)*y,S=sv([1,0],[(v-g)/o,(c-y)/s]),x=[(v-g)/o,(c-y)/s],b=[(-1*v-g)/o,(-1*c-y)/s],w=sv(x,b);if(Wu(x,b)<=-1&&(w=hn),Wu(x,b)>=1&&(w=0),w<0){var M=Math.round(w/hn*1e6)/1e6;w=hn*2+M%2*hn}f.addData(u,m,_,o,s,S,w,h,a)}var qb=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Kb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qb(r){var t=new ti;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=ti.CMD,l=r.match(qb);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(Kb)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,M=e,C=i,D=void 0,A=void 0;switch(h){case"l":e+=c[g++],i+=c[g++],v=s.L,t.addData(v,e,i);break;case"L":e=c[g++],i=c[g++],v=s.L,t.addData(v,e,i);break;case"m":e+=c[g++],i+=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="l";break;case"M":e=c[g++],i=c[g++],v=s.M,t.addData(v,e,i),n=e,a=i,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,i);break;case"H":e=c[g++],v=s.L,t.addData(v,e,i);break;case"v":i+=c[g++],v=s.L,t.addData(v,e,i);break;case"V":i=c[g++],v=s.L,t.addData(v,e,i);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],i=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i,c[g++]+e,c[g++]+i),e+=c[g-2],i+=c[g-1];break;case"S":y=e,m=i,D=t.len(),A=t.data,o===s.C&&(y+=e-A[D-4],m+=i-A[D-3]),v=s.C,M=c[g++],C=c[g++],e=c[g++],i=c[g++],t.addData(v,y,m,M,C,e,i);break;case"s":y=e,m=i,D=t.len(),A=t.data,o===s.C&&(y+=e-A[D-4],m+=i-A[D-3]),v=s.C,M=e+c[g++],C=i+c[g++],e+=c[g++],i+=c[g++],t.addData(v,y,m,M,C,e,i);break;case"Q":M=c[g++],C=c[g++],e=c[g++],i=c[g++],v=s.Q,t.addData(v,M,C,e,i);break;case"q":M=c[g++]+e,C=c[g++]+i,e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,M,C,e,i);break;case"T":y=e,m=i,D=t.len(),A=t.data,o===s.Q&&(y+=e-A[D-4],m+=i-A[D-3]),e=c[g++],i=c[g++],v=s.Q,t.addData(v,y,m,e,i);break;case"t":y=e,m=i,D=t.len(),A=t.data,o===s.Q&&(y+=e-A[D-4],m+=i-A[D-3]),e+=c[g++],i+=c[g++],v=s.Q,t.addData(v,y,m,e,i);break;case"A":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],M=e,C=i,e=c[g++],i=c[g++],v=s.A,lv(M,C,e,i,b,w,_,S,x,v,t);break;case"a":_=c[g++],S=c[g++],x=c[g++],b=c[g++],w=c[g++],M=e,C=i,e+=c[g++],i+=c[g++],v=s.A,lv(M,C,e,i,b,w,_,S,x,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=n,i=a),o=v}return t.toStatic(),t}var ly=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(lt);function uy(r){return r.setData!=null}function fy(r,t){var e=Qb(r),i=B({},t);return i.buildPath=function(n){if(uy(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){$b(e,n),this.dirtyShape()},i}function Jb(r,t){return new ly(fy(r,t))}function jb(r,t){var e=fy(r,t),i=function(n){k(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(ly);return i}function tx(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 lt(t);return o.createPathProxy(),o.buildPath=function(s){if(uy(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var ex=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),ms=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ex},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}(lt);ms.prototype.type="circle";var rx=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Kf=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rx},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(lt);Kf.prototype.type="ellipse";var hy=Math.PI,Al=hy*2,Nr=Math.sin,pi=Math.cos,ix=Math.acos,Ct=Math.atan2,uv=Math.abs,Wn=Math.sqrt,Rn=Math.max,Ce=Math.min,pe=1e-4;function nx(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,v=h*l-f*u;if(!(v*v<pe))return v=(f*(t-a)-h*(r-n))/v,[r+v*l,t+v*u]}function Va(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/Wn(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=t+h,d=e+f,p=i+h,g=(v+d)/2,y=(c+p)/2,m=d-v,_=p-c,S=m*m+_*_,x=n-a,b=v*p-d*c,w=(_<0?-1:1)*Wn(Rn(0,x*x*S-b*b)),M=(b*_-m*w)/S,C=(-b*m-_*w)/S,D=(b*_+m*w)/S,A=(-b*m+_*w)/S,L=M-g,I=C-y,P=D-g,R=A-y;return L*L+I*I>P*P+R*R&&(M=D,C=A),{cx:M,cy:C,x0:-f,y0:-h,x1:M*(n/x-1),y1:C*(n/x-1)}}function ax(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 ox(r,t){var e,i=Rn(t.r,0),n=Rn(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 l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=uv(u-l),d=c>Al&&c%Al;if(d>pe&&(c=d),!(i>pe))r.moveTo(f,h);else if(c>Al-pe)r.moveTo(f+i*pi(l),h+i*Nr(l)),r.arc(f,h,i,l,u,!v),n>pe&&(r.moveTo(f+n*pi(u),h+n*Nr(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,M=void 0,C=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,R=i*pi(l),E=i*Nr(l),W=n*pi(u),O=n*Nr(u),N=c>pe;if(N){var G=t.cornerRadius;G&&(e=ax(G),p=e[0],g=e[1],y=e[2],m=e[3]);var Q=uv(i-n)/2;if(_=Ce(Q,y),S=Ce(Q,m),x=Ce(Q,p),b=Ce(Q,g),C=w=Rn(_,S),D=M=Rn(x,b),(w>pe||M>pe)&&(A=i*pi(u),L=i*Nr(u),I=n*pi(l),P=n*Nr(l),c<hy)){var at=nx(R,E,I,P,A,L,W,O);if(at){var ut=R-at[0],vt=E-at[1],Yt=A-at[0],pt=L-at[1],Fe=1/Nr(ix((ut*Yt+vt*pt)/(Wn(ut*ut+vt*vt)*Wn(Yt*Yt+pt*pt)))/2),ai=Wn(at[0]*at[0]+at[1]*at[1]);C=Ce(w,(i-ai)/(Fe+1)),D=Ce(M,(n-ai)/(Fe-1))}}}if(!N)r.moveTo(f+R,h+E);else if(C>pe){var Zt=Ce(y,C),xt=Ce(m,C),q=Va(I,P,R,E,i,Zt,v),et=Va(A,L,W,O,i,xt,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),C<w&&Zt===xt?r.arc(f+q.cx,h+q.cy,C,Ct(q.y0,q.x0),Ct(et.y0,et.x0),!v):(Zt>0&&r.arc(f+q.cx,h+q.cy,Zt,Ct(q.y0,q.x0),Ct(q.y1,q.x1),!v),r.arc(f,h,i,Ct(q.cy+q.y1,q.cx+q.x1),Ct(et.cy+et.y1,et.cx+et.x1),!v),xt>0&&r.arc(f+et.cx,h+et.cy,xt,Ct(et.y1,et.x1),Ct(et.y0,et.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,i,l,u,!v);if(!(n>pe)||!N)r.lineTo(f+W,h+O);else if(D>pe){var Zt=Ce(p,D),xt=Ce(g,D),q=Va(W,O,A,L,n,-xt,v),et=Va(R,E,I,P,n,-Zt,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D<M&&Zt===xt?r.arc(f+q.cx,h+q.cy,D,Ct(q.y0,q.x0),Ct(et.y0,et.x0),!v):(xt>0&&r.arc(f+q.cx,h+q.cy,xt,Ct(q.y0,q.x0),Ct(q.y1,q.x1),!v),r.arc(f,h,n,Ct(q.cy+q.y1,q.cx+q.x1),Ct(et.cy+et.y1,et.cx+et.x1),v),Zt>0&&r.arc(f+et.cx,h+et.cy,Zt,Ct(et.y1,et.x1),Ct(et.y0,et.x0),!v))}else r.lineTo(f+W,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var sx=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}(),Qi=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sx},t.prototype.buildPath=function(e,i){ox(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(lt);Qi.prototype.type="sector";var lx=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Qf=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new lx},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}(lt);Qf.prototype.type="ring";function ux(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Mi(f,f,r[v]),Ai(h,h,r[v]);Mi(f,f,i[0]),Ai(h,h,i[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){n.push(Z_(r[v]));continue}else l=r[v-1],u=r[v+1];X_(a,u,l),Zs(a,a,t);var p=_u(d,l),g=_u(d,u),y=p+g;y!==0&&(p/=y,g/=y),Zs(o,a,-p),Zs(s,a,g);var m=Jh([],d,o),_=Jh([],d,s);i&&(Ai(m,m,f),Mi(m,m,h),Ai(_,_,f),Mi(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function cy(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=ux(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 l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[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 fx=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),ya=function(r){k(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new fx},t.prototype.buildPath=function(e,i){cy(e,i,!0)},t}(lt);ya.prototype.type="polygon";var hx=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),ma=function(r){k(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 hx},t.prototype.buildPath=function(e,i){cy(e,i,!1)},t}(lt);ma.prototype.type="polyline";var cx={},vx=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),mr=function(r){k(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 vx},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Kg(cx,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),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}(lt);mr.prototype.type="line";var Bt=[],dx=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 fv(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?fc:wt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?fc:wt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?hc:Ft)(r.x1,r.cpx1,r.x2,t),(e?hc:Ft)(r.y1,r.cpy1,r.y2,t)]}var Jf=function(r){k(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 dx},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,v=i.percent;v!==0&&(e.moveTo(n,a),f==null||h==null?(v<1&&(Bo(n,l,o,v,Bt),l=Bt[1],o=Bt[2],Bo(a,u,s,v,Bt),u=Bt[1],s=Bt[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(Oo(n,l,f,o,v,Bt),l=Bt[1],f=Bt[2],o=Bt[3],Oo(a,u,h,s,v,Bt),u=Bt[1],h=Bt[2],s=Bt[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return fv(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=fv(this.shape,e,!0);return K_(i,i)},t}(lt);Jf.prototype.type="bezier-curve";var px=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}(),_s=function(r){k(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 px},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t}(lt);_s.prototype.type="arc";var gx=function(r){k(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),lt.prototype.getBoundingRect.call(this)},t}(lt),vy=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),dy=function(r){k(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(vy),yx=function(r){k(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}(vy),Fr=[0,0],zr=[0,0],Ha=new ft,Ga=new ft,Yo=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ft;for(var i=0;i<2;i++)this._axes[i]=new ft;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,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);ft.sub(n[0],i[1],i[0]),ft.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return Ha.set(1/0,1/0),Ga.set(0,0),!this._intersectCheckOneSide(this,t,Ha,Ga,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,Ha,Ga,n,-1)&&(i=!1,n)||n||ft.copy(e,i?Ha:Ga),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Fr),this._getProjMinMaxOnAxis(l,e._corners,zr),Fr[1]<zr[0]||Fr[0]>zr[1]){if(s=!1,a)return s;var f=Math.abs(zr[0]-Fr[1]),h=Math.abs(Fr[0]-zr[1]);Math.min(f,h)>n.len()&&(f<h?ft.scale(n,u,-f*o):ft.scale(n,u,h*o))}else if(i){var f=Math.abs(zr[0]-Fr[1]),h=Math.abs(Fr[0]-zr[1]);Math.min(f,h)<i.len()&&(f<h?ft.scale(i,u,f*o):ft.scale(i,u,-h*o))}}return s},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,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}(),mx=[],_x=function(r){k(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 ot(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(mx)),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}(ga),Sx=_t();function bx(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(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=J(i.duration,200),f=J(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Z(h)&&(h=h(e,n)),Z(u)&&(u=u(e));var v={duration:u||0,delay:h,easing:f};return v}else return null}function jf(r,t,e,i,n,a,o){var s=!1,l;Z(n)?(o=a,a=n,n=null):H(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=bx(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,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 Qt(r,t,e,i,n,a){jf("update",r,t,e,i,n,a)}function qe(r,t,e,i,n,a){jf("enter",r,t,e,i,n,a)}function Un(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 Zo(r,t,e,i,n,a){Un(r)||jf("leave",r,t,e,i,n,a)}function hv(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Zo(r,{style:{opacity:0}},t,e,i)}function Uu(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||hv(n,t,e,i)}):hv(r,t,e,i)}function py(r){Sx(r).oldStyle=r.style}var Xo=Math.max,$o=Math.min,Yu={};function xx(r){return lt.extend(r)}var Tx=jb;function Cx(r,t){return Tx(r,t)}function be(r,t){Yu[r]=t}function Mx(r){if(Yu.hasOwnProperty(r))return Yu[r]}function th(r,t,e,i){var n=Jb(r,t);return e&&(i==="center"&&(e=yy(e,n.getBoundingRect())),my(n,e)),n}function gy(r,t,e){var i=new br({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(yy(t,a))}}});return i}function yy(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 Ax=tx;function my(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function ta(r,t){return Kg(r,r,{lineWidth:t}),r}function Dx(r){return Qg(r.shape,r.shape,r.style),r}var Lx=Zr;function Ss(r,t){for(var e=Bf([]);r&&r!==t;)Ri(e,r.getLocalTransform(),e),r=r.parent;return e}function ea(r,t,e){return t&&!Ht(t)&&(t=Vf.getLocalTransform(t)),e&&(t=Ff([],t)),ue([],r,t)}function eh(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=ea(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function cv(r){return!r.isGroup}function Ix(r){return r.shape!=null}function _y(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){cv(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ix(o)&&(s.shape=B({},o.shape)),s}var a=i(r);t.traverse(function(o){if(cv(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Qt(o,l,e,it(o).dataIndex)}}})}function Sy(r,t){return V(r,function(e){var i=e[0];i=Xo(i,t.x),i=$o(i,t.x+t.width);var n=e[1];return n=Xo(n,t.y),n=$o(n,t.y+t.height),[i,n]})}function Px(r,t){var e=Xo(r.x,t.x),i=$o(r.x+r.width,t.x+t.width),n=Xo(r.y,t.y),a=$o(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 bs(r,t,e){var i=B({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),tt(n,e),new br(i)):th(r.replace("path://",""),i,e,"center")}function Rx(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(by(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function by(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,v=Dl(f,h,l,u);if(Ex(v))return!1;var c=r-n,d=t-a,p=Dl(c,d,l,u)/v;if(p<0||p>1)return!1;var g=Dl(c,d,f,h)/v;return!(g<0||g>1)}function Dl(r,t,e,i){return r*i-e*t}function Ex(r){return r<=1e-6&&r>=-1e-6}function xs(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(dt(l),function(f){zi(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=it(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:tt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function vv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ws(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)vv(r[e],t);else vv(r,t)}be("circle",ms);be("ellipse",Kf);be("sector",Qi);be("ring",Qf);be("polygon",ya);be("polyline",ma);be("rect",ht);be("line",mr);be("bezierCurve",Jf);be("arc",_s);const kx=Object.freeze(Object.defineProperty({__proto__:null,Arc:_s,BezierCurve:Jf,BoundingRect:ot,Circle:ms,CompoundPath:gx,Ellipse:Kf,Group:yt,Image:br,IncrementalDisplayable:_x,Line:mr,LinearGradient:dy,OrientedBoundingRect:Yo,Path:lt,Point:ft,Polygon:ya,Polyline:ma,RadialGradient:yx,Rect:ht,Ring:Qf,Sector:Qi,Text:bt,applyTransform:ea,clipPointsByRect:Sy,clipRectByRect:Px,createIcon:bs,extendPath:Cx,extendShape:xx,getShapeClass:Mx,getTransform:Ss,groupTransition:_y,initProps:qe,isElementRemoved:Un,lineLineIntersect:by,linePolygonIntersect:Rx,makeImage:gy,makePath:th,mergePath:Ax,registerShape:be,removeElement:Zo,removeElementWithFadeOut:Uu,resizePath:my,setTooltipConfig:xs,subPixelOptimize:Lx,subPixelOptimizeLine:ta,subPixelOptimizeRect:Dx,transformDirection:eh,traverseElements:ws,updateProps:Qt},Symbol.toStringTag,{value:"Module"}));var Ts={};function Ox(r,t){for(var e=0;e<Re.length;e++){var i=Re[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 dv(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=Z(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<Re.length;u++){var f=Re[u],h=t[f];l[f]=J(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function Cs(r,t,e,i){e=e||Ts;for(var n=r instanceof bt,a=!1,o=0;o<Qc.length;o++){var s=t[Qc[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new bt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=dv(e,t),f=t.normal,h=!!f.getShallow("show"),v=Ke(f,i&&i.normal,e,!1,!n);v.text=u.normal,n||r.setTextConfig(pv(f,e,!1));for(var o=0;o<Re.length;o++){var c=Re[o],s=t[c];if(s){var d=l.ensureState(c),p=!!J(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Ke(s,i&&i[c],e,!0,!n),d.style.text=u[c],!n){var g=r.ensureState(c);g.textConfig=pv(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),e.enableTextSetter&&(As(l).setLabelText=function(y){var m=dv(e,t,y);Ox(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ms(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Re.length;i++){var n=Re[i];e[n]=r.getModel([n,t])}return e}function Ke(r,t,e,i,n){var a={};return Bx(a,r,e,i,n),t&&B(a,t),a}function pv(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=J(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",i}function Bx(r,t,e,i,n){e=e||Ts;var a=t.ecModel,o=a&&a.option.textStyle,s=Nx(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);_v(l[u]={},f,o,e,i,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),_v(r,t,o,e,i,n,!0,!1)}function Nx(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Ts).rich;if(e){t=t||{};for(var i=dt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var gv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],yv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],mv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _v(r,t,e,i,n,a,o,s){e=!n&&e||Ts;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=J(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=J(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=J(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var p=0;p<gv.length;p++){var g=gv[p],y=J(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<yv.length;p++){var g=yv[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!i.disableBox){for(var p=0;p<mv.length;p++){var g=mv[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function xy(r,t){var e=t&&t.getModel("textStyle");return Ae([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 As=_t();function Fx(r,t,e,i){if(r){var n=As(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 zx=["textStyle","color"],Ll=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Il=new bt,Vx=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(zx):null)},r.prototype.getFont=function(){return xy({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<Ll.length;i++)e[Ll[i]]=this.getShallow(Ll[i]);return Il.useStyle(e),Il.update(),Il.getBoundingRect()},r}(),wy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Hx=jn(wy),Gx=function(){function r(){}return r.prototype.getLineStyle=function(t){return Hx(this,t)},r}(),Ty=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Wx=jn(Ty),Ux=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return Wx(this,t,e)},r}(),gt=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){K(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($(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(!X.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(gt);RS(gt);ke(gt,Gx);ke(gt,Ux);ke(gt,NS);ke(gt,Vx);var Yx=Math.round(Math.random()*10);function _a(r){return[r||"",Yx++].join("_")}function Zx(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=De(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=De(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function Xx(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,v={};for(T(a,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),T(d.successor,p?y:g)}T(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function e(a){var o={},s=[];return T(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),T(h,function(v){j(u.predecessor,v)<0&&u.predecessor.push(v);var c=i(o,v);j(c.successor,v)<0&&c.successor.push(l)})}),{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(l){j(o,l)>=0&&s.push(l)}),s}}function Ds(r,t){return K(K({},r,!0),t,!0)}const $x={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:". "}}}},qx={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 qo="ZH",rh="EN",ki=rh,wo={},ih={},Cy=X.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ki).toUpperCase();return r.indexOf(qo)>-1?qo:ki}():ki;function My(r,t){r=r.toUpperCase(),ih[r]=new gt(t),wo[r]=t}function Kx(r){if(z(r)){var t=wo[r.toUpperCase()]||{};return r===qo||r===rh?$(t):K($(t),$(wo[ki]),!1)}else return K($(r),$(wo[ki]),!1)}function Qx(r){return ih[r]}function Jx(){return ih[ki]}My(rh,$x);My(qo,qx);var nh=1e3,ah=nh*60,Yn=ah*60,le=Yn*24,Sv=le*365,En={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Wa="{yyyy}-{MM}-{dd}",bv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wa,hour:Wa+" "+En.hour,minute:Wa+" "+En.minute,second:Wa+" "+En.second,millisecond:En.none},Pl=["year","month","day","hour","minute","second","millisecond"],Ay=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function er(r,t){return r+="","0000".substr(0,t-r.length)+r}function Oi(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 jx(r){return r===Oi(r)}function tw(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ls(r,t,e,i){var n=$e(r),a=n[oh(e)](),o=n[Bi(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Is(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[ra(e)](),h=(f-1)%12+1,v=n[Ps(e)](),c=n[Rs(e)](),d=n[Es(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=i instanceof gt?i:Qx(i||Cy)||Jx(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,er(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,er(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,er(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,er(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,er(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,er(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,er(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,er(d,3)).replace(/{S}/g,d+"")}function ew(r,t,e,i,n){var a=null;if(z(e))a=e;else if(Z(e))a=e(r.value,t,{level:r.level});else{var o=B({},En);if(r.level>0)for(var s=0;s<Pl.length;++s)o[Pl[s]]="{primary|"+o[Pl[s]]+"}";var l=e?e.inherit===!1?e:tt(e,o):o,u=Dy(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=Ay.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Ls(new Date(r.value),a,n,i)}function Dy(r,t){var e=$e(r),i=e[Bi(t)]()+1,n=e[Is(t)](),a=e[ra(t)](),o=e[Ps(t)](),s=e[Rs(t)](),l=e[Es(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&n===1,d=c&&i===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function xv(r,t,e){var i=ct(r)?$e(r):r;switch(t=t||Dy(r,e),t){case"year":return i[oh(e)]();case"half-year":return i[Bi(e)]()>=6?1:0;case"quarter":return Math.floor((i[Bi(e)]()+1)/4);case"month":return i[Bi(e)]();case"day":return i[Is(e)]();case"half-day":return i[ra(e)]()/24;case"hour":return i[ra(e)]();case"minute":return i[Ps(e)]();case"second":return i[Rs(e)]();case"millisecond":return i[Es(e)]()}}function oh(r){return r?"getUTCFullYear":"getFullYear"}function Bi(r){return r?"getUTCMonth":"getMonth"}function Is(r){return r?"getUTCDate":"getDate"}function ra(r){return r?"getUTCHours":"getHours"}function Ps(r){return r?"getUTCMinutes":"getMinutes"}function Rs(r){return r?"getUTCSeconds":"getSeconds"}function Es(r){return r?"getUTCMilliseconds":"getMilliseconds"}function rw(r){return r?"setUTCFullYear":"setFullYear"}function Ly(r){return r?"setUTCMonth":"setMonth"}function Iy(r){return r?"setUTCDate":"setDate"}function Py(r){return r?"setUTCHours":"setHours"}function Ry(r){return r?"setUTCMinutes":"setMinutes"}function Ey(r){return r?"setUTCSeconds":"setSeconds"}function ky(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Oy(r){if(!fS(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function By(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 ks=hg;function Zu(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ae(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?$e(r):r;if(isNaN(+l)){if(s)return"-"}else return Ls(l,i,e)}if(t==="ordinal")return mu(r)?n(r):ct(r)&&a(r)?r+"":"-";var u=Ho(r);return a(u)?Oy(u):mu(r)?n(r):typeof r=="boolean"?r+"":"-"}var wv=["a","b","c","d","e","f","g"],Rl=function(r,t){return"{"+r+(t??"")+"}"};function Ny(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=wv[a];r=r.replace(Rl(o),Rl(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Rl(wv[l],s),e?$t(u):u)}return r}function iw(r,t){var e=z(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 ei(r,t){return t=t||"transparent",z(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Tv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var To=T,nw=["left","right","top","bottom","width","height"],Ua=[["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(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=a+p,c>i||l.newline?(a=0,c=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var Ni=sh;nt(sh,"vertical");nt(sh,"horizontal");function _r(r,t,e){e=ks(e||0);var i=t.width,n=t.height,a=Tt(r.left,i),o=Tt(r.top,n),s=Tt(r.right,i),l=Tt(r.bottom,n),u=Tt(r.width,i),f=Tt(r.height,n),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=i-s-v-a),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=i-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-v;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(u)&&(u=i-v-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new ot(a+e[3],o+e[0],u,f);return d.margin=e,d}function aw(r,t,e,i,n,a){a=a||r,a.x=r.x,a.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=_r(tt({width:o.width,height:o.height},t),e,i),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===r&&r.markRedraw(),!0}function ia(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Wi(r,t,e){var i=e&&e.ignoreSize;!F(i)&&(i=[i,i]);var n=o(Ua[0],0),a=o(Ua[1],1);u(Ua[0],r,n),u(Ua[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(To(f,function(_){d[_]=r[_]}),To(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&p++}),i[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){To(f,function(c){h[c]=v[c]})}}function Sa(r){return ow({},r)}function ow(r,t){return t&&r&&To(nw,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var sw=_t(),rt=function(r){k(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=_a("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ia(this),a=n?Sa(e):{},o=i.getTheme();K(e,o.get(this.mainType)),K(e,this.getDefaultOption()),n&&Wi(e,a,n)},t.prototype.mergeOption=function(e,i){K(this.option,e,!0);var n=ia(this);n&&Wi(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!LS(e))return e.defaultOption;var i=sw(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={},l=n.length-1;l>=0;l--)s=K(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return pa(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},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}(gt);Wg(rt,gt);cs(rt);Zx(rt);Xx(rt,lw);function lw(r){var t=[];return T(rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=V(t,function(e){return De(e).main}),r!=="dataset"&&j(t,"dataset")<=0&&t.unshift("dataset"),t}var Fy="";typeof navigator<"u"&&(Fy=navigator.platform||"");var gi="rgba(0, 0, 0, 0.2)";const uw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Fy.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 zy=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),he="original",Wt="arrayRows",Oe="objectRows",Je="keyedColumns",pr="typedArray",Vy="unknown",Ie="column",Ji="row",Xt={Must:1,Might:2,Not:3},Hy=_t();function fw(r){Hy(r).datasetMap=Y()}function hw(r,t,e){var i={},n=Gy(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=Hy(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),T(r,function(p,g){var y=H(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),i[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(i[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(i[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(i[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Gy(r){var t=r.get("data",!0);if(!t)return pa(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Et).models[0]}function cw(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:pa(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Et).models}function Wy(r,t){return vw(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function vw(r,t,e,i,n,a){var o,s=5;if(Gt(r))return Xt.Not;var l,u;if(i){var f=i[a];H(f)?(l=f.name,u=f.type):z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Xt.Must:Xt.Not;if(t===Wt){var h=r;if(e===Ji){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[n+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[n+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Oe){var p=r;if(!l)return Xt.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Je){var y=r;if(!l)return Xt.Not;var v=y[l];if(!v||Gt(v))return Xt.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===he)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=da(g);if(!F(_))return Xt.Not;if((o=S(_[a]))!=null)return o}function S(x){var b=z(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?Xt.Might:Xt.Not;if(b&&x!=="-")return Xt.Must}return Xt.Not}var Xu=Y();function dw(r,t){Pe(Xu.get(r)==null&&t),Xu.set(r,t)}function pw(r,t,e){var i=Xu.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var Cv=_t();_t();var lh=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Ot(this.get("color",!0)),a=this.get("colorLayer",!0);return yw(this,Cv,n,a,t,e,i)},r.prototype.clearColorPalette=function(){mw(this,Cv)},r}();function gw(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 yw(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:gw(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function mw(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ya,cn,Mv,Av="\0_ec_inner",_w=1,uh=function(r){k(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 gt(a),this._locale=new gt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=Iv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Iv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Mv(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 l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,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=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;fw(this),T(e,function(h,v){h!=null&&(rt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?$(h):K(n[v],h,!0))}),u&&u.each(function(h,v){rt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),rt.topologicalTravel(s,rt.getAllClassMainTypes(),f,this);function f(h){var v=pw(this,h,Ot(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=cS(c,v,d);SS(p,h,rt),n[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=h==="series",C=rt.getClass(h,S.keyInfo.subType,!M);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var D=B({componentIndex:x},S.keyInfo);b=new C(w,this,this,D),B(b,D),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Ya(this)}this._seriesIndices||Ya(this)},t.prototype.getOption=function(){var e=$(this.option);return T(e,function(i,n){if(rt.hasClass(n)){for(var a=Ot(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Jn(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Av],e},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 l;return n!=null?(l=[],T(Ot(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=Dv("id",a,s):o!=null?l=Dv("name",o,s):l=Lt(s,function(u){return!!u}),Lv(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):Lt(this._componentsMap.get(n),function(u){return!!u});return l(Lv(o,e));function s(u){var f=n+"Index",h=n+"Id",v=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:n,index:u[f],id:u[h],name:u[v]}:null}function l(u){return e.filter?Lt(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(Z(e)){var o=i,s=e;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=z(e)?a.get(e):H(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Le(e,null);return Lt(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 Lt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Lt(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=Y(n)},t.prototype.restoreData=function(e){Ya(this);var i=this._componentsMap,n=[];i.each(function(a,o){rt.hasClass(o)&&n.push(o)}),rt.topologicalTravel(n,rt.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!Sw(o,e))&&o.restoreData()})})},t.internalField=function(){Ya=function(e){var i=e._seriesIndices=[];T(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Y(i)},cn=function(e){},Mv=function(e,i){e.option={},e.option[Av]=_w,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=i.aria;H(n)&&n.enabled==null&&(n.enabled=!0),bw(i,e._theme.option),K(i,uw,!1),e._mergeOption(i,null)}}(),t}(gt);function Sw(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 bw(r,t){var e=r.color&&!r.colorLayer;T(t,function(i,n){n==="colorLayer"&&e||rt.hasClass(n)||(typeof i=="object"?r[n]=r[n]?K(r[n],i,!1):$(i):r[n]==null&&(r[n]=i))})}function Dv(r,t,e){if(F(t)){var i=Y();return T(t,function(a){if(a!=null){var o=Le(a,null);o!=null&&i.set(a,!0)}}),Lt(e,function(a){return a&&i.get(a[r])})}else{var n=Le(t,null);return Lt(e,function(a){return a&&n!=null&&a[r]===n})}}function Lv(r,t){return t.hasOwnProperty("subType")?Lt(r,function(e){return e&&e.subType===t.subType}):r}function Iv(r){var t=Y();return r&&T(Ot(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ke(uh,lh);var xw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Uy=function(){function r(t){T(xw,function(e){this[e]=U(t[e],t)},this)}return r}(),El={},fh=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];T(El,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){T(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){El[t]=e},r.get=function(t){return El[t]},r}(),ww=/^(min|max)?(.+)$/,Tw=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(T(Ot(t.series),function(o){o&&o.data&&Gt(o.data)&&Po(o.data)}),T(Ot(t.dataset),function(o){o&&o.source&&Gt(o.source)&&Po(o.source)})),t=$(t);var n=this._optionBackup,a=Cw(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=[],$(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=$(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 l=0,u=n.length;l<u;l++)Mw(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Dw(o,this._currentMediaIndices)&&(s=V(o,function(f){return $(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function Cw(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&F(u)&&T(u,function(c){c&&c.option&&(c.query?i.push(c):n||(n=c))}),v(a),T(l,function(c){return v(c)}),T(i,function(c){return v(c.option)});function v(c){T(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function Mw(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return T(r,function(a,o){var s=o.match(ww);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Aw(i[u],a,l)||(n=!1)}}),n}function Aw(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function Dw(r,t){return r.join(",")===t.join(",")}var ce=T,na=H,Pv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kl(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=Pv.length;e<i;e++){var n=Pv[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?K(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?K(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Dt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,tt(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function kn(r){Dt(r,"itemStyle"),Dt(r,"lineStyle"),Dt(r,"areaStyle"),Dt(r,"label"),Dt(r,"labelLine"),Dt(r,"upperLabel"),Dt(r,"edgeLabel")}function mt(r,t){var e=na(r)&&r[t],i=na(e)&&e.textStyle;if(i)for(var n=0,a=Rc.length;n<a;n++){var o=Rc[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function ie(r){r&&(kn(r),mt(r,"label"),r.emphasis&&mt(r.emphasis,"label"))}function Lw(r){if(na(r)){kl(r),kn(r),mt(r,"label"),mt(r,"upperLabel"),mt(r,"edgeLabel"),r.emphasis&&(mt(r.emphasis,"label"),mt(r.emphasis,"upperLabel"),mt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(kl(t),ie(t));var e=r.markLine;e&&(kl(e),ie(e));var i=r.markArea;i&&ie(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Gt(a))for(var o=0;o<a.length;o++)ie(a[o]);T(r.categories,function(u){kn(u)})}if(n&&!Gt(n))for(var o=0;o<n.length;o++)ie(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ie(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)F(l[o])?(ie(l[o][0]),ie(l[o][1])):ie(l[o]);r.type==="gauge"?(mt(r,"axisLabel"),mt(r,"title"),mt(r,"detail")):r.type==="treemap"?(Dt(r.breadcrumb,"itemStyle"),T(r.levels,function(u){kn(u)})):r.type==="tree"&&kn(r.leaves)}}function Ve(r){return F(r)?r:r?[r]:[]}function Rv(r){return(F(r)?r[0]:r)||{}}function Iw(r,t){ce(Ve(r.series),function(i){na(i)&&Lw(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ce(e,function(i){ce(Ve(r[i]),function(n){n&&(mt(n,"axisLabel"),mt(n.axisPointer,"label"))})}),ce(Ve(r.parallel),function(i){var n=i&&i.parallelAxisDefault;mt(n,"axisLabel"),mt(n&&n.axisPointer,"label")}),ce(Ve(r.calendar),function(i){Dt(i,"itemStyle"),mt(i,"dayLabel"),mt(i,"monthLabel"),mt(i,"yearLabel")}),ce(Ve(r.radar),function(i){mt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),ce(Ve(r.geo),function(i){na(i)&&(ie(i),ce(Ve(i.regions),function(n){ie(n)}))}),ce(Ve(r.timeline),function(i){ie(i),Dt(i,"label"),Dt(i,"itemStyle"),Dt(i,"controlStyle",!0);var n=i.data;F(n)&&T(n,function(a){H(a)&&(Dt(a,"label"),Dt(a,"itemStyle"))})}),ce(Ve(r.toolbox),function(i){Dt(i,"iconStyle"),ce(i.feature,function(n){Dt(n,"iconStyle")})}),mt(Rv(r.axisPointer),"label"),mt(Rv(r.tooltip).axisPointer,"label")}function Pw(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 Rw(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 Ev(r){r&&T(Ew,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var Ew=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],kw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ol=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function vn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ol.length;e++){var i=Ol[e][1],n=Ol[e][0];t[i]!=null&&(t[n]=t[i])}}function kv(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Ov(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function Ow(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Yy(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Yy(r[e].children,t)}function Zy(r,t){Iw(r,t),r.series=Ot(r.series),T(r.series,function(e){if(H(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),kv(e.label);var n=e.data;if(n&&!Gt(n))for(var a=0;a<n.length;a++)kv(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=Pw(e,"pointer.color");o!=null&&Rw(e,"itemStyle.color",o)}else if(i==="bar"){vn(e),vn(e.backgroundStyle),vn(e.emphasis);var n=e.data;if(n&&!Gt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(vn(n[a]),vn(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)),Ov(e),Yy(e.data,Ov)}else i==="graph"||i==="sankey"?Ow(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&tt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Ev(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(kw,function(e){var i=r[e];i&&(F(i)||(i=[i]),T(i,function(n){Ev(n)}))})}function Bw(r){var t=Y();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.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(Nw)}function Nw(r){T(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return n;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=sS(v,m),p=m;break}}}return i[0]=v,i[1]=p,i})})}var Os=function(){function r(t){this.data=t.data||(t.sourceFormat===Je?{}:[]),this.sourceFormat=t.sourceFormat||Vy,this.seriesLayoutBy=t.seriesLayoutBy||Ie,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&&Wy(this,i)===Xt.Must&&(n.type="ordinal")}}return r}();function hh(r){return r instanceof Os}function $u(r,t,e){e=e||$y(r);var i=t.seriesLayoutBy,n=zw(r,e,i,t.sourceHeader,t.dimensions),a=new Os({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:$(t)});return a}function Xy(r){return new Os({data:r,sourceFormat:Gt(r)?pr:he})}function Fw(r){return new Os({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function $y(r){var t=Vy;if(Gt(r))t=pr;else if(F(r)){r.length===0&&(t=Wt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(F(n)||Gt(n)){t=Wt;break}else if(H(n)){t=Oe;break}}}}else if(H(r)){for(var a in r)if(zi(r,a)&&Ht(r[a])){t=Je;break}}return t}function zw(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Bv(n),startIndex:o,dimensionsDetectedCount:a};if(t===Wt){var s=r;i==="auto"||i==null?Nv(function(u){u!=null&&u!=="-"&&(z(u)?o==null&&(o=1):o=0)},e,s,10):o=ct(i)?i:i?1:0,!n&&o===1&&(n=[],Nv(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===Ji?s.length:s[0]?s[0].length:null}else if(t===Oe)n||(n=Vw(r));else if(t===Je)n||(n=[],T(r,function(u,f){n.push(f)}));else if(t===he){var l=da(r[0]);a=F(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Bv(n),dimensionsDetectedCount:a}}function Vw(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return dt(e)}function Bv(r){if(r){var t=Y();return V(r,function(e,i){e=H(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 Nv(r,t,e,i){if(t===Ji)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 qy(r){var t=r.sourceFormat;return t===Oe||t===Je}var Vr,Hr,Gr,Fv,zv,Ky=function(){function r(t,e){var i=hh(t)?t:Xy(t);this._source=i;var n=this._data=i.data;i.sourceFormat===pr&&(this._offset=0,this._dimSize=e,this._data=n),zv(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;zv=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Fv[ch(u,f)];if(B(o,c),u===pr)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=Qy(u,f);o.getItem=U(d,null,s,h,v);var p=Jy(u,f);o.count=U(p,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Fv=(t={},t[Wt+"_"+Ie]={pure:!0,appendData:a},t[Wt+"_"+Ji]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oe]={pure:!0,appendData:a},t[Je]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[he]={appendData:a},t[pr]={persistent:!1,pure:!0,appendData:function(o){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}(),Vv=function(r,t,e,i){return r[i]},Hw=(Vr={},Vr[Wt+"_"+Ie]=function(r,t,e,i){return r[i+t]},Vr[Wt+"_"+Ji]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Vr[Oe]=Vv,Vr[Je]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[i]:null}return a},Vr[he]=Vv,Vr);function Qy(r,t){var e=Hw[ch(r,t)];return e}var Hv=function(r,t,e){return r.length},Gw=(Hr={},Hr[Wt+"_"+Ie]=function(r,t,e){return Math.max(0,r.length-t)},Hr[Wt+"_"+Ji]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Hr[Oe]=Hv,Hr[Je]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Hr[he]=Hv,Hr);function Jy(r,t){var e=Gw[ch(r,t)];return e}var Bl=function(r,t,e){return r[t]},Ww=(Gr={},Gr[Wt]=Bl,Gr[Oe]=function(r,t,e){return r[e]},Gr[Je]=Bl,Gr[he]=function(r,t,e){var i=da(r);return i instanceof Array?i[t]:i},Gr[pr]=Bl,Gr);function jy(r){var t=Ww[r];return t}function ch(r,t){return r===Wt?r+"_"+t:r}function Ui(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 jy(a)(i,o,s)}else{var l=i;return a===he&&(l=da(i)),l}}}}var Uw=/\{@(.+?)\}/g,Yw=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),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&F(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Z(a))return l.status=e,l.dimensionIndex=n,a(l);if(z(a)){var f=Ny(a,l);return f.replace(Uw,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=Ui(s,t,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ui(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Gv(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Zn(r){return new Zw(r)}var Zw=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,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!i&&(h||c<d)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}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){Wv.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Wv.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){(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}(),Wv=function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,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 l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}}();function Co(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ct(r)&&r!=null&&r!=="-"&&(r=+$e(r)),r==null||r===""?NaN:Number(r))}Y({number:function(r){return parseFloat(r)},time:function(r){return+$e(r)},trim:function(r){return z(r)?Ae(r):r}});var Xw=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=ct(t)?t:Ho(t),n=ct(e)?e:Ho(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),l=z(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),$w=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 Co(t,e)},r}();function qw(r,t){var e=new $w,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ie&&zt(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";zi(l,y)&&zt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Qy(n,Ie);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(i,a,s,p)},e.getRawData=U(Kw,null,r)),e.cloneRawData=U(Qw,null,r);var v=Jy(n,Ie);e.count=U(v,null,i,a,s);var c=jy(n);e.retrieveValue=function(p,g){var y=h(i,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return e.getDimensionInfo=U(Jw,null,s,l),e.cloneAllDimensionInfo=U(jw,null,s),e}function Kw(r){var t=r.sourceFormat;if(!vh(t)){var e="";zt(e)}return r.data}function Qw(r){var t=r.sourceFormat,e=r.data;if(!vh(t)){var i="";zt(i)}if(t===Wt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===Oe){for(var n=[],a=0,o=e.length;a<o;a++)n.push(B({},e[a]));return n}}function Jw(r,t,e){if(e!=null){if(ct(e)||!isNaN(e)&&!zi(t,e))return r[e];if(zi(t,e))return t[e]}}function jw(r){return $(r)}var tm=Y();function tT(r){r=$(r);var t=r.type,e="";t||zt(e);var i=t.split(":");i.length!==2&&zt(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,tm.set(t,r)}function eT(r,t,e){var i=Ot(r),n=i.length,a="";n||zt(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=rT(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function rT(r,t,e,i){var n="";t.length||zt(n),H(r)||zt(n);var a=r.type,o=tm.get(a);o||zt(n);var s=V(t,function(u){return qw(u,o)}),l=Ot(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));return V(l,function(u,f){var h="";H(u)||zt(h),u.data||zt(h);var v=$y(u.data);vh(v)||zt(h);var c,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Ie,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Ie,sourceHeader:0,dimensions:u.dimensions};return $u(u.data,c,null)})}function vh(r){return r===Wt||r===Oe}var Bs="undefined",iT=typeof Uint32Array===Bs?Array:Uint32Array,nT=typeof Uint16Array===Bs?Array:Uint16Array,em=typeof Int32Array===Bs?Array:Int32Array,Uv=typeof Float64Array===Bs?Array:Float64Array,rm={float:Uv,int:em,ordinal:Array,number:Array,time:Uv},Nl;function dn(r){return r>65535?iT:nT}function yi(){return[1/0,-1/0]}function aT(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Yv(r,t,e,i,n){var a=rm[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var qu=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Nl[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],qy(n),this._dimensions=V(e,function(o){return{type:o.type,property:o.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 rm[e||"float"](this._rawCount),this._rawExtent[a]=yi(),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]=yi());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[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){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(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];Yv(i,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=n[d],p=Nl.arrayRows.call(this,t[c]||h,f.property,c,d);i[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=yi()),Yv(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var v=[],c=t;c<e;c++){v=n.getItem(c,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!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.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=e-a[v],d=Math.abs(c);d<=i&&((d<s||d===s&&c>=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},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=dn(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=dn(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,v=0;v<n;v++){var c=void 0,d=i.getRawIndex(v);if(l===0)c=e(v);else if(l===1){var p=h[f][d];c=e(p,v)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=dt(t),a=n.length;if(!a)return this;var o=e.count(),s=dn(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=c[n[0]],y=0;y<i;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=c[n[0]],_=c[n[1]],S=t[n[1]][0],x=t[n[1]][1],y=0;y<i;y++){var m=g[y],b=_[y];(m>=h&&m<=v||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=c[n[0]][w];(m>=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var M=!0,w=e.getRawIndex(y),C=0;C<a;C++){var D=n[C],m=c[D][w];(m<t[D][0]||m>t[D][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,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(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=yi();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=n[e[c]][v];l[o]=h;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=n[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(dn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=a[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),M=d-1,C=a[u];f=-1,v=b;for(var D=-1,A=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=a[S];if(isNaN(x)){A++,D<0&&(D=S);continue}h=Math.abs((M-y)*(x-C)-(M-_)*(m-C)),h>f&&(f=h,v=S)}A>0&&A<w-b&&(c[s++]=Math.min(D,v),v=Math.max(D,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),i._count=s,i._indices=c,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=yi(),v=new(dn(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=i(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,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 l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=yi();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],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],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&&qi(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?aT(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=$(this._extent),t._rawExtent=$(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 Co(e[a],this._dimensions[a])}Nl={arrayRows:t,objectRows:function(e,i,n,a){return Co(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Co(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),im=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(Za(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Gt(s)?pr:he,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=J(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=J(h.sourceHeader,v.sourceHeader),p=J(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[$u(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);n=[$u(_,this._getSourceMetaRawOption(),null)],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(n!=null){var a="";t.length!==1&&Xv(a)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Xv(h),s.push(f),l.push(u._getVersionSign())}),i?o=eT(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[Fw(s[0])]),{sourceList:o,upstreamSignList:l}},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){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 l=this._getUpstreamSourceManagers()[0];Za(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new qu,s.initData(new Ky(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Za(t)){var e=Gy(t);return e?[e.getSourceManager()]:[]}else return V(cw(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Za(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 Zv(r){var t=r.option.transform;t&&Po(r.option.transform)}function Za(r){return r.mainType==="series"}function Xv(r){throw new Error(r)}var nm="line-height:1";function am(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",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 oT=[0,10,20,30],sT=["",`
`,`

`,`


`];function aa(r,t){return t.type=r,t}function Ku(r){return r.type==="section"}function om(r){return Ku(r)?lT:uT}function sm(r){if(Ku(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return T(r.blocks,function(n){var a=sm(n);a>=t&&(t=a+ +(i&&(!a||Ku(n)&&!n.noHeader)))}),t}return 0}function lT(r,t,e,i){var n=t.noHeader,a=fT(sm(t)),o=[],s=t.blocks||[];Pe(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(zi(u,l)){var f=new Xw(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,p){var g=t.valueFormatter,y=om(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):Qu(o.join(""),n?e:a.html);if(n)return h;var v=Zu(t.header,"ordinal",r.useUTC),c=am(i,r.renderMode).nameStyle;return r.renderMode==="richText"?lm(r,v,c)+a.richText+h:Qu('<div style="'+c+";"+nm+';">'+$t(v)+"</div>"+h,e)}function uT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],V(S,function(x,b){return Zu(x,F(c)?c[b]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=a?"":Zu(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=am(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":lm(r,v,m))+(o?"":vT(r,d,p,g,_)):Qu((s?"":h)+(a?"":hT(v,!s,m))+(o?"":cT(d,p,g,_)),e)}}function $v(r,t,e,i,n,a){if(r){var o=om(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function fT(r){return{html:oT[r],richText:sT[r]}}function Qu(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+nm+';">'+r+e+"</div>"}function hT(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+$t(r)+"</span>"}function cT(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+'">'+V(r,function(o){return $t(o)}).join("&nbsp;&nbsp;")+"</span>"}function lm(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function vT(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 dT(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ei(i)}function um(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Fl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Bg()}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=iw({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};F(e)?T(e,function(a){return B(i,a)}):B(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function pT(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),l=F(s),u=dT(t,e),f,h,v,c;if(o>1||l&&!o){var d=gT(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);c=f=Ui(n,e,a[0]),h=p.type}else c=f=l?s[0]:s;var g=Wf(t),y=g&&t.name||"",m=n.getName(e),_=i?y:m;return aa("section",{header:y,noHeader:i||!g,sortParam:c,blocks:[aa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ae(_),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function gT(r,t,e,i,n){var a=t.getData(),o=qi(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(h){f(Ui(a,e,h),h)}):T(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(aa("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var rr=_t();function Xa(r,t){return r.getName(t)||r.getId(t)}var yT="__universalTransitionEnabled",Ee=function(r){k(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=Zn({count:_T,reset:ST}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=rr(this).sourceManager=new im(this);a.prepareSource();var o=this.getInitialData(e,n);Kv(o,this),this.dataTask.context.data=o,rr(this).dataBeforeProcessed=o,qv(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=ia(this),a=n?Sa(e):{},o=this.subType;rt.hasClass(o)&&(o+="Series"),K(e,i.getTheme().get(this.subType)),K(e,this.getDefaultOption()),Pc(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wi(e,a,n)},t.prototype.mergeOption=function(e,i){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ia(this);n&&Wi(this.option,e,n);var a=rr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Kv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rr(this).dataBeforeProcessed=o,qv(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Gt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Pc(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=Ju(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return rr(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=Ju(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}rr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return rr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rr(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.formatTooltip=function(e,i,n){return pT({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(X.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=lh.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 l=e[s],u=Xa(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-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=dt(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[Xa(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[yT])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,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],v=Xa(e,h);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=i[l-1],v=Xa(e,c);o.selectedMap=(n={},n[v]=!0,n),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),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 rt.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}(rt);ke(Ee,Yw);ke(Ee,lh);Wg(Ee,rt);function qv(r){var t=r.name;Wf(r)||(r.name=mT(r)||t)}function mT(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 _T(r){return r.model.getRawData().count()}function ST(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),bT}function bT(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Kv(r,t){T(U_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,nt(xT,t))})}function xT(r,t){var e=Ju(r);return e&&e.setOutputEnd((t||this).count()),t}function Ju(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 Ut=function(){function r(){this.group=new yt,this.uid=_a("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(Ut);cs(Ut);function dh(){var r=_t();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 fm=_t(),wT=dh(),_e=function(){function r(){this.group=new yt,this.uid=_a("viewChart"),this.renderTask=Zn({plan:TT,reset:CT}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Jv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Jv(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){ws(this.group,t)},r.markUpdateMethod=function(t,e){fm(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Qv(r,t,e){r&&Hu(r)&&(t==="emphasis"?Hi:Gi)(r,e)}function Jv(r,t,e){var i=jr(r,t),n=t&&t.highlightKey!=null?Ub(t.highlightKey):null;i!=null?T(Ot(i),function(a){Qv(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Qv(a,e,n)})}Yf(_e);cs(_e);function TT(r){return wT(r.model)}function CT(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&fm(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),MT[l]}var MT={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)}}},Ko="\0__throttleOriginMethod",jv="\0__throttleRate",td="\0__throttleType";function Ns(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];i=new Date().getTime(),l=this,u=c;var p=f||t,g=f||e;f=null,s=i-(g?n:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),n=i};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Fs(r,t,e,i){var n=r[t];if(n){var a=n[Ko]||n,o=n[td],s=n[jv];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Ns(a,e,i==="debounce"),n[Ko]=a,n[td]=i,n[jv]=e}return n}}function Qo(r,t){var e=r[t];e&&e[Ko]&&(e.clear&&e.clear(),r[t]=e[Ko])}var ed=_t(),rd={itemStyle:jn(Ty,!0),lineStyle:jn(wy,!0)},AT={lineStyle:"stroke",itemStyle:"fill"};function hm(r,t){var e=r.visualStyleMapper||rd[t];return e||(console.warn("Unknown style type '"+t+"'."),rd.itemStyle)}function cm(r,t){var e=r.visualDrawType||AT[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var DT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=hm(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=cm(r,i),u=o[l],f=Z(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Z(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||Z(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},pn=new gt,LT={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=hm(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){pn.option=l[i];var u=n(pn),f=o.ensureUniqueItemVisual(s,"style");B(f,u),pn.option.decal&&(o.setItemVisual(s,"decal",pn.option.decal),pn.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},IT={performRawSeries:!0,overallReset:function(r){var t=Y();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)),ed(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=ed(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=cm(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=i.getName(u)||u+"",d=i.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},$a=Math.PI;function PT(r,t){t=t||{},tt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new yt,i=new ht({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 ht({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 _s({shape:{startAngle:-$a/2,endAngle:-$a/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:$a*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$a*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var vm=function(){function r(t,e,i,n){this._stageTaskMap=Y(),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,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,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"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();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="";Pe(!(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(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,i);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__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=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Zn({plan:BT,reset:NT,count:zT}));c.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||Zn({reset:RT});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";Pe(!t.createOnAllSeries,c),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):(h=!1,T(i.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Zn({reset:ET,onDirty:OT})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}v&&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 Z(t)&&(t={overallReset:t,seriesType:VT(t)}),t.uid=_a("stageHandler"),e&&(t.visualType=e),t},r}();function RT(r){r.overallReset(r.ecModel,r.api,r.payload)}function ET(r){return r.overallProgress&&kT}function kT(){this.agent.dirty(),this.getDownstream().dirty()}function OT(){this.agent&&this.agent.dirty()}function BT(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function NT(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?V(t,function(e,i){return dm(i)}):FT}var FT=dm(0);function dm(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 zT(r){return r.data.count()}function VT(r){Jo=null;try{r(oa,pm)}catch{}return Jo}var oa={},pm={},Jo;gm(oa,uh);gm(pm,Uy);oa.eachSeriesByType=oa.eachRawSeriesByType=function(r){Jo=r};oa.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Jo=r.subType)};function gm(r,t){for(var e in t.prototype)r[e]=kt}var id=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const HT={color:id,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],id]};var Pt="#B9B8CE",nd="#100C2A",qa=function(){return{axisLine:{lineStyle:{color:Pt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ad=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ym={darkMode:!0,color:ad,backgroundColor:nd,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Pt}},textStyle:{color:Pt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Pt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Pt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Pt}},timeline:{lineStyle:{color:Pt},label:{color:Pt},controlStyle:{color:Pt,borderColor:Pt}},calendar:{itemStyle:{color:nd},dayLabel:{color:Pt},monthLabel:{color:Pt},yearLabel:{color:Pt}},timeAxis:qa(),logAxis:qa(),valueAxis:qa(),categoryAxis:qa(),line:{symbol:"circle"},graph:{color:ad},gauge:{title:{color:Pt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Pt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ym.categoryAxis.splitLine.show=!1;var GT=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(z(t)){var a=De(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(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}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 l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ju=["symbol","symbolSize","symbolRotate","symbolOffset"],od=ju.concat(["symbolKeepAspect"]),WT={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<ju.length;o++){var s=ju[o],l=r.get(s);Z(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=dt(n);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,n[g](c,d))}}return{dataEach:a?f:null}}},UT={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<od.length;s++){var l=od[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function YT(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)}}function ZT(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)}}function mi(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=jr(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:z(l)?l:B({},l)})}})}function XT(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(mi("map","selectchanged",t,n,i),mi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(mi("map","selected",t,n,i),mi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(mi("map","unselected",t,n,i),mi("pie","unselected",t,n,i))})}function On(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var $T=Math.round(Math.random()*9),qT=typeof Object.defineProperty=="function",KT=function(){function r(){this._id="__ec_inner_"+$T++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return qT?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}(),QT=lt.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()}}),JT=lt.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()}}),jT=lt.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),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+v*c,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*c,l+s+v*c,e-f,l+s),r.closePath()}}),tC=lt.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()}}),eC={line:mr,rect:ht,roundRect:ht,square:ht,circle:ms,diamond:JT,pin:jT,arrow:tC,triangle:QT},rC={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}},jo={};T(eC,function(r,t){jo[t]=new r});var iC=lt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=zo(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=jo[i];n||(i="rect",n=jo[i]),rC[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function nC(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Sr(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=gy(r.slice(8),new ot(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=th(r.slice(7),{},new ot(t,e,i,n),o?"center":"cover"):l=new iC({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=nC,a&&l.setColor(a),l}function aC(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function mm(r,t){if(r!=null)return F(r)||(r=[r,r]),[Tt(r[0],t[0])||0,Tt(J(r[1],r[0]),t[1])||0]}function Xr(r){return isFinite(r)}function oC(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=Xr(i)?i:0,n=Xr(n)?n:1,a=Xr(a)?a:0,o=Xr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function sC(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,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=Xr(o)?o:.5,s=Xr(s)?s:.5,l=l>=0&&Xr(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function tf(r,t,e){for(var i=t.type==="radial"?sC(r,t,e):oC(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function lC(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 Ka(r){return parseInt(r,10)}function Qa(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]||Ka(s[i])||Ka(r.style[i]))-(Ka(s[a])||0)-(Ka(s[o])||0)|0}function uC(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ct(r)?[r]:F(r)?r:null}function _m(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&uC(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=V(e,function(a){return a/n}),i/=n)}return[e,i]}var fC=new ti(!0);function ts(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function sd(r){return typeof r=="string"&&r!=="none"}function es(r){var t=r.fill;return t!=null&&t!=="none"}function ld(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 ud(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 ef(r,t,e){var i=Ug(t.image,t.__image,e);if(vs(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)*Y_),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function hC(r,t,e,i){var n,a=ts(e),o=es(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||fC,h=t.__dirty;if(!i){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=h?tf(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?tf(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?ef(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=h||!t.__canvasStrokePattern?ef(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var M,C;r.setLineDash&&e.lineDash&&(n=_m(t),M=n[0],C=n[1]);var D=!0;(u||h&wi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=C),i||(e.strokeFirst?(a&&ud(r,e),o&&ld(r,e)):(o&&ld(r,e),a&&ud(r,e))),M&&r.setLineDash([])}function cC(r,t,e){var i=t.__image=Ug(e.image,t.__image,t,t.onload);if(!(!i||!vs(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(i,u,f,h,v,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function vC(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Jr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=_m(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ts(e)&&r.strokeText(n,e.x,e.y),es(e)&&r.fillText(n,e.x,e.y)):(es(e)&&r.fillText(n,e.x,e.y),ts(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var fd=["shadowBlur","shadowOffsetX","shadowOffsetY"],hd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sm(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Vt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?qr.opacity:o}(i||t.blend!==e.blend)&&(a||(Vt(r,n),a=!0),r.globalCompositeOperation=t.blend||qr.blend);for(var s=0;s<fd.length;s++){var l=fd[s];(i||t[l]!==e[l])&&(a||(Vt(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Vt(r,n),a=!0),r.shadowColor=t.shadowColor||qr.shadowColor),a}function cd(r,t,e,i,n){var a=sa(t,n.inHover),o=i?null:e&&sa(e,n.inHover)||{};if(a===o)return!1;var s=Sm(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Vt(r,n),s=!0),sd(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Vt(r,n),s=!0),sd(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Vt(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Vt(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<hd.length;f++){var h=hd[f],v=h[0];(i||a[v]!==o[v])&&(s||(Vt(r,n),s=!0),r[v]=a[v]||h[1])}return s}function dC(r,t,e,i,n){return Sm(r,sa(t,n.inHover),e&&sa(e,n.inHover),i,n)}function bm(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 pC(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),bm(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function gC(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 vd=1,dd=2,pd=3,gd=4;function yC(r){var t=es(r),e=ts(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 Vt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function sa(r,t){return t&&r.__hoverStyle||r.style}function xm(r,t){$r(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function $r(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~qt,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||lC(a,o))&&(o&&o.length&&(Vt(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Vt(r,e),r.save(),pC(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof lt&&t.autoBatch&&yC(t.style);s||gC(n,u.transform)?(Vt(r,e),bm(r,t)):f||Vt(r,e);var h=sa(t,e.inHover);t instanceof lt?(e.lastDrawType!==vd&&(l=!0,e.lastDrawType=vd),cd(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),hC(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Go?(e.lastDrawType!==pd&&(l=!0,e.lastDrawType=pd),cd(r,t,u,l,e),vC(r,t,h)):t instanceof br?(e.lastDrawType!==dd&&(l=!0,e.lastDrawType=dd),dC(r,t,u,l,e),cC(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==gd&&(l=!0,e.lastDrawType=gd),mC(r,t,e)),f&&i&&Vt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function mC(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 l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$r(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$r(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var zl=new KT,yd=new va(100),md=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rf(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&zl.delete(r);var a=zl.get(r);if(a)return a;var o=tt(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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,zl.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,v=0;v<md.length;++v){var c=o[md[v]];if(c!=null&&!F(c)&&!z(c)&&!ct(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(n?"-svg":"");var p=yd.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=Tm(o.dashArrayX),y=_C(o.dashArrayY),m=wm(o.symbol),_=SC(g),S=Cm(y),x=!n&&$i.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),M;x&&(x.width=w.width*e,x.height=w.height*e,M=x.getContext("2d")),D(),h&&yd.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var A=1,L=0,I=_.length;L<I;++L)A=Lc(A,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=Lc(P,m[L].length);A*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){M&&(M.clearRect(0,0,x.width,x.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,x.width,x.height)));for(var A=0,L=0;L<y.length;++L)A+=y[L];if(A<=0)return;for(var I=-S,P=0,R=0,E=0;I<w.height;){if(P%2===0){for(var W=R/2%m.length,O=0,N=0,G=0;O<w.width*2;){for(var Q=0,L=0;L<g[E].length;++L)Q+=g[E][L];if(Q<=0)break;if(N%2===0){var at=(1-o.symbolSize)*.5,ut=O+g[E][N]*at,vt=I+y[P]*at,Yt=g[E][N]*o.symbolSize,pt=y[P]*o.symbolSize,Fe=G/2%m[W].length;ai(ut,vt,Yt,pt,m[W][Fe])}O+=g[E][N],++G,++N,N===g[E].length&&(N=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function ai(Zt,xt,q,et,xr){var It=n?1:e,Zh=Sr(xr,Zt*It,xt*It,q*It,et*It,o.color,o.symbolKeepAspect);if(n){var Xh=i.painter.renderOneToVNode(Zh);Xh&&b.children.push(Xh)}else xm(M,Zh)}}}}function wm(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return wm([r]);for(var i=[],e=0;e<r.length;++e)z(r[e])?i.push([r[e]]):i.push(r[e]);return i}function Tm(r){if(!r||r.length===0)return[[0,0]];if(ct(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!ct(r[i])){e=!1;break}if(e)return Tm([r]);for(var n=[],i=0;i<r.length;++i)if(ct(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=V(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function _C(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ct(r)){var t=Math.ceil(r);return[t,t]}var e=V(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function SC(r){return V(r,function(t){return Cm(t)})}function Cm(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function bC(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 l=i.ensureUniqueItemVisual(o,"style");l.decal=rf(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=rf(n,t)}}})}var ye=new fe,Mm={};function xC(r,t){Mm[r]=t}function wC(r){return Mm[r]}var TC=1,CC=800,MC=900,AC=1e3,DC=2e3,LC=5e3,Am=1e3,IC=1100,ph=2e3,Dm=3e3,PC=4e3,zs=4500,RC=4600,EC=5e3,kC=6e3,Lm=7e3,OC={PROCESSOR:{FILTER:AC,SERIES_FILTER:CC,STATISTIC:LC},VISUAL:{LAYOUT:Am,PROGRESSIVE_LAYOUT:IC,GLOBAL:ph,CHART:Dm,POST_CHART_LAYOUT:RC,COMPONENT:PC,BRUSH:EC,CHART_ITEM:zs,ARIA:kC,DECAL:Lm}},Mt="__flagInMainProcess",Nt="__pendingUpdate",Vl="__needsUpdateStatus",_d=/^[a-zA-Z0-9_]+$/,Hl="__connectUpdateStatus",Sd=0,BC=1,NC=2;function Im(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Rm(this,r,t)}}function Pm(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rm(this,r,t)}}function Rm(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),fe.prototype[t].apply(r,e)}var Em=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(fe),km=Em.prototype;km.on=Pm("on");km.off=Pm("off");var _i,Gl,Ja,ir,Wl,Ul,Yl,gn,yn,bd,xd,Zl,wd,ja,Td,Om,jt,Cd,Bm=function(r){k(t,r);function t(e,i,n){var a=r.call(this,new GT)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},z(i)&&(i=Nm[i]),a._dom=e;var o="canvas",s="auto",l=!1;n.ssr;var u=a._zr=Ac(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,l),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Ns(U(u.flush,u),17),i=$(i),i&&Zy(i,!0),a._theme=i,a._locale=Kx(n.locale||Cy),a._coordSysMgr=new fh;var f=a._api=Td(a);function h(v,c){return v.__prio-c.__prio}return po(is,h),po(nf,h),a._scheduler=new vm(a,f,nf,is),a._messageCenter=new Em,a._initEvents(),a.resize=U(a.resize,a),u.animation.on("frame",a._onframe,a),bd(u,a),xd(u,a),Po(a),a}return t.prototype._onframe=function(){if(!this._disposed){Cd(this);var e=this._scheduler;if(this[Nt]){var i=this[Nt].silent;this[Mt]=!0;try{_i(this),ir.update.call(this,null,this[Nt].updateParams)}catch(l){throw this[Mt]=!1,this[Nt]=null,l}this._zr.flush(),this[Mt]=!1,this[Nt]=null,gn.call(this,i),yn.call(this,i)}else if(e.unfinished){var n=TC,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Ul(this,a),e.performVisualTasks(a),ja(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[Mt]){if(this._disposed){this.id;return}var a,o,s;if(H(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Mt]=!0,!this._model||i){var l=new Tw(this._api),u=this._theme,f=this._model=new uh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},af);var h={seriesTransition:s,optionChanged:!0};if(n)this[Nt]={silent:a,updateParams:h},this[Mt]=!1,this.getZr().wakeUp();else{try{_i(this),ir.update.call(this,null,h)}catch(v){throw this[Nt]=null,this[Mt]=!1,v}this._ssr||this._zr.flush(),this[Nt]=null,this[Mt]=!1,gn.call(this,a),yn.call(this,a)}}},t.prototype.setTheme=function(){},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||X.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;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;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(X.svgSupported){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){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__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(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Md[n]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();T($n,function(_,S){if(_.group===n){var x=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),h=o(b.bottom,h),v.push({dom:x,left:b.left,top:b.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=$i.createCanvas(),y=Ac(g,{renderer:i?"svg":"canvas"});if(y.resize({width:d,height:p}),i){var m="";return T(v,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new ht({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),T(v,function(_){var S=new br({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Wl(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Wl(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Vn(n,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Vn(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?YT(s,l,i):ZT(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(FC,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&On(s,function(d){var p=it(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),T(Xn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),T(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),XT(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Hg(this.getDom(),yh,"");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 $n[i.id]},t.prototype.resize=function(e){if(!this[Mt]){if(this._disposed){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[Nt]&&(a==null&&(a=this[Nt].silent),n=!0,this[Nt]=null),this[Mt]=!0;try{n&&_i(this),ir.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Mt]=!1,o}this[Mt]=!1,gn.call(this,a),yn.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(H(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!of[e]){var n=of[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=B({},e);return i.type=Xn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(H(i)||(i={silent:!!i}),!!rs[e.type]&&this._model){if(this[Mt]){this._pendingActions.push(e);return}var n=i.silent;Yl.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),gn.call(this,n),yn.call(this,n)}},t.prototype.updateLabelLayout=function(){ye.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){_i=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Gl(h,!0),Gl(h,!1),v.plan()},Gl=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(b,w){b!=="series"&&S(w)}):c.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,C=!w&&g[M];if(!C){var D=De(b.type),A=v?Ut.getClass(D.main,D.sub):_e.getClass(D.sub);C=new A,C.init(c,m),g[M]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=M,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(C,b,c,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!v&&x.renderTask.dispose(),y.remove(x.group),x.dispose(c,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Ja=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){T([].concat(h._componentsViews).concat(h._chartsViews),x);return}var y={};y[d+"Id"]=c[d+"Id"],y[d+"Index"]=c[d+"Index"],y[d+"Name"]=c[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=c.excludeSeriesId,S;_!=null&&(S=Y(),T(Ot(_),function(b){var w=Le(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(nv(c))if(b instanceof Ee)c.type===Kr&&!c.notBlur&&!b.get(["emphasis","disabled"])&&Bb(b,c,h._api);else{var M=qf(b.mainType,b.componentIndex,c.name,h._api),C=M.focusSelf,D=M.dispatchers;c.type===Kr&&C&&!c.notBlur&&zu(b.mainType,b.componentIndex,h._api),D&&T(D,function(A){c.type===Kr?Hi(A):Gi(A)})}else Gu(c)&&b instanceof Ee&&(zb(b,c,h._api),rv(b),jt(h))},h),g&&g.eachComponent(m,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[v]&&b[v](b.__model,g,h._api,c)}},ir={prepareAndUpdate:function(h){_i(this),ir.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,d),y.performDataProcessorTasks(c,h),Ul(this,c),g.update(c,d),e(c),y.performVisualTasks(c,h),Zl(this,c,d,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),ye.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=Y();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),ja(this,c,d,h,{},g),ye.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),_e.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Zl(this,v,this._api,h,{}),ye.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),_e.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),ye.trigger("afterupdate",c,this._api))},updateLayout:function(h){ir.update.call(this,h)}},Wl=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=Vn(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](p,m,d))!=null)return y}},Ul=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},Yl=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=rs[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&De(_[0]);this[Mt]=!0;var b=[h],w=!1;h.batch&&(w=!0,b=V(h.batch,function(P){return P=tt(B({},P),h),P.batch=null,P}));var M=[],C,D=Gu(h),A=nv(h);if(A&&oy(this._api),T(b,function(P){if(C=y.action(P,c._model,c._api),C=C||B({},P),C.type=m.event||C.type,M.push(C),A){var R=Uf(h),E=R.queryOptionMap,W=R.mainTypeSpecified,O=W?E.keys()[0]:"series";Ja(c,S,P,O),jt(c)}else D?(Ja(c,S,P,"series"),jt(c)):x&&Ja(c,S,P,x.main,x.sub)}),S!=="none"&&!A&&!D&&!x)try{this[Nt]?(_i(this),ir.update.call(this,h),this[Nt]=null):ir[S].call(this,h)}catch(P){throw this[Mt]=!1,P}if(w?C={type:m.event||p,escapeConnect:g,batch:M}:C=M[0],this[Mt]=!1,!v){var L=this._messageCenter;if(L.trigger(C.type,C),D){var I={type:"selectchanged",escapeConnect:g,selected:Vb(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},gn=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Yl.call(this,c,h)}},yn=function(h){!h&&this.trigger("updated")},bd=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[Nt]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},xd=function(h,v){h.on("mouseover",function(c){var d=c.target,p=On(d,Hu);p&&(Nb(p,c,v._api),jt(v))}).on("mouseout",function(c){var d=c.target,p=On(d,Hu);p&&(Fb(p,c,v._api),jt(v))}).on("click",function(c){var d=c.target,p=On(d,function(m){return it(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=it(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?c:v).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(c),g,y;po(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Zl=function(h,v,c,d,p){i(v),wd(h,v,c,d,p),T(h._chartsViews,function(g){g.__alive=!1}),ja(h,v,c,d,p),T(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},wd=function(h,v,c,d,p,g){T(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,c,d),s(m,y),f(m,y)})},ja=function(h,v,c,d,p,g){var y=h._scheduler;p=B(p||{},{updatedSeries:v.getSeries()}),ye.trigger("series:beforeupdate",v,c,p);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),rv(_)}),y.unfinished=m||y.unfinished,ye.trigger("series:layoutlabels",v,c,p),ye.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,v),ye.trigger("series:afterupdate",v,c,p)},jt=function(h){h[Vl]=!0,h.getZr().wakeUp()},Cd=function(h){h[Vl]&&(h.getZr().storage.traverse(function(v){Un(v)||n(v)}),h[Vl]=!1)};function n(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===gs&&h.states.emphasis?v.push("emphasis"):h.hoverState===ps&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!X.node&&!X.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(c){if(!Un(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Un(y))return;if(y instanceof lt&&Yb(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Td=function(h){return new(function(v){k(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){Hi(d,p),jt(h)},c.prototype.leaveEmphasis=function(d,p){Gi(d,p),jt(h)},c.prototype.enterBlur=function(d){Ob(d),jt(h)},c.prototype.leaveBlur=function(d){ry(d),jt(h)},c.prototype.enterSelect=function(d){iy(d),jt(h)},c.prototype.leaveSelect=function(d){ny(d),jt(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(Uy))(h)},Om=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[Hl]=d}}T(Xn,function(c,d){h._messageCenter.on(d,function(p){if(Md[h.group]&&h[Hl]!==Sd){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];T($n,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,Sd),T(y,function(m){m[Hl]!==BC&&m.dispatchAction(g)}),v(y,NC)}})})}}(),t}(fe),gh=Bm.prototype;gh.on=Im("on");gh.off=Im("off");gh.one=function(r,t,e){var i=this;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 FC=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var rs={},Xn={},nf=[],af=[],is=[],Nm={},of={},$n={},Md={},zC=+new Date-0,yh="_echarts_instance_";function VC(r,t,e){var i=!(e&&e.ssr);if(i){var n=HC(r);if(n)return n}var a=new Bm(r,t,e);return a.id="ec_"+zC++,$n[a.id]=a,i&&Hg(r,yh,a.id),Om(a),ye.trigger("afterinit",a),a}function HC(r){return $n[TS(r,yh)]}function ns(r,t){Nm[r]=t}function Fm(r){j(af,r)<0&&af.push(r)}function zm(r,t){_h(nf,r,t,DC)}function GC(r){mh("afterinit",r)}function WC(r){mh("afterupdate",r)}function mh(r,t){ye.on(r,t)}function Be(r,t,e){Z(t)&&(e=t,t="");var i=H(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!Xn[t]&&(Pe(_d.test(i)&&_d.test(t)),rs[i]||(rs[i]={action:e,actionInfo:r}),Xn[t]=i)}function UC(r,t){fh.register(r,t)}function YC(r,t){_h(is,r,t,Am,"layout")}function ni(r,t){_h(is,r,t,Dm,"visual")}var Ad=[];function _h(r,t,e,i,n){if((Z(t)||H(t))&&(e=t,t=i),!(j(Ad,e)>=0)){Ad.push(e);var a=vm.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function Vm(r,t){of[r]=t}function ZC(r,t,e){var i=wC("registerMap");i&&i(r,t,e)}var XC=tT;ni(ph,DT);ni(zs,LT);ni(zs,IT);ni(ph,WT);ni(zs,UT);ni(Lm,bC);Fm(Zy);zm(MC,Bw);Vm("default",PT);Be({type:Kr,event:Kr,update:Kr},kt);Be({type:bo,event:bo,update:bo},kt);Be({type:Hn,event:Hn,update:Hn},kt);Be({type:xo,event:xo,update:xo},kt);Be({type:Gn,event:Gn,update:Gn},kt);ns("light",HT);ns("dark",ym);function mn(r){return r==null?0:r.length||1}function Dd(r){return r}var Sh=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Dd,this._newKeyGetter=n||Dd,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],l=i[s],u=mn(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,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 l=a[s],u=i[l],f=n[l],h=mn(u),v=mn(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}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=mn(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 l=e[s],u=mn(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),$C=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 qC(r,t){var e={},i=e.encode={},n=Y(),a=[],o=[],s={};T(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;Xl(i,d)[p]=v,c.isExtraCoord||(n.set(d,1),QC(c.type)&&(a[0]=v),Xl(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}zy.each(function(g,y){var m=Xl(i,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};n.each(function(v,c){var d=i[c];u[c]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=V(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;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 $C(s,t),e}function Xl(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function KC(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function QC(r){return!(r==="ordinal"||r==="time")}var Mo=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}(),JC=_t(),jC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Hm=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=Um(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(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=qy(this.source),i=!Ym(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=jC[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source,d=[c.seriesLayoutBy,c.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 Gm(r){return r instanceof Hm}function Wm(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var i=r[e],n=H(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Um(r){var t=JC(r);return t.dimNameMap||(t.dimNameMap=Wm(r.dimensionsDefine))}function Ym(r){return r>30}var _n=H,nr=V,tM=typeof Int32Array>"u"?Array:Int32Array,eM="e\0\0",Ld=-1,rM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],iM=["_approximateExtent"],Id,to,Sn,bn,$l,eo,ql,nM=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;Gm(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],v=z(h)?new Mo({name:h}):h instanceof Mo?h:new Mo(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Y();T(o,function(g){p.set(a[g].storeDimIndex,g)})}}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(ct(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);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 qu&&(a=t),!a){var o=this.dimensions,s=hh(t)||Ht(t)?new Ky(t,o.length):t;a=new qu;var l=nr(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=qC(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.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&ql(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!==pr&&!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,l=s===he;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&hS(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=Le(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Le(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)ql(this,f);Id(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){_n(t)?B(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=Sn(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 to(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(nr(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],n=i[e];return n==null||isNaN(n)?Ld:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){Z(t)&&(i=e,e=t,t=[]);var n=i||this,a=nr(bn(t),this._getStoreDimIndex,this);this._store.each(a,n?U(e,n):e)},r.prototype.filterSelf=function(t,e,i){Z(t)&&(i=e,e=t,t=[]);var n=i||this,a=nr(bn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?U(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=dt(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){Z(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=nr(bn(t),this._getStoreDimIndex,this),s=eo(this);return s._store=this._store.map(o,a?U(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=nr(bn(t),this._getStoreDimIndex,this);this._store.modify(o,a?U(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=eo(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.lttbDownSample=function(t,e){var i=eo(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 gt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Sh(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return to(t,i)},function(i){return to(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||{},_n(t)?B(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():_n(a)&&(a=B({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,_n(e)?B(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){_n(t)?B(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?B(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;Cb(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:nr(this.dimensions,this._getDimInfo,this),this.hostModel)),$l(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];Z(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(){Id=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 tM(o.categories.length);for(var l=0;l<i.length;l++)i[l]=Ld;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Sn=function(t,e,i){return Le(t._getCategory(e,i),null)},to=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Sn(t,t._idDimIdx,e)),i==null&&(i=eM+e),i},bn=function(t){return F(t)||(t=t!=null?[t]:[]),t},eo=function(t){var e=new r(t._schema?t._schema:nr(t.dimensions,t._getDimInfo,t),t.hostModel);return $l(e,t),e},$l=function(t,e){T(rM.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,T(iM,function(i){t[i]=$(e[i])}),t._calculationInfo=B({},e._calculationInfo)},ql=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=Sn(t,a,e)),l==null&&o!=null&&(n[e]=l=Sn(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}}(),r}();function aM(r,t){hh(r)||(r=Xy(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=sM(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ym(o),l=i===r.dimensionsDefine,u=l?Um(r):Wm(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),v=new em(o),c=0;c<v.length;c++)v[c]=-1;function d(C){var D=v[C];if(D<0){var A=i[C],L=H(A)?A:{name:A},I=new Mo,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=a.length;return v[C]=R,I.storeDimIndex=C,a.push(I),I}return a[D]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(C,D){var A=Ot(C).slice();if(A.length===1&&!z(A[0])&&A[0]<0){h.set(D,!1);return}var L=h.set(D,[]);T(A,function(I,P){var R=z(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),D,P))})});var p=0;T(e,function(C){var D,A,L,I;if(z(C))D=C,I={};else{I=C,D=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=B({},I),I.ordinalMeta=P,A=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(D);if(R!==!1){if(R=Ot(R),!R.length)for(var E=0;E<(A&&A.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}T(R,function(W,O){var N=d(W);if(l&&I.type!=null&&(N.type=I.type),g(tt(N,I),D,O),N.name==null&&A){var G=A[O];!H(G)&&(G={name:G}),N.name=N.displayName=G.name,N.defaultTooltip=G.defaultTooltip}L&&tt(N.otherDims,L)})}});function g(C,D,A){zy.get(D)!=null?C.otherDims[D]=A:(C.coordDim=D,C.coordDimIndex=A,n.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){x(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),M=w.coordDim;M==null&&(w.coordDim=lM(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(Wy(r,b)===Xt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return oM(a),new Hm({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function oM(r){for(var t=Y(),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 sM(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return T(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function lM(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 uM=function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r}();function fM(r){var t=r.get("coordinateSystem"),e=new uM(t),i=hM[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var hM={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Et).models[0],a=r.getReferringComponents("yAxis",Et).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Si(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Si(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Et).models[0];t.coordSysDims=["single"],e.set("single",n),Si(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Et).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Si(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Si(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,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Si(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Si(r){return r.get("type")==="category"}function cM(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;vM(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(T(a,function(m,_){z(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;T(a,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:v,stackResultDimension:h}}function vM(r){return!Gm(r.schema)}function Yi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function dM(r,t){return Yi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function pM(r,t){var e=r.get("coordinateSystem"),i=fh.get(e),n;return t&&t.coordSysDims&&(n=V(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=KC(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function gM(r,t,e){var i,n;return e&&T(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function bh(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===he;var o=fM(t),s=pM(t,o),l=e.useEncodeDefaulter,u=Z(l)?l:l?nt(hw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=aM(n,f),v=gM(h.dimensions,e.createInvertedIndices,o),c=a?null:i.getSharedDataStore(h),d=cM(t,{schema:h,store:c}),p=new nM(h,t);p.setCalculationInfo(d);var g=v!=null&&yM(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?n:c,null,g),p}function yM(r){if(r.sourceFormat===he){var t=mM(r.data||[]);return!F(da(t))}}function mM(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Ne=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},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(Ne);var _M=0,sf=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++_M}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&V(i,SM);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(!z(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,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)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function SM(r){return H(r)&&r.value!=null?r.value:r+""}function lf(r){return r.type==="interval"||r.type==="log"}function bM(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=Og(a/t);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=Zm(o),l=n.niceTickExtent=[St(Math.ceil(r[0]/o)*o,s),St(Math.floor(r[1]/o)*o,s)];return xM(l,r),n}function Kl(r){var t=Math.pow(10,Gf(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,St(e*t)}function Zm(r){return Ue(r)+2}function Pd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function xM(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Pd(r,0,t),Pd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Vs(r,t){return r>=t[0]&&r<=t[1]}function Hs(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Gs(r,t){return r*(t[1]-t[0])+t[0]}var xh=function(r){k(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new sf({})),F(n)&&(n=new sf({categories:V(n,function(a){return H(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:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Vs(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Hs(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Gs(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,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=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.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},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}(Ne);Ne.registerClass(xh);var Wr=St,ji=function(r){k(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},t.prototype.contain=function(e){return Vs(e,this._extent)},t.prototype.normalize=function(e){return Hs(e,this._extent)},t.prototype.scale=function(e){return Gs(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Zm(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(e?s.push({value:Wr(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Wr(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Wr(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,v=h/e;u<e-1;){var c=Wr(l.value+(u+1)*v);c>a[0]&&c<a[1]&&f.push(c),u++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=Ue(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Wr(e.value,n,!0);return Oy(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=bM(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;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.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Wr(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Wr(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(Ne);Ne.registerClass(ji);var Xm=typeof Float32Array<"u",wM=Xm?Float32Array:Array;function Ye(r){return F(r)?Xm?new Float32Array(r):r:new wM(r)}var TM="__ec_stack_";function wh(r){return r.get("stack")||TM+r.seriesIndex}function Th(r){return r.dim+r.index}function $m(r,t){var e=[];return t.eachSeriesByType(r,function(i){Km(i)&&e.push(i)}),e}function CM(r){var t={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(c,p);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,u){return l-u});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 qm(r){var t=CM(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 l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=i.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Tt(i.get("barWidth"),s),p=Tt(i.get("barMaxWidth"),s),g=Tt(i.get("barMinWidth")||(Qm(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Th(a),stackId:wh(i)})}),MM(e)}function MM(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:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var v=i.barMinWidth;v&&(l[u].minWidth=v);var c=i.barGap;c!=null&&(s.gap=c);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 l=dt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Tt(s,o),f=Tt(i.gap,1),h=i.remainedWidth,v=i.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;T(a,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;T(a,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function AM(r,t,e){if(r&&t){var i=r[Th(t)];return i!=null&&e!=null?i[wh(e)]:i}}function DM(r,t){var e=$m(r,t),i=qm(e);T(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=wh(n),u=i[Th(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function LM(r){return{seriesType:r,plan:dh(),reset:function(t){if(Km(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)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Yi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=IM(n,a),d=Qm(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&Ye(x*3),w=d&&l&&Ye(x*3),M=d&&Ye(x),C=i.master.getRect(),D=v?C.width:C.height,A,L=S.getStore(),I=0;(A=_.next())!=null;){var P=L.get(h?g:o,A),R=L.get(s,A),E=c,W=void 0;h&&(W=+P-L.get(o,A));var O=void 0,N=void 0,G=void 0,Q=void 0;if(v){var at=i.dataToPoint([P,R]);if(h){var ut=i.dataToPoint([W,R]);E=ut[0]}O=E,N=at[1]+m,G=at[0]-E,Q=y,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var at=i.dataToPoint([R,P]);if(h){var ut=i.dataToPoint([R,W]);E=ut[1]}O=at[0]+m,N=E,G=y,Q=at[1]-E,Math.abs(Q)<p&&(Q=(Q<=0?-1:1)*p)}d?(b[I]=O,b[I+1]=N,b[I+2]=v?G:Q,w&&(w[I]=v?C.x:O,w[I+1]=v?N:C.y,w[I+2]=D),M[A]=A):S.setItemLayout(A,{x:O,y:N,width:G,height:Q}),I+=3}d&&S.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function Km(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Qm(r){return r.pipelineContext&&r.pipelineContext.large}function IM(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 PM=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},Jm=function(r){k(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 Ls(e.value,bv[tw(Oi(this._minLevelUnit))]||bv.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return ew(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=FM(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=le,i[1]+=le),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]-le}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ro.length,l=Math.min(PM(ro,this._approxInterval,0,s),s-1);this._interval=ro[l][1],this._minLevelUnit=ro[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return ct(e)?e:+$e(e)},t.prototype.contain=function(e){return Vs(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Hs(this.parse(e),this._extent)},t.prototype.scale=function(e){return Gs(e,this._extent)},t.type="time",t}(ji),ro=[["second",nh],["minute",ah],["hour",Yn],["quarter-day",Yn*6],["half-day",Yn*12],["day",le*1.2],["half-week",le*3.5],["week",le*7],["month",le*31],["quarter",le*95],["half-year",Sv/2],["year",Sv]];function RM(r,t,e,i){var n=$e(t),a=$e(e),o=function(d){return xv(n,d,i)===xv(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function EM(r,t){return r/=le,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function kM(r){var t=30*le;return r/=t,r>6?6:r>3?3:r>2?2:1}function OM(r){return r/=Yn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Rd(r,t){return r/=t?ah:nh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function BM(r){return Og(r)}function NM(r,t,e){var i=new Date(r);switch(Oi(t)){case"year":case"month":i[Ly(e)](0);case"day":i[Iy(e)](1);case"hour":i[Py(e)](0);case"minute":i[Ry(e)](0);case"second":i[Ey(e)](0),i[ky(e)](0)}return i.getTime()}function FM(r,t,e,i){var n=1e4,a=Ay,o=0;function s(D,A,L,I,P,R,E){for(var W=new Date(A),O=A,N=W[I]();O<L&&O<=i[1];)E.push({value:O}),N+=D,W[P](N),O=W.getTime();E.push({value:O,notAdd:!0})}function l(D,A,L){var I=[],P=!A.length;if(!RM(Oi(D),i[0],i[1],e)){P&&(A=[{value:NM(new Date(i[0]),D,e)},{value:i[1]}]);for(var R=0;R<A.length-1;R++){var E=A[R].value,W=A[R+1].value;if(E!==W){var O=void 0,N=void 0,G=void 0,Q=!1;switch(D){case"year":O=Math.max(1,Math.round(t/le/365)),N=oh(e),G=rw(e);break;case"half-year":case"quarter":case"month":O=kM(t),N=Bi(e),G=Ly(e);break;case"week":case"half-week":case"day":O=EM(t),N=Is(e),G=Iy(e),Q=!0;break;case"half-day":case"quarter-day":case"hour":O=OM(t),N=ra(e),G=Py(e);break;case"minute":O=Rd(t,!0),N=Ps(e),G=Ry(e);break;case"second":O=Rd(t,!1),N=Rs(e),G=Ey(e);break;case"millisecond":O=BM(t),N=Es(e),G=ky(e);break}s(O,E,W,N,G,Q,I),D==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,v=0,c=0;c<a.length&&o++<n;++c){var d=Oi(a[c]);if(jx(a[c])){l(a[c],u[u.length-1]||[],f);var p=a[c+1]?Oi(a[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(D,A){return D.value-A.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===a[c]))break}f=[]}}}for(var S=Lt(V(u,function(D){return Lt(D,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(D){return D.length>0}),x=[],b=S.length-1,c=0;c<S.length;++c)for(var w=S[c],M=0;M<w.length;++M)x.push({value:w[M].value,level:b-c});x.sort(function(D,A){return D.value-A.value});for(var C=[],c=0;c<x.length;++c)(c===0||x[c].value!==x[c-1].value)&&C.push(x[c]);return C}Ne.registerClass(Jm);var Ed=Ne.prototype,qn=ji.prototype,zM=St,VM=Math.floor,HM=Math.ceil,io=Math.pow,ve=Math.log,Ch=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ji,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=qn.getTicks.call(this,e);return V(o,function(s){var l=s.value,u=St(io(this.base,l));return u=l===n[0]&&this._fixMin?no(u,a[0]):u,u=l===n[1]&&this._fixMax?no(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var n=ve(this.base);e=ve(Math.max(0,e))/n,i=ve(Math.max(0,i))/n,qn.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=Ed.getExtent.call(this);i[0]=io(e,i[0]),i[1]=io(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=no(i[0],a[0])),this._fixMax&&(i[1]=no(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=ve(e[0])/ve(i),e[1]=ve(e[1])/ve(i),Ed.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=uS(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[St(HM(i[0]/a)*a),St(VM(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){qn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ve(e)/ve(this.base),Vs(e,this._extent)},t.prototype.normalize=function(e){return e=ve(e)/ve(this.base),Hs(e,this._extent)},t.prototype.scale=function(e){return e=Gs(e,this._extent),io(this.base,e)},t.type="log",t}(Ne),jm=Ch.prototype;jm.getMinorTicks=qn.getMinorTicks;jm.getLabel=qn.getLabel;function no(r,t){return zM(r,Ue(t))}Ne.registerClass(Ch);var GM=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;Z(o)?this._modelMinNum=ao(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=ao(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(Z(s)?this._modelMaxNum=ao(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=ao(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=F(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[yr(u[0],1),yr(u[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,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Io(s)||Io(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[UM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=WM[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),WM={min:"_determinedMin",max:"_determinedMax"},UM={min:"_dataMin",max:"_dataMax"};function t0(r,t,e){var i=r.rawExtentInfo;return i||(i=new GM(r,t,e),r.rawExtentInfo=i,i)}function ao(r,t){return t==null?null:Io(t)?NaN:r.parse(t)}function e0(r,t){var e=r.type,i=t0(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=$m("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=qm(s),f=YM(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function YM(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=AM(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;T(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function kd(r,t){var e=t,i=e0(r,e),n=i.extent,a=e.get("splitNumber");r instanceof Ch&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ZM(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new xh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Jm({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ne.getClass(t)||ji)}}function XM(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function tn(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):z(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):Z(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(Mh(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function Mh(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function $M(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof xh?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=tn(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},v=s(h,f),c=o.getTextRect(v),d=qM(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function qM(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ot(r.x,r.y,a,o);return s}function Ah(r){var t=r.get("interval");return t??"auto"}function r0(r){return r.type==="category"&&Ah(r.getLabelModel())===0}function i0(r,t){var e={};return T(r.mapDimensionsAll(t),function(i){e[dM(r,i)]=!0}),dt(e)}function KM(r,t,e){t&&T(i0(t,e),function(i){var n=t.getApproximateExtent(i);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var QM=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Od=[],JM={registerPreprocessor:Fm,registerProcessor:zm,registerPostInit:GC,registerPostUpdate:WC,registerUpdateLifecycle:mh,registerAction:Be,registerCoordinateSystem:UC,registerLayout:YC,registerVisual:ni,registerTransform:XC,registerLoading:Vm,registerMap:ZC,registerImpl:xC,PRIORITY:OC,ComponentModel:rt,ComponentView:Ut,SeriesModel:Ee,ChartView:_e,registerComponentModel:function(r){rt.registerClass(r)},registerComponentView:function(r){Ut.registerClass(r)},registerSeriesModel:function(r){Ee.registerClass(r)},registerChartView:function(r){_e.registerClass(r)},registerSubTypeDefaulter:function(r,t){rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){nS(r,t)}};function Se(r){if(F(r)){T(r,function(t){Se(t)});return}j(Od,r)>=0||(Od.push(r),Z(r)&&(r={install:r}),r.install(JM))}var la=_t();function n0(r,t){var e=V(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 jM(r){var t=r.getLabelModel().get("customValues");if(t){var e=tn(r);return{labels:n0(r,t).map(function(i){var n={value:i};return{formattedLabel:e(n),rawLabel:r.scale.getLabel(n),tickValue:i}})}}return r.type==="category"?eA(r):iA(r)}function tA(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:n0(r,e)}:r.type==="category"?rA(r,t):{ticks:V(r.scale.getTicks(),function(i){return i.value})}}function eA(r){var t=r.getLabelModel(),e=a0(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function a0(r,t){var e=o0(r,"labels"),i=Ah(t),n=s0(e,i);if(n)return n;var a,o;return Z(i)?a=f0(r,i):(o=i==="auto"?nA(r):i,a=u0(r,o)),l0(e,i,{labels:a,labelCategoryInterval:o})}function rA(r,t){var e=o0(r,"ticks"),i=Ah(t),n=s0(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),Z(i))a=f0(r,i,!0);else if(i==="auto"){var s=a0(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=i,a=u0(r,o,!0);return l0(e,i,{ticks:a,tickCategoryInterval:o})}function iA(r){var t=r.scale.getTicks(),e=tn(r);return{labels:V(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function o0(r,t){return la(r)[t]||(la(r)[t]=[])}function s0(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function l0(r,t,e){return r.push({key:t,value:e}),e}function nA(r){var t=la(r).autoInterval;return t??(la(r).autoInterval=r.calculateCategoryInterval())}function aA(r){var t=oA(r),e=tn(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),v=0,c=0;l<=a[1];l+=s){var d=0,p=0,g=fs(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=la(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function oA(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 u0(r,t,e){var i=tn(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=r0(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);c&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:i(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function f0(r,t,e){var i=r.scale,n=tn(r),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var Bd=[0,1],sA=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(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Eg(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(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Nd(i,n.count())),At(t,Bd,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Nd(i,n.count()));var a=At(t,i,Bd,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=tA(this,e),n=i.ticks,a=V(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return lA(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=V(i,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return jM(this).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(){return aA(this)},r}();function Nd(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function lA(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],o=t[1]={coord:a[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;T(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=St(c),d=St(d),h?c>d:c<d}}function uA(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Yo(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function fA(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ot(0,0,0,0);function i(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,v=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Yo(d.localRect,d.transform)),h||(h=new Yo(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function Fd(r,t,e){var i=$i.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 Ql=function(r){k(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||Fo,typeof e=="string"?o=Fd(e,i,n):H(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(dg(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=Fd("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,l=!1,u=new ot(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var M=o[w];if(M.intersect(m)){var C=new ot(0,0,0,0);C.copy(M),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(M);var D=m.width*m.height,A=M.width*M.height,L=u.width*u.height,I=L-D-A;I<x&&(x=I,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=e[h];if(v){var c=v.shouldBePainted(n,a,!0,!0),d=v.__isRendered&&(v.__dirty&qt||!c)?v.getPrevPaintRect():null;d&&f(d);var p=c&&(v.__dirty&qt||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=i[h],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);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,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),i&&i!=="transparent"){var _=void 0;if(ss(i)){var S=i.global||i.__width===y&&i.__height===m;_=S&&i.__canvasGradient||tf(o,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=_,i.__width=y,i.__height=m}else V_(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=ef(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,p,g,y,m),o.restore())}!n||u?d(0,0,s,l):n.length&&T(n,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(fe),zd=1e5,Ur=314159,oo=.01,hA=.001;function cA(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function vA(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 dA=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=B({},i||{}),this.dpr=i.devicePixelRatio||Fo,this._singleCanvas=a,this.root=t;var o=t.style;o&&(dg(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,v=f.height;i.width!=null&&(h=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new Ql(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Ur]=c,c.zlevel=Ur,s.push(Ur),this._domRoot=t}else{this._width=Qa(t,0,i),this._height=Qa(t,1,i);var u=this._domRoot=vA(this._width,this._height);t.appendChild(u)}}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 l=a===0?this._backgroundColor:null;s.refresh(l)}}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(zd)),a||(a=i.ctx,a.save()),$r(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(zd)},r.prototype.paintOne=function(t,e){xm(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(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ro(function(){l._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Ur).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 l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&a.push(u)}for(var f=!0,h=!1,v=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,c._width,c._height),_=i?g.__startIndex:g.__drawIndex,S=!i&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||i)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var M,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(M=_;M<g.__endIndex;M++){var R=t[M];if(R.__inHover&&(h=!0),n._doPaintEl(R,g,o,I,P,M===g.__endIndex-1),S){var E=Date.now()-x;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)M=g.__endIndex;else for(var D=c.dpr,A=0;A<m.length;++A){var L=m[A];y.save(),y.beginPath(),y.rect(L.x*D,L.y*D,L.width*D,L.height*D),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return X.wxa&&T(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&($r(s,t,a,o),t.setPrevPaintRect(l))}else $r(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ur);var i=this._layers[t];return i||(i=new Ql("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?K(i,this._layerConfig[t],!0):this._layerConfig[t-oo]&&K(i,this._layerConfig[t-oo],!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,l=-1;if(!i[t]&&cA(e)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.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,v){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,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+hA,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?oo:0),this._needsManuallyCompositing),f.__builtin__||Ef("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&qt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!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]?K(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+oo){var o=this._layers[a];K(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(j(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=Qa(a,0,n),e=Qa(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(Ur).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[Ur].dom;var e=new Ql("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),l=0,u=s.length;l<u;l++){var f=s[l];$r(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function pA(r){r.registerPainter("canvas",dA)}var gA=function(r){k(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){return bh(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new yt,n=Sr("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,l=e.itemHeight*.8,u=Sr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ee);function Dh(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Ui(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(Ui(r,t,e[o]));return a.join(" ")}}function h0(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 Lh=function(r){k(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){this.removeAll();var s=Sr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=yA,this._symbolType=e,this.add(s)},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(){Hi(this.childAt(0))},t.prototype.downplay=function(){Gi(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,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Qt(v,c,s,i),py(v)}if(this._updateCommon(e,i,l,n,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,qe(v,c,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Ms(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=mm(e.getItemVisual(i,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(i,"style"),w=b.fill;if(s instanceof br){var M=s.style;s.useStyle(B({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(B({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(i,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;Cs(s,p,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(R){return A?e.getName(R):Dh(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Uo(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=it(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Zo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Zo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return aC(e.getItemVisual(i,"symbolSize"))},t}(yt);function yA(r,t){this.parent.drift(r,t)}function Jl(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 Vd(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function Hd(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:Ms(t),cursorStyle:t.get("cursor")}}var mA=function(){function r(t){this.group=new yt,this._SymbolCtor=t||Lh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Vd(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Hd(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var v=f(h);if(Jl(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),i.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!Jl(t,d,h,e)){i.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)i.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Qt(c,y,n)}i.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){i.remove(v)},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=Hd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Vd(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Jl(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){ws(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 c0(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=_A(n,e),o=i.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=V(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return Yi(t,h[0])&&(v=!0,h[0]=c),Yi(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function _A(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:ct(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function v0(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 SA(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 bA(r,t,e,i,n,a,o,s){for(var l=SA(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=c0(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var M=y[b],C=y[b+1],D=m[w],A=m[w+1];(isNaN(M)||isNaN(C))&&(M=D,C=A),u.push(M,C),f.push(D,A),h.push(e[b],e[b+1]),v.push(i[w],i[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=n.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var R=v0(g,n,t,L);h.push(R[0],R[1]),v.push(i[w],i[w+1]),p.push(t.getRawIndex(L));break;case"-":x=!1}x&&(c.push(S),d.push(d.length))}d.sort(function(Yt,pt){return p[Yt]-p[pt]});for(var E=u.length,W=Ye(E),O=Ye(E),N=Ye(E),G=Ye(E),Q=[],_=0;_<d.length;_++){var at=d[_],ut=_*2,vt=at*2;W[ut]=u[vt],W[ut+1]=u[vt+1],O[ut]=f[vt],O[ut+1]=f[vt+1],N[ut]=h[vt],N[ut+1]=h[vt+1],G[ut]=v[vt],G[ut+1]=v[vt+1],Q[_]=c[at]}return{current:W,next:O,stackedOnCurrent:N,stackedOnNext:G,status:Q}}var ar=Math.min,or=Math.max;function Qr(r,t){return isNaN(r)||isNaN(t)}function uf(r,t,e,i,n,a,o,s,l){for(var u,f,h,v,c,d,p=e,g=0;g<i;g++){var y=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Qr(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var x=p+a,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<i;)g++,x+=a,p+=a,b=t[x*2],w=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var M=g+1;if(l)for(;Qr(b,w)&&M<i;)M++,x+=a,b=t[x*2],w=t[x*2+1];var C=.5,D=0,A=0,L=void 0,I=void 0;if(M>=i||Qr(b,w))c=y,d=m;else{D=b-u,A=w-f;var P=y-u,R=b-y,E=m-f,W=w-m,O=void 0,N=void 0;if(s==="x"){O=Math.abs(P),N=Math.abs(R);var G=D>0?1:-1;c=y-G*O*o,d=m,L=y+G*N*o,I=m}else if(s==="y"){O=Math.abs(E),N=Math.abs(W);var Q=A>0?1:-1;c=y,d=m-Q*O*o,L=y,I=m+Q*N*o}else O=Math.sqrt(P*P+E*E),N=Math.sqrt(R*R+W*W),C=N/(N+O),c=y-D*o*(1-C),d=m-A*o*(1-C),L=y+D*o*C,I=m+A*o*C,L=ar(L,or(b,y)),I=ar(I,or(w,m)),L=or(L,ar(b,y)),I=or(I,ar(w,m)),D=L-y,A=I-m,c=y-D*O/N,d=m-A*O/N,c=ar(c,or(u,y)),d=ar(d,or(f,m)),c=or(c,ar(u,y)),d=or(d,ar(f,m)),D=y-c,A=m-d,L=y+D*N/O,I=m+A*N/O}r.bezierCurveTo(h,v,c,d,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var d0=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),xA=function(r){k(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:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new d0},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Qr(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Qr(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=uf(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=ti.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(e-s)/(c-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[e,S]:[S,e]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var x=u?ko(s,c,p,y,e,f):ko(l,d,g,m,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?wt(l,d,g,m,w):wt(s,c,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(lt),wA=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(d0),TA=function(r){k(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 wA},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Qr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Qr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=uf(e,n,o,s,s,1,i.smooth,l,i.connectNulls);uf(e,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t}(lt);function p0(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new ht({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=Z(n)?function(g){n(g,h)}:null;qe(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,p)}return h}function g0(r,t,e){var i=r.getArea(),n=St(i.r0,1),a=St(i.r,1),o=new Qi({shape:{cx:St(r.cx,1),cy:St(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,qe(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function CA(r,t,e,i,n){if(r){if(r.type==="polar")return g0(r,t,e);if(r.type==="cartesian2d")return p0(r,t,e,i,n)}else return null;return null}function Ih(r,t){return r.type===t}function Gd(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Wd(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 Ud(r,t){var e=Wd(r),i=e[0],n=e[1],a=Wd(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 Yd(r){return ct(r)?r:r?.5:0}function MA(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=Ye(i*2),a=0;a<i;a++){var o=v0(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function sr(r,t,e,i){var n=t.getBaseAxis(),a=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var v=(u[a]+f[a])/2,c=[];l[a]=c[a]=v,l[1-a]=u[1-a],c[1-a]=f[1-a],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function AA(r,t){var e=[],i=r.length,n,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=P1(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function DA(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){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){var l=t.getAxis(n),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=AA(u,n==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";T(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new dy(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function LA(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&IA(a,t))){var o=t.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function IA(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(Lh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function PA(r,t){return isNaN(r)||isNaN(t)}function RA(r){for(var t=r.length/2;t>0&&PA(r[t*2-2],r[t*2-1]);t--);return t-1}function Zd(r,t){return[r[t*2],r[t*2+1]]}function EA(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function y0(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Re.length;t++)if(r.get([Re[t],"endLabel","show"]))return!0;return!1}function jl(r,t,e,i){if(Ih(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=y0(i)?function(c,d){r._endLabelOnDuring(c,d,o,s,a,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=p0(t,e,i,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return g0(t,e,i)}function kA(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 OA=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new yt,i=new mA;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,n){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!i.ssr&&e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),x=c0(o,l,S),b=_&&MA(o,l,x),w=e.get("showSymbol"),M=e.get("connectNulls"),C=w&&!v&&LA(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(pt,Fe){pt.__temp&&(s.remove(pt),D.setItemGraphicEl(Fe,null))}),w||d.remove(),s.add(y);var A=v?!1:e.get("step"),L;o&&o.getArea&&e.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=DA(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&c.type===o.type&&A===this._step))w&&d.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(pt){return[h[pt*2],h[pt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),A&&(h=sr(h,o,A,M),b&&(b=sr(b,o,A,M))),p=this._newPolyline(h),_?g=this._newPolygon(h,b):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,ei(I)),y.setClipPath(jl(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,ei(I));var P=y.getClipPath();if(P){var R=jl(this,o,!1,e);qe(P,{shape:R.shape},e)}else y.setClipPath(jl(this,o,!0,e));w&&d.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(pt){return[h[pt*2],h[pt*2+1]]}}),(!Gd(this._stackedOnPoints,b)||!Gd(this._points,h))&&(m?this._doUpdateAnimation(l,b,o,n,A,S,M):(A&&(h=sr(h,o,A,M),b&&(b=sr(b,o,A,M))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:b})))}var E=e.getModel("emphasis"),W=E.get("focus"),O=E.get("blurScope"),N=E.get("disabled");if(p.useStyle(tt(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Vu(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}it(p).seriesIndex=e.seriesIndex,Uo(p,W,O,N);var Q=Yd(e.get("smooth")),at=e.get("smoothMonotone");if(p.setShape({smooth:Q,smoothMonotone:at,connectNulls:M}),g){var ut=l.getCalculationInfo("stackedOnSeries"),vt=0;g.useStyle(tt(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ut&&(vt=Yd(ut.get("smooth"))),g.setShape({smooth:Q,stackedOnSmooth:vt,smoothMonotone:at,connectNulls:M}),Vu(g,e,"areaStyle"),it(g).seriesIndex=e.seriesIndex,Uo(g,W,O,N)}var Yt=function(pt){a._changePolyState(pt)};l.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=Yt)}),this._polyline.onHoverStateChange=Yt,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=h,this._step=A,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,i){it(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=jr(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new Lh(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else _e.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=jr(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else _e.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;jc(this._polyline,e),i&&jc(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new xA({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 TA({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(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");Z(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=Z(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,x=i.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;a?(y=b.x,m=b.x+b.width,_=c.x):(y=b.y+b.height,m=b.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var M=Z(h)?h(d):f*w+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(y0(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new bt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=RA(l);f>=0&&(Cs(s,Ms(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?h0(o,c):Dh(o,h)},enableTextSetter:!0},kA(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,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",M=EA(h,S,w),C=M.range,D=C[1]-C[0],A=void 0;if(D>=1){if(D>1&&!c){var L=Zd(h,C[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(A=v.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(A=MS(n,d,I,P,M.t))}a.lastFrameIndex=C[0]}else{var R=e===1||a.lastFrameIndex>0?C[0]:0,L=Zd(h,R);o&&(A=v.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+b})}if(o){var E=As(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=bA(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=sr(v.current,n,o,l),d=sr(v.stackedOnCurrent,n,o,l),p=sr(v.next,n,o,l),g=sr(v.stackedOnNext,n,o,l)),Ud(c,p)>3e3||f&&Ud(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Qt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Qt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,M=0;M<m.length;M++){var C=m[M].el,D=m[M].ptIdx*2;C.x=w[D],C.y=w[D+1],C.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}(_e);function BA(r,t){return{seriesType:r,plan:dh(),reset:function(e){var i=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var a=V(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),o=a.length,s=i.getCalculationInfo("stackResultDimension");Yi(i,a[0])&&(a[0]=s),Yi(i,a[1])&&(a[1]=s);var l=i.getStore(),u=i.getDimensionIndex(a[0]),f=i.getDimensionIndex(a[1]);return o&&{progress:function(h,v){for(var c=h.end-h.start,d=Ye(c*o),p=[],g=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(o===1){var S=l.get(u,y);_=n.dataToPoint(S,null,g)}else p[0]=l.get(u,y),p[1]=l.get(f,y),_=n.dataToPoint(p,null,g);d[m++]=_[0],d[m++]=_[1]}v.setLayout("points",d)}}}}}}var NA={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},minmax:function(r){for(var t=-1/0,e=-1/0,i=0;i<r.length;i++){var n=r[i],a=Math.abs(n);a>t&&(t=a,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},FA=function(r){return Math.round(r.length/2)};function m0(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 l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;z(a)?d=NA[a]:Z(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,d,FA))}}}}}function zA(r){r.registerChartView(OA),r.registerSeriesModel(gA),r.registerLayout(BA("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,m0("line"))}var ff=function(r){k(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 bh(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(v,c){if(v.type==="category"&&i!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[c],y=i[c]==="x1"||i[c]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=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===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+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"},t}(Ee);Ee.registerClass(ff);var VA=function(r){k(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 bh(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=Ds(ff.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:"#212121"}},realtimeSort:!1}),t}(ff),HA=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}(),Xd=function(r){k(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new HA},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),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,v=i.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+n,g*o+a),e.arc(p*u+n,g*u+a,l,-Math.PI+f,f,!v)):e.moveTo(p*s+n,g*s+a),e.arc(n,a,s,f,h,!v),e.arc(y*u+n,m*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(n,a,o,h,f,v)},t}(lt);function GA(r,t){t=t||{};var e=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return zo(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,x=f+v*_(p),b=h+v*S(p),w="left",M="top";switch(s){case"startArc":x=f+(c-l)*_(y),b=h+(c-l)*S(y),w="center",M="top";break;case"insideStartArc":x=f+(c+l)*_(y),b=h+(c+l)*S(y),w="center",M="bottom";break;case"startAngle":x=f+d*_(p)+so(p,l+m,!1),b=h+d*S(p)+lo(p,l+m,!1),w="right",M="middle";break;case"insideStartAngle":x=f+d*_(p)+so(p,-l+m,!1),b=h+d*S(p)+lo(p,-l+m,!1),w="left",M="middle";break;case"middle":x=f+d*_(y),b=h+d*S(y),w="center",M="middle";break;case"endArc":x=f+(v+l)*_(y),b=h+(v+l)*S(y),w="center",M="bottom";break;case"insideEndArc":x=f+(v-l)*_(y),b=h+(v-l)*S(y),w="center",M="top";break;case"endAngle":x=f+d*_(g)+so(g,l+m,!0),b=h+d*S(g)+lo(g,l+m,!0),w="left",M="middle";break;case"insideEndAngle":x=f+d*_(g)+so(g,-l+m,!0),b=h+d*S(g)+lo(g,-l+m,!0),w="right",M="middle";break;default:return zo(i,n,a)}return i=i||{},i.x=x,i.y=b,i.align=w,i.verticalAlign=M,i}}function WA(r,t,e,i){if(ct(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,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function so(r,t,e){return t*Math.sin(r)*(e?-1:1)}function lo(r,t,e){return t*Math.cos(r)*(e?1:-1)}function UA(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:V(i,function(a){return yr(a,n)})}}var tu=Math.max,eu=Math.min;function YA(r,t){var e=r.getArea&&r.getArea();if(Ih(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 ZA=function(r){k(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))},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){ws(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(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,c=XA(e,u);c&&this._enableRealtimeSort(c,s,n);var d=e.get("clip",!0)||c,p=YA(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function M(A){var L=uo[u.type](s,A),I=tD(u,h,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var L=s.getItemModel(A),I=uo[u.type](s,A,L);if(y&&M(A),!(!s.hasValue(A)||!Jd[u.type](I))){var P=!1;d&&(P=$d[u.type](p,I));var R=qd[u.type](e,s,A,I,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),jd(R,s,A,L,I,e,h,u.type==="polar"),b?R.attr({shape:I}):c?Kd(c,v,R,I,A,h,!1,!1):qe(R,{shape:I},e,A),s.setItemGraphicEl(A,R),o.add(R),R.ignore=P}}).update(function(A,L){var I=s.getItemModel(A),P=uo[u.type](s,A,I);if(y){var R=void 0;x.length===0?R=M(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[A]=R);var E=uo[u.type](s,A),W=S0(h,E,u);Qt(R,{shape:W},v,A)}var O=l.getItemGraphicEl(L);if(!s.hasValue(A)||!Jd[u.type](P)){o.remove(O);return}var N=!1;if(d&&(N=$d[u.type](p,P),N&&o.remove(O)),O?py(O):O=qd[u.type](e,s,A,P,h,v,f.model,!!O,g),c&&(O.forceLabelAnimation=!0),w){var G=O.getTextContent();if(G){var Q=As(G);Q.prevValue!=null&&(Q.prevValue=Q.value)}}else jd(O,s,A,I,P,e,h,u.type==="polar");b?O.attr({shape:P}):c?Kd(c,v,O,P,A,h,!0,w):Qt(O,{shape:P},e,A,null),s.setItemGraphicEl(A,O),O.ignore=N,o.add(O)}).remove(function(A){var L=l.getItemGraphicEl(A);L&&Uu(L,e,A)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new yt);C.removeAll();for(var D=0;D<S.length;++D)C.add(S[D]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,i,n){this._clear(),ep(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),ep(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&CA(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(l){var u=i.getItemGraphicEl(l),f=u&&u.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 l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(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,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),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){Uu(a,e,it(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}(_e),$d={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=tu(t.x,r.x),s=eu(t.x+t.width,n),l=tu(t.y,r.y),u=eu(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>n?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,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=eu(t.r,r.r),a=tu(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}},qd={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new ht({shape:B({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?Xd:Qi,f=new u({shape:i,z2:1});f.name="item";var h=_0(n);if(f.calculateTextPosition=GA(h,{isRoundCap:u===Xd}),a){var v=f.shape,c=n?"r":"endAngle",d={};v[c]=n?i.r0:i.startAngle,d[c]=i[c],(s?Qt:qe)(f,{shape:d},a)}return f}};function XA(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Kd(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Qt:qe)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Qt:qe)(e,{shape:u},f,n)}function Qd(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var $A=["x","y","width","height"],qA=["cx","cy","r","startAngle","endAngle"],Jd={cartesian2d:function(r){return!Qd(r,$A)},polar:function(r){return!Qd(r,qA)}},uo={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),n=e?QA(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 KA(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function _0(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 jd(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=UA(i.getModel("itemStyle"),f);B(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=i.getShallow("cursor");v&&r.attr("cursor",v);var c=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=Ms(i);Cs(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Dh(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=i.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,WA(r,g==="outside"?c:g,_0(o),i.get(["label","rotate"]))}Fx(p,d,a.getRawValue(e),function(m){return h0(t,m)});var y=i.getModel(["emphasis"]);Uo(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Vu(r,i),KA(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function QA(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 JA=function(){function r(){}return r}(),tp=function(r){k(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new JA},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(lt);function ep(r,t,e,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new tp({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new tp({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")),it(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",rp),h.on("mousemove",rp)),e&&e.push(h)}var rp=Ns(function(r){var t=this,e=jA(t,r.offsetX,r.offsetY);it(t).dataIndex=e>=0?e:null},30,!1);function jA(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[i]=u,l[n]=a[v+2],s[i]=a[v+i],s[n]=a[v+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function S0(r,t,e){if(Ih(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 tD(r,t,e){var i=r.type==="polar"?Qi:ht;return new i({shape:S0(t,e,r),silent:!0,z2:0})}function eD(r){r.registerChartView(ZA),r.registerSeriesModel(VA),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,nt(DM,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LM("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,m0("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 rD=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(rt),hf=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Et).models[0]},t.type="cartesian2dAxis",t}(rt);ke(hf,QM);var b0={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:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},iD=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},b0),Ph=K({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},b0),nD=K({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ph),aD=tt({logBase:10},Ph);const oD={category:iD,value:Ph,time:nD,log:aD};var sD={value:1,category:1,time:1,log:1};function ip(r,t,e,i){T(sD,function(n,a){var o=K(K({},oD[a],!0),i,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=ia(this),c=v?Sa(f):{},d=h.getTheme();K(f,d.get(a+"Axis")),K(f,this.getDefaultOption()),f.type=np(f),v&&Wi(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=sf.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",np)}function np(r){return r.type||(r.data?"category":"value")}var lD=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 V(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Lt(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}(),cf=["x","y"];function ap(r){return r.type==="interval"||r.type==="time"}var uD=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=cf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!ap(e)||!ap(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Ff([],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 ot(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 ue(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.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(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return ue(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,l=Math.max(n[0],n[1])-o+e;return new ot(a,o,s,l)},t}(lD),fD=function(r){k(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}(sA);function vf(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Kn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function op(r){return r.get("coordinateSystem")==="cartesian2d"}function sp(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Et).models[0];t[i]=a}),t}var ru=Math.log;function hD(r,t,e){var i=ji.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=e0(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=ru(r.base);u=[ru(u[0])/v,ru(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=i.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=Kl(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=Kl(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Kl(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=St(g-m),p<0&&u[0]>=0?(p=0,g=St(m)):g>0&&u[1]<=0&&(g=0,p=-St(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,p+d*_,g+d*S),i.setInterval.call(r,d),(_||S)&&i.setNiceExtent.call(r,p+d,g-d)}var cD=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cf,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,l=dt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;lf(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(kd(p,d),lf(p)&&(s=c))}f.length&&(s||(s=f.pop(),kd(s.scale,s.model)),T(f,function(g){hD(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){lp(i,"y",o,a)}),T(i.y,function(o){lp(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=_r(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=$M(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),vD(u,f?o.x:o.y)})}},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]}H(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",Et).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Et).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,j(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},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:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(v,c){var d="x"+h+"y"+c,p=new uD(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(iu(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new fD(f,ZM(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[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(op(n)){var a=sp(n),o=a.xAxisModel,s=a.yAxisModel;if(!iu(o,e)||!iu(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){T(i0(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);j(e,a)<0&&e.push(a),j(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){if(op(n)){var a=sp(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=cf,r}();function iu(r,t){return r.getCoordSysModel()===t}function lp(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)up(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&up(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function up(r){return r&&r.type!=="category"&&r.type!=="time"&&XM(r)}function vD(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}}var hr=Math.PI,gr=function(){function r(t,e){this.group=new yt,this.opt=e,this.axisModel=t,tt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new yt({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!fp[t]},r.prototype.add=function(t){fp[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=kg(e-t),a,o;return Vo(n)?(o=i>0?"top":"bottom",a="center"):Vo(n-hr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<hr?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}(),fp={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ue(s,s,o),ue(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new mr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});ta(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);z(v)&&(v=[v,v]),(z(c)||ct(c))&&(c=[c,c]);var d=mm(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];T([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=Sr(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(r.rotation),y:x[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=gD(e,i,t,r),a=mD(e,i,t,r);if(pD(t,a,n),yD(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=uA(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));fA(o)}},axisName:function(r,t,e,i){var n=Kn(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,cp(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*hr/180);var d;cp(a)?v=gr.innerTextLayout(r.rotation,c??r.rotation,o):(v=dD(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Kn(r.nameTruncateMaxWidth,g.maxWidth,d),_=new bt({x:h[0],y:h[1],rotation:v.rotation,silent:gr.isLabelSilent(t),style:Ke(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(xs({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=gr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,it(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function dD(r,t,e,i){var n=kg(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Vo(n-hr/2)?(o=l?"bottom":"top",a="center"):Vo(n-hr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<hr*1.5&&n>hr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function pD(r,t,e){if(!r0(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];i===!1?(te(a),te(u)):hp(a,o)&&(i?(te(o),te(f)):(te(a),te(u))),n===!1?(te(s),te(h)):hp(l,s)&&(n?(te(l),te(v)):(te(s),te(h)))}}function te(r){r&&(r.ignore=!0)}function hp(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=Bf([]);return Nf(n,n,-r.rotation),e.applyTransform(Ri([],n,r.getLocalTransform())),i.applyTransform(Ri([],n,t.getLocalTransform())),e.intersect(i)}}function cp(r){return r==="middle"||r==="center"}function x0(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(ue(o,o,t),ue(s,s,t));var f=new mr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ta(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function gD(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=x0(u,t.transform,l,tt(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function yD(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=tt(s.getLineStyle(),tt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=x0(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function mD(r,t,e,i){var n=e.axis,a=Kn(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Kn(i.labelRotate,o.get("rotate"))||0)*hr/180,f=gr.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=gr.isLabelSilent(e),d=e.get("triggerEvent");return T(l,function(p,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var x=h[y];H(x)&&x.textStyle&&(S=new gt(x.textStyle,o,e.ecModel))}var b=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(y),M=S.getShallow("align",!0)||f.textAlign,C=J(S.getShallow("alignMinLabel",!0),M),D=J(S.getShallow("alignMaxLabel",!0),M),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,L=J(S.getShallow("verticalAlignMinLabel",!0),A),I=J(S.getShallow("verticalAlignMaxLabel",!0),A),P=new bt({x:w,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:Ke(S,{text:m,align:g===0?C:g===l.length-1?D:M,verticalAlign:g===0?L:g===l.length-1?I:A,fill:Z(b)?b(n.type==="category"?_:n.type==="value"?y+"":y,g):b})});if(P.anid="label_"+y,d){var R=gr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,n.type==="category"&&(R.dataIndex=y),it(P).eventData=R}t.add(P),P.updateTransform(),v.push(P),r.add(P),P.decomposeTransform()}),v}}function _D(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return SD(e,r,t),e.seriesInvolved&&xD(e,r),e}function SD(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 l=ua(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(T(s.getAxes(),nt(p,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&T(d.baseAxes,nt(p,c?"cross":!0,v)),c&&T(d.otherAxes,nt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!df(_))){y==null&&(y=_.get("triggerTooltip")),_=g?bD(m,h,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=ua(m.model),M=y||x||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:M,snap:x,useHandle:df(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||M;var D=wD(a,m);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[w]=C,A.mapper=a[D].mapper,C.linkGroup=A}}}})}function bD(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(v){l[v]=$(o.get(v))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&tt(u,h.textStyle)}}return r.model.getModel("axisPointer",new gt(l,e,i))}function xD(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[ua(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 wD(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(nu(a[i+"AxisId"],e.id)||nu(a[i+"AxisIndex"],e.componentIndex)||nu(a[i+"AxisName"],e.name))return n}}function nu(r,t){return r==="all"||F(r)&&j(r,t)>=0||r===t}function TD(r){var t=Rh(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=df(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Rh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ua(r)]}function CD(r){var t=Rh(r);return t&&t.axisPointerModel}function df(r){return!!r.get(["handle","show"])}function ua(r){return r.type+"||"+r.id}var vp={},w0=function(r){k(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&&TD(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=CD(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){vp[e]=i},t.getAxisPointerClass=function(e){return e&&vp[e]},t.type="axis",t}(Ut),pf=_t();function MD(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"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=pf(r).splitAreaColors,v=Y(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;n.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&v.set(w,c),t.add(new ht({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:tt({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}pf(r).splitAreaColors=v}}}function AD(r){pf(r).splitAreaColors=null}var DD=["axisLine","axisTickLabel","axisName"],LD=["splitArea","splitLine","minorSplitLine"],T0=function(r){k(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 yt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=vf(s,e),u=new gr(e,B({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(lf(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));T(DD,u.add,u),this._axisGroup.add(u.getGroup()),T(LD,function(h){e.get([h,"show"])&&ID[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||_y(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){AD(this)},t.type="cartesianAxis",t}(w0),ID={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=F(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:a}),v=[],c=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=n.toGlobalCoord(h[p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=f++%s.length,m=h[p].tickValue,_=new mr({anid:m!=null?"line_"+h[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:tt({stroke:s[y]},d),silent:!0});ta(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++){var p=n.toGlobalCoord(u[c][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new mr({anid:"minor_line_"+u[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});ta(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,i){MD(r,t,e,i)}},C0=function(r){k(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),PD=function(r){k(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),RD=function(r){k(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 ht({shape:e.coordinateSystem.getRect(),style:tt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ut),dp={offset:0};function ED(r){r.registerComponentView(RD),r.registerComponentModel(rD),r.registerCoordinateSystem("cartesian2d",cD),ip(r,"x",hf,dp),ip(r,"y",hf,dp),r.registerComponentView(C0),r.registerComponentView(PD),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var pp="\0_ec_interaction_mutex";function kD(r,t,e){var i=Eh(r);i[t]=e}function OD(r,t,e){var i=Eh(r),n=i[t];n===e&&(i[t]=null)}function gp(r,t){return!!Eh(r)[t]}function Eh(r){return r[pp]||(r[pp]={})}Be({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},kt);var BD=function(r){k(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=U(i._mousedownHandler,i),a=U(i._mousemoveHandler,i),o=U(i._mouseupHandler,i),s=U(i._mousewheelHandler,i),l=U(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=tt($(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",n),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!rc(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Ao("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||gp(this._zr,"globalPan"))){var i=e.offsetX,n=e.offsetY,a=this._x,o=this._y,s=i-a,l=n-o;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Vi(e.event),M0(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:i,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){rc(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=Ao("zoomOnMouseWheel",e,this._opt),n=Ao("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;au(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);au(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!gp(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;au(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(fe);function au(r,t,e,i,n){r.pointerChecker&&r.pointerChecker(i,n.originX,n.originY)&&(Vi(i.event),M0(r,t,e,i,n))}function M0(r,t,e,i,n){n.isAvailableBehavior=U(Ao,null,e,i),r.trigger(t,n)}function Ao(r,t,e){var i=e[r];return!r||i&&(!z(i)||t.event[i+"Key"])}var ND={axisPointer:1,tooltip:1,brush:1};function FD(r,t,e){var i=t.getComponentByElement(r.topTarget),n=i&&i.coordinateSystem;return i&&i!==e&&!ND.hasOwnProperty(i.mainType)&&n&&n.model!==e}function ba(r,t,e,i,n,a){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=bi(n,[0,o])),a!=null&&(a=Math.max(a,n??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=bi(s,[0,o]),n=a=bi(s,[n,a]),i=0}t[0]=bi(t[0],e),t[1]=bi(t[1],e);var l=ou(t,i);t[i]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=bi(t[i],f);var h;return h=ou(t,i),n!=null&&(h.sign!==l.sign||h.span<n)&&(t[1-i]=t[i]+l.sign*n),h=ou(t,i),a!=null&&h.span>a&&(t[1-i]=t[i]+h.sign*a),t}function ou(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function bi(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ri=!0,fa=Math.min,Zi=Math.max,zD=Math.pow,VD=1e4,HD=6,GD=6,yp="globalPan",WD={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},UD={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},mp={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},YD=0,ZD=function(r){k(t,r);function t(e){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new yt,i._uid="brushController_"+YD++,T(jD,function(n,a){this._handlers[a]=U(n,this)},i),i}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||kD(i,yp,this._uid),T(this._handlers,function(n,a){i.on(a,n)}),this._brushType=e.brushType,this._brushOption=K($(mp),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;OD(e,yp,this._uid),T(this._handlers,function(i,n){e.off(n,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};T(e,function(n){i[n.panelId]=$(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=V(e,function(v){return K($(mp),v,!0)});var i="\0-brush-index-",n=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Sh(n,e,u,l).add(f).update(f).remove(h).execute(),this;function l(v,c){return(v.id!=null?v.id:i+c)+"-"+v.brushType}function u(v,c){return l(v.__brushOption,c)}function f(v,c){var d=e[v];if(c!=null&&n[c]===s)a[v]=n[c];else{var p=a[v]=c!=null?(n[c].__brushOption=d,n[c]):D0(o,A0(o,d));kh(o,p)}}function h(v){n[v]!==s&&o.group.remove(n[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),gf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(fe);function A0(r,t){var e=Ws[t.brushType].createCover(r,t);return e.__brushOption=t,I0(e,t),r.group.add(e),e}function D0(r,t){var e=Oh(t);return e.endCreating&&(e.endCreating(r,t),I0(t,t.__brushOption)),t}function L0(r,t){var e=t.__brushOption;Oh(t).updateCoverShape(r,t,e.range,e)}function I0(r,t){var e=t.z;e==null&&(e=VD),r.traverse(function(i){i.z=e,i.z2=e})}function kh(r,t){Oh(t).updateCommon(r,t),L0(r,t)}function Oh(r){return Ws[r.__brushOption.brushType]}function Bh(r,t,e){var i=r._panels;if(!i)return ri;var n,a=r._transform;return T(i,function(o){o.isTargetByCursor(t,e,a)&&(n=o)}),n}function P0(r,t){var e=r._panels;if(!e)return ri;var i=t.__brushOption.panelId;return i!=null?e[i]:ri}function gf(r){var t=r._covers,e=t.length;return T(t,function(i){r.group.remove(i)},r),t.length=0,!!e}function ii(r,t){var e=V(r._covers,function(i){var n=i.__brushOption,a=$(n.range);return{brushType:n.brushType,panelId:n.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function XD(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],i=t[0],n=e[0]-i[0],a=e[1]-i[1],o=zD(n*n+a*a,.5);return o>HD}function R0(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function E0(r,t,e,i){var n=new yt;return n.add(new ht({name:"main",style:Nh(e),silent:!0,draggable:!0,cursor:"move",drift:nt(_p,r,t,n,["n","s","w","e"]),ondragend:nt(ii,t,{isEnd:!0})})),T(i,function(a){n.add(new ht({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:nt(_p,r,t,n,a),ondragend:nt(ii,t,{isEnd:!0})}))}),n}function k0(r,t,e,i){var n=i.brushStyle.lineWidth||0,a=Zi(n,GD),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],h=e[1][1],v=f-a+n/2,c=h-a+n/2,d=f-o,p=h-s,g=d+n,y=p+n;He(r,t,"main",o,s,d,p),i.transformable&&(He(r,t,"w",l,u,a,y),He(r,t,"e",v,u,a,y),He(r,t,"n",l,u,g,a),He(r,t,"s",l,c,g,a),He(r,t,"nw",l,u,a,a),He(r,t,"ne",v,u,a,a),He(r,t,"sw",l,c,a,a),He(r,t,"se",v,c,a,a))}function yf(r,t){var e=t.__brushOption,i=e.transformable,n=t.childAt(0);n.useStyle(Nh(e)),n.attr({silent:!i,cursor:i?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?mf(r,a[0]):qD(r,a);o&&o.attr({silent:!i,invisible:!i,cursor:i?UD[s]+"-resize":null})})}function He(r,t,e,i,n,a,o){var s=t.childOfName(e);s&&s.setShape(QD(Fh(r,t,[[i,n],[i+a,n+o]])))}function Nh(r){return tt({strokeNoScale:!0},r.brushStyle)}function O0(r,t,e,i){var n=[fa(r,e),fa(t,i)],a=[Zi(r,e),Zi(t,i)];return[[n[0],a[0]],[n[1],a[1]]]}function $D(r){return Ss(r.group)}function mf(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},n=eh(e[t],$D(r));return i[n]}function qD(r,t){var e=[mf(r,t[0]),mf(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function _p(r,t,e,i,n,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=B0(t,n,a);T(i,function(u){var f=WD[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(O0(s[0][0],s[1][0],s[0][1],s[1][1])),kh(t,e),ii(t,{isEnd:!1})}function KD(r,t,e,i){var n=t.__brushOption.range,a=B0(r,e,i);T(n,function(o){o[0]+=a[0],o[1]+=a[1]}),kh(r,t),ii(r,{isEnd:!1})}function B0(r,t,e){var i=r.group,n=i.transformCoordToLocal(t,e),a=i.transformCoordToLocal(0,0);return[n[0]-a[0],n[1]-a[1]]}function Fh(r,t,e){var i=P0(r,t);return i&&i!==ri?i.clipPath(e,r._transform):$(e)}function QD(r){var t=fa(r[0][0],r[1][0]),e=fa(r[0][1],r[1][1]),i=Zi(r[0][0],r[1][0]),n=Zi(r[0][1],r[1][1]);return{x:t,y:e,width:i-t,height:n-e}}function JD(r,t,e){if(!(!r._brushType||t2(r,t.offsetX,t.offsetY))){var i=r._zr,n=r._covers,a=Bh(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(a&&(a===ri||s.panelId===a.panelId)&&Ws[s.brushType].contain(n[o],e[0],e[1]))return}a&&i.setCursorStyle("crosshair")}}function _f(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Sf(r,t,e){return r.childOfName("main").contain(t,e)}function N0(r,t,e,i){var n=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),XD(r)||n){if(a&&!n){o.brushMode==="single"&&gf(r);var l=$(o);l.brushType=Sp(l.brushType,a),l.panelId=a===ri?null:a.panelId,n=r._creatingCover=A0(r,l),r._covers.push(n)}if(n){var u=Ws[Sp(r._brushType,a)],f=n.__brushOption;f.range=u.getCreatingRange(Fh(r,n,r._track)),i&&(D0(r,n),u.updateCommon(r,n)),L0(r,n),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&Bh(r,t,e)&&gf(r)&&(s={isEnd:i,removeOnClick:!0});return s}function Sp(r,t){return r==="auto"?t.defaultBrushType:r}var jD={mousedown:function(r){if(this._dragging)bp(this,r);else if(!r.target||!r.target.draggable){_f(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Bh(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,i=this.group.transformCoordToLocal(t,e);if(JD(this,r,i),this._dragging){_f(r);var n=N0(this,r,i,!1);n&&ii(this,n)}},mouseup:function(r){bp(this,r)}};function bp(r,t){if(r._dragging){_f(t);var e=t.offsetX,i=t.offsetY,n=r.group.transformCoordToLocal(e,i),a=N0(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&ii(r,a)}}function t2(r,t,e){var i=r._zr;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Ws={lineX:xp(0),lineY:xp(1),rect:{createCover:function(r,t){function e(i){return i}return E0({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=R0(r);return O0(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,i){k0(r,t,e,i)},updateCommon:yf,contain:Sf},polygon:{createCover:function(r,t){var e=new yt;return e.add(new ma({name:"main",style:Nh(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new ya({name:"main",draggable:!0,drift:nt(KD,r,t),ondragend:nt(ii,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,i){t.childAt(0).setShape({points:Fh(r,t,e)})},updateCommon:yf,contain:Sf}};function xp(r){return{createCover:function(t,e){return E0({toRectRange:function(i){var n=[i,[0,100]];return r&&n.reverse(),n},fromRectRange:function(i){return i[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=R0(t),i=fa(e[0][r],e[1][r]),n=Zi(e[0][r],e[1][r]);return[i,n]},updateCoverShape:function(t,e,i,n){var a,o=P0(t,e);if(o!==ri&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,a];r&&l.reverse(),k0(t,e,l,n)},updateCommon:yf,contain:Sf}}function e2(r){return r=zh(r),function(t){return Sy(t,r)}}function r2(r,t){return r=zh(r),function(e){var i=t??e,n=i?r.width:r.height,a=i?r.x:r.y;return[a,a+(n||0)]}}function i2(r,t,e){var i=zh(r);return function(n,a){return i.contain(a[0],a[1])&&!FD(n,t,e)}}function zh(r){return ot.create(r)}var Yr=_t(),wp=$,su=U,n2=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,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new yt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var v=nt(Tp,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}Mp(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 l=Rh(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>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=Yr(t).pointerEl=new kx[a.type](wp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Yr(t).labelEl=new bt(wp(e.label));t.add(a),Cp(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Yr(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=Yr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Cp(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=bs(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Vi(u.event)},onmousedown:su(this._onHandleDragMove,this,0,0),drift:su(this._onHandleDragMove,this),ondragend:su(this._onHandleDragEnd,this)}),i.add(n)),Mp(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");F(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fs(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Tp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,lu(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(lu(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(lu(n)),Yr(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),Qo(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 Tp(r,t,e,i){F0(Yr(e).lastProp,i)||(Yr(e).lastProp=i,t?Qt(e,i,r):(e.stopAnimation(),e.attr(i)))}function F0(r,t){if(H(r)&&H(t)){var e=!0;return T(t,function(i,n){e=e&&F0(r[n],i)}),!!e}else return r===t}function Cp(r,t){r[t.get(["label","show"])?"show":"hide"]()}function lu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Mp(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 a2(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 o2(r,t,e,i,n){var a=e.get("value"),o=z0(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ks(s.get("padding")||0),u=s.getFont(),f=fs(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),s2(h,v,c,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ke(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function s2(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 z0(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:Mh(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):Z(o)&&(a=o(s))}return a}function V0(r,t,e){var i=Pi();return Nf(i,i,e.rotation),Tu(i,i,e.position),ea([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function l2(r,t,e,i,n,a){var o=gr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),o2(t,i,n,a,{position:V0(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function u2(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function f2(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var h2=function(r){k(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,l=s.grid,u=a.get("type"),f=Ap(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var v=a2(a),c=c2[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=vf(l.model,n);l2(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=vf(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=V0(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,l=o.getGlobalExtent(!0),u=Ap(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(n2);function Ap(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var c2={line:function(r,t,e){var i=u2([t,e[0]],[t,e[1]],Dp(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:f2([t-i/2,e[0]],[i,n],Dp(r))}}};function Dp(r){return r.dim==="x"?0:1}var v2=function(r){k(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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(rt),Ze=_t(),d2=T;function H0(r,t,e){if(!X.node){var i=t.getZr();Ze(i).records||(Ze(i).records={}),p2(i,t);var n=Ze(i).records[r]||(Ze(i).records[r]={});n.handler=e}}function p2(r,t){if(Ze(r).initialized)return;Ze(r).initialized=!0,e("click",nt(Lp,"click")),e("mousemove",nt(Lp,"mousemove")),e("globalout",y2);function e(i,n){r.on(i,function(a){var o=m2(t);d2(Ze(r).records,function(s){s&&n(s,a,o.dispatchAction)}),g2(o.pendings,t)})}}function g2(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 y2(r,t,e){r.handler("leave",null,e)}function Lp(r,t,e,i){t.handler(r,e,i)}function m2(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 bf(r,t){if(!X.node){var e=t.getZr(),i=(Ze(e).records||{})[r];i&&(Ze(e).records[r]=null)}}var _2=function(r){k(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";H0("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){bf("axisPointer",i)},t.prototype.dispose=function(e,i){bf("axisPointer",i)},t.type="axisPointer",t}(Ut);function G0(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=jr(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Ip=_t();function S2(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||U(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Do(n)&&(n=G0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Do(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||Do(n),v={},c={},d={list:[],map:{}},p={showPointer:nt(x2,c),showTooltip:nt(w2,d)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);T(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=A2(u,S);if(!h&&_&&(!u||w)){var M=w&&w.value;M==null&&!l&&(M=b.pointToData(n)),M!=null&&Pp(S,M,p,!1,v)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&T(_.axesInfo,function(S,x){var b=c[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Rp(S),Rp(y)))),g[y.key]=w}})}),T(g,function(y,m){Pp(f[m],y,p,!0,v)}),T2(c,f,v),C2(d,n,r,o),M2(f,o,e),v}}function Pp(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=b2(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function b2(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=h,a.length=0),T(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function x2(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function w2(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=ua(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.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 T2(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 C2(r,t,e,i){if(Do(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 M2(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Ip(i)[n]||{},o=Ip(i)[n]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function A2(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 Rp(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 Do(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function W0(r){w0.registerAxisPointerClass("CartesianAxisPointer",h2),r.registerComponentModel(v2),r.registerComponentView(_2),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=_D(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},S2)}function D2(r){Se(ED),Se(W0)}var Ep=["x","y","radius","angle","single"],L2=["cartesian2d","polar","singleAxis"];function I2(r){var t=r.get("coordinateSystem");return j(L2,t)>=0}function cr(r){return r+"Axis"}function P2(r,t){var e=Y(),i=[],n=Y();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=e.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(e.get(h)||e.set(h,[]))[v]=!0})}return i}function U0(r){var t=r.ecModel,e={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,n){var a=t.getComponent(cr(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var uu=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),ha=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,n){var a=kp(e);this.settledOption=a,this.mergeDefaultAndTheme(e,n),this._doInit(a)},t.prototype.mergeOption=function(e){var i=kp(e);K(this.option,e,!0),K(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return T(Ep,function(n){var a=this.getReferringComponents(cr(n),wS);if(a.specified){i=!0;var o=new uu;T(a.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new uu;if(v.add(h.componentIndex),e.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Et).models[0];c&&T(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Et).models[0]&&v.add(d.componentIndex)})}}}a&&T(Ep,function(u){if(a){var f=n.findComponents({mainType:cr(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new uu;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,n=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,n){e==null&&(e=this.ecModel.getComponent(cr(i),n))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(n,a){T(n.indexList,function(o){e.call(i,a,o)})})},t.prototype.getAxisProxy=function(e,i){var n=this.getAxisModel(e,i);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[i])return this.ecModel.getComponent(cr(e),i)},t.prototype.setRawRange=function(e){var i=this.option,n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(i[a[0]]=n[a[0]]=e[a[0]],i[a[1]]=n[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;T(["start","startValue","end","endValue"],function(n){i[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(rt);function kp(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var R2=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(ha),Vh=function(r){k(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.dataZoomModel=e,this.ecModel=i,this.api=n},t.type="dataZoom",t}(Ut),E2=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Vh),Ci=T,Op=Pn,k2=function(){function r(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(I2(e)){var i=cr(this._dimName),n=e.getReferringComponents(i,Et).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Ci(["start","end"],function(v,c){var d=t[v],p=t[v+"Value"];a[c]==="percent"?(d==null&&(d=o[c]),p=n.parse(At(d,o,e))):(u=!0,p=p==null?e[c]:n.parse(p),d=At(p,e,o)),l[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),Op(l),Op(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(v,c,d,p,g){var y=g?"Span":"ValueSpan";ba(0,v,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=At(v[m],d,p,!0),g&&(c[m]=n.parse(c[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=O2(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Ci(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var h=u.getStore(),v=V(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(v[y],c),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else Ci(f,function(c){if(a==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Ci(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Ci(["min","max"],function(n){var a=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=At(i[0]+o,i,[0,100],!0):a!=null&&(o=At(a,[0,100],i,!0)-i[0]),t[n+"Span"]=a,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Eg(i,[0,500]);n=Math.min(n,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(n)),e[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(n)),a.freeze()}},r}();function O2(r,t,e){var i=[1/0,-1/0];Ci(e,function(o){KM(i,o.getData(),t)});var n=r.getAxisModel(),a=t0(n.axis.scale,n,i).calculate();return[a.min,a.max]}var B2={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(cr(o),s);n(o,s,l,a)})})}t(function(n,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new k2(n,a,s,r),e.push(o.__dzAxisProxy))});var i=Y();return T(e,function(n){T(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var n=i.getDataPercentWindow(),a=i.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:a[0],endValue:a[1]})}})}};function N2(r){r.registerAction("dataZoom",function(t,e){var i=P2(e,t);T(i,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Bp=!1;function Hh(r){Bp||(Bp=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,B2),N2(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function F2(r){r.registerComponentModel(R2),r.registerComponentView(E2),Hh(r)}var me=function(){function r(){}return r}(),Y0={};function xn(r,t){Y0[r]=t}function Z0(r){return Y0[r]}var z2=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(i,n){var a=Z0(n);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),K(i,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(rt);function V2(r,t,e){var i=t.getBoxLayoutParams(),n=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=_r(i,a,n);Ni(t.get("orient"),r,t.get("itemGap"),o.width,o.height),aw(r,i,a,n)}function X0(r,t){var e=ks(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new ht({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}),r}var H2=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,n,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];T(u,function(d,p){h.push(p)}),new Sh(this._featureNames||[],h).add(v).update(v).remove(nt(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new gt(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(G2(g))S={onclick:_.option.onclick,featureName:g};else{var x=Z0(g);if(!x)return;S=new x}f[g]=S}else if(S=f[y],!S)return;S.uid=_a("toolbox-feature"),S.model=_,S.ecModel=i,S.api=n;var b=S instanceof me;if(!g&&y){b&&S.dispose&&S.dispose(i,n);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(i,n);return}c(_,S,g),_.setIconStatus=function(w,M){var C=this.option,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=M,D[w]&&(M==="emphasis"?Hi:Gi)(D[w])},S instanceof me&&S.render&&S.render(_,i,n,a)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof me&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},x,b;z(_)?(x={},x[g]=_):x=_,z(S)?(b={},b[g]=S):b=S;var w=d.iconPaths={};T(x,function(M,C){var D=bs(M,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var A=D.ensureState("emphasis");A.style=m.getItemStyle();var L=new bt({style:{text:b[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:xy({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});D.setTextContent(L),xs({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:b[C]}}),D.__title=b[C],D.on("mouseover",function(){var I=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&n.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",C])==="emphasis"?Hi:Gi)(D),o.add(D),D.on("click",U(p.onclick,p,i,n,C)),w[C]=D})}V2(o,e,n),o.add(X0(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Z(_)&&p){var S=_.style||(_.style={}),x=fs(p,bt.makeFont(S)),b=d.x+o.x,w=d.y+o.y+s,M=!1;w+x.height>n.getHeight()&&(y.position="top",M=!0);var C=M?-5-x.height:s+10;b+x.width/2>n.getWidth()?(y.position=["100%",C],S.align="right"):b-x.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,i,n,a){T(this._features,function(o){o instanceof me&&o.updateView&&o.updateView(o.model,i,n,a)})},t.prototype.remove=function(e,i){T(this._features,function(n){n instanceof me&&n.remove&&n.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){T(this._features,function(n){n instanceof me&&n.dispose&&n.dispose(e,i)})},t.type="toolbox",t}(Ut);function G2(r){return r.indexOf("my")===0}var W2=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){var n=this.model,a=n.get("name")||e.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=X.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(w),M.document.title=a}},t.getDefaultOption=function(e){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},t}(me),Np="__ec_magicType_stack__",U2=[["line","bar"],["stack"]],Y2=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),n={};return T(e.get("type"),function(a){i[a]&&(n[a]=i[a])}),n},t.getDefaultOption=function(e){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},t.prototype.onclick=function(e,i,n){var a=this.model,o=a.get(["seriesIndex",n]);if(Fp[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=Fp[n](v,c,h,a);d&&(tt(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Et).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};T(U2,function(h){j(h,n)>=0&&T(h,function(v){a.setIconStatus(v,"normal")})}),a.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=K({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(me),Fp={line:function(r,t,e,i){if(r==="bar")return K({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,t,e,i){if(r==="line")return K({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,t,e,i){var n=e.get("stack")===Np;if(r==="line"||r==="bar")return i.setIconStatus("stack",n?"normal":"emphasis"),K({id:t,stack:n?"":Np},i.get(["option","stack"])||{},!0)}};Be({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Us=new Array(60).join("-"),Xi="	";function Z2(r){var t={},e=[],i=[];return r.eachRawSeries(function(n){var a=n.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:i}}function X2(r){var t=[];return T(r,function(e,i){var n=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(V(e.series,function(c){return c.name})),l=[n.model.getCategories()];T(e.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Xi)],f=0;f<l[0].length;f++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][f]);u.push(h.join(Xi))}t.push(u.join(`
`))}),t.join(`

`+Us+`

`)}function $2(r){return V(r,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)n[l]=arguments[l];i.push((s?s+Xi:"")+n.join(Xi))}),i.join(`
`)}).join(`

`+Us+`

`)}function q2(r){var t=Z2(r);return{value:Lt([X2(t.seriesGroupByCategoryAxis),$2(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+Us+`

`),meta:t.meta}}function as(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function K2(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Xi)>=0)return!0}var xf=new RegExp("["+Xi+"]+","g");function Q2(r){for(var t=r.split(/\n+/g),e=as(t.shift()).split(xf),i=[],n=V(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=as(t[a]).split(xf);i.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[a]=o[s])}return{series:n,categories:i}}function J2(r){for(var t=r.split(/\n+/g),e=as(t.shift()),i=[],n=0;n<t.length;n++){var a=as(t[n]);if(a){var o=a.split(xf),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[n]={name:s,value:[]},l=i[n].value):l=i[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[n].value=l[0]:i[n]=l[0])}}return{name:e,data:i}}function j2(r,t){var e=r.split(new RegExp(`
*`+Us+`
*`,"g")),i={series:[]};return T(e,function(n,a){if(K2(n)){var o=Q2(n),s=t[a],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=J2(n);i.series.push(o)}}),i}var tL=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),v=a.get("contentToOption"),c=q2(e);if(Z(h)){var d=h(i.getOption());z(d)?u.innerHTML=d:Fi(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}wu(_,"click",b),wu(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){b();return}var w;try{Z(v)?w=v(u,i.getOption()):w=j2(f.value,g)}catch(M){throw b(),new Error("Data view format error "+M)}w&&i.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},t}(me);function eL(r,t){return V(r,function(e,i){var n=t&&t[i];if(H(n)&&!F(n)){var a=H(e)&&!F(e);a||(e={value:e});var o=n.name!=null&&e.name==null;return e=tt(e,n),o&&delete e.name,e}else return e})}Be({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];T(r.newOption.series,function(i){var n=t.getSeriesByName(i.name)[0];if(!n)e.push(B({type:"scatter"},i));else{var a=n.get("data");e.push({name:i.name,data:eL(i.data,a)})}}),t.mergeOption(tt({series:e},r.newOption))});var $0=T,q0=_t();function rL(r,t){var e=Gh(r);$0(t,function(i,n){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[n])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function iL(r){var t=Gh(r),e=t[t.length-1];t.length>1&&t.pop();var i={};return $0(e,function(n,a){for(var o=t.length-1;o>=0;o--)if(n=t[o][a],n){i[a]=n;break}}),i}function nL(r){q0(r).snapshots=null}function aL(r){return Gh(r).length}function Gh(r){var t=q0(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var oL=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){nL(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return i},t}(me);Be({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var sL=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],K0=function(){function r(t,e,i){var n=this;this._targetInfoList=[];var a=zp(e,t);T(lL,function(o,s){(!i||!i.include||j(i.include,s)>=0)&&o(a,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,n,a){if((i.coordRanges||(i.coordRanges=[])).push(n),!i.coordRange){i.coordRange=n;var o=fu[i.brushType](0,a,n);i.__rangeOffset={offset:Wp[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,i){T(t,function(n){var a=this.findTargetInfo(n,e);a&&a!==!0&&T(a.coordSyses,function(o){var s=fu[n.brushType](1,o,n.range,!0);i(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(i){var n=this.findTargetInfo(i,e);if(i.range=i.range||[],n&&n!==!0){i.panelId=n.panelId;var a=fu[i.brushType](0,n.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Wp[i.brushType](a.values,o.offset,uL(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return V(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:e2(n),isTargetByCursor:i2(n,t,i.coordSysModel),getLinearBrushOtherExtent:r2(n)}})},r.prototype.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return n===!0||n&&j(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=zp(e,t),a=0;a<i.length;a++){var o=i[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Vp.length;l++)if(Vp[l](n,o))return o}return!0},r}();function wf(r){return r[0]>r[1]&&r.reverse(),r}function zp(r,t){return Vn(r,t,{includeMainTypes:sL})}var lL={grid:function(r,t){var e=r.xAxisModels,i=r.yAxisModels,n=r.gridModels,a=Y(),o={},s={};!e&&!i&&!n||(T(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(i,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(n,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(h,v){(j(e,h.getAxis("x").model)>=0||j(i,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Hp.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:Hp.geo})})}},Vp=[function(r,t){var e=r.xAxisModel,i=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&i&&(n=i.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Hp={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ss(r)),t}},fu={lineX:nt(Gp,0),lineY:nt(Gp,1),rect:function(r,t,e,i){var n=r?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),a=r?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),o=[wf([n[0],a[0]]),wf([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]],a=V(e,function(o){var s=r?t.pointToData(o,i):t.dataToPoint(o,i);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:a,xyMinMax:n}}};function Gp(r,t,e,i){var n=e.getAxis(["x","y"][r]),a=wf(V([0,1],function(s){return t?n.coordToData(n.toLocalCoord(i[s]),!0):n.toGlobalCoord(n.dataToCoord(i[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Wp={lineX:nt(Up,0),lineY:nt(Up,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return V(r,function(i,n){return[i[0]-e[0]*t[n][0],i[1]-e[1]*t[n][1]]})}};function Up(r,t,e,i){return[t[0]-i[r]*e[0],t[1]-i[r]*e[1]]}function uL(r,t){var e=Yp(r),i=Yp(t),n=[e[0]/i[0],e[1]/i[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Yp(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Tf=T,fL=_S("toolbox-dataZoom_"),hL=function(r){k(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,n,a){this._brushController||(this._brushController=new ZD(n.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),dL(e,i,this,a,n),vL(e,i)},t.prototype.onclick=function(e,i,n){cL[n].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(!e.isEnd||!i.length)return;var n={},a=this.ecModel;this._brushController.updateCovers([]);var o=new K0(Wh(this.model),a,{include:["grid"]});o.matchOutputRanges(i,a,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),rL(a,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,a),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=ba(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},t.prototype._dispatchZoomAction=function(e){var i=[];Tf(e,function(n,a){i.push($(n))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},t}(me),cL={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(iL(this.ecModel))}};function Wh(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function vL(r,t){r.setIconStatus("back",aL(t)>1?"emphasis":"normal")}function dL(r,t,e,i,n){var a=e._isZoomActive;i&&i.type==="takeGlobalCursor"&&(a=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new K0(Wh(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}dw("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var i=t.getModel(e),n=[],a=Wh(i),o=Vn(r,a);Tf(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Tf(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:fL+u+h};v[f]=h,n.push(v)}return n});function pL(r){r.registerComponentModel(z2),r.registerComponentView(H2),xn("saveAsImage",W2),xn("magicType",Y2),xn("dataView",tL),xn("dataZoom",hL),xn("restore",oL),Se(F2)}var gL=function(r){k(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,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(rt);function Q0(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function J0(r){if(X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var j0=J0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yL=J0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function t_(r,t){if(!r)return t;t=By(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function mL(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var _L=t_(yL,"transition"),Uh=t_(j0,"transform"),SL="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(X.transform3dSupported?"will-change:transform;":"");function bL(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function xL(r,t,e){if(!z(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=ei(t);var a=bL(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Uh+":",u;j(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+p.join("")+'"></div>'}function wL(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=X.transformSupported?","+Uh+i:",left"+i+",top"+i),_L+":"+n}function Zp(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!X.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=X.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Uh+":"+o+";":[["top",0],["left",0],[j0,o]]}function TL(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),T(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function CL(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=um(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+v),t&&n&&i.push(wL(n,e)),a&&i.push("background-color:"+a),T(["width","color","radius"],function(c){var d="border-"+c,p=By(d),g=r.get(p);g!=null&&i.push(d+":"+g+(c==="color"?"":"px"))}),i.push(TL(f)),h!=null&&i.push("padding:"+ks(h).join("px ")+"px"),i.join(";")+";"}function Xp(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&e1(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 ML=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,X.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&&(z(a)?document.querySelector(a):Fi(a)?a:Z(a)&&a(t.getDom()));Xp(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(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();re(f,l,!0),u.dispatch("mousemove",l)}},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=mL(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.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=SL+CL(t,!this._firstShow,this._longHide)+Zp(a[0],a[1],!0)+("border-color:"+ei(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(z(a)&&i.get("trigger")==="item"&&!Q0(i)&&(s=xL(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var l=0;l<t.length;l++)Fi(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Xp(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Zp(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;e.visibility="hidden",e.opacity="0",X.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(U(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.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),AL=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),qp(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;H(t)&&zt(""),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:um(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=$p(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;qp(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=ur(a.borderWidth||0),s=$p(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(U(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function ur(r){return Math.max(0,r)}function $p(r){var t=ur(r.shadowBlur||0),e=ur(r.shadowOffsetX||0),i=ur(r.shadowOffsetY||0);return{left:ur(t-e),right:ur(t+e),top:ur(t-i),bottom:ur(t+i)}}function qp(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var DL=new ht({shape:{x:-1,y:-1,width:2,height:2}}),LL=function(r){k(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(!(X.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=CS(n.get("renderMode"));this._tooltipContent=a==="richText"?new AL(i):new ML(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(X.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")?Fs(this,"_updatePosition",50,"fixRate"):Qo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");H0("itemTooltip",this._api,U(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||X.node||!n.getDom())){var o=Kp(a,n);this._ticket="";var s=a.dataByCoordSys,l=EL(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=DL;f.x=a.x,f.y=a.y,f.update(),it(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=G0(a,i),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,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(Kp(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=wn([f.getItemModel(s),u,(u.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=it(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;On(n,function(f){if(it(f).dataIndex!=null)return l=f,!0;if(it(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=U(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=wn([i.tooltipOption],a),l=this._renderMode,u=[],f=aa("section",{blocks:[],noHeader:!0}),h=[],v=new Fl;T(e,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=z0(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=aa("section",{header:b,noHeader:!Ae(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(M){var C=n.getSeriesByIndex(M.seriesIndex),D=M.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Mh(S.axis,{value:x}),A.axisValueLabel=b,A.marker=v.makeTooltipMarker("item",ei(A.color),l);var L=Gv(C.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=wn([C],a).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(A)}})}})}),f.blocks.reverse(),h.reverse();var c=i.position,d=s.get("order"),p=$v(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=it(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,p=wn([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Fl;y.marker=m.makeTooltipMarker("item",ei(y.color),c);var _=Gv(u.formatTooltip(f,!1,h)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?$v(x?B({valueFormatter:x},b):b,m,c,S,a.get("useUTC"),p.get("textStyle")):_.text,M="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,M,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=it(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=$(l),l.content=$t(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=e.positionDefault,d=wn(h,this._tooltipModel,c?{position:c}:null),p=d.get("content"),g=Math.random()+"",y=new Fl;this._showOrMove(d,function(){var m=$(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(z(v)){var g=e.ecModel.get("useUTC"),y=F(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=Ls(y.axisValue,c,g)),c=Ny(c,n,!0)}else if(Z(v)){var _=U(function(S,x){S===this._ticket&&(h.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,c=v(n,a,_)}else c=v;h.setContent(c,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||F(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(i))n=Tt(i[0],u),a=Tt(i[1],f);else if(H(i)){var p=i;p.width=h[0],p.height=h[1];var g=_r(p,{width:u,height:f});n=g.x,a=g.y,v=null,c=null}else if(z(i)&&l){var y=RL(i,d,h,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=IL(n,a,o,u,f,v?null:20,c?null:20);n=y[0],a=y[1]}if(v&&(n-=Qp(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=Qp(c)?h[1]/2:c==="bottom"?h[1]:0),Q0(e)){var y=PL(n,a,o,u,f);n=y[0],a=y[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,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&T(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&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){X.node||!i.getDom()||(Qo(this,"_updatePosition"),this._tooltipContent.dispose(),bf("itemTooltip",i))},t.type="tooltip",t}(Ut);function wn(r,t,e){var i=t.ecModel,n;e?(n=new gt(e,i,i),n=new gt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof gt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new gt(o,n,i)))}return n}function Kp(r,t){return r.dispatchAction||U(t.dispatchAction,t)}function IL(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function PL(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 RL(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Qp(r){return r==="center"||r==="middle"}function EL(r,t,e){var i=Uf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=pa(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function kL(r){Se(W0),r.registerComponentModel(gL),r.registerComponentView(LL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},kt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},kt)}var OL=function(r){k(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:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(rt),BL=function(r){k(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"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new bt({style:Ke(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new bt({style:Ke(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Tv(d,"_"+e.get("target"))}),p&&c.on("click",function(){Tv(p,"_"+e.get("subtarget"))}),it(f).eventData=it(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=_r(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=a.getBoundingRect();var x=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var w=new ht({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function NL(r){r.registerComponentModel(OL),r.registerComponentView(BL)}var FL=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"])}},Cf=function(r){k(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){z(a)&&(a={type:a}),i[o]=K(a,FL(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(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(v)),v.length?i=i.concat(v):f=!0}else f=!0;f&&Wf(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=Y(),s=V(a,function(l){return(z(l)||ct(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new gt(l,this,this.ecModel))},this);this._data=Lt(s,function(l){return!!l})},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])&&j(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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(rt),xi=nt,Mf=T,fo=yt,e_=function(r){k(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 fo),this.group.add(this._selectorGroup=new fo),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 l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),c=_r(f,h,v),d=this.layoutInner(e,o,c,a,l,u),p=_r(tt({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=X0(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,l){var u=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Mf(i.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new fo;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),x=m.getVisual("style"),b=this._createItem(y,p,d,c,i,e,_,x,S,h,a);b.on("click",xi(Jp,p,null,a,v)).on("mouseover",xi(Af,y.name,null,a,v)).on("mouseout",xi(Df,y.name,null,a,v)),n.ssr&&b.eachChild(function(w){var M=it(w);M.seriesIndex=y.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),f.set(p,!0)}else n.eachRawSeries(function(w){if(!f.get(p)&&w.legendVisualProvider){var M=w.legendVisualProvider;if(!M.containName(p))return;var C=M.indexOfName(p),D=M.getItemVisual(C,"style"),A=M.getItemVisual(C,"legendIcon"),L=Xe(D.fill);L&&L[3]===0&&(L[3]=.2,D=B(B({},D),{fill:us(L,"rgba")}));var I=this._createItem(w,p,d,c,i,e,{},D,A,h,a);I.on("click",xi(Jp,null,p,a,v)).on("mouseover",xi(Af,null,p,a,v)).on("mouseout",xi(Df,null,p,a,v)),n.ssr&&I.eachChild(function(P){var R=it(P);R.seriesIndex=w.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Mf(e,function(u){var f=u.type,h=new bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=i.getModel("selectorLabel"),c=i.getModel(["emphasis","selectorLabel"]);Cs(h,{normal:v,emphasis:c},{defaultText:u.title}),Wo(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=zL(f,a,l,u,c,g,v),x=new fo,b=a.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(VL({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var M=s==="left"?d+5:-5,C=s,D=o.get("formatter"),A=i;z(D)&&D?A=D.replace("{name}",i??""):Z(D)&&(A=D(i));var L=g?b.getTextColor():a.get("inactiveColor");x.add(new bt({style:Ke(b,{text:A,x:M,y:p/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new ht({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&xs({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(x),Wo(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ni(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ni("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function zL(r,t,e,i,n,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Mf(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:rf(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function VL(r){var t=r.icon||"roundRect",e=Sr(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="#fff",e.style.lineWidth=2),e}function Jp(r,t,e,i){Df(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Af(r,t,e,i)}function r_(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 Af(r,t,e,i){r_(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function Df(r,t,e,i){r_(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function HL(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 Tn(r,t,e){var i={},n=r==="toggleSelected",a;return e.eachComponent("legend",function(o){n&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();T(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function GL(r){r.registerAction("legendToggleSelect","legendselectchanged",nt(Tn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",nt(Tn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",nt(Tn,"inverseSelect")),r.registerAction("legendSelect","legendselected",nt(Tn,"select")),r.registerAction("legendUnSelect","legendunselected",nt(Tn,"unSelect"))}function i_(r){r.registerComponentModel(Cf),r.registerComponentView(e_),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,HL),r.registerSubTypeDefaulter("legend",function(){return"plain"}),GL(r)}var WL=function(r){k(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=Sa(e);r.prototype.init.call(this,e,i,n),jp(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),jp(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Ds(Cf.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Cf);function jp(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Wi(t,e,{type:"box",ignoreSize:!!n})}var tg=yt,hu=["width","height"],cu=["x","y"],UL=function(r){k(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 tg),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new tg)},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,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),v=F(h)?h:[h,h];d("pagePrev",0);var c=i.getModel("pageTextStyle");f.add(new bt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=bs(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:U(u._pageGo,u,y,i,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=hu[u],h=cu[u],v=hu[1-u],c=cu[1-u];o&&Ni("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=$(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[c]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[c]=Math.min(m[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Ni(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Ni("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>n[o],g=[-c.x,-c.y];i||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:c[o],x[s]=Math.max(c[s],d[s]),x[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],h.setClipPath(new ht({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Qt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?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",v=i[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=hu[o],l=cu[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),M=w[l]+b[l];return{s:M,e:M+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 l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i??a},t.type="legend.scroll",t}(e_);function YL(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 ZL(r){Se(i_),r.registerComponentModel(WL),r.registerComponentView(UL),YL(r)}function XL(r){Se(i_),Se(ZL)}var $L=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Ds(ha.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ha),Yh=_t();function qL(r,t,e){Yh(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function KL(r,t){for(var e=Yh(r).coordSysRecordMap,i=e.keys(),n=0;n<i.length;n++){var a=i[n],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||n_(e,o))}}}function n_(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function QL(r,t){var e={model:t,containsPoint:nt(jL,t),dispatchAction:nt(JL,r),dataZoomInfoMap:null,controller:null},i=e.controller=new BD(r.getZr());return T(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function JL(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function jL(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function tI(r){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function eI(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=Yh(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=Y());n.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=U0(a);T(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,QL(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){n_(n,a);return}var f=tI(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Fs(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var rI=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),qL(n,e,{pan:U(vu.pan,this),zoom:U(vu.zoom,this),scrollMove:U(vu.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){KL(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Vh),vu={zoom:function(r,t,e,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=du[t](null,[i.originX,i.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ba(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:eg(function(r,t,e,i,n,a){var o=du[i]([a.oldX,a.oldY],[a.newX,a.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:eg(function(r,t,e,i,n,a){var o=du[i]([0,0],[a.scrollDelta,a.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function eg(r){return function(t,e,i,n){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,i,n);if(ba(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var du={grid:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,i,n){var a=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function iI(r){Hh(r),r.registerComponentModel($L),r.registerComponentView(rI),eI(r)}var nI=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ds(ha.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ha),Cn=ht,rg=7,aI=1,pu=30,oI=7,Mn="horizontal",ig="vertical",sI=5,lI=["line","bar","candlestick","scatter"],uI={easing:"cubicOut",duration:100,delay:0},fI=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(e,i,n,a){if(r.prototype.render.apply(this,arguments),Fs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Qo(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new yt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,n=e.get("brushSelect"),a=n?oI:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Mn?{right:s.width-o.x-o.width,top:s.height-pu-rg-a,width:o.width,height:pu}:{right:rg,top:o.y,width:pu,height:o.height},u=Sa(e.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=_r(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===ig&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Mn&&!o?{scaleY:l?1:-1,scaleX:1}:n===Mn&&o?{scaleY:l?1:-1,scaleX:-1}:n===ig&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=e.get("brushSelect");n.add(new Cn({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Cn({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,n=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,i[1]],d=[0,i[0]],p=[[i[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/i[0]),S;o.each([l],function(C,D){if(_>0&&D%_){m+=y;return}var A=C==null||isNaN(C)||C==="",L=A?0:At(C,h,c,!0);A&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=A}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var x=this.dataZoomModel;function b(C){var D=x.getModel(C?"selectedDataBackground":"dataBackground"),A=new yt,L=new ya({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ma({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(L),A.add(I),A}for(var w=0;w<3;w++){var M=b(w===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!n&&!(i!==!0&&j(lI,u.get("type"))<0)){var f=a.getComponent(cr(o),s).axis,h=hI(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=i.filler=new Cn({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Cn({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:aI,fill:"rgba(0,0,0,0)"}})),T([0,1],function(_){var S=l.get("handleIcon");!jo[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Sr(S,-1,0,2,2,null,!0);x.attr({cursor:ng(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=Tt(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Wo(x);var M=l.get("handleColor");M!=null&&(x.style.fill=M),o.add(n[_]=x);var C=l.getModel("textStyle");e.add(a[_]=new bt({silent:!0,invisible:!0,style:Ke(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var d=Tt(l.get("moveHandleSize"),s[1]),p=i.moveHandle=new ht({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=i.moveHandleIcon=Sr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=i.moveZone=new ht({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:ng(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[At(e[0],[0,100],i,!0),At(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ba(i,a,o,n.get("zoomLock")?"all":e,s.minSpan!=null?At(s.minSpan,l,o,!0):null,s.maxSpan!=null?At(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Pn([At(a[0],o,l,!0),At(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,n=this._handleEnds,a=Pn(n.slice()),o=this._size;T([0,1],function(c){var d=i.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new ht,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=Pn(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=Ss(n.handles[d].parent,this.group),g=eh(d===0?"right":"left",p),y=this._handleWidth/2+sI,m=ea([v[d]+(d===0?-y:y),this._size[1]/2],p);a[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Mn?"middle":g,align:o===Mn?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,i){var n=this.dataZoomModel,a=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Z(a)?a(e,s):z(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,n=i.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,n,a){this._dragging=!0,Vi(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ea([i,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,n=e.offsetY;this._brushStart=new ft(i,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Pn([At(n.x,o,s,!0),At(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Vi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Cn({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?uI:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=U0(this.dataZoomModel).infoList;if(!e&&i.length){var n=i[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Vh);function hI(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function ng(r){return r==="vertical"?"ns-resize":"ew-resize"}function cI(r){r.registerComponentModel(nI),r.registerComponentView(fI),Hh(r)}function vI(r){Se(iI),Se(cI)}var dI=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,i,n){r.prototype.init.call(this,e,i,n),this._sourceManager=new im(this),Zv(this)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Zv(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ie},t}(rt),pI=function(r){k(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Ut);function gI(r){r.registerComponentModel(dI),r.registerComponentView(pI)}const yI=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function mI(r){function t(i){return(...n)=>{if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[i].apply(r.value,n)}}function e(){const i=Object.create(null);return yI.forEach(n=>{i[n]=t(n)}),i}return e()}function _I(r,t,e){co([e,r,t],([i,n,a],o,s)=>{let l=null;if(i&&n&&a){const{offsetWidth:u,offsetHeight:f}=i,h=a===!0?{}:a,{throttle:v=100,onResize:c}=h;let d=!1;const p=()=>{n.resize(),c==null||c()},g=v?Ns(p,v):p;l=new ResizeObserver(()=>{!d&&(d=!0,i.offsetWidth===u&&i.offsetHeight===f)||g()}),l.observe(i)}s(()=>{l&&(l.disconnect(),l=null)})})}const SI={autoresize:[Boolean,Object]},bI=/^on[^a-z]/,a_=r=>bI.test(r);function xI(r){const t={};for(const e in r)a_(e)||(t[e]=r[e]);return t}function Lo(r,t){const e=__(r)?de(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}const wI="ecLoadingOptions";function TI(r,t,e){const i=ho(wI,{}),n=We(()=>({...Lo(i,{}),...e==null?void 0:e.value}));og(()=>{const a=r.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const CI={loading:Boolean,loadingOptions:Object};let An=null;const o_="x-vue-echarts";function MI(){if(An!=null)return An;if(typeof HTMLElement>"u"||typeof customElements>"u")return An=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(o_)}catch{return An=!1}return An=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
`;const AI=MI(),Lf="ecTheme",DI="ecInitOptions",LI="ecUpdateOptions",ag=/(^&?~?!?)native:/;var gu=d_({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...SI,...CI},emits:{},inheritAttrs:!1,setup(r,{attrs:t}){const e=Ys(),i=Ys(),n=Ys(),a=ho(Lf,null),o=ho(DI,null),s=ho(LI,null),{autoresize:l,manualUpdate:u,loading:f,loadingOptions:h}=p_(r),v=We(()=>n.value||r.option||null),c=We(()=>r.theme||Lo(a,{})),d=We(()=>r.initOptions||Lo(o,{})),p=We(()=>r.updateOptions||Lo(s,{})),g=We(()=>xI(t)),y={},m=g_().proxy.$listeners,_={};m?Object.keys(m).forEach(C=>{ag.test(C)?y[C.replace(ag,"$1")]=m[C]:_[C]=m[C]}):Object.keys(t).filter(C=>a_(C)).forEach(C=>{let D=C.charAt(2).toLowerCase()+C.slice(3);if(D.indexOf("native:")===0){const A=`on${D.charAt(7).toUpperCase()}${D.slice(8)}`;y[A]=t[C];return}D.substring(D.length-4)==="Once"&&(D=`~${D.substring(0,D.length-4)}`),_[D]=t[C]});function S(C){if(!e.value)return;const D=i.value=VC(e.value,c.value,d.value);r.group&&(D.group=r.group),Object.keys(_).forEach(I=>{let P=_[I];if(!P)return;let R=I.toLowerCase();R.charAt(0)==="~"&&(R=R.substring(1),P.__once__=!0);let E=D;if(R.indexOf("zr:")===0&&(E=D.getZr(),R=R.substring(3)),P.__once__){delete P.__once__;const W=P;P=(...O)=>{W(...O),E.off(R,P)}}E.on(R,P)});function A(){D&&!D.isDisposed()&&D.resize()}function L(){const I=C||v.value;I&&D.setOption(I,p.value)}l.value?S_(()=>{A(),L()}):L()}function x(C,D){r.manualUpdate&&(n.value=C),i.value?i.value.setOption(C,D||{}):S(C)}function b(){i.value&&(i.value.dispose(),i.value=void 0)}let w=null;co(u,C=>{typeof w=="function"&&(w(),w=null),C||(w=co(()=>r.option,(D,A)=>{D&&(i.value?i.value.setOption(D,{notMerge:D!==A,...p.value}):S())},{deep:!0}))},{immediate:!0}),co([c,d],()=>{b(),S()},{deep:!0}),og(()=>{r.group&&i.value&&(i.value.group=r.group)});const M=mI(i);return TI(i,f,h),_I(i,l,e),sg(()=>{S()}),y_(()=>{AI&&e.value?e.value.__dispose=b:b()}),{chart:i,root:e,setOption:x,nonEventAttrs:g,nativeListeners:y,...M}},render(){const r={...this.nonEventAttrs,...this.nativeListeners};return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",m_(o_,r)}});const II=["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],PI="rgba(0,0,0,0)",RI={},EI={textStyle:{color:"#333333"},subtextStyle:{color:"#aaaaaa"}},kI={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},OI={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},BI={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},NI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},FI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},zI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},VI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},HI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},GI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},WI={itemStyle:{borderWidth:0,borderColor:"#ccc"}},UI={itemStyle:{color:"#e01f54",color0:"#001852",borderColor:"#f5e8c8",borderColor0:"#b8d2c7",borderWidth:1}},YI={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2","#f3d999","#d3758f","#dcc392","#2e4783","#82b6e9","#ff6347","#a092f1","#0a915d","#eaf889","#6699FF","#ff6666","#3cb371","#d5b158","#38b6b6"],label:{color:"#eee"}},ZI={itemStyle:{areaColor:"#eeeeee",borderColor:"#444444",borderWidth:.5},label:{color:"#000000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},XI={itemStyle:{areaColor:"#eeeeee",borderColor:"#444444",borderWidth:.5},label:{color:"#000000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},$I={axisLine:{show:!0,lineStyle:{color:"#333"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},qI={axisLine:{show:!0,lineStyle:{color:"#333"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},KI={axisLine:{show:!0,lineStyle:{color:"#333"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},QI={axisLine:{show:!0,lineStyle:{color:"#333"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},JI={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},jI={textStyle:{color:"#333333"}},tP={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},eP={lineStyle:{color:"#293c55",width:1},itemStyle:{color:"#293c55",borderWidth:1},controlStyle:{color:"#293c55",borderColor:"#293c55",borderWidth:.5},checkpointStyle:{color:"#e43c59",borderColor:"#c23531"},label:{color:"#293c55"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#293c55",borderColor:"#293c55",borderWidth:.5},label:{color:"#293c55"}}},rP={color:["#e01f54","#e7dbc3"]},iP={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(47,69,84,0.3)",fillerColor:"rgba(167,183,204,0.4)",handleColor:"#a7b7cc",handleSize:"100%",textStyle:{color:"#333333"}},nP={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},aP={color:II,backgroundColor:PI,textStyle:RI,title:EI,line:kI,radar:OI,bar:BI,pie:NI,scatter:FI,boxplot:zI,parallel:VI,sankey:HI,funnel:GI,gauge:WI,candlestick:UI,graph:YI,map:ZI,geo:XI,categoryAxis:$I,valueAxis:qI,logAxis:KI,timeAxis:QI,toolbox:JI,legend:jI,tooltip:tP,timeline:eP,visualMap:rP,dataZoom:iP,markPoint:nP},oP=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],sP="rgba(51,51,51,1)",lP={},uP={textStyle:{color:"#eeeeee"},subtextStyle:{color:"#aaaaaa"}},fP={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"circle",smooth:!1},hP={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"circle",smooth:!1},cP={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},vP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},dP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},gP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},yP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},mP={itemStyle:{borderWidth:0,borderColor:"#ccc"}},_P={itemStyle:{borderWidth:0,borderColor:"#ccc"}},SP={itemStyle:{color:"#fd1050",color0:"#0cf49b",borderColor:"#fd1050",borderColor0:"#0cf49b",borderWidth:1}},bP={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaaaaa"},symbolSize:4,symbol:"circle",smooth:!1,color:["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],label:{color:"#eeeeee"}},xP={itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},wP={itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},TP={axisLine:{show:!0,lineStyle:{color:"#eeeeee"}},axisTick:{show:!0,lineStyle:{color:"#eeeeee"}},axisLabel:{show:!0,color:"#eeeeee"},splitLine:{show:!0,lineStyle:{color:["#aaaaaa"]}},splitArea:{show:!1,areaStyle:{color:["#eeeeee"]}}},CP={axisLine:{show:!0,lineStyle:{color:"#eeeeee"}},axisTick:{show:!0,lineStyle:{color:"#eeeeee"}},axisLabel:{show:!0,color:"#eeeeee"},splitLine:{show:!0,lineStyle:{color:["#aaaaaa"]}},splitArea:{show:!1,areaStyle:{color:["#eeeeee"]}}},MP={axisLine:{show:!0,lineStyle:{color:"#eeeeee"}},axisTick:{show:!0,lineStyle:{color:"#eeeeee"}},axisLabel:{show:!0,color:"#eeeeee"},splitLine:{show:!0,lineStyle:{color:["#aaaaaa"]}},splitArea:{show:!1,areaStyle:{color:["#eeeeee"]}}},AP={axisLine:{show:!0,lineStyle:{color:"#eeeeee"}},axisTick:{show:!0,lineStyle:{color:"#eeeeee"}},axisLabel:{show:!0,color:"#eeeeee"},splitLine:{show:!0,lineStyle:{color:["#aaaaaa"]}},splitArea:{show:!1,areaStyle:{color:["#eeeeee"]}}},DP={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},LP={textStyle:{color:"#eeeeee"}},IP={axisPointer:{lineStyle:{color:"#eeeeee",width:"1"},crossStyle:{color:"#eeeeee",width:"1"}}},PP={lineStyle:{color:"#eeeeee",width:1},itemStyle:{color:"#dd6b66",borderWidth:1},controlStyle:{color:"#eeeeee",borderColor:"#eeeeee",borderWidth:.5},checkpointStyle:{color:"#e43c59",borderColor:"#c23531"},label:{color:"#eeeeee"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#eeeeee",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#eeeeee"}}},RP={color:["#bf444c","#d88273","#f6efa6"]},EP={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(255,255,255,0.3)",fillerColor:"rgba(167,183,204,0.4)",handleColor:"#a7b7cc",handleSize:"100%",textStyle:{color:"#eeeeee"}},kP={label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}},OP={color:oP,backgroundColor:sP,textStyle:lP,title:uP,line:fP,radar:hP,bar:cP,pie:vP,scatter:dP,boxplot:pP,parallel:gP,sankey:yP,funnel:mP,gauge:_P,candlestick:SP,graph:bP,map:xP,geo:wP,categoryAxis:TP,valueAxis:CP,logAxis:MP,timeAxis:AP,toolbox:DP,legend:LP,tooltip:IP,timeline:PP,visualMap:RP,dataZoom:EP,markPoint:kP},BP=s_("report",()=>{async function r(){return(await $h.get("/report/getReportData")).data}async function t(){return(await $h.get("/report/getOrundumData")).data}return{getReportData:r,getOrundumData:t}}),NP={class:"page-title"},FP={class:"report-card_1"},zP={class:"report-card_1"},VP={class:"report-card_1"},HP={__name:"report",setup(r){Se([NL,pL,XL,kL,gI,D2,eD,zA,vI,pA]);const t=l_(),{conf:e}=u_(t);ns("dark",OP),e.value.theme=="dark"?qh(Lf,"dark"):(ns("roma",aP),qh(Lf,"roma"));const i=BP(),{getReportData:n,getOrundumData:a}=i,o=oi(!1),s=oi(!1),l=oi(0),u=oi(!1),f=oi([]),h=oi([]);sg(async()=>{try{f.value=await n(),h.value=await a(),o.value=!0,h.value.length>0&&(s.value=!0,l.value=h.value[h.value.length-1].累计制造合成玉)}catch{u.value=!0}});const v=We(()=>({title:[{text:"制造与龙门币"}],toolbox:{feature:{saveAsImage:{show:!0,backgroundColor:"#FFFFFF"}}},dataZoom:[{show:!1,type:"slider",realtime:!0,startValue:f.value.length-7,endValue:f.value.length,yAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}}],grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},legend:{data:["订单","赤金","经验"],selected:{订单收入:!0,赤金:!0,龙门币订单:!0}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}},formatter:function(p){return`<div style="font-size:1.4rem;">
                        <span style="font-size:15px">${p[0].data.日期}</span>  <br>
                        ${p[0].marker}    <span style="font-size:14px">${p[0].seriesName}:${p[0].data.赤金}</span>  <br>
                        ${p[2].marker}    <span style="font-size:14px">${p[2].seriesName}:${p[0].data.龙门币订单}</span>  <br>
                        ${p[1].marker}    <span style="font-size:14px">${p[1].seriesName}:${p[0].data.作战录像}</span>  <br>

                        </div>`}},dataset:{dimensions:["日期","赤金","反向作战录像","龙门币订单"],source:f.value},yAxis:{type:"category",axisPointer:{type:"shadow"},axisTick:{show:!1}},xAxis:{axisLabel:{formatter:function(p){return Math.abs(p)},scale:!0}},series:[{name:"赤金",type:"bar",color:"#f5744f",position:"inside",label:{show:!0,formatter:function(p){if(p.value.龙门币订单===0)return""}},emphasis:{focus:"series"}},{name:"经验",type:"bar",stack:"Total",color:"#f3e28f",position:"inside",label:{show:!0,formatter:function(p){if(p.value.反向作战录像===0)return"";if(p.value.反向作战录像<0)return-p.value.反向作战录像}},emphasis:{focus:"series"}},{name:"订单",type:"bar",stack:"Total",color:"#64bfec",label:{show:!0,formatter:function(p){if(p.value.赤金===0)return"";if(p.value.赤金<0)return-p.value.赤金}},emphasis:{focus:"series"}}]})),c=We(()=>({title:[{text:"赤金贸易"}],legend:{data:["赤金","订单","订单质量"],selected:{生产赤金:!0,龙门币收入:!0}},dataZoom:{show:!1,type:"slider",realtime:!0,startValue:f.value.length-7,endValue:f.value.length,xAxisIndex:[0],bottom:"10",left:"30",height:10,borderColor:"rgba(0,0,0,0)",textStyle:{color:"#05D5FF"}},toolbox:{feature:{dataView:{show:!1,readOnly:!1},magicType:{show:!0,type:["line","bar"]},restore:{show:!0},saveAsImage:{show:!0,backgroundColor:"#FFFFFF"}}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},dataset:{dimensions:["日期","赤金","龙门币订单","每单获取龙门币"],source:f.value},xAxis:{type:"category",axisPointer:{type:"shadow"}},yAxis:[{type:"value",axisLine:{show:!0,symbol:["none","path://M5,20 L5,5 L8,8 L5,2 L2,8 L5,5 L5.3,6 L5.3,20 "],symbolOffset:10,symbolSize:[35,38]},axisLabel:{formatter:"{value}"}},{type:"value",axisLabel:{formatter:"{value}"}}],series:[{name:"赤金",type:"bar",yAxisIndex:0,color:"#f5744f",tooltip:{valueFormatter:function(p){return p}}},{name:"订单",type:"bar",yAxisIndex:0,color:"#64bfec",tooltip:{valueFormatter:function(p){return p}}},{name:"订单质量",type:"line",yAxisIndex:1,tooltip:{valueFormatter:function(p){return p}}}]})),d=We(()=>({title:[{text:"合成玉"}],legend:{data:["合成玉","抽数"],selected:{合成玉:!0,抽数:!1}},toolbox:{feature:{dataView:{show:!1,readOnly:!1},magicType:{show:!0,type:["line","bar"]},restore:{show:!0},saveAsImage:{show:!0,backgroundColor:"#FFFFFF"}}},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},dataset:{dimensions:["日期","合成玉","抽数"],source:h.value},xAxis:{type:"category",axisPointer:{type:"shadow"}},yAxis:[{type:"value",axisLine:{show:!0,symbol:["none","path://M5,20 L5,5 L8,8 L5,2 L2,8 L5,5 L5.3,6 L5.3,20 "],symbolOffset:10,symbolSize:[35,38]},axisLabel:{formatter:"{value}"}},{type:"value",axisLine:{show:!0},position:"right"}],series:[{type:"line",yAxisIndex:0,color:"#faf0b5",tooltip:{valueFormatter:function(p){return p}}},{type:"bar",yAxisIndex:1,color:"#e70000",tooltip:{valueFormatter:function(p){return p}}}]}));return(p,g)=>{const y=f_,m=h_,_=v_,S=c_;return rn(),x_(T_,null,[Jt("div",null,[Jt("h1",NP,[g[1]||(g[1]=w_(" 基建报表 ")),en(y,null,{default:si(()=>g[0]||(g[0]=[Jt("p",null,"若没有数据显示，请查看tmp文件夹中的report.csv文件",-1),Jt("p",null,"若存在空数据删掉对应行或自行填补一个数据",-1),Jt("p",null,"report.csv不存在建议先让mower看看你的基报",-1)])),_:1})])]),de(u)?(rn(),xa(m,{key:0,title:"数据错误",type:"error"},{default:si(()=>g[2]||(g[2]=[Jt("p",null,"若没有数据显示，请查看tmp文件夹中的report.csv文件",-1),Jt("p",null,"若存在空数据删掉对应行或自行填补一个数据",-1),Jt("p",null,"report.csv不存在建议先让mower看看你的基报",-1)])),_:1})):wa("",!0),Jt("div",null,[en(S,{"x-gap":"12","y-gap":"12",cols:"1 1000:2 ",style:{"text-align":"center"},autoresize:""},{default:si(()=>[de(o)?(rn(),xa(_,{key:0},{default:si(()=>[Jt("div",FP,[en(de(gu),{class:"chart",option:de(v)},null,8,["option"])])]),_:1})):wa("",!0),de(o)?(rn(),xa(_,{key:1},{default:si(()=>[Jt("div",zP,[en(de(gu),{class:"chart",option:de(c)},null,8,["option"])])]),_:1})):wa("",!0),de(s)?(rn(),xa(_,{key:2},{default:si(()=>[Jt("div",VP,[en(de(gu),{class:"chart",option:de(d)},null,8,["option"])])]),_:1})):wa("",!0)]),_:1})])],64)}}},UP=b_(HP,[["__scopeId","data-v-689dc696"]]);export{UP as default};
