/*! *****************************************************************************
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 ah=function(r,t){return ah=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},ah(r,t)};function O(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ah(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var zb=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Vb=function(){function r(){this.browser=new zb,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}(),Oa=new Vb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Oa.wxa=!0,Oa.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Oa.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Oa.node=!0,Oa.svgSupported=!0):Hb(navigator.userAgent,Oa);function Hb(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[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}const lt=Oa;var xv=12,Wb="sans-serif",Ka=xv+"px "+Wb,Ub=20,Yb=100,Zb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xb(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Ub)/Yb;t[a]=n}return t}var $b=Xb(Zb),Ir={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,a){if(!r){var n=Ir.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||Ka),r.measureText(e);e=e||"",a=a||Ka;var i=/(\d+)px/.exec(a),o=i&&+i[1]||xv,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=$b[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}};function qb(r){for(var t in Ir)r[t]&&(Ir[t]=r[t])}var h0=ur(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),v0=ur(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Kn=Object.prototype.toString,Rl=Array.prototype,Kb=Rl.forEach,Qb=Rl.filter,Tv=Rl.slice,Jb=Rl.map,od=(function(){}).constructor,Ro=od?od.prototype:null,Cv="__proto__",jb=2311;function Av(){return jb++}function El(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function j(r){if(r==null||typeof r!="object")return r;var t=r,e=Kn.call(r);if(e==="[object Array]"){if(!Nn(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=j(r[a])}}else if(v0[e]){if(!Nn(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!h0[e]&&!Nn(r)&&!Qa(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Cv&&(t[o]=j(r[o]))}return t}function nt(r,t,e){if(!X(t)||!X(r))return e?j(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==Cv){var n=r[a],i=t[a];X(i)&&X(n)&&!V(i)&&!V(n)&&!Qa(i)&&!Qa(n)&&!nh(i)&&!nh(n)&&!Nn(i)&&!Nn(n)?nt(n,i,e):(e||!(a in r))&&(r[a]=j(t[a]))}return r}function Mv(r,t){for(var e=r[0],a=1,n=r.length;a<n;a++)e=nt(e,r[a],t);return e}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Cv&&(r[e]=t[e]);return r}function Z(r,t,e){for(var a=mt(t),n=0;n<a.length;n++){var i=a[n];(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}return r}var tx=Ir.createCanvas;function ut(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function c0(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function de(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else Z(r,t,e)}function $t(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Kb)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function z(r,t,e){if(!r)return[];if(!t)return kl(r);if(r.map&&r.map===Jb)return r.map(t,e);for(var a=[],n=0,i=r.length;n<i;n++)a.push(t.call(e,r[n],n,r));return a}function ur(r,t,e,a){if(r&&t){for(var n=0,i=r.length;n<i;n++)e=t.call(a,e,r[n],n,r);return e}}function Tt(r,t,e){if(!r)return[];if(!t)return kl(r);if(r.filter&&r.filter===Qb)return r.filter(t,e);for(var a=[],n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r)&&a.push(r[n]);return a}function d0(r,t,e){if(r&&t){for(var a=0,n=r.length;a<n;a++)if(t.call(e,r[a],a,r))return r[a]}}function mt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function ex(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(Tv.call(arguments)))}}var Q=Ro&&$(Ro.bind)?Ro.call.bind(Ro.bind):ex;function vt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Tv.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):Kn.call(r)==="[object Array]"}function $(r){return typeof r=="function"}function H(r){return typeof r=="string"}function Hs(r){return Kn.call(r)==="[object String]"}function dt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function nh(r){return!!h0[Kn.call(r)]}function ee(r){return!!v0[Kn.call(r)]}function Qa(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function mo(r){return r.colorStops!=null}function p0(r){return r.image!=null}function g0(r){return Kn.call(r)==="[object RegExp]"}function Qi(r){return r!==r}function ta(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function rt(r,t){return r??t}function On(r,t,e){return r??t??e}function kl(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Tv.apply(r,t)}function Dv(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 Re(r,t){if(!r)throw new Error(t)}function Pe(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var y0="__ec_primitive__";function Ji(r){r[y0]=!0}function Nn(r){return r[y0]}var rx=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r}(),m0=typeof Map=="function";function ax(){return m0?new Map:new rx}var _0=function(){function r(t){var e=V(t);this.data=ax();var a=this;t instanceof r?t.each(n):t&&A(t,n);function n(i,o){e?a.set(i,o):a.set(o,i)}}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(a,n){t.call(e,a,n)})},r.prototype.keys=function(){var t=this.data.keys();return m0?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function U(r){return new _0(r)}function Ws(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var n=r.length,a=0;a<t.length;a++)e[a+n]=t[a];return e}function _o(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&F(e,t),e}function Lv(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function re(r,t){return r.hasOwnProperty(t)}function Zt(){}var Fi=180/Math.PI;const rB=Object.freeze(Object.defineProperty({__proto__:null,HashMap:_0,RADIAN_TO_DEGREE:Fi,assert:Re,bind:Q,clone:j,concatArray:Ws,createCanvas:tx,createHashMap:U,createObject:_o,curry:vt,defaults:Z,disableUserSelect:Lv,each:A,eqNaN:Qi,extend:F,filter:Tt,find:d0,guid:Av,hasOwn:re,indexOf:ut,inherits:c0,isArray:V,isArrayLike:$t,isBuiltInObject:nh,isDom:Qa,isFunction:$,isGradientObject:mo,isImagePatternObject:p0,isNumber:dt,isObject:X,isPrimitive:Nn,isRegExp:g0,isString:H,isStringSafe:Hs,isTypedArray:ee,keys:mt,logError:El,map:z,merge:nt,mergeAll:Mv,mixin:de,noop:Zt,normalizeCssArray:Dv,reduce:ur,retrieve:ta,retrieve2:rt,retrieve3:On,setAsPrimitive:Ji,slice:kl,trim:Pe},Symbol.toStringTag,{value:"Module"}));function on(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function S0(r,t){return r[0]=t[0],r[1]=t[1],r}function w0(r){return[r[0],r[1]]}function nx(r,t,e){return r[0]=t,r[1]=e,r}function ih(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function ix(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function Iv(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Pv(r){return Math.sqrt(Rv(r))}var ox=Pv;function Rv(r){return r[0]*r[0]+r[1]*r[1]}var sx=Rv;function lx(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function ux(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function fx(r,t){return r[0]*t[0]+r[1]*t[1]}function As(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ol(r,t){var e=Pv(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Us(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var br=Us;function b0(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ua=b0;function hx(r,t){return r[0]=-t[0],r[1]=-t[1],r}function Gi(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function Bt(r,t,e){var a=t[0],n=t[1];return r[0]=e[0]*a+e[2]*n+e[4],r[1]=e[1]*a+e[3]*n+e[5],r}function xr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Tr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const aB=Object.freeze(Object.defineProperty({__proto__:null,add:ih,applyTransform:Bt,clone:w0,copy:S0,create:on,dist:br,distSquare:Ua,distance:Us,distanceSquare:b0,div:ux,dot:fx,len:Pv,lenSquare:Rv,length:ox,lengthSquare:sx,lerp:Gi,max:Tr,min:xr,mul:lx,negate:hx,normalize:Ol,scale:As,scaleAndAdd:ix,set:nx,sub:Iv},Symbol.toStringTag,{value:"Module"}));var hn=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),vx=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 hn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,n=t.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,e.drift(i,o,t),this.handler.dispatchToElement(new hn(e,t),"drag",t.event);var s=this.handler.findHover(a,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new hn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new hn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new hn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new hn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Ee=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(n=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===a)return this;var l={h:a,query:e,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[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 a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var n=[],i=0,o=a[t].length;i<o;i++)a[t][i].h!==e&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=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(!(i&&i.filter&&f.query!=null&&!i.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 i&&i.afterTrigger&&i.afterTrigger(t),this},r}(),cx=Math.log(2);function oh(r,t,e,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/cx);return r[e][l]}for(var u=a|1<<e,f=e+1;a&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*oh(r,t-1,f,u,n|d,i),v++)}return i[o]=h,h}function sd(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]]],a={},n=oh(e,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*oh(e,7,o===0?1:0,1<<o,1<<s,a)/n*t[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var ld="___zrEVENTSAVED",mu=[];function dx(r,t,e,a,n){return sh(mu,t,a,n,!0)&&sh(r,e,mu[0],mu[1])}function sh(r,t,e,a,n){if(t.getBoundingClientRect&&lt.domSupported&&!x0(t)){var i=t[ld]||(t[ld]={}),o=px(t,i),s=gx(o,i,n);if(s)return s(r,e,a),!0}return!1}function px(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function gx(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&i&&c===i[h]&&v===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?sd(s,o):sd(o,s))}function x0(r){return r.nodeName.toUpperCase()==="CANVAS"}var yx=/([&<>"'])/g,mx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function De(r){return r==null?"":(r+"").replace(yx,function(t,e){return mx[e]})}var _x=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_u=[],Sx=lt.browser.firefox&&+lt.browser.version.split(".")[0]<39;function lh(r,t,e,a){return e=e||{},a?ud(r,t,e):Sx&&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):ud(r,t,e),e}function ud(r,t,e){if(lt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(x0(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(sh(_u,r,a,n)){e.zrX=_u[0],e.zrY=_u[1];return}}e.zrX=e.zrY=0}function Ev(r){return r||window.event}function Ce(r,t,e){if(t=Ev(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&lh(r,o,t,e)}else{lh(r,t,t,e);var i=bx(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&_x.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function bx(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function uh(r,t,e,a){r.addEventListener(t,e,a)}function xx(r,t,e,a){r.removeEventListener(t,e,a)}var Wn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fd(r){return r.which===2||r.which===3}var Tx=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=lh(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Su)if(Su.hasOwnProperty(e)){var a=Su[e](this._track,t);if(a)return a}},r}();function hd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Cx(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Su={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,n=(r[e-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=hd(a)/hd(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Cx(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ye(){return[1,0,0,1,0,0]}function So(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Nl(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 sr(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=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]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Un(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 Qn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=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]=i*h+l*f,r[3]=-i*f+h*l,r[4]=h*(o-a[0])+f*(u-a[1])+a[0],r[5]=h*(u-a[1])-f*(o-a[0])+a[1],r}function kv(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function sn(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function Ax(r){var t=Ye();return Nl(t,r),t}const nB=Object.freeze(Object.defineProperty({__proto__:null,clone:Ax,copy:Nl,create:Ye,identity:So,invert:sn,mul:sr,rotate:Qn,scale:kv,translate:Un},Symbol.toStringTag,{value:"Module"}));var q=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,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},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,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+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,a){t.x=e,t.y=a},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,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}(),Eo=Math.min,ko=Math.max,va=new q,ca=new q,da=new q,pa=new q,ni=new q,ii=new q,et=function(){function r(t,e,a,n){a<0&&(t=t+a,a=-a),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=a,this.height=n}return r.prototype.union=function(t){var e=Eo(t.x,this.x),a=Eo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ko(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ko(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Ye();return Un(i,i,[-e.x,-e.y]),kv(i,i,[a,n]),Un(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(i<l||u<n||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(i-l),p=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);i<l||u<n?_>d&&(d=_,g<p?q.set(ii,-g,0):q.set(ii,p,0)):_<v&&(v=_,g<p?q.set(ni,g,0):q.set(ni,-p,0)),s<f||h<o?S>d&&(d=S,y<m?q.set(ii,0,-y):q.set(ii,0,m)):_<v&&(v=_,y<m?q.set(ni,0,y):q.set(ni,0,-m))}return e&&q.copy(e,c?ni:ii),c},r.prototype.contain=function(t,e){var a=this;return t>=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.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,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}va.x=da.x=e.x,va.y=pa.y=e.y,ca.x=pa.x=e.x+e.width,ca.y=da.y=e.y+e.height,va.transform(a),pa.transform(a),ca.transform(a),da.transform(a),t.x=Eo(va.x,ca.x,da.x,pa.x),t.y=Eo(va.y,ca.y,da.y,pa.y);var l=ko(va.x,ca.x,da.x,pa.x),u=ko(va.y,ca.y,da.y,pa.y);t.width=l-t.x,t.height=u-t.y},r}(),T0="silent";function Mx(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:Dx}}function Dx(){Wn(this.event)}var Lx=function(r){O(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}(Ee),oi=function(){function r(t,e){this.x=t,this.y=e}return r}(),Ix=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wu=new et(0,0,0,0),C0=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this)||this;return s._hovered=new oi(0,0),s.storage=e,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new Lx,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vx(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(Ix,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=A0(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new oi(a,n):this.findHover(a,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 a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new oi(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=Mx(a,e,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){var i=this.storage.getDisplayList(),o=new oi(e,a);if(vd(i,o,e,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new et(e-u,a-u,l,l),h=i.length-1;h>=0;h--){var c=i[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(wu.copy(c.getBoundingRect()),c.transform&&wu.applyTransform(c.transform),wu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=a+p*Math.sin(y);if(vd(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new Tx);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new oi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Ee);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){C0.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=A0(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.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||br(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function Px(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s||a.parent}return n?T0:!0}return!1}function vd(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=Px(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==T0)){t.target=o;break}}}function A0(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var M0=32,si=7;function Rx(r){for(var t=0;r>=M0;)t|=r&1,r>>=1;return r+t}function cd(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n<e&&a(r[n],r[n-1])<0;)n++;Ex(r,t,n)}else for(;n<e&&a(r[n],r[n-1])>=0;)n++;return n-t}function Ex(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function dd(r,t,e,a,n){for(a===t&&a++;a<e;a++){for(var i=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-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]=i}}function bu(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l<s&&i(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&&i(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);i(r,t[e+f])>0?o=f+1:l=f}return l}function xu(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;l<s&&i(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=a-n;l<s&&i(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);i(r,t[e+f])<0?l=f:o=f+1}return l}function kx(r,t){var e=si,a,n,i=0,o=[];a=[],n=[];function s(v,d){a[i]=v,n[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=a[v],g=n[v],p=a[v+1],y=n[v+1];n[v]=g+y,v===i-3&&(a[v+1]=a[v+2],n[v+1]=n[v+2]),i--;var m=xu(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=bu(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m];return}for(var b=e,w,x,T;;){w=0,x=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,w=0,--p===0){T=!0;break}}else if(r[S++]=o[m++],w++,x=0,--d===1){T=!0;break}while((w|x)<b);if(T)break;do{if(w=xu(r[_],o,m,d,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=o[m+y];if(S+=w,m+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(x=bu(o[m],r,_,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,p-=x,p===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}b--}while(w>=si||x>=si);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,S=g+p-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y];return}if(p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_];return}for(var x=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){M=!0;break}while((T|C)<x);if(M)break;do{if(T=d-xu(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,w=S+1,b=m+1,y=T-1;y>=0;y--)r[w+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--p===1){M=!0;break}if(C=p-bu(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,w=S+1,b=_+1,y=0;y<C;y++)r[w+y]=o[b+y];if(p<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}x--}while(T>=si||C>=si);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ms(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(n<M0){i=cd(r,e,a,t),dd(r,e,a,e+i,t);return}var o=kx(r,t),s=Rx(n);do{if(i=cd(r,e,a,t),i<s){var l=n;l>s&&(l=s),dd(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var ge=1,Ii=2,Dn=4,pd=!1;function Tu(){pd||(pd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gd(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Ox=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gd}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);a.length=this._displayListLen,Ms(a,gd)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){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 i=n,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=ge),this._updateAndAddDisplayable(u,e,a)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Tu(),f.z=0),isNaN(f.z2)&&(Tu(),f.z2=0),isNaN(f.zlevel)&&(Tu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,a);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,a);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,a)}},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,a=t.length;e<a;e++)this.delRoot(t[e]);return}var n=ut(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}(),Ys;Ys=lt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var zi={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,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*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)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.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-zi.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?zi.bounceIn(r*2)*.5:zi.bounceOut(r*2-1)*.5+.5}},Oo=Math.pow,Jr=Math.sqrt,Zs=1e-8,D0=1e-4,yd=Jr(3),No=1/3,ar=on(),Le=on(),Bn=on();function $r(r){return r>-Zs&&r<Zs}function L0(r){return r>Zs||r<-Zs}function kt(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function md(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Xs(r,t,e,a,n,i){var o=a+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,c=l*l-3*s*u,v=0;if($r(f)&&$r(h))if($r(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var g=h*h-4*f*c;if($r(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y)}else if(g>0){var m=Jr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Oo(-_,No):_=Oo(_,No),S<0?S=-Oo(-S,No):S=Oo(S,No);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*Jr(f*f*f)),w=Math.acos(b)/3,x=Jr(f),T=Math.cos(w),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+yd*Math.sin(w)))/(3*o),C=(-s+x*(T-yd*Math.sin(w)))/(3*o);d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function I0(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if($r(o)){if(L0(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if($r(f))n[0]=-i/(2*o);else if(f>0){var h=Jr(f),u=(-i+h)/(2*o),c=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function ea(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function P0(r,t,e,a,n,i,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,y;ar[0]=l,ar[1]=u;for(var m=0;m<1;m+=.05)Le[0]=kt(r,e,n,o,m),Le[1]=kt(t,a,i,s,m),p=Ua(ar,Le),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<D0);_++)d=h-c,g=h+c,Le[0]=kt(r,e,n,o,d),Le[1]=kt(t,a,i,s,d),p=Ua(Le,ar),d>=0&&p<v?(h=d,v=p):(Bn[0]=kt(r,e,n,o,g),Bn[1]=kt(t,a,i,s,g),y=Ua(Bn,ar),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=kt(r,e,n,o,h),f[1]=kt(t,a,i,s,h)),Jr(v)}function Nx(r,t,e,a,n,i,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,g=kt(r,e,n,o,d),p=kt(t,a,i,s,d),y=g-u,m=p-f;h+=Math.sqrt(y*y+m*m),u=g,f=p}return h}function Gt(r,t,e,a){var n=1-a;return n*(n*r+2*a*t)+a*a*e}function fh(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function Bx(r,t,e,a,n){var i=r-2*t+e,o=2*(t-r),s=r-a,l=0;if($r(i)){if(L0(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if($r(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Jr(f),u=(-o+h)/(2*i),c=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function R0(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function $s(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function E0(r,t,e,a,n,i,o,s,l){var u,f=.005,h=1/0;ar[0]=o,ar[1]=s;for(var c=0;c<1;c+=.05){Le[0]=Gt(r,e,n,c),Le[1]=Gt(t,a,i,c);var v=Ua(ar,Le);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<D0);d++){var g=u-f,p=u+f;Le[0]=Gt(r,e,n,g),Le[1]=Gt(t,a,i,g);var v=Ua(Le,ar);if(g>=0&&v<h)u=g,h=v;else{Bn[0]=Gt(r,e,n,p),Bn[1]=Gt(t,a,i,p);var y=Ua(Bn,ar);p<=1&&y<h?(u=p,h=y):f*=.5}}return l&&(l[0]=Gt(r,e,n,u),l[1]=Gt(t,a,i,u)),Jr(h)}function Fx(r,t,e,a,n,i,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Gt(r,e,n,c),d=Gt(t,a,i,c),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var Gx=/cubic-bezier\(([0-9,\.e ]+)\)/;function k0(r){var t=r&&Gx.exec(r);if(t){var e=t[1].split(","),a=+Pe(e[0]),n=+Pe(e[1]),i=+Pe(e[2]),o=+Pe(e[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Xs(0,a,i,1,l,s)&&kt(0,n,o,1,s[0])}}}var zx=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||Zt,this.ondestroy=t.ondestroy||Zt,this.onrestart=t.onrestart||Zt,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 a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;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=$(t)?t:zi[t]||k0(t)},r}(),O0=function(){function r(t){this.value=t}return r}(),Vx=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new O0(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,a=t.next;e?e.next=a:this.head=a,a?a.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}(),wo=function(){function r(t){this._list=new Vx,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new O0(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),_d={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 Ze(r){return r=Math.round(r),r<0?0:r>255?255:r}function Hx(r){return r=Math.round(r),r<0?0:r>360?360:r}function ji(r){return r<0?0:r>1?1:r}function Cu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ze(parseFloat(t)/100*255):Ze(parseInt(t,10))}function Ya(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ji(parseFloat(t)/100):ji(parseFloat(t))}function Au(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 qr(r,t,e){return r+(t-r)*e}function Te(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function hh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var N0=new wo(20),Bo=null;function vn(r,t){Bo&&hh(Bo,t),Bo=N0.put(r,Bo||t.slice())}function he(r,t){if(r){t=t||[];var e=N0.get(r);if(e)return hh(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in _d)return hh(t,_d[a]),vn(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Te(t,0,0,0,1);return}return Te(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),vn(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Te(t,0,0,0,1);return}return Te(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),vn(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Te(t,+u[0],+u[1],+u[2],1):Te(t,0,0,0,1);f=Ya(u.pop());case"rgb":if(u.length>=3)return Te(t,Cu(u[0]),Cu(u[1]),Cu(u[2]),u.length===3?f:Ya(u[3])),vn(r,t),t;Te(t,0,0,0,1);return;case"hsla":if(u.length!==4){Te(t,0,0,0,1);return}return u[3]=Ya(u[3]),vh(u,t),vn(r,t),t;case"hsl":if(u.length!==3){Te(t,0,0,0,1);return}return vh(u,t),vn(r,t),t;default:return}}Te(t,0,0,0,1)}}function vh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Ya(r[1]),n=Ya(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],Te(t,Ze(Au(o,i,e+1/3)*255),Ze(Au(o,i,e)*255),Ze(Au(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Wx(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,h=((i-e)/6+o/2)/o,c=((i-a)/6+o/2)/o;t===i?l=c-h:e===i?l=1/3+f-c:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function ch(r,t){var e=he(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return ua(e,e.length===4?"rgba":"rgb")}}function Ux(r){var t=he(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function B0(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Ze(qr(o[0],s[0],l)),e[1]=Ze(qr(o[1],s[1],l)),e[2]=Ze(qr(o[2],s[2],l)),e[3]=ji(qr(o[3],s[3],l)),e}}var Yx=B0;function Ov(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=he(t[n]),s=he(t[i]),l=a-n,u=ua([Ze(qr(o[0],s[0],l)),Ze(qr(o[1],s[1],l)),Ze(qr(o[2],s[2],l)),ji(qr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var Zx=Ov;function Xx(r,t,e,a){var n=he(r);if(r)return n=Wx(n),t!=null&&(n[0]=Hx(t)),e!=null&&(n[1]=Ya(e)),a!=null&&(n[2]=Ya(a)),ua(vh(n),"rgba")}function $x(r,t){var e=he(r);if(e&&t!=null)return e[3]=ji(t),ua(e,"rgba")}function ua(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 to(r,t){var e=he(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function qx(){return ua([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Sd=new wo(100);function dh(r){if(H(r)){var t=Sd.get(r);return t||(t=ch(r,-.1),Sd.put(r,t)),t}else if(mo(r)){var e=F({},r);return e.colorStops=z(r.colorStops,function(a){return{offset:a.offset,color:ch(a.color,-.1)}}),e}return r}const iB=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:B0,fastMapToColor:Yx,lerp:Ov,lift:ch,liftColor:dh,lum:to,mapToColor:Zx,modifyAlpha:$x,modifyHSL:Xx,parse:he,random:qx,stringify:ua,toHex:Ux},Symbol.toStringTag,{value:"Module"}));var qs=Math.round;function oB(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=he(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var wd=1e-4;function sB(r){return r<wd&&r>-wd}function Fo(r){return qs(r*1e3)/1e3}function bd(r){return qs(r*1e4)/1e4}function lB(r){return"matrix("+Fo(r[0])+","+Fo(r[1])+","+Fo(r[2])+","+Fo(r[3])+","+bd(r[4])+","+bd(r[5])+")"}var uB={left:"start",right:"end",center:"middle",middle:"middle"};function fB(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function hB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function vB(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Kx(r){return r&&!!r.image}function Qx(r){return r&&!!r.svgElement}function cB(r){return Kx(r)||Qx(r)}function Jx(r){return r.type==="linear"}function jx(r){return r.type==="radial"}function dB(r){return r&&(r.type==="linear"||r.type==="radial")}function pB(r){return"url(#"+r+")"}function gB(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function yB(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*Fi,n=rt(r.scaleX,1),i=rt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+qs(o*Fi)+"deg, "+qs(s*Fi)+"deg)"),l.join(" ")}var mB=function(){return lt.hasGlobalWindow&&$(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}}(),ph=Array.prototype.slice;function Sr(r,t,e){return(t-r)*e+r}function Mu(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=Sr(t[i],e[i],a);return r}function tT(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Sr(t[o][s],e[o][s],a)}return r}function Go(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=t[i]+e[i]*a;return r}function xd(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function eT(r,t){for(var e=r.length,a=t.length,n=e>a?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function rT(r,t,e){var a=r,n=t;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(e===1?n[l]:ph.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Ds(r){if($t(r)){var t=r.length;if($t(r[0])){for(var e=[],a=0;a<t;a++)e.push(ph.call(r[a]));return e}return ph.call(r)}return r}function Ls(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 aT(r){return $t(r&&r[0])?2:1}var zo=0,Is=1,F0=2,Pi=3,gh=4,yh=5,Td=6;function Cd(r){return r===gh||r===yh}function Vo(r){return r===Is||r===F0}var li=[0,0,0,0],nT=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,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=Td,l=e;if($t(e)){var u=aT(e);s=u,(u===1&&!dt(e[0])||u===2&&!dt(e[0][0]))&&(o=!0)}else if(dt(e)&&!Qi(e))s=zo;else if(H(e))if(!isNaN(+e))s=zo;else{var f=he(e);f&&(l=f,s=Pi)}else if(mo(e)){var h=F({},l);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:he(v.color)}}),Jx(e)?s=gh:jx(e)&&(s=yh),l=h}i===0?this.valType=s:(s!==this.valType||s===Td)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return a&&(c.easing=a,c.easingFunc=$(a)?a:zi[a]||k0(a)),n.push(c),c},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(g,p){return g.time-p.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Vo(n),u=Cd(n),f=0;f<i;f++){var h=a[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==i-1?rT(c,v,n):u&&eT(c.colorStops,v.colorStops))}if(!s&&n!==yh&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=a[0].value,f=0;f<i;f++)n===zo?a[f].additiveValue=a[f].value-d:n===Pi?a[f].additiveValue=Go([],a[f].value,d,-1):Vo(n)&&(a[f].additiveValue=n===Is?Go([],a[f].value,d,-1):xd([],a[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Pi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?li:t[l];if((Vo(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Vo(i))i===Is?Mu(m,v[n],d[n],y):tT(m,v[n],d[n],y);else if(Cd(i)){var _=v[n],S=d[n],b=i===gh;t[l]={type:b?"linear":"radial",x:Sr(_.x,S.x,y),y:Sr(_.y,S.y,y),colorStops:z(_.colorStops,function(x,T){var C=S.colorStops[T];return{offset:Sr(x.offset,C.offset,y),color:Ls(Mu([],x.color,C.color,y))}}),global:S.global},b?(t[l].x2=Sr(_.x2,S.x2,y),t[l].y2=Sr(_.y2,S.y2,y)):t[l].r=Sr(_.r,S.r,y)}else if(u)Mu(m,v[n],d[n],y),a||(t[l]=Ls(m));else{var w=Sr(v[n],d[n],y);a?this._additiveValue=w:t[l]=w}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===zo?t[a]=t[a]+n:e===Pi?(he(t[a],li),Go(li,li,n,1),t[a]=Ls(li)):e===Is?Go(t[a],t[a],n,1):e===F0&&xd(t[a],t[a],n,1)},r}(),Nv=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){El("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}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,a){return this.whenWithKeys(t,e,mt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new nT(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Pi&&u&&(u=Ls(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ds(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Ds(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,a=0;a<e;a++)t[a].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 a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],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 a.push(s)}if(a.length||this._force){var c=new zx({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var p=0;p<a.length;p++)a[p].step(e._target,v);var y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var o=a[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[i]=Ds(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||mt(t);for(var a=0;a<e.length;a++){var n=e[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Pn(){return new Date().getTime()}var iT=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}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 a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=Pn()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(Ys(a),!e._paused&&e.update())}Ys(a)},t.prototype.start=function(){this._running||(this._time=Pn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Pn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Pn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Nv(e,a.loop);return this.addAnimator(n),n},t}(Ee),oT=300,Du=lt.domSupported,Lu=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},a=z(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),Ad={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Md=!1;function mh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function sT(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 Iu(r){r&&(r.zrByTouch=!0)}function lT(r,t){return Ce(r.dom,new uT(r,t),!0)}function G0(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var uT=function(){function r(t,e){this.stopPropagation=Zt,this.stopImmediatePropagation=Zt,this.preventDefault=Zt,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=Ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ce(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=Ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ce(this.dom,r);var t=r.toElement||r.relatedTarget;G0(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Md=!0,r=Ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Md||(r=Ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ce(this.dom,r),Iu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ge.mousemove.call(this,r),Ge.mousedown.call(this,r)},touchmove:function(r){r=Ce(this.dom,r),Iu(r),this.handler.processGesture(r,"change"),Ge.mousemove.call(this,r)},touchend:function(r){r=Ce(this.dom,r),Iu(r),this.handler.processGesture(r,"end"),Ge.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<oT&&Ge.click.call(this,r)},pointerdown:function(r){Ge.mousedown.call(this,r)},pointermove:function(r){mh(r)||Ge.mousemove.call(this,r)},pointerup:function(r){Ge.mouseup.call(this,r)},pointerout:function(r){mh(r)||Ge.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Ge[r]=function(t){t=Ce(this.dom,t),this.trigger(r,t)}});var _h={pointermove:function(r){mh(r)||_h.mousemove.call(this,r)},pointerup:function(r){_h.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 fT(r,t){var e=t.domHandlers;lt.pointerEventsSupported?A(Lu.pointer,function(a){Ps(t,a,function(n){e[a].call(r,n)})}):(lt.touchEventsSupported&&A(Lu.touch,function(a){Ps(t,a,function(n){e[a].call(r,n),sT(t)})}),A(Lu.mouse,function(a){Ps(t,a,function(n){n=Ev(n),t.touching||e[a].call(r,n)})}))}function hT(r,t){lt.pointerEventsSupported?A(Ad.pointer,e):lt.touchEventsSupported||A(Ad.mouse,e);function e(a){function n(i){i=Ev(i),G0(r,i.target)||(i=lT(r,i),t.domHandlers[a].call(r,i))}Ps(t,a,n,{capture:!0})}}function Ps(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,uh(r.domTarget,t,e,a)}function Pu(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&xx(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Dd=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),vT=function(r){O(t,r);function t(e,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=a,n._localHandlerScope=new Dd(e,Ge),Du&&(n._globalHandlerScope=new Dd(document,_h)),fT(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Pu(this._localHandlerScope),Du&&Pu(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,Du&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?hT(this,a):Pu(a)}},t}(Ee),z0=1;lt.hasGlobalWindow&&(z0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ks=z0,Sh=.4,wh="#333",bh="#ccc",cT="#eee",Ld=So,Id=5e-5;function ga(r){return r>Id||r<-Id}var ya=[],cn=[],Ru=Ye(),Eu=Math.abs,Cr=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 ga(this.rotation)||ga(this.x)||ga(this.y)||ga(this.scaleX-1)||ga(this.scaleY-1)||ga(this.skewX)||ga(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(Ld(a),this.invTransform=null);return}a=a||Ye(),e?this.getLocalTransform(a):Ld(a),t&&(e?sr(a,t,a):Nl(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ya);var a=ya[0]<0?-1:1,n=ya[1]<0?-1:1,i=((ya[0]-a)*e+a)/ya[0]||0,o=((ya[1]-n)*e+n)/ya[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ye(),sn(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],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,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||Ye(),sr(cn,t.invTransform,e),e=cn);var a=this.originX,n=this.originY;(a||n)&&(Ru[4]=a,Ru[5]=n,sr(cn,e,Ru),cn[4]-=a,cn[5]-=n,e=cn),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 a=[t,e],n=this.invTransform;return n&&Bt(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&Bt(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Eu(t[0]-1)>1e-10&&Eu(t[3]-1)>1e-10?Math.sqrt(Eu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){dT(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,g=n+l;e[4]=-d*i-c*g*o,e[5]=-g*o-v*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=v*i,e[2]=c*o,u&&Qn(e,e,u),e[4]+=a+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}(),eo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dT(r,t){for(var e=0;e<eo.length;e++){var a=eo[e];r[a]=t[a]}}var Pd={};function ye(r,t){t=t||Ka;var e=Pd[t];e||(e=Pd[t]=new wo(500));var a=e.get(r);return a==null&&(a=Ir.measureText(r,t).width,e.put(r,a)),a}function Rd(r,t,e,a){var n=ye(r,t),i=Bv(t),o=Ri(0,n,e),s=Ln(0,i,a),l=new et(o,s,n,i);return l}function bo(r,t,e,a){var n=((r||"")+"").split(`
`),i=n.length;if(i===1)return Rd(n[0],t,e,a);for(var o=new et(0,0,0,0),s=0;s<n.length;s++){var l=Rd(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function Ri(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ln(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Bv(r){return ye("国",r)}function ra(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Qs(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",h="top";if(a instanceof Array)l+=ra(a[0],e.width),u+=ra(a[1],e.height),f=null,h=null;else switch(a){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+=i+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+=i-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+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ku="__zr_normal__",Ou=eo.concat(["ignore"]),pT=ur(eo,function(r,t){return r[t]=!0,r},{ignore:!1}),dn={},gT=new et(0,0,0,0),Bl=function(){function r(t){this.id=Av(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){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 a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(e),a.position!=null){var f=gT;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(dn,a,f):Qs(dn,a,f),i.x=dn.x,i.y=dn.y,o=dn.align,s=dn.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=ra(h[0],f.width),v=ra(h[1],f.height)),u=!0,i.originX=-i.x+c+(n?0:f.x),i.originY=-i.y+v+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var g=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ge,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()?bh:wh},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&he(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,ua(a,"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||{},F(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(X(t))for(var a=t,n=mt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==ku)){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,Ou)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},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(ku,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===ku,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ut(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){El("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,a,f),c&&c.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ge),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[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],c=!!(h&&h.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ge)}},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=ut(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=ut(n,t),o=ut(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!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={},a,n=0;n<t.length;n++){var i=t[n];F(e,i),i.textConfig&&(a=a||{},F(a,i.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,n,i,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=F({},n?this.textConfig:a.textConfig),F(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Ou.length;f++){var h=Ou[f],c=i&&pT[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&a[h]!=null&&(c?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||a)[d]:e||a)}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 Cr,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(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|=ge;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,a=this._textGuide;e&&(e.__inHover=t),a&&(a.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);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 a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var n=t?this[t]:this,i=new Nv(n,e,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var i=n.animators,o=ut(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,a){Nu(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){Nu(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,n){for(var i=Nu(this,e,a,n),o=0;o<i.length;o++)i[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=ge;function e(a,n,i,o){Object.defineProperty(t,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=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}();de(Bl,Ee);de(Bl,Cr);function Nu(r,t,e,a,n){e=e||{};var i=[];V0(r,"",r,t,e,a,i,n);var o=i.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(),i.length>0&&e.during&&i[0].during(function(d,g){e.during(g)});for(var c=0;c<i.length;c++){var v=i[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return i}function Bu(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function yT(r){return $t(r[0])}function mT(r,t,e){if($t(t[e]))if($t(r[e])||(r[e]=[]),ee(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),Bu(r[e],t[e],a))}else{var n=t[e],i=r[e],o=n.length;if(yT(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Bu(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Bu(i,n,o);i.length=n.length}else r[e]=t[e]}function _T(r,t){return r===t||$t(r)&&$t(t)&&ST(r,t)}function ST(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function V0(r,t,e,a,n,i,o,s){for(var l=mt(a),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!X(i),d=r.animators,g=[],p=0;p<l.length;p++){var y=l[p],m=a[y];if(m!=null&&e[y]!=null&&(v||i[y]))if(X(m)&&!$t(m)&&!mo(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}V0(r,y,e[y],m,n,i&&i[y],o,s)}else g.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(g);if(w){var x=ut(d,b);d.splice(x,1)}}}if(n.force||(g=Tt(g,function(D){return!_T(a[D],e[D])}),_=g.length),_>0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=e[y],c?T[y]=a[y]:e[y]=a[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=g[S];M[y]=Ds(e[y]),mT(e,a,y)}}var b=new Nv(e,!1,!1,h?Tt(d,function(L){return L.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&T&&b.whenWithKeys(0,T,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(u??500,s?C:a,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var H0=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}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 a=this._children,n=0;n<a.length;n++)if(a[n].name===e)return a[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,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=ut(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=ut(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n<e.length;n++){var i=e[n];a&&i.removeSelfFromZr(a),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(a,o,i)}return this},t.prototype.traverse=function(e,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(a,i);i.isGroup&&!o&&i.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new et(0,0,0,0),n=e||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(et.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t}(Bl);H0.prototype.type="group";const ot=H0;/*!
* 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 Rs={},Ga={};function wT(r){delete Ga[r]}function bT(r){if(!r)return!1;if(typeof r=="string")return to(r,1)<Sh;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=to(t[n].color,1);return e/=a,e<Sh}return!1}var xT=function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new Ox,o=a.renderer||"canvas";Rs[o]||(o=mt(Rs)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Rs[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!lt.node&&!lt.worker&&!l?new vT(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?lt.touchEventsSupported:!!f,c=44,v;h&&(v=rt(a.pointerSize,c)),this.handler=new C0(i,s,u,s.root,v),this.animation=new iT({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=bT(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,a=Pn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Pn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):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,a){return this._disposed||this.handler.on(t,e,a),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 ot&&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,wT(this.id))},r}();function xh(r,t){var e=new xT(Av(),r,t);return Ga[e.id]=e,e}function TT(r){r.dispose()}function CT(){for(var r in Ga)Ga.hasOwnProperty(r)&&Ga[r].dispose();Ga={}}function AT(r){return Ga[r]}function W0(r,t){Rs[r]=t}var Th;function MT(r){if(typeof Th=="function")return Th(r)}function U0(r){Th=r}var DT="5.5.0";const _B=Object.freeze(Object.defineProperty({__proto__:null,dispose:TT,disposeAll:CT,getElementSSRData:MT,getInstance:AT,init:xh,registerPainter:W0,registerSSRDataGetter:U0,version:DT},Symbol.toStringTag,{value:"Module"}));var Ed=1e-4,Y0=20;function LT(r){return r.replace(/^\s+|\s+$/g,"")}function At(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function Y(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 H(r)?LT(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Lt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Y0),r=(+r).toFixed(t),e?r:+r}function Ei(r){return r.sort(function(t,e){return t-e}),r}function Ar(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 IT(r)}function IT(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function Z0(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function SB(r,t,e){if(!r[t])return 0;var a=X0(r,e);return a[t]||0}function X0(r,t){var e=ur(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=z(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=z(n,function(v){return Math.floor(v)}),s=ur(o,function(v,d){return v+d},0),l=z(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return z(o,function(v){return v/a})}function PT(r,t){var e=Math.max(Ar(r),Ar(t)),a=r+t;return e>Y0?a:Lt(a,e)}var wB=9007199254740991;function $0(r){var t=Math.PI*2;return(r%t+t)%t}function Js(r){return r>-Ed&&r<Ed}var RT=/^(?:(\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 fr(r){if(r instanceof Date)return r;if(H(r)){var t=RT.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 ET(r){return Math.pow(10,Fv(r))}function Fv(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 q0(r,t){var e=Fv(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function bB(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function xB(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function aa(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function kT(r){return!isNaN(aa(r))}function K0(){return Math.round(Math.random()*9)}function Q0(r,t){return t===0?r:Q0(t,r%t)}function kd(r,t){return r==null?t:t==null?r:r*t/Q0(r,t)}var OT="[ECharts] ",Od={},NT=typeof console<"u"&&console.warn&&console.log;function BT(r,t,e){if(NT){{if(Od[t])return;Od[t]=!0}console[r](OT+t)}}function TB(r,t){BT("warn",r)}function ct(r){throw new Error(r)}function Nd(r,t,e){return(t-r)*e+r}var J0="series\0",j0="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function js(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Bd=["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 xo(r){return X(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function FT(r){return X(r)&&!(r instanceof Array)}function GT(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=U();A(t,function(l,u){if(!X(l)){t[u]=null;return}});var s=zT(r,o,e);return(a||n)&&VT(s,r,o,t),a&&HT(s,t),a||n?WT(s,t,n):i&&UT(s,t),YT(s),s}function zT(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||ro(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function VT(r,t,e,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Vi(n.id),s=e.get(o);if(s!=null){var l=r[s];Re(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function HT(r,t){A(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!ro(e)&&!ro(i)&&t_("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function WT(r,t,e){A(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||ro(n.existing)||n.existing&&a.id!=null&&!t_("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function UT(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function YT(r){var t=U();A(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),A(r,function(e){var a=e.newOption;Re(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(X(i)){if(o.name=i.name!=null?Vi(i.name):n?n.name:J0+a,n)o.id=Vi(n.id);else if(i.id!=null)o.id=Vi(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function t_(r,t,e){var a=Xe(t[r],null),n=Xe(e[r],null);return a!=null&&n!=null&&a===n}function Vi(r){return Xe(r,"")}function Xe(r,t){return r==null?t:H(r)?r:dt(r)||Hs(r)?r+"":t}function Gv(r){var t=r.name;return!!(t&&t.indexOf(J0))}function ro(r){return r&&r.id!=null&&Vi(r.id).indexOf(j0)===0}function ZT(r){return j0+r}function XT(r,t,e){A(r,function(a){var n=a.newOption;X(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=$T(t,n,a.existing,e))})}function $T(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function CB(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=Xe(o[u].seriesId,null);if(h==null)return;for(var c=Mt(o[u].dataIndex),v=l&&l[h],d=0,g=c.length;d<g;d++){var p=c[d];v&&v[p]?v[p]=null:(s[h]||(s[h]={}))[p]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Ja(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function wt(){var r="__ec_inner_"+qT++;return function(t){return t[r]||(t[r]={})}}var qT=K0();function Hi(r,t,e){var a=zv(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var h=To(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 zv(r,t){var e;if(H(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=U(),i={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ut(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Nt={useDefault:!0,enableAll:!1,enableNone:!1},KT={useDefault:!1,enableAll:!0,enableNone:!0};function To(r,t,e,a){a=a||Nt;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(Re(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Re(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s)}function e_(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function QT(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function JT(r){return r==="auto"?lt.domSupported?"html":"richText":r||"html"}function AB(r,t){var e=U(),a=[];return A(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function r_(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(dt(a)){var o=Nd(e||0,a,n);return Lt(o,i?Math.max(Ar(e||0),Ar(a)):t)}else{if(H(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=Nd(v,d,n);s[h]=Lt(o,i?Math.max(Ar(v),Ar(d)):t)}}return s}}var jT=".",ma="___EC__COMPONENT__CONTAINER___",a_="___EC__EXTENDED_CLASS___";function ir(r){var t={main:"",sub:""};if(r){var e=r.split(jT);t.main=e[0]||"",t.sub=e[1]||""}return t}function tC(r){Re(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function eC(r){return!!(r&&r[a_])}function Vv(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return rC(a)?n=function(i){O(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},c0(n,this)),F(n.prototype,e),n[a_]=!0,n.extend=this.extend,n.superCall=iC,n.superApply=oC,n.superClass=a,n}}function rC(r){return $(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function n_(r,t){r.extend=t.extend}var aC=Math.round(Math.random()*10);function nC(r){var t=["__\0is_clz",aC++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function iC(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function oC(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Fl(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){tC(n),a.prototype.type=n;var i=ir(n);if(!i.sub)t[i.main]=a;else if(i.sub!==ma){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[ma]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ir(a),i=[],o=t[n.main];return o&&o[ma]?A(o,function(s,l){l!==ma&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ir(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ir(a),i=t[n.main];return i&&i[ma]};function e(a){var n=t[a.main];return(!n||!n[ma])&&(n=t[a.main]={},n[ma]=!0),n}}function ao(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ut(n,l)>=0||i&&ut(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var sC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lC=ao(sC),uC=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return lC(this,t,e)},r}(),Ch=new wo(50);function fC(r){if(typeof r=="string"){var t=Ch.get(r);return t&&t.image}else return r}function i_(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Ch.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Gl(t)&&i.pending.push(o)):(t=Ir.loadImage(r,Fd,Fd),t.__zrImageSrc=r,Ch.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Fd(){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],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Gl(r){return r&&r.width&&r.height}var Fu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hC(r,t,e,a,n){if(!t)return"";var i=(r+"").split(`
`);n=o_(t,e,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=s_(i[o],n);return i.join(`
`)}function o_(r,t,e,a){a=a||{};var n=F({},a);n.font=t,e=rt(e,"..."),n.maxIterations=rt(a.maxIterations,2);var i=n.minChar=rt(a.minChar,0);n.cnCharWidth=ye("国",t);var o=n.ascCharWidth=ye("a",t);n.placeholder=rt(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=ye(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 s_(r,t){var e=t.containerWidth,a=t.font,n=t.contentWidth;if(!e)return"";var i=ye(r,a);if(i<=e)return r;for(var o=0;;o++){if(i<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?vC(r,n,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=ye(r,a)}return r===""&&(r=t.placeholder),r}function vC(r,t,e,a){for(var n=0,i=0,o=r.length;i<o&&n<t;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?e:a}return i}function cC(r,t){r!=null&&(r+="");var e=t.overflow,a=t.padding,n=t.font,i=e==="truncate",o=Bv(n),s=rt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?l_(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var c=h.length*s,v=rt(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var g=o_(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=s_(h[p],g);for(var y=v,m=0,p=0;p<h.length;p++)m=Math.max(ye(h[p],n),m);f==null&&(f=m);var _=m;return a&&(y+=a[0]+a[2],_+=a[1]+a[3],f+=a[1]+a[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var dC=function(){function r(){}return r}(),Gd=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),pC=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 gC(r,t){var e=new pC;if(r!=null&&(r+=""),!r)return e;for(var a=t.width,n=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=Fu.lastIndex=0,l;(l=Fu.exec(r))!=null;){var u=l.index;u>s&&Gu(e,r.substring(s,u),t,o),Gu(e,l[2],t,o,l[1]),s=Fu.lastIndex}s<r.length&&Gu(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=i==="truncate",g=t.lineOverflow==="truncate";function p(k,B,G){k.width=B,k.lineHeight=G,h+=G,c=Math.max(c,B)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],x=w.styleName&&t.rich[w.styleName]||{},T=w.textPadding=x.padding,C=T?T[1]+T[3]:0,M=w.font=x.font||t.font;w.contentHeight=Bv(M);var D=rt(x.height,w.contentHeight);if(w.innerHeight=D,T&&(D+=T[0]+T[2]),w.height=D,w.lineHeight=On(x.lineHeight,t.lineHeight,D),w.align=x&&x.align||t.align,w.verticalAlign=x&&x.verticalAlign||"middle",g&&n!=null&&h+w.lineHeight>n){b>0?(m.tokens=m.tokens.slice(0,b),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var L=x.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")w.percentWidth=L,f.push(w),w.contentWidth=ye(w.text,M);else{if(I){var P=x.backgroundColor,R=P&&P.image;R&&(R=fC(R),Gl(R)&&(w.width=Math.max(w.width,R.width*D/R.height)))}var E=d&&a!=null?a-S:null;E!=null&&E<w.width?!I||E<C?(w.text="",w.width=w.contentWidth=0):(w.text=hC(w.text,E-C,M,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=ye(w.text,M)):w.contentWidth=ye(w.text,M)}w.width+=C,S+=w.width,x&&(_=Math.max(_,w.lineHeight))}p(m,S,_)}e.outerWidth=e.width=rt(a,c),e.outerHeight=e.height=rt(n,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var w=f[y],N=w.percentWidth;w.width=parseInt(N,10)/100*e.width}return e}function Gu(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(a){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ra(o.width,a.width)+v;s.length>0&&d+a.accumWidth>a.width&&(f=t.split(`
`),u=!0),a.accumWidth=d}else{var g=l_(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var y=f[p],m=new dC;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:ye(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Gd)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new Gd([m]))}}function yC(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var mC=ur(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function _C(r){return yC(r)?!!mC[r]:!0}function l_(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=ye(c,t),d=a?!1:!_C(c);if(i.length?f+v>e:n+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=c,f=v)):d?(i.push(l),o.push(u),l=c,u=v):(i.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Ah="__zr_style_"+Math.round(Math.random()*10),Za={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Za[Ah]=!0;var zd=["z","z2","invisible"],SC=["invisible"],wC=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=mt(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}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,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&bC(this,e,a)||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(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new et(0,0,0,0)),a?et.applyTransform(e,n,a):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 et(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,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:F(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Ii,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ii)},t.prototype.styleUpdated=function(){this.__dirty&=~Ii},t.prototype.createStyle=function(e){return _o(Za,e)},t.prototype.useStyle=function(e){e[Ah]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ah]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,zd)},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=mt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=mt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?SC:zd,c=0;c<g.length;c++){var v=g[c];a&&a[v]!=null?this[v]=a[v]:l&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(e,a){return F(e,a),e},t.prototype.getAnimationStyleProps=function(){return zl},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=ge|Ii}(),t}(Bl),zu=new et(0,0,0,0),Vu=new et(0,0,0,0);function bC(r,t,e){return zu.copy(r.getBoundingRect()),r.transform&&zu.applyTransform(r.transform),Vu.width=t,Vu.height=e,!zu.intersect(Vu)}const na=wC;var se=Math.min,le=Math.max,Hu=Math.sin,Wu=Math.cos,_a=Math.PI*2,Ho=on(),Wo=on(),Uo=on();function u_(r,t,e){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=se(n,a[0]),i=le(i,a[0]),o=se(o,a[1]),s=le(s,a[1]);t[0]=n,t[1]=o,e[0]=i,e[1]=s}}function Vd(r,t,e,a,n,i){n[0]=se(r,e),n[1]=se(t,a),i[0]=le(r,e),i[1]=le(t,a)}var Hd=[],Wd=[];function xC(r,t,e,a,n,i,o,s,l,u){var f=I0,h=kt,c=f(r,e,n,o,Hd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,Hd[v]);l[0]=se(d,l[0]),u[0]=le(d,u[0])}c=f(t,a,i,s,Wd);for(var v=0;v<c;v++){var g=h(t,a,i,s,Wd[v]);l[1]=se(g,l[1]),u[1]=le(g,u[1])}l[0]=se(r,l[0]),u[0]=le(r,u[0]),l[0]=se(o,l[0]),u[0]=le(o,u[0]),l[1]=se(t,l[1]),u[1]=le(t,u[1]),l[1]=se(s,l[1]),u[1]=le(s,u[1])}function TC(r,t,e,a,n,i,o,s){var l=R0,u=Gt,f=le(se(l(r,e,n),1),0),h=le(se(l(t,a,i),1),0),c=u(r,e,n,f),v=u(t,a,i,h);o[0]=se(r,n,c),o[1]=se(t,i,v),s[0]=le(r,n,c),s[1]=le(t,i,v)}function CC(r,t,e,a,n,i,o,s,l){var u=xr,f=Tr,h=Math.abs(n-i);if(h%_a<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(Ho[0]=Wu(n)*e+r,Ho[1]=Hu(n)*a+t,Wo[0]=Wu(i)*e+r,Wo[1]=Hu(i)*a+t,u(s,Ho,Wo),f(l,Ho,Wo),n=n%_a,n<0&&(n=n+_a),i=i%_a,i<0&&(i=i+_a),n>i&&!o?i+=_a:n<i&&o&&(n+=_a),o){var c=i;i=n,n=c}for(var v=0;v<i;v+=Math.PI/2)v>n&&(Uo[0]=Wu(v)*e+r,Uo[1]=Hu(v)*a+t,u(s,Uo,s),f(l,Uo,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],wa=[],Je=[],Nr=[],je=[],tr=[],Uu=Math.min,Yu=Math.max,ba=Math.cos,xa=Math.sin,yr=Math.abs,Mh=Math.PI,Ur=Mh*2,Zu=typeof Float32Array<"u",ui=[];function Xu(r){var t=Math.round(r/Mh*1e8)/1e8;return t%2*Mh}function Hv(r,t){var e=Xu(r[0]);e<0&&(e+=Ur);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=Ur?n=e+Ur:t&&e-n>=Ur?n=e-Ur:!t&&e>n?n=e+(Ur-Xu(e-n)):t&&e<n&&(n=e-(Ur-Xu(n-e))),r[0]=e,r[1]=n}var Pr=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,a){a=a||0,a>0&&(this._ux=yr(a/Ks/t)||0,this._uy=yr(a/Ks/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(gt.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 a=yr(t-this._xi),n=yr(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(gt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(gt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(gt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),ui[0]=n,ui[1]=i,Hv(ui,o),n=ui[0],i=ui[1];var s=i-n;return this.addData(gt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=ba(i)*a+t,this._yi=xa(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(gt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,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)&&Zu&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,a=0,n=this._len,i=0;i<e;i++)a+=t[i].len();Zu&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<e;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,a,n,i,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,Zu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Je[0]=Je[1]=je[0]=je[1]=Number.MAX_VALUE,Nr[0]=Nr[1]=tr[0]=tr[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],n=e,i=a),s){case gt.M:e=n=t[o++],a=i=t[o++],je[0]=n,je[1]=i,tr[0]=n,tr[1]=i;break;case gt.L:Vd(e,a,t[o],t[o+1],je,tr),e=t[o++],a=t[o++];break;case gt.C:xC(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],je,tr),e=t[o++],a=t[o++];break;case gt.Q:TC(e,a,t[o++],t[o++],t[o],t[o+1],je,tr),e=t[o++],a=t[o++];break;case gt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];l&&(n=ba(v)*h+u,i=xa(v)*c+f),CC(u,f,h,c,v,d,g,je,tr),e=ba(d)*h+u,a=xa(d)*c+f;break;case gt.R:n=e=t[o++],i=a=t[o++];var p=t[o++],y=t[o++];Vd(n,i,n+p,i+y,je,tr);break;case gt.Z:e=n,a=i;break}xr(Je,Je,je),Tr(Nr,Nr,tr)}return o===0&&(Je[0]=Je[1]=Nr[0]=Nr[1]=0),new et(Je[0],Je[1],Nr[0]-Je[0],Nr[1]-Je[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(i=t[c],o=t[c+1],s=i,l=o);var g=-1;switch(v){case gt.M:i=s=t[c++],o=l=t[c++];break;case gt.L:{var p=t[c++],y=t[c++],m=p-i,_=y-o;(yr(m)>a||yr(_)>n||c===e-1)&&(g=Math.sqrt(m*m+_*_),i=p,o=y);break}case gt.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],w=t[c++],x=t[c++];g=Nx(i,o,S,b,p,y,w,x,10),i=w,o=x;break}case gt.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=Fx(i,o,S,b,p,y,10),i=p,o=y;break}case gt.A:var T=t[c++],C=t[c++],M=t[c++],D=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=ba(L)*M+T,l=xa(L)*D+C),g=Yu(M,D)*Uu(Ur,Math.abs(I)),i=ba(P)*M+T,o=xa(P)*D+C;break;case gt.R:{s=i=t[c++],l=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case gt.Z:{var m=s-i,_=l-o;g=Math.sqrt(m*m+_*_),i=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m)))t:for(var w=0;w<o;){var x=a[w++],T=w===1;switch(T&&(u=a[w],f=a[w+1],s=u,l=f),x!==gt.L&&_>0&&(t.lineTo(S,b),_=0),x){case gt.M:s=u=a[w++],l=f=a[w++],t.moveTo(u,f);break;case gt.L:{h=a[w++],c=a[w++];var C=yr(h-u),M=yr(c-f);if(C>n||M>i){if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}p+=D}t.lineTo(h,c),u=h,f=c,_=0}else{var I=C*C+M*M;I>_&&(S=h,b=c,_=I)}break}case gt.C:{var P=a[w++],R=a[w++],E=a[w++],N=a[w++],k=a[w++],B=a[w++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;ea(u,P,E,k,L,Sa),ea(f,R,N,B,L,wa),t.bezierCurveTo(Sa[1],wa[1],Sa[2],wa[2],Sa[3],wa[3]);break t}p+=D}t.bezierCurveTo(P,R,E,N,k,B),u=k,f=B;break}case gt.Q:{var P=a[w++],R=a[w++],E=a[w++],N=a[w++];if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;$s(u,P,E,L,Sa),$s(f,R,N,L,wa),t.quadraticCurveTo(Sa[1],wa[1],Sa[2],wa[2]);break t}p+=D}t.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case gt.A:var G=a[w++],W=a[w++],K=a[w++],tt=a[w++],it=a[w++],St=a[w++],pt=a[w++],Vt=!a[w++],Ht=K>tt?K:tt,Et=yr(K-tt)>.001,xt=it+St,J=!1;if(v){var D=d[y++];p+D>m&&(xt=it+St*(m-p)/D,J=!0),p+=D}if(Et&&t.ellipse?t.ellipse(G,W,K,tt,pt,it,xt,Vt):t.arc(G,W,Ht,it,xt,Vt),J)break t;T&&(s=ba(it)*K+G,l=xa(it)*tt+W),u=ba(xt)*K+G,f=xa(xt)*tt+W;break;case gt.R:s=u=a[w],l=f=a[w+1],h=a[w++],c=a[w++];var ft=a[w++],Qe=a[w++];if(v){var D=d[y++];if(p+D>m){var Ot=m-p;t.moveTo(h,c),t.lineTo(h+Uu(Ot,ft),c),Ot-=ft,Ot>0&&t.lineTo(h+ft,c+Uu(Ot,Qe)),Ot-=Qe,Ot>0&&t.lineTo(h+Yu(ft-Ot,0),c+Qe),Ot-=ft,Ot>0&&t.lineTo(h,c+Yu(Qe-Ot,0));break t}p+=D}t.rect(h,c,ft,Qe);break;case gt.Z:if(v){var D=d[y++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=D}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=gt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Zr(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function AC(r,t,e,a,n,i,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>a+h&&f>i+h&&f>s+h||f<t-h&&f<a-h&&f<i-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 c=P0(r,t,e,a,n,i,o,s,u,f,null);return c<=h/2}function f_(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>i+u||l<t-u&&l<a-u&&l<i-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=E0(r,t,e,a,n,i,s,l,null);return f<=u/2}var Ud=Math.PI*2;function Mr(r){return r%=Ud,r<0&&(r+=Ud),r}var fi=Math.PI*2;function MC(r,t,e,a,n,i,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(a-n)%fi<1e-4)return!0;if(i){var h=a;a=Mr(n),n=Mr(h)}else a=Mr(a),n=Mr(n);a>n&&(n+=fi);var c=Math.atan2(l,s);return c<0&&(c+=fi),c>=a&&c<=n||c+fi>=a&&c+fi<=n}function wr(r,t,e,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var o=(i-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var Br=Pr.CMD,Ta=Math.PI*2,DC=1e-4;function LC(r,t){return Math.abs(r-t)<DC}var Qt=[-1,-1,-1],Me=[-1,-1];function IC(){var r=Me[0];Me[0]=Me[1],Me[1]=r}function PC(r,t,e,a,n,i,o,s,l,u){if(u>t&&u>a&&u>i&&u>s||u<t&&u<a&&u<i&&u<s)return 0;var f=Xs(t,a,i,s,u,Qt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Qt[g],y=p===0||p===1?.5:1,m=kt(r,e,n,o,p);m<l||(c<0&&(c=I0(t,a,i,s,Me),Me[1]<Me[0]&&c>1&&IC(),v=kt(t,a,i,s,Me[0]),c>1&&(d=kt(t,a,i,s,Me[1]))),c===2?p<Me[0]?h+=v<t?y:-y:p<Me[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<Me[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function RC(r,t,e,a,n,i,o,s){if(s>t&&s>a&&s>i||s<t&&s<a&&s<i)return 0;var l=Bx(t,a,i,s,Qt);if(l===0)return 0;var u=R0(t,a,i);if(u>=0&&u<=1){for(var f=0,h=Gt(t,a,i,u),c=0;c<l;c++){var v=Qt[c]===0||Qt[c]===1?.5:1,d=Gt(r,e,n,Qt[c]);d<o||(Qt[c]<u?f+=h<t?v:-v:f+=i<h?v:-v)}return f}else{var v=Qt[0]===0||Qt[0]===1?.5:1,d=Gt(r,e,n,Qt[0]);return d<o?0:i<t?v:-v}}function EC(r,t,e,a,n,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Qt[0]=-l,Qt[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Ta-1e-4){a=0,n=Ta;var f=i?1:-1;return o>=Qt[0]+r&&o<=Qt[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Ta,n+=Ta);for(var c=0,v=0;v<2;v++){var d=Qt[v];if(d+r>o){var g=Math.atan2(s,d),f=i?1:-1;g<0&&(g=Ta+g),(g>=a&&g<=n||g+Ta>=a&&g+Ta<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function h_(r,t,e,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var g=i[d++],p=d===1;switch(g===Br.M&&d>1&&(e||(s+=wr(l,u,f,h,a,n))),p&&(l=i[d],u=i[d+1],f=l,h=u),g){case Br.M:f=i[d++],h=i[d++],l=f,u=h;break;case Br.L:if(e){if(Zr(l,u,i[d],i[d+1],t,a,n))return!0}else s+=wr(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Br.C:if(e){if(AC(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=PC(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Br.Q:if(e){if(f_(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=RC(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case Br.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],w=i[d++];d+=1;var x=!!(1-i[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=wr(l,u,c,v,a,n);var T=(a-y)*S/_+y;if(e){if(MC(y,m,S,b,b+w,x,t,T,n))return!0}else s+=EC(y,m,S,b,b+w,x,T,n);l=Math.cos(b+w)*_+y,u=Math.sin(b+w)*S+m;break;case Br.R:f=l=i[d++],h=u=i[d++];var C=i[d++],M=i[d++];if(c=f+C,v=h+M,e){if(Zr(f,h,c,h,t,a,n)||Zr(c,h,c,v,t,a,n)||Zr(c,v,f,v,t,a,n)||Zr(f,v,f,h,t,a,n))return!0}else s+=wr(c,h,c,v,a,n),s+=wr(f,v,f,h,a,n);break;case Br.Z:if(e){if(Zr(l,u,f,h,t,a,n))return!0}else s+=wr(l,u,f,h,a,n);l=f,u=h;break}}return!e&&!LC(u,h)&&(s+=wr(l,u,f,h,a,n)||0),s!==0}function kC(r,t,e){return h_(r,0,!1,t,e)}function OC(r,t,e,a){return h_(r,t,!0,e,a)}var v_=Z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Za),NC={style:Z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zl.style)},$u=eo.concat(["invisible","culling","z","z2","zlevel","parent"]),st=function(r){O(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 a=this.style;if(a.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 i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<$u.length;++s)n[$u[s]]=this[$u[s]];n.__dirty|=ge}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=mt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=e[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(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(H(e)){var a=to(e,0);return a>.5?wh:a>.2?cT:bh}else if(e)return bh}return wh},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(H(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=to(e,0)<Sh;if(i===o)return a}},t.prototype.buildPath=function(e,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Dn},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 Pr(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Dn)&&(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=a.strokeNoScale?this.getLineScale():1,u=a.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,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){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)),OC(s,l/u,e,a)))return!0}if(this.hasFill())return kC(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Dn,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,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:F(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Dn)},t.prototype.createStyle=function(e){return _o(v_,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=F({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=F({},n.shape),F(u,a.shape)):(u=F({},i?this.shape:n.shape),F(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=F({},this.shape);for(var f={},h=mt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return NC},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=function(i){O(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(e.style)},o.prototype.getDefaultShape=function(){return j(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(a.prototype[n]=e[n]);return a},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ge|Ii|Dn}(),t}(na),BC=Z({strokeFirst:!0,font:Ka,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},v_),no=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return a!=null&&a!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return _o(BC,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var n=bo(a,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(na);no.prototype.type="tspan";var FC=Z({x:0,y:0},Za),GC={style:Z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zl.style)};function zC(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var c_=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return _o(FC,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=zC(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return GC},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new et(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);c_.prototype.type="image";const vr=c_;function VC(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),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>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var Rn=Math.round;function d_(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(Rn(a*2)===Rn(n*2)&&(r.x1=r.x2=za(a,s,!0)),Rn(i*2)===Rn(o*2)&&(r.y1=r.y2=za(i,s,!0))),r}}function p_(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=za(a,s,!0),r.y=za(n,s,!0),r.width=Math.max(za(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(za(n+o,s,!1)-r.y,o===0?0:1)),r}}function za(r,t,e){if(!t)return r;var a=Rn(r*2);return(a+Rn(t))%2===0?a/2:(a+(e?1:-1))/2}var HC=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),WC={},g_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HC},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=p_(WC,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?VC(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(st);g_.prototype.type="rect";const _t=g_;var Yd={fill:"#000"},Zd=2,UC={style:Z({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},zl.style)},y_=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Yd,a.attr(e),a}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 a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.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 a=this.innerTransformable;return a?a.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,qC(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 a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new et(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Yd},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var n=a.rich,i=e.rich||n&&{};return F(e,a),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,a){for(var n=mt(a),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},F(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return UC},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||Ka,n=e.padding,i=jd(e),o=cC(i,e),s=qu(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,g=e.x||0,p=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=g,S=Ln(p,o.contentHeight,m);if(s||n){var b=Ri(g,f,y),w=Ln(p,u,m);s&&this._renderBackground(e,e,b,w,f,u)}S+=v/2,n&&(_=Jd(g,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var x=0,T=!1,C=Qd("fill"in e?e.fill:(T=!0,d.fill)),M=Kd("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(x=Zd,d.stroke):null),D=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(no),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=M,E.fill=C,M&&(E.lineWidth=e.lineWidth||x,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=a,$d(E,e),S+=v,L&&R.setBoundingRect(new et(Ri(E.x,e.width,E.textAlign),Ln(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,a=jd(e),n=gC(a,e),i=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign,d=Ri(u,o,c),g=Ln(f,s,v),p=d,y=g;l&&(p+=l[3],y+=l[0]);var m=p+i;qu(e)&&this._renderBackground(e,e,d,g,o,s);for(var _=!!e.backgroundColor,S=0;S<n.lines.length;S++){for(var b=n.lines[S],w=b.tokens,x=w.length,T=b.lineHeight,C=b.width,M=0,D=p,L=m,I=x-1,P=void 0;M<x&&(P=w[M],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),C-=P.width,D+=P.width,M++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-p)-(m-L)-C)/2;M<=I;)P=w[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=i+n/2;f==="top"?h=i+e.height/2:f==="bottom"&&(h=i+n-e.height/2);var c=!e.isLineHolder&&qu(u);c&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=Jd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(no),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=Qd("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=Kd("stroke"in u?u.stroke:"stroke"in a?a.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Zd,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,w&&(p.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,p.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Ka,p.opacity=On(u.opacity,a.opacity,1),$d(p,u),b&&(p.lineWidth=On(u.lineWidth,a.lineWidth,_),p.lineDash=rt(u.lineDash,a.lineDash),p.lineDashOffset=a.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var x=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new et(Ri(p.x,x,p.textAlign),Ln(p.y,T,p.textBaseline),x,T))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||u&&f){g=this._getOrCreateChild(_t),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=l||null,m.fillOpacity=rt(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(vr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=rt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=On(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return $C(e)&&(a=[e.fontStyle,e.fontWeight,XC(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Pe(a)||e.textFont||e.font},t}(na),YC={left:!0,right:1,center:1},ZC={top:1,bottom:1,middle:1},Xd=["fontStyle","fontWeight","fontSize","fontFamily"];function XC(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?xv+"px":r+"px"}function $d(r,t){for(var e=0;e<Xd.length;e++){var a=Xd[e],n=t[a];n!=null&&(r[a]=n)}}function $C(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function qC(r){return qd(r),A(r.rich,qd),r}function qd(r){if(r){r.font=y_.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||YC[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||ZC[e]?e:"top";var a=r.padding;a&&(r.padding=Dv(r.padding))}}function Kd(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Qd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Jd(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function jd(r){var t=r.text;return t!=null&&(t+=""),t}function qu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Ct=y_;var at=wt(),Dh=function(r,t,e,a){if(a){var n=at(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=at(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},tp=1,ep={},m_=wt(),Wv=wt(),Uv=0,Vl=1,Hl=2,ve=["emphasis","blur","select"],tl=["normal","emphasis","blur","select"],KC=10,QC=9,Xa="highlight",Es="downplay",Wi="select",ks="unselect",Ui="toggleSelect";function pn(r){return r!=null&&r!=="none"}function Wl(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function __(r){Wl(r,"emphasis",Hl)}function S_(r){r.hoverState===Hl&&Wl(r,"normal",Uv)}function Yv(r){Wl(r,"blur",Vl)}function w_(r){r.hoverState===Vl&&Wl(r,"normal",Uv)}function JC(r){r.selected=!0}function jC(r){r.selected=!1}function rp(r,t,e){t(r,e)}function Rr(r,t,e){rp(r,t,e),r.isGroup&&r.traverse(function(a){rp(a,t,e)})}function ap(r,t){switch(t){case"emphasis":r.hoverState=Hl;break;case"normal":r.hoverState=Uv;break;case"blur":r.hoverState=Vl;break;case"select":r.selected=!0}}function tA(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[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(i,t)}return i}function eA(r,t,e,a){var n=e&&ut(e,"select")>=0,i=!1;if(r instanceof st){var o=m_(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(pn(s)||pn(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=F({},a),u=F({},u),u.fill=s):!pn(u.fill)&&pn(s)?(i=!0,a=F({},a),u=F({},u),u.fill=dh(s)):!pn(u.stroke)&&pn(l)&&(i||(a=F({},a),u=F({},u)),u.stroke=dh(l)),a.style=u}}if(a&&a.z2==null){i||(a=F({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??KC)}return a}function rA(r,t,e){if(e&&e.z2==null){e=F({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??QC)}return e}function aA(r,t,e){var a=ut(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:tA(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Ku(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return eA(this,r,t,e);if(r==="blur")return aA(this,r,e);if(r==="select")return rA(this,r,e)}return e}function Zv(r){r.stateProxy=Ku;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Ku),e&&(e.stateProxy=Ku)}function np(r,t){!C_(r,t)&&!r.__highByOuter&&Rr(r,__)}function ip(r,t){!C_(r,t)&&!r.__highByOuter&&Rr(r,S_)}function ja(r,t){r.__highByOuter|=1<<(t||0),Rr(r,__)}function tn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Rr(r,S_)}function nA(r){Rr(r,Yv)}function b_(r){Rr(r,w_)}function x_(r){Rr(r,JC)}function T_(r){Rr(r,jC)}function C_(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function A_(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Wv(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){w_(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Lh(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&b_(c)}}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 c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Yv(p)}),$t(t))i(u.getData(),t);else if(X(t))for(var d=mt(t),g=0;g<d.length;g++)i(u.getData(d[g]),t[d[g]]);l.push(u),Wv(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=a.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function Ih(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){Wv(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Yv(i)})}}}function iA(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Ja(n,t);i=(V(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=at(o);Lh(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Lh(a,f,h,e)}}}function Xv(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(at(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function oA(r,t,e){var a=at(r),n=Xv(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Ih(a.componentMainType,a.componentIndex,e),A(i,function(s){return np(s,t)})):(Lh(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Ih(a.componentMainType,a.componentIndex,e),np(r,t))}function sA(r,t,e){A_(e);var a=at(r),n=Xv(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?A(n,function(i){return ip(i,t)}):ip(r,t)}function lA(r,t,e){if(Rh(t)){var a=t.dataType,n=r.getData(a),i=Ja(n,t);V(i)||(i=[i]),r[t.type===Ui?"toggleSelect":t.type===Wi?"select":"unselect"](i,a)}}function op(r){var t=r.getAllData();A(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?x_(i):T_(i)})})}function uA(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();A(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function el(r,t,e){M_(r,!0),Rr(r,Zv),hA(r,t,e)}function fA(r){M_(r,!1)}function $e(r,t,e,a){a?fA(r):el(r,t,e)}function hA(r,t,e){var a=at(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var sp=["emphasis","blur","select"],vA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ia(r,t,e,a){e=e||"itemStyle";for(var n=0;n<sp.length;n++){var i=sp[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[vA[e]]()}}function M_(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Ph(r){return!!(r&&r.__highDownDispatcher)}function cA(r,t,e){var a=at(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function dA(r){var t=ep[r];return t==null&&tp<=32&&(t=ep[r]=tp++),t}function Rh(r){var t=r.type;return t===Wi||t===ks||t===Ui}function lp(r){var t=r.type;return t===Xa||t===Es}function pA(r){var t=m_(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 gn=Pr.CMD,gA=[[],[],[]],up=Math.sqrt,yA=Math.atan2;function D_(r,t){if(t){var e=r.data,a=r.len(),n,i,o,s,l,u,f=gn.M,h=gn.C,c=gn.L,v=gn.R,d=gn.A,g=gn.Q;for(o=0,s=0;o<a;){switch(n=e[o++],s=o,i=0,n){case f:i=1;break;case c:i=1;break;case h:i=3;break;case g:i=2;break;case d:var p=t[4],y=t[5],m=up(t[0]*t[0]+t[1]*t[1]),_=up(t[2]*t[2]+t[3]*t[3]),S=yA(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=p,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Bt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Bt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var b=gA[l];b[0]=e[o++],b[1]=e[o++],Bt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Qu=Math.sqrt,Yo=Math.sin,Zo=Math.cos,hi=Math.PI;function fp(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Eh(r,t){return(r[0]*t[0]+r[1]*t[1])/(fp(r)*fp(t))}function hp(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Eh(r,t))}function vp(r,t,e,a,n,i,o,s,l,u,f){var h=l*(hi/180),c=Zo(h)*(r-e)/2+Yo(h)*(t-a)/2,v=-1*Yo(h)*(r-e)/2+Zo(h)*(t-a)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Qu(d),s*=Qu(d));var g=(n===i?-1:1)*Qu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+Zo(h)*p-Yo(h)*y,_=(t+a)/2+Yo(h)*p+Zo(h)*y,S=hp([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],w=[(-1*c-p)/o,(-1*v-y)/s],x=hp(b,w);if(Eh(b,w)<=-1&&(x=hi),Eh(b,w)>=1&&(x=0),x<0){var T=Math.round(x/hi*1e6)/1e6;x=hi*2+T%2*hi}f.addData(u,m,_,o,s,S,x,h,i)}var mA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_A=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function SA(r){var t=new Pr;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Pr.CMD,l=r.match(mA);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(_A)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=e,C=a,M=void 0,D=void 0;switch(h){case"l":e+=v[p++],a+=v[p++],c=s.L,t.addData(c,e,a);break;case"L":e=v[p++],a=v[p++],c=s.L,t.addData(c,e,a);break;case"m":e+=v[p++],a+=v[p++],c=s.M,t.addData(c,e,a),n=e,i=a,h="l";break;case"M":e=v[p++],a=v[p++],c=s.M,t.addData(c,e,a),n=e,i=a,h="L";break;case"h":e+=v[p++],c=s.L,t.addData(c,e,a);break;case"H":e=v[p++],c=s.L,t.addData(c,e,a);break;case"v":a+=v[p++],c=s.L,t.addData(c,e,a);break;case"V":a=v[p++],c=s.L,t.addData(c,e,a);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),e=v[p-2],a=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+e,v[p++]+a,v[p++]+e,v[p++]+a,v[p++]+e,v[p++]+a),e+=v[p-2],a+=v[p-1];break;case"S":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),c=s.C,T=v[p++],C=v[p++],e=v[p++],a=v[p++],t.addData(c,y,m,T,C,e,a);break;case"s":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),c=s.C,T=e+v[p++],C=a+v[p++],e+=v[p++],a+=v[p++],t.addData(c,y,m,T,C,e,a);break;case"Q":T=v[p++],C=v[p++],e=v[p++],a=v[p++],c=s.Q,t.addData(c,T,C,e,a);break;case"q":T=v[p++]+e,C=v[p++]+a,e+=v[p++],a+=v[p++],c=s.Q,t.addData(c,T,C,e,a);break;case"T":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e=v[p++],a=v[p++],c=s.Q,t.addData(c,y,m,e,a);break;case"t":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e+=v[p++],a+=v[p++],c=s.Q,t.addData(c,y,m,e,a);break;case"A":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,C=a,e=v[p++],a=v[p++],c=s.A,vp(T,C,e,a,w,x,_,S,b,c,t);break;case"a":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,C=a,e+=v[p++],a+=v[p++],c=s.A,vp(T,C,e,a,w,x,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,a=i),o=c}return t.toStatic(),t}var L_=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(st);function I_(r){return r.setData!=null}function P_(r,t){var e=SA(r),a=F({},t);return a.buildPath=function(n){if(I_(n)){n.setData(e.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;e.rebuildPath(i,1)}},a.applyTransform=function(n){D_(e,n),this.dirtyShape()},a}function R_(r,t){return new L_(P_(r,t))}function wA(r,t){var e=P_(r,t),a=function(n){O(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(L_);return a}function bA(r,t){for(var e=[],a=r.length,n=0;n<a;n++){var i=r[n];e.push(i.getUpdatedPathProxy(!0))}var o=new st(t);return o.createPathProxy(),o.buildPath=function(s){if(I_(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function $v(r,t){t=t||{};var e=new st;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?D_(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var xA=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),E_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new xA},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t}(st);E_.prototype.type="circle";const Jn=E_;var TA=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),k_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new TA},t.prototype.buildPath=function(e,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(st);k_.prototype.type="ellipse";const qv=k_;var O_=Math.PI,Ju=O_*2,Ca=Math.sin,yn=Math.cos,CA=Math.acos,Wt=Math.atan2,cp=Math.abs,Yi=Math.sqrt,ki=Math.max,er=Math.min,Fe=1e-4;function AA(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,h=s-i,c=h*l-f*u;if(!(c*c<Fe))return c=(f*(t-i)-h*(r-n))/c,[r+c*l,t+c*u]}function Xo(r,t,e,a,n,i,o){var s=r-e,l=t-a,u=(o?i:-i)/Yi(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,g=a+h,p=(c+d)/2,y=(v+g)/2,m=d-c,_=g-v,S=m*m+_*_,b=n-i,w=c*g-d*v,x=(_<0?-1:1)*Yi(ki(0,b*b*S-w*w)),T=(w*_-m*x)/S,C=(-w*m-_*x)/S,M=(w*_+m*x)/S,D=(-w*m+_*x)/S,L=T-p,I=C-y,P=M-p,R=D-y;return L*L+I*I>P*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(n/b-1),y1:C*(n/b-1)}}function MA(r){var t;if(V(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 DA(r,t){var e,a=ki(t.r,0),n=ki(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=cp(u-l),d=v>Ju&&v%Ju;if(d>Fe&&(v=d),!(a>Fe))r.moveTo(f,h);else if(v>Ju-Fe)r.moveTo(f+a*yn(l),h+a*Ca(l)),r.arc(f,h,a,l,u,!c),n>Fe&&(r.moveTo(f+n*yn(u),h+n*Ca(u)),r.arc(f,h,n,u,l,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*yn(l),E=a*Ca(l),N=n*yn(u),k=n*Ca(u),B=v>Fe;if(B){var G=t.cornerRadius;G&&(e=MA(G),g=e[0],p=e[1],y=e[2],m=e[3]);var W=cp(a-n)/2;if(_=er(W,y),S=er(W,m),b=er(W,g),w=er(W,p),C=x=ki(_,S),M=T=ki(b,w),(x>Fe||T>Fe)&&(D=a*yn(u),L=a*Ca(u),I=n*yn(l),P=n*Ca(l),v<O_)){var K=AA(R,E,I,P,D,L,N,k);if(K){var tt=R-K[0],it=E-K[1],St=D-K[0],pt=L-K[1],Vt=1/Ca(CA((tt*St+it*pt)/(Yi(tt*tt+it*it)*Yi(St*St+pt*pt)))/2),Ht=Yi(K[0]*K[0]+K[1]*K[1]);C=er(x,(a-Ht)/(Vt+1)),M=er(T,(n-Ht)/(Vt-1))}}}if(!B)r.moveTo(f+R,h+E);else if(C>Fe){var Et=er(y,C),xt=er(m,C),J=Xo(I,P,R,E,a,Et,c),ft=Xo(D,L,N,k,a,xt,c);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),C<x&&Et===xt?r.arc(f+J.cx,h+J.cy,C,Wt(J.y0,J.x0),Wt(ft.y0,ft.x0),!c):(Et>0&&r.arc(f+J.cx,h+J.cy,Et,Wt(J.y0,J.x0),Wt(J.y1,J.x1),!c),r.arc(f,h,a,Wt(J.cy+J.y1,J.cx+J.x1),Wt(ft.cy+ft.y1,ft.cx+ft.x1),!c),xt>0&&r.arc(f+ft.cx,h+ft.cy,xt,Wt(ft.y1,ft.x1),Wt(ft.y0,ft.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!c);if(!(n>Fe)||!B)r.lineTo(f+N,h+k);else if(M>Fe){var Et=er(g,M),xt=er(p,M),J=Xo(N,k,D,L,n,-xt,c),ft=Xo(R,E,I,P,n,-Et,c);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),M<T&&Et===xt?r.arc(f+J.cx,h+J.cy,M,Wt(J.y0,J.x0),Wt(ft.y0,ft.x0),!c):(xt>0&&r.arc(f+J.cx,h+J.cy,xt,Wt(J.y0,J.x0),Wt(J.y1,J.x1),!c),r.arc(f,h,n,Wt(J.cy+J.y1,J.cx+J.x1),Wt(ft.cy+ft.y1,ft.cx+ft.x1),c),Et>0&&r.arc(f+ft.cx,h+ft.cy,Et,Wt(ft.y1,ft.x1),Wt(ft.y0,ft.x0),!c))}else r.lineTo(f+N,h+k),r.arc(f,h,n,u,l,c)}r.closePath()}}}var LA=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}(),N_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(e,a){DA(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(st);N_.prototype.type="sector";const _e=N_;var IA=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),B_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new IA},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(st);B_.prototype.type="ring";const Ul=B_;function PA(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)xr(f,f,r[c]),Tr(h,h,r[c]);xr(f,f,a[0]),Tr(h,h,a[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){n.push(w0(r[c]));continue}else l=r[c-1],u=r[c+1];Iv(i,u,l),As(i,i,t);var g=Us(d,l),p=Us(d,u),y=g+p;y!==0&&(g/=y,p/=y),As(o,i,-g),As(s,i,p);var m=ih([],d,o),_=ih([],d,s);a&&(Tr(m,m,f),xr(m,m,h),Tr(_,_,f),xr(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function F_(r,t,e){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=PA(n,a,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=i[s*2],u=i[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 RA=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),G_=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new RA},t.prototype.buildPath=function(e,a){F_(e,a,!0)},t}(st);G_.prototype.type="polygon";const Er=G_;var EA=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),z_=function(r){O(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 EA},t.prototype.buildPath=function(e,a){F_(e,a,!1)},t}(st);z_.prototype.type="polyline";const qe=z_;var kA={},OA=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),V_=function(r){O(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 OA},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=d_(kA,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(e.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t}(st);V_.prototype.type="line";const te=V_;var ie=[],NA=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 dp(r,t,e){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(e?md:kt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?md:kt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?fh:Gt)(r.x1,r.cpx1,r.x2,t),(e?fh:Gt)(r.y1,r.cpy1,r.y2,t)]}var H_=function(r){O(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 NA},t.prototype.buildPath=function(e,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,h=a.cpy2,c=a.percent;c!==0&&(e.moveTo(n,i),f==null||h==null?(c<1&&($s(n,l,o,c,ie),l=ie[1],o=ie[2],$s(i,u,s,c,ie),u=ie[1],s=ie[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(ea(n,l,f,o,c,ie),l=ie[1],f=ie[2],o=ie[3],ea(i,u,h,s,c,ie),u=ie[1],h=ie[2],s=ie[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return dp(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=dp(this.shape,e,!0);return Ol(a,a)},t}(st);H_.prototype.type="bezier-curve";const Kv=H_;var BA=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}(),W_=function(r){O(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 BA},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+i),e.arc(n,i,o,s,l,!u)},t}(st);W_.prototype.type="arc";const Qv=W_;var FA=function(r){O(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,a=this.shapeChanged(),n=0;n<e.length;n++)a=a||e[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(a[0],a[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),st.prototype.getBoundingRect.call(this)},t}(st);const U_=FA;var Y_=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),Jv=function(r){O(t,r);function t(e,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(Y_),GA=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(Y_);const Z_=GA;var Aa=[0,0],Ma=[0,0],$o=new q,qo=new q,zA=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new q;for(var a=0;a<2;a++)this._axes[a]=new q;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,n=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),e)for(var u=0;u<4;u++)a[u].transform(e);q.sub(n[0],a[1],a[0]),q.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(t,e){var a=!0,n=!e;return $o.set(1/0,1/0),qo.set(0,0),!this._intersectCheckOneSide(this,t,$o,qo,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(t,this,$o,qo,n,-1)&&(a=!1,n)||n||q.copy(e,a?$o:qo),a},r.prototype._intersectCheckOneSide=function(t,e,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Aa),this._getProjMinMaxOnAxis(l,e._corners,Ma),Aa[1]<Ma[0]||Aa[0]>Ma[1]){if(s=!1,i)return s;var f=Math.abs(Ma[0]-Aa[1]),h=Math.abs(Aa[0]-Ma[1]);Math.min(f,h)>n.len()&&(f<h?q.scale(n,u,-f*o):q.scale(n,u,h*o))}else if(a){var f=Math.abs(Ma[0]-Aa[1]),h=Math.abs(Aa[0]-Ma[1]);Math.min(f,h)<a.len()&&(f<h?q.scale(a,u,f*o):q.scale(a,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+i[t];s=Math.min(f,s),l=Math.max(f,l)}a[0]=s,a[1]=l},r}();const rl=zA;var VA=[],HA=function(r){O(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,a){e.call(a,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,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new et(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(VA)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t}(na);const WA=HA;var X_=wt();function Yl(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;a?(u=rt(a.duration,200),f=rt(a.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(h=i.delay)),$(h)&&(h=h(e,n)),$(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function jv(r,t,e,a,n,i,o){var s=!1,l;$(n)?(o=i,i=n,n=null):X(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Yl(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:i,force:!!i||!!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),i&&i()}function bt(r,t,e,a,n,i){jv("update",r,t,e,a,n,i)}function Rt(r,t,e,a,n,i){jv("enter",r,t,e,a,n,i)}function Fn(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 al(r,t,e,a,n,i){Fn(r)||jv("leave",r,t,e,a,n,i)}function pp(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),al(r,{style:{opacity:0}},t,e,a)}function nl(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||pp(n,t,e,a)}):pp(r,t,e,a)}function io(r){X_(r).oldStyle=r.style}function UA(r){return X_(r).oldStyle}var il=Math.max,ol=Math.min,kh={};function YA(r){return st.extend(r)}var ZA=wA;function XA(r,t){return ZA(r,t)}function Ke(r,t){kh[r]=t}function $A(r){if(kh.hasOwnProperty(r))return kh[r]}function tc(r,t,e,a){var n=R_(r,t);return e&&(a==="center"&&(e=q_(e,n.getBoundingRect())),K_(n,e)),n}function $_(r,t,e){var a=new vr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(q_(t,i))}}});return a}function q_(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var We=bA;function K_(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function oo(r,t){return d_(r,r,{lineWidth:t}),r}function qA(r){return p_(r.shape,r.shape,r.style),r}var KA=za;function Zl(r,t){for(var e=So([]);r&&r!==t;)sr(e,r.getLocalTransform(),e),r=r.parent;return e}function Yn(r,t,e){return t&&!$t(t)&&(t=Cr.getLocalTransform(t)),e&&(t=sn([],t)),Bt([],r,t)}function ec(r,t,e){var a=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]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Yn(i,t,e),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function gp(r){return!r.isGroup}function QA(r){return r.shape!=null}function rc(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){gp(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return QA(o)&&(s.shape=F({},o.shape)),s}var i=a(r);t.traverse(function(o){if(gp(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),bt(o,l,e,at(o).dataIndex)}}})}function Q_(r,t){return z(r,function(e){var a=e[0];a=il(a,t.x),a=ol(a,t.x+t.width);var n=e[1];return n=il(n,t.y),n=ol(n,t.y+t.height),[a,n]})}function JA(r,t){var e=il(r.x,t.x),a=ol(r.x+r.width,t.x+t.width),n=il(r.y,t.y),i=ol(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Xl(r,t,e){var a=F({rectHover:!0},t),n=a.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),Z(n,e),new vr(a)):tc(r.replace("path://",""),a,e,"center")}function jA(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(J_(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function J_(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,h=s-i,c=ju(f,h,l,u);if(tM(c))return!1;var v=r-n,d=t-i,g=ju(v,d,l,u)/c;if(g<0||g>1)return!1;var p=ju(v,d,f,h)/c;return!(p<0||p>1)}function ju(r,t,e,a){return r*a-e*t}function tM(r){return r<=1e-6&&r>=-1e-6}function Co(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=H(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(mt(l),function(f){re(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Z({content:a,formatterParams:s},n)}}function yp(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Ao(r,t){if(r)if(V(r))for(var e=0;e<r.length;e++)yp(r[e],t);else yp(r,t)}Ke("circle",Jn);Ke("ellipse",qv);Ke("sector",_e);Ke("ring",Ul);Ke("polygon",Er);Ke("polyline",qe);Ke("rect",_t);Ke("line",te);Ke("bezierCurve",Kv);Ke("arc",Qv);const $l=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qv,BezierCurve:Kv,BoundingRect:et,Circle:Jn,CompoundPath:U_,Ellipse:qv,Group:ot,Image:vr,IncrementalDisplayable:WA,Line:te,LinearGradient:Jv,OrientedBoundingRect:rl,Path:st,Point:q,Polygon:Er,Polyline:qe,RadialGradient:Z_,Rect:_t,Ring:Ul,Sector:_e,Text:Ct,applyTransform:Yn,clipPointsByRect:Q_,clipRectByRect:JA,createIcon:Xl,extendPath:XA,extendShape:YA,getShapeClass:$A,getTransform:Zl,groupTransition:rc,initProps:Rt,isElementRemoved:Fn,lineLineIntersect:J_,linePolygonIntersect:jA,makeImage:$_,makePath:tc,mergePath:We,registerShape:Ke,removeElement:al,removeElementWithFadeOut:nl,resizePath:K_,setTooltipConfig:Co,subPixelOptimize:KA,subPixelOptimizeLine:oo,subPixelOptimizeRect:qA,transformDirection:ec,traverseElements:Ao,updateProps:bt},Symbol.toStringTag,{value:"Module"}));var ql={};function j_(r,t){for(var e=0;e<ve.length;e++){var a=ve[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Oh(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=$(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<ve.length;u++){var f=ve[u],h=t[f];l[f]=rt(a?a.getFormattedLabel(n,f,null,i,h&&h.get("formatter")):null,s)}return l}function fa(r,t,e,a){e=e||ql;for(var n=r instanceof Ct,i=!1,o=0;o<tl.length;o++){var s=t[tl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Ct,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Oh(e,t),f=t.normal,h=!!f.getShallow("show"),c=fe(f,a&&a.normal,e,!1,!n);c.text=u.normal,n||r.setTextConfig(mp(f,e,!1));for(var o=0;o<ve.length;o++){var v=ve[o],s=t[v];if(s){var d=l.ensureState(v),g=!!rt(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=fe(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var p=r.ensureState(v);p.textConfig=mp(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(jn(l).setLabelText=function(y){var m=Oh(e,t,y);j_(l,m)})}else l&&(l.ignore=!0);r.dirty()}function kr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<ve.length;a++){var n=ve[a];e[n]=r.getModel([n,t])}return e}function fe(r,t,e,a,n){var i={};return eM(i,r,e,a,n),t&&F(i,t),i}function mp(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=rt(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&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",a}function eM(r,t,e,a,n){e=e||ql;var i=t.ecModel,o=i&&i.option.textStyle,s=rM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);bp(l[u]={},f,o,e,a,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),bp(r,t,o,e,a,n,!0,!1)}function rM(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ql).rich;if(e){t=t||{};for(var a=mt(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var _p=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Sp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bp(r,t,e,a,n,i,o,s){e=!n&&e||ql;var l=a&&a.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=rt(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),i||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=rt(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=rt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=rt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var g=0;g<_p.length;g++){var p=_p[g],y=rt(t.getShallow(p),e[p]);y!=null&&(r[p]=y)}for(var g=0;g<Sp.length;g++){var p=Sp[g],y=t.getShallow(p);y!=null&&(r[p]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(var g=0;g<wp.length;g++){var p=wp[g],y=t.getShallow(p);y!=null&&(r[p]=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 t1(r,t){var e=t&&t.getModel("textStyle");return Pe([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 jn=wt();function e1(r,t,e,a){if(r){var n=jn(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function r1(r,t,e,a,n){var i=jn(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=rt(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var h=r_(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:h;var c=Oh({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);j_(r,c)}r.percent=0,(i.prevValue==null?Rt:bt)(r,{percent:1},a,t,null,u)}var aM=["textStyle","color"],tf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ef=new Ct,nM=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(aM):null)},r.prototype.getFont=function(){return t1({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")},a=0;a<tf.length;a++)e[tf[a]]=this.getShallow(tf[a]);return ef.useStyle(e),ef.update(),ef.getBoundingRect()},r}(),a1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],iM=ao(a1),oM=function(){function r(){}return r.prototype.getLineStyle=function(t){return iM(this,t)},r}(),n1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sM=ao(n1),lM=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return sM(this,t,e)},r}(),ln=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){nt(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 a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,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(j(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(!lt.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 a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();Vv(ln);nC(ln);de(ln,oM);de(ln,lM);de(ln,uC);de(ln,nM);const Pt=ln;var uM=Math.round(Math.random()*10);function ti(r){return[r||"",uM++].join("_")}function fM(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=ir(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=ir(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function hM(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(A(i,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,g?y:p)}A(c,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,p(m)}};function e(i){var o={},s=[];return A(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),h=n(f,i);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){ut(u.predecessor,c)<0&&u.predecessor.push(c);var v=a(o,c);ut(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){ut(o,l)>=0&&s.push(l)}),s}}function Kl(r,t){return nt(nt({},r,!0),t,!0)}const vM={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:". "}}}},cM={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 sl="ZH",ac="EN",Gn=ac,Os={},nc={},i1=lt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Gn).toUpperCase();return r.indexOf(sl)>-1?sl:Gn}():Gn;function o1(r,t){r=r.toUpperCase(),nc[r]=new Pt(t),Os[r]=t}function dM(r){if(H(r)){var t=Os[r.toUpperCase()]||{};return r===sl||r===ac?j(t):nt(j(t),j(Os[Gn]),!1)}else return nt(j(r),j(Os[Gn]),!1)}function pM(r){return nc[r]}function gM(){return nc[Gn]}o1(ac,vM);o1(sl,cM);var ic=1e3,oc=ic*60,Zi=oc*60,Ie=Zi*24,xp=Ie*365,Oi={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}"},Ko="{yyyy}-{MM}-{dd}",Tp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ko,hour:Ko+" "+Oi.hour,minute:Ko+" "+Oi.minute,second:Ko+" "+Oi.second,millisecond:Oi.none},rf=["year","month","day","hour","minute","second","millisecond"],s1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Jt(r,t){return r+="","0000".substr(0,t-r.length)+r}function zn(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 yM(r){return r===zn(r)}function mM(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ql(r,t,e,a){var n=fr(r),i=n[sc(e)](),o=n[Vn(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Jl(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[so(e)](),h=(f-1)%12+1,c=n[jl(e)](),v=n[tu(e)](),d=n[eu(e)](),g=a instanceof Pt?a:pM(a||i1)||gM(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Jt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Jt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Jt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Jt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Jt(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Jt(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Jt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Jt(d,3)).replace(/{S}/g,d+"")}function _M(r,t,e,a,n){var i=null;if(H(e))i=e;else if($(e))i=e(r.value,t,{level:r.level});else{var o=F({},Oi);if(r.level>0)for(var s=0;s<rf.length;++s)o[rf[s]]="{primary|"+o[rf[s]]+"}";var l=e?e.inherit===!1?e:Z(e,o):o,u=l1(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(var f=s1.indexOf(u),s=f-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(V(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return Ql(new Date(r.value),i,n,a)}function l1(r,t){var e=fr(r),a=e[Vn(t)]()+1,n=e[Jl(t)](),i=e[so(t)](),o=e[jl(t)](),s=e[tu(t)](),l=e[eu(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&i===0,v=c&&n===1,d=v&&a===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Cp(r,t,e){var a=dt(r)?fr(r):r;switch(t=t||l1(r,e),t){case"year":return a[sc(e)]();case"half-year":return a[Vn(e)]()>=6?1:0;case"quarter":return Math.floor((a[Vn(e)]()+1)/4);case"month":return a[Vn(e)]();case"day":return a[Jl(e)]();case"half-day":return a[so(e)]()/24;case"hour":return a[so(e)]();case"minute":return a[jl(e)]();case"second":return a[tu(e)]();case"millisecond":return a[eu(e)]()}}function sc(r){return r?"getUTCFullYear":"getFullYear"}function Vn(r){return r?"getUTCMonth":"getMonth"}function Jl(r){return r?"getUTCDate":"getDate"}function so(r){return r?"getUTCHours":"getHours"}function jl(r){return r?"getUTCMinutes":"getMinutes"}function tu(r){return r?"getUTCSeconds":"getSeconds"}function eu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function SM(r){return r?"setUTCFullYear":"setFullYear"}function u1(r){return r?"setUTCMonth":"setMonth"}function f1(r){return r?"setUTCDate":"setDate"}function h1(r){return r?"setUTCHours":"setHours"}function v1(r){return r?"setUTCMinutes":"setMinutes"}function c1(r){return r?"setUTCSeconds":"setSeconds"}function d1(r){return r?"setUTCMilliseconds":"setMilliseconds"}function p1(r){if(!kT(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function g1(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Mo=Dv;function Nh(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Pe(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?fr(r):r;if(isNaN(+l)){if(s)return"-"}else return Ql(l,a,e)}if(t==="ordinal")return Hs(r)?n(r):dt(r)&&i(r)?r+"":"-";var u=aa(r);return i(u)?p1(u):Hs(r)?n(r):typeof r=="boolean"?r+"":"-"}var Ap=["a","b","c","d","e","f","g"],af=function(r,t){return"{"+r+(t??"")+"}"};function y1(r,t,e){V(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=Ap[i];r=r.replace(af(o),af(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(af(Ap[l],s),e?De(u):u)}return r}function MB(r,t,e){return A(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function wM(r,t){var e=H(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="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:'+De(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+De(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function DB(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var a=fr(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r=r.replace("MM",Jt(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Jt(i%100+"",2)).replace("dd",Jt(s,2)).replace("d",s).replace("hh",Jt(l,2)).replace("h",l).replace("mm",Jt(u,2)).replace("m",u).replace("ss",Jt(f,2)).replace("s",f).replace("SSS",Jt(h,3)),r}function LB(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function en(r,t){return t=t||"transparent",H(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mp(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ns=A,bM=["left","right","top","bottom","width","height"],Va=[["width","left","right"],["height","top","bottom"]];function lc(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=i+g,v>a||l.newline?(i=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>n||l.newline?(i+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Hn=lc;vt(lc,"vertical");vt(lc,"horizontal");function IB(r,t,e){var a=t.width,n=t.height,i=Y(r.left,a),o=Y(r.top,n),s=Y(r.right,a),l=Y(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=Mo(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function hr(r,t,e){e=Mo(e||0);var a=t.width,n=t.height,i=Y(r.left,a),o=Y(r.top,n),s=Y(r.right,a),l=Y(r.bottom,n),u=Y(r.width,a),f=Y(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-c-i),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-c-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new et(i+e[3],o+e[0],u,f);return d.margin=e,d}function xM(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new et(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=hr(Z({width:u.width,height:u.height},t),e,a),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(i.x=c,i.y=v):(i.x+=c,i.y+=v),i===r&&r.markRedraw(),!0}function PB(r,t){return r[Va[t][0]]!=null||r[Va[t][1]]!=null&&r[Va[t][2]]!=null}function lo(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Zn(r,t,e){var a=e&&e.ignoreSize;!V(a)&&(a=[a,a]);var n=o(Va[0],0),i=o(Va[1],1);u(Va[0],r,n),u(Va[1],r,i);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Ns(f,function(_){d[_]=r[_]}),Ns(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&g++}),a[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){Ns(f,function(v){h[v]=c[v]})}}function Do(r){return TM({},r)}function TM(r,t){return t&&r&&Ns(bM,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var CM=wt(),ht=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=ti("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=lo(this),i=n?Do(e):{},o=a.getTheme();nt(e,o.get(this.mainType)),nt(e,this.getDefaultOption()),n&&Zn(e,i,n)},t.prototype.mergeOption=function(e,a){nt(this.option,e,!0);var n=lo(this);n&&Zn(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!eC(e))return e.defaultOption;var a=CM(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=nt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return To(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},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}(Pt);n_(ht,Pt);Fl(ht);fM(ht);hM(ht,AM);function AM(r){var t=[];return A(ht.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return ir(e).main}),r!=="dataset"&&ut(t,"dataset")<=0&&t.unshift("dataset"),t}var m1="";typeof navigator<"u"&&(m1=navigator.platform||"");var mn="rgba(0, 0, 0, 0.2)";const MM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:m1.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 _1=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ke="original",ae="arrayRows",Oe="objectRows",cr="keyedColumns",jr="typedArray",S1="unknown",lr="column",ei="row",Ft={Must:1,Might:2,Not:3},w1=wt();function DM(r){w1(r).datasetMap=U()}function LM(r,t,e){var a={},n=uc(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=w1(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(g,p){var y=X(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(a[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(a[y],0,m),v(i,0,m);else{var _=c.categoryWayDim;v(a[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function IM(r,t,e){var a={},n=uc(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Oe||i===cr)&&A(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var g=x1(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Ft.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Ft.Not)&&(f.n=v),y(f)&&c[f.n]!==Ft.Not)return f;p||(g===Ft.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function uc(r){var t=r.get("data",!0);if(!t)return To(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Nt).models[0]}function PM(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:To(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Nt).models}function b1(r,t){return x1(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function x1(r,t,e,a,n,i){var o,s=5;if(ee(r))return Ft.Not;var l,u;if(a){var f=a[i];X(f)?(l=f.name,u=f.type):H(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ft.Must:Ft.Not;if(t===ae){var h=r;if(e===ei){for(var c=h[i],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Oe){var g=r;if(!l)return Ft.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[l]))!=null)return o}}else if(t===cr){var y=r;if(!l)return Ft.Not;var c=y[l];if(!c||ee(c))return Ft.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===ke)for(var m=r,v=0;v<m.length&&v<s;v++){var p=m[v],_=xo(p);if(!V(_))return Ft.Not;if((o=S(_[i]))!=null)return o}function S(b){var w=H(b);if(b!=null&&isFinite(b)&&b!=="")return w?Ft.Might:Ft.Not;if(w&&b!=="-")return Ft.Must}return Ft.Not}var Bh=U();function RM(r,t){Re(Bh.get(r)==null&&t),Bh.set(r,t)}function EM(r,t,e){var a=Bh.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var Dp=wt(),kM=wt(),fc=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Mt(this.get("color",!0)),i=this.get("colorLayer",!0);return T1(this,Dp,n,i,t,e,a)},r.prototype.clearColorPalette=function(){NM(this,Dp)},r}();function RB(r,t,e,a){var n=Mt(r.get(["aria","decal","decals"]));return T1(r,kM,n,null,t,e,a)}function OM(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function T1(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:OM(a,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 NM(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Qo,vi,Lp,Ip="\0_ec_inner",BM=1,hc=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Pt(i),this._locale=new Pt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=Ep(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Ep(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?Lp(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=a&&a.replaceMergeMainTypeMap;DM(this),A(e,function(h,c){h!=null&&(ht.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?j(h):nt(n[c],h,!0))}),u&&u.each(function(h,c){ht.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var c=EM(this,h,Mt(e[h])),v=i.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=GT(v,c,d);XT(g,h,ht),n[h]=null,i.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;A(g,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=h==="series",C=ht.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var M=F({componentIndex:b},S.keyInfo);w=new C(x,this,this,M),F(w,M),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),y.push(w),m++):(p.push(void 0),y.push(void 0))},this),n[h]=p,i.set(h,y),o.set(h,m),h==="series"&&Qo(this)}this._seriesIndices||Qo(this)},t.prototype.getOption=function(){var e=j(this.option);return A(e,function(a,n){if(ht.hasClass(n)){for(var i=Mt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ro(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Ip],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,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(Mt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Pp("id",i,s):o!=null?l=Pp("name",o,s):l=Tt(s,function(u){return!!u}),Rp(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Tt(this._componentsMap.get(n),function(u){return!!u});return l(Rp(o,e));function s(u){var f=n+"Index",h=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?Tt(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if($(e)){var o=a,s=e;i.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=H(e)?i.get(e):X(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=Xe(e,null);return Tt(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Tt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Tt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){vi(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){A(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){vi(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return A(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return vi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){vi(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},t.prototype.restoreData=function(e){Qo(this);var a=this._componentsMap,n=[];a.each(function(i,o){ht.hasClass(o)&&n.push(o)}),ht.topologicalTravel(n,ht.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!FM(o,e))&&o.restoreData()})})},t.internalField=function(){Qo=function(e){var a=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=U(a)},vi=function(e){},Lp=function(e,a){e.option={},e.option[Ip]=BM,e._componentsMap=U({series:[]}),e._componentsCount=U();var n=a.aria;X(n)&&n.enabled==null&&(n.enabled=!0),GM(a,e._theme.option),nt(a,MM,!1),e._mergeOption(a,null)}}(),t}(Pt);function FM(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function GM(r,t){var e=r.color&&!r.colorLayer;A(t,function(a,n){n==="colorLayer"&&e||ht.hasClass(n)||(typeof a=="object"?r[n]=r[n]?nt(r[n],a,!1):j(a):r[n]==null&&(r[n]=a))})}function Pp(r,t,e){if(V(t)){var a=U();return A(t,function(i){if(i!=null){var o=Xe(i,null);o!=null&&a.set(i,!0)}}),Tt(e,function(i){return i&&a.get(i[r])})}else{var n=Xe(t,null);return Tt(e,function(i){return i&&n!=null&&i[r]===n})}}function Rp(r,t){return t.hasOwnProperty("subType")?Tt(r,function(e){return e&&e.subType===t.subType}):r}function Ep(r){var t=U();return r&&A(Mt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}de(hc,fc);var zM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],C1=function(){function r(t){A(zM,function(e){this[e]=Q(t[e],t)},this)}return r}(),nf={},ru=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var a=[];A(nf,function(n,i){var o=n.create(t,e);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(t,e){A(this._coordinateSystems,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){nf[t]=e},r.get=function(t){return nf[t]},r}(),VM=/^(min|max)?(.+)$/,HM=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(A(Mt(t.series),function(o){o&&o.data&&ee(o.data)&&Ji(o.data)}),A(Mt(t.dataset),function(o){o&&o.source&&ee(o.source)&&Ji(o.source)})),t=j(t);var n=this._optionBackup,i=WM(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],j(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=j(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)UM(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!ZM(o,this._currentMediaIndices)&&(s=z(o,function(f){return j(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function WM(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((h||f)&&(r.options=r.media=null),i=r),f&&V(u)&&A(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),c(i),A(l,function(v){return c(v)}),A(a,function(v){return c(v.option)});function c(v){A(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function UM(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return A(r,function(i,o){var s=o.match(VM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();YM(a[u],i,l)||(n=!1)}}),n}function YM(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function ZM(r,t){return r.join(",")===t.join(",")}var Ne=A,uo=X,kp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function of(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=kp.length;e<a;e++){var n=kp[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?nt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?nt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Yt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,Z(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Ni(r){Yt(r,"itemStyle"),Yt(r,"lineStyle"),Yt(r,"areaStyle"),Yt(r,"label"),Yt(r,"labelLine"),Yt(r,"upperLabel"),Yt(r,"edgeLabel")}function It(r,t){var e=uo(r)&&r[t],a=uo(e)&&e.textStyle;if(a)for(var n=0,i=Bd.length;n<i;n++){var o=Bd[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Ae(r){r&&(Ni(r),It(r,"label"),r.emphasis&&It(r.emphasis,"label"))}function XM(r){if(uo(r)){of(r),Ni(r),It(r,"label"),It(r,"upperLabel"),It(r,"edgeLabel"),r.emphasis&&(It(r.emphasis,"label"),It(r.emphasis,"upperLabel"),It(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(of(t),Ae(t));var e=r.markLine;e&&(of(e),Ae(e));var a=r.markArea;a&&Ae(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!ee(i))for(var o=0;o<i.length;o++)Ae(i[o]);A(r.categories,function(u){Ni(u)})}if(n&&!ee(n))for(var o=0;o<n.length;o++)Ae(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ae(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)V(l[o])?(Ae(l[o][0]),Ae(l[o][1])):Ae(l[o]);r.type==="gauge"?(It(r,"axisLabel"),It(r,"title"),It(r,"detail")):r.type==="treemap"?(Yt(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Ni(u)})):r.type==="tree"&&Ni(r.leaves)}}function mr(r){return V(r)?r:r?[r]:[]}function Op(r){return(V(r)?r[0]:r)||{}}function $M(r,t){Ne(mr(r.series),function(a){uo(a)&&XM(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ne(e,function(a){Ne(mr(r[a]),function(n){n&&(It(n,"axisLabel"),It(n.axisPointer,"label"))})}),Ne(mr(r.parallel),function(a){var n=a&&a.parallelAxisDefault;It(n,"axisLabel"),It(n&&n.axisPointer,"label")}),Ne(mr(r.calendar),function(a){Yt(a,"itemStyle"),It(a,"dayLabel"),It(a,"monthLabel"),It(a,"yearLabel")}),Ne(mr(r.radar),function(a){It(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Ne(mr(r.geo),function(a){uo(a)&&(Ae(a),Ne(mr(a.regions),function(n){Ae(n)}))}),Ne(mr(r.timeline),function(a){Ae(a),Yt(a,"label"),Yt(a,"itemStyle"),Yt(a,"controlStyle",!0);var n=a.data;V(n)&&A(n,function(i){X(i)&&(Yt(i,"label"),Yt(i,"itemStyle"))})}),Ne(mr(r.toolbox),function(a){Yt(a,"iconStyle"),Ne(a.feature,function(n){Yt(n,"iconStyle")})}),It(Op(r.axisPointer),"label"),It(Op(r.tooltip).axisPointer,"label")}function qM(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function KM(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function Np(r){r&&A(QM,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var QM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],JM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],sf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ci(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<sf.length;e++){var a=sf[e][1],n=sf[e][0];t[a]!=null&&(t[n]=t[a])}}function Bp(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Fp(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function jM(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function A1(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&A1(r[e].children,t)}function M1(r,t){$M(r,t),r.series=Mt(r.series),A(r.series,function(e){if(X(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Bp(e.label);var n=e.data;if(n&&!ee(n))for(var i=0;i<n.length;i++)Bp(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=qM(e,"pointer.color");o!=null&&KM(e,"itemStyle.color",o)}else if(a==="bar"){ci(e),ci(e.backgroundStyle),ci(e.emphasis);var n=e.data;if(n&&!ee(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(ci(n[i]),ci(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Fp(e),A1(e.data,Fp)}else a==="graph"||a==="sankey"?jM(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Z(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Np(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(JM,function(e){var a=r[e];a&&(V(a)||(a=[a]),A(a,function(n){Np(n)}))})}function tD(r){var t=U();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(eD)}function eD(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=e-1;p>=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=PT(c,m),g=m;break}}}return a[0]=c,a[1]=g,a})})}var au=function(){function r(t){this.data=t.data||(t.sourceFormat===cr?{}:[]),this.sourceFormat=t.sourceFormat||S1,this.seriesLayoutBy=t.seriesLayoutBy||lr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&b1(this,a)===Ft.Must&&(n.type="ordinal")}}return r}();function vc(r){return r instanceof au}function Fh(r,t,e){e=e||D1(r);var a=t.seriesLayoutBy,n=aD(r,e,a,t.sourceHeader,t.dimensions),i=new au({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(t)});return i}function cc(r){return new au({data:r,sourceFormat:ee(r)?jr:ke})}function rD(r){return new au({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:j(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function D1(r){var t=S1;if(ee(r))t=jr;else if(V(r)){r.length===0&&(t=ae);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(V(n)||ee(n)){t=ae;break}else if(X(n)){t=Oe;break}}}}else if(X(r)){for(var i in r)if(re(r,i)&&$t(r[i])){t=cr;break}}return t}function aD(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:Gp(n),startIndex:o,dimensionsDetectedCount:i};if(t===ae){var s=r;a==="auto"||a==null?zp(function(u){u!=null&&u!=="-"&&(H(u)?o==null&&(o=1):o=0)},e,s,10):o=dt(a)?a:a?1:0,!n&&o===1&&(n=[],zp(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===ei?s.length:s[0]?s[0].length:null}else if(t===Oe)n||(n=nD(r));else if(t===cr)n||(n=[],A(r,function(u,f){n.push(f)}));else if(t===ke){var l=xo(r[0]);i=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gp(n),dimensionsDetectedCount:i}}function nD(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return mt(e)}function Gp(r){if(r){var t=U();return z(r,function(e,a){e=X(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function zp(r,t,e,a){if(t===ei)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function L1(r){var t=r.sourceFormat;return t===Oe||t===cr}var Da,La,Ia,Vp,Hp,I1=function(){function r(t,e){var a=vc(t)?t:cc(t);this._source=a;var n=this._data=a.data;a.sourceFormat===jr&&(this._offset=0,this._dimSize=e,this._data=n),Hp(this,n,a)}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;Hp=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Vp[dc(u,f)];if(F(o,v),u===jr)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=P1(u,f);o.getItem=Q(d,null,s,h,c);var g=R1(u,f);o.count=Q(g,null,s,h,c)}};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},a=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,y=l[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};Vp=(t={},t[ae+"_"+lr]={pure:!0,appendData:i},t[ae+"_"+ei]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oe]={pure:!0,appendData:i},t[cr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[ke]={appendData:i},t[jr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Wp=function(r,t,e,a){return r[a]},iD=(Da={},Da[ae+"_"+lr]=function(r,t,e,a){return r[a+t]},Da[ae+"_"+ei]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Da[Oe]=Wp,Da[cr]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];i[o]=l?l[a]:null}return i},Da[ke]=Wp,Da);function P1(r,t){var e=iD[dc(r,t)];return e}var Up=function(r,t,e){return r.length},oD=(La={},La[ae+"_"+lr]=function(r,t,e){return Math.max(0,r.length-t)},La[ae+"_"+ei]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},La[Oe]=Up,La[cr]=function(r,t,e){var a=e[0].name,n=r[a];return n?n.length:0},La[ke]=Up,La);function R1(r,t){var e=oD[dc(r,t)];return e}var lf=function(r,t,e){return r[t]},sD=(Ia={},Ia[ae]=lf,Ia[Oe]=function(r,t,e){return r[e]},Ia[cr]=lf,Ia[ke]=function(r,t,e){var a=xo(r);return a instanceof Array?a[t]:a},Ia[jr]=lf,Ia);function E1(r){var t=sD[r];return t}function dc(r,t){return r===ae?r+"_"+t:r}function Xn(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return E1(i)(a,o,s)}else{var l=a;return i===ke&&(l=xo(a)),l}}}}var lD=/\{@(.+?)\}/g,uD=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=a.userOutput&&a.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&V(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if($(i))return l.status=e,l.dimensionIndex=n,i(l);if(H(i)){var f=y1(i,l);return f.replace(lD,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=Xn(s,t,d);if(o&&V(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Xn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function Yp(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Xi(r){return new fD(r)}var fD=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,a=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 i;this._plan&&!a&&(i=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)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(h||v<d)){var g=this._progress;if(V(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,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,a,n,i){Zp.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Zp.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),V(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},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}(),Zp=function(){var r,t,e,a,n,i={reset:function(l,u,f,h){t=l,r=u,e=f,a=h,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Bs(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!dt(r)&&r!=null&&r!=="-"&&(r=+fr(r)),r==null||r===""?NaN:+r)}var hD=U({number:function(r){return parseFloat(r)},time:function(r){return+fr(r)},trim:function(r){return H(r)?Pe(r):r}});function k1(r){return hD.get(r)}var O1={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},vD=function(){function r(t,e){if(!dt(e)){var a="";ct(a)}this._opFn=O1[t],this._rvalFloat=aa(e)}return r.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(aa(t),this._rvalFloat)},r}(),N1=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=dt(t)?t:aa(t),n=dt(e)?e:aa(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=H(t),l=H(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),cD=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=aa(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=aa(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function dD(r,t){return r==="eq"||r==="ne"?new cD(r==="eq",t):re(O1,r)?new vD(r,t):null}var pD=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 Bs(t,e)},r}();function gD(r,t){var e=new pD,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==lr&&ct(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";re(l,y)&&ct(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=P1(n,lr);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(a,i,s,g)},e.getRawData=Q(yD,null,r)),e.cloneRawData=Q(mD,null,r);var c=R1(n,lr);e.count=Q(c,null,a,i,s);var v=E1(n);e.retrieveValue=function(g,p){var y=h(a,i,s,g);return d(y,p)};var d=e.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return e.getDimensionInfo=Q(_D,null,s,l),e.cloneAllDimensionInfo=Q(SD,null,s),e}function yD(r){var t=r.sourceFormat;if(!pc(t)){var e="";ct(e)}return r.data}function mD(r){var t=r.sourceFormat,e=r.data;if(!pc(t)){var a="";ct(a)}if(t===ae){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===Oe){for(var n=[],i=0,o=e.length;i<o;i++)n.push(F({},e[i]));return n}}function _D(r,t,e){if(e!=null){if(dt(e)||!isNaN(e)&&!re(t,e))return r[e];if(re(t,e))return t[e]}}function SD(r){return j(r)}var B1=U();function wD(r){r=j(r);var t=r.type,e="";t||ct(e);var a=t.split(":");a.length!==2&&ct(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,B1.set(t,r)}function bD(r,t,e){var a=Mt(r),n=a.length,i="";n||ct(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=xD(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function xD(r,t,e,a){var n="";t.length||ct(n),X(r)||ct(n);var i=r.type,o=B1.get(i);o||ct(n);var s=z(t,function(u){return gD(u,o)}),l=Mt(o.transform({upstream:s[0],upstreamList:s,config:j(r.config)}));return z(l,function(u,f){var h="";X(u)||ct(h),u.data||ct(h);var c=D1(u.data);pc(c)||ct(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),v={seriesLayoutBy:lr,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:lr,sourceHeader:0,dimensions:u.dimensions};return Fh(u.data,v,null)})}function pc(r){return r===ae||r===Oe}var nu="undefined",TD=typeof Uint32Array===nu?Array:Uint32Array,CD=typeof Uint16Array===nu?Array:Uint16Array,F1=typeof Int32Array===nu?Array:Int32Array,Xp=typeof Float64Array===nu?Array:Float64Array,G1={float:Xp,int:F1,ordinal:Array,number:Array,time:Xp},uf;function di(r){return r>65535?TD:CD}function _n(){return[1/0,-1/0]}function AD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function $p(r,t,e,a,n){var i=G1[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Gh=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=uf[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],L1(n),this._dimensions=z(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 a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new G1[e||"float"](this._rawCount),this._rawExtent[i]=_n(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=_n());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[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],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];$p(a,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<i;d++){var f=n[d],g=uf.arrayRows.call(this,t[v]||h,f.property,v,d);a[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=_n()),$p(i,f,h.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var g=i[d],p=this._dimValueGetter(c,u[d],v,d);g[v]=p;var y=l[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!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 a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[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,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-i[c],d=Math.abs(v);d<=a&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=di(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=di(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],h=a._chunks,c=0;c<n;c++){var v=void 0,d=a.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var g=h[f][d];v=e(g,c)}else{for(var p=0;p<l;p++)s[p]=h[t[p]][d];s[p]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=mt(t),i=n.length;if(!i)return this;var o=e.count(),s=di(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var g=0;if(i===1){for(var p=v[n[0]],y=0;y<a;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(i===2){for(var p=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y<a;y++){var m=p[y],w=_[y];(m>=h&&m<=c||isNaN(m))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=g),g++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var x=e.getRawIndex(y),m=v[n[0]][x];(m>=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var T=!0,x=e.getRawIndex(y),C=0;C<i;C++){var M=n[C],m=v[M][x];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(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 a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=_n();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=n[e[v]][c];l[o]=h;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var g=e[f],p=d[f],y=u[g],m=n[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(di(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=p-g;var w=d,x=Math.min(d+l,o),T=d-1,C=i[u];f=-1,c=w;for(var M=-1,D=0,_=w;_<x;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){D++,M<0&&(M=S);continue}h=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),h>f&&(f=h,c=S)}D>0&&D<x-w&&(v[s++]=Math.min(M,c),c=Math.max(M,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=i._rawExtent[t]=_n(),c=new(di(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var y=a(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),c[v++]=m}return i._count=v,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=_n();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;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 a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&ur(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?AD(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;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,a,n,i){return Bs(e[i],this._dimensions[i])}uf={arrayRows:t,objectRows:function(e,a,n,i){return Bs(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Bs(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),z1=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(),a=!!e.length,n,i;if(Jo(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=ee(s)?jr:ke,i=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=rt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=rt(h.sourceHeader,c.sourceHeader),g=rt(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;n=p?[Fh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Fh(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Kp(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Kp(h),s.push(f),l.push(u._getVersionSign())}),a?o=bD(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[rD(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 a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[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,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Jo(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Gh,s.initData(new I1(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Jo(t)){var e=uc(t);return e?[e.getSourceManager()]:[]}else return z(PM(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(Jo(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function qp(r){var t=r.option.transform;t&&Ji(r.option.transform)}function Jo(r){return r.mainType==="series"}function Kp(r){throw new Error(r)}var V1="line-height:1";function H1(r,t){var e=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+De(a+"")+"px;color:"+De(e)+";font-weight:"+De(n+""),valueStyle:"font-size:"+De(o+"")+"px;color:"+De(i)+";font-weight:"+De(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var MD=[0,10,20,30],DD=["",`
`,`

`,`


`];function oa(r,t){return t.type=r,t}function zh(r){return r.type==="section"}function W1(r){return zh(r)?LD:ID}function U1(r){if(zh(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=U1(n);i>=t&&(t=i+ +(a&&(!i||zh(n)&&!n.noHeader)))}),t}return 0}function LD(r,t,e,a){var n=t.noHeader,i=PD(U1(t)),o=[],s=t.blocks||[];Re(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(re(u,l)){var f=new N1(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,y=W1(d)(p?F(F({},r),{valueFormatter:p}):r,d,g>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):Vh(o.join(""),n?e:i.html);if(n)return h;var c=Nh(t.header,"ordinal",r.useUTC),v=H1(a,r.renderMode).nameStyle;return r.renderMode==="richText"?Y1(r,c,v)+i.richText+h:Vh('<div style="'+v+";"+V1+';">'+De(c)+"</div>"+h,e)}function ID(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],z(S,function(b,w){return Nh(b,V(v)?v[w]:v,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=i?"":Nh(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!i,p=!s&&i,y=H1(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":Y1(r,c,m))+(o?"":kD(r,d,g,p,_)):Vh((s?"":h)+(i?"":RD(c,!s,m))+(o?"":ED(d,g,p,_)),e)}}function Qp(r,t,e,a,n,i){if(r){var o=W1(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function PD(r){return{html:MD[r],richText:DD[r]}}function Vh(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+V1+';">'+r+e+"</div>"}function RD(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+De(r)+"</span>"}function ED(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=V(r)?r:[r],'<span style="'+i+";"+a+'">'+z(r,function(o){return De(o)}).join("&nbsp;&nbsp;")+"</span>"}function Y1(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function kD(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join("  "):t,i)}function Z1(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return en(a)}function X1(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var ff=function(){function r(){this.richTextStyles={},this._nextStyleNameId=K0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=wM({color:e,type:t,renderMode:a,markerId:n});return H(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};V(e)?A(e,function(i){return F(a,i)}):F(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function OD(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=V(s),u=Z1(t,e),f,h,c,v;if(o>1||l&&!o){var d=ND(s,t,e,i,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=n.getDimensionInfo(i[0]);v=f=Xn(n,e,i[0]),h=g.type}else v=f=l?s[0]:s;var p=Gv(t),y=p&&t.name||"",m=n.getName(e),_=a?y:m;return oa("section",{header:y,noHeader:a||!p,sortParam:v,blocks:[oa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pe(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function ND(r,t,e,a,n){var i=t.getData(),o=ur(r,function(h,c,v){var d=i.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(Xn(i,e,h),h)}):A(r,f);function f(h,c){var v=i.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(oa("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Fr=wt();function jo(r,t){return r.getName(t)||r.getId(t)}var Fs="__universalTransitionEnabled",ne=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Xi({count:FD,reset:GD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Fr(this).sourceManager=new z1(this);i.prepareSource();var o=this.getInitialData(e,n);jp(o,this),this.dataTask.context.data=o,Fr(this).dataBeforeProcessed=o,Jp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=lo(this),i=n?Do(e):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),nt(e,a.getTheme().get(this.subType)),nt(e,this.getDefaultOption()),js(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Zn(e,i,n)},t.prototype.mergeOption=function(e,a){e=nt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=lo(this);n&&Zn(this.option,e,n);var i=Fr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);jp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fr(this).dataBeforeProcessed=o,Jp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ee(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&js(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Hh(this);if(a){var n=a.context.data;return e==null?n:n.getLinkedData(e)}else return Fr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Hh(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Fr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return Fr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Fr(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,a,n){return OD({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(lt.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=fc.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,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,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=jo(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=mt(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[jo(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Fs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=a[f],c=jo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=a[l-1],c=jo(e,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return ht.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}(ht);de(ne,uD);de(ne,fc);n_(ne,ht);function Jp(r){var t=r.name;Gv(r)||(r.name=BD(r)||t)}function BD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function FD(r){return r.model.getRawData().count()}function GD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),zD}function zD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jp(r,t){A(Ws(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,vt(VD,t))})}function VD(r,t){var e=Hh(r);return e&&e.setOutputEnd((t||this).count()),t}function Hh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var zt=function(){function r(){this.group=new ot,this.uid=ti("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Vv(zt);Fl(zt);function iu(){var r=wt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var $1=wt(),HD=iu(),Xt=function(){function r(){this.group=new ot,this.uid=ti("viewChart"),this.renderTask=Xi({plan:WD,reset:UD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&eg(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&eg(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Ao(this.group,t)},r.markUpdateMethod=function(t,e){$1(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function tg(r,t,e){r&&Ph(r)&&(t==="emphasis"?ja:tn)(r,e)}function eg(r,t,e){var a=Ja(r,t),n=t&&t.highlightKey!=null?dA(t.highlightKey):null;a!=null?A(Mt(a),function(i){tg(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){tg(i,e,n)})}Vv(Xt);Fl(Xt);function WD(r){return HD(r.model)}function UD(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&$1(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),YD[l]}var YD={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)}}},ll="\0__throttleOriginMethod",rg="\0__throttleRate",ag="\0__throttleType";function gc(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var g=f||t,p=f||e;f=null,s=a-(p?n:i)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function ou(r,t,e,a){var n=r[t];if(n){var i=n[ll]||n,o=n[ag],s=n[rg];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=gc(i,e,a==="debounce"),n[ll]=i,n[ag]=a,n[rg]=e}return n}}function ul(r,t){var e=r[t];e&&e[ll]&&(e.clear&&e.clear(),r[t]=e[ll])}var ng=wt(),ig={itemStyle:ao(n1,!0),lineStyle:ao(a1,!0)},ZD={lineStyle:"stroke",itemStyle:"fill"};function q1(r,t){var e=r.visualStyleMapper||ig[t];return e||(console.warn("Unknown style type '"+t+"'."),ig.itemStyle)}function K1(r,t){var e=r.visualDrawType||ZD[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var XD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=q1(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=K1(r,a),u=o[l],f=$(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||$(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||$(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=F({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},pi=new Pt,$D={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=q1(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){pi.option=l[a];var u=n(pi),f=o.ensureUniqueItemVisual(s,"style");F(f,u),pi.option.decal&&(o.setItemVisual(s,"decal",pi.option.decal),pi.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},qD={performRawSeries:!0,overallReset:function(r){var t=U();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),ng(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=ng(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=K1(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var c=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},ts=Math.PI;function KD(r,t){t=t||{},Z(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 ot,a=new _t({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Ct({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new _t({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Qv({shape:{startAngle:-ts/2,endAngle:-ts/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:ts*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ts*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}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Q1=function(){function r(t,e,a,n){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.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 a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=U();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";Re(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,a);var g=o.getPerformArgs(c,n.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(i=!0)}else h&&h.each(function(p,y){s(n,p)&&p.dirty();var m=o.getPerformArgs(p,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,a),p.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.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,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Xi({plan:e2,reset:r2,count:n2}));v.context={model:h,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Xi({reset:QD});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Re(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,A(a.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(c=!0,Xi({reset:JD,onDirty:t2})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,i._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!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 $(t)&&(t={overallReset:t,seriesType:i2(t)}),t.uid=ti("stageHandler"),e&&(t.visualType=e),t},r}();function QD(r){r.overallReset(r.ecModel,r.api,r.payload)}function JD(r){return r.overallProgress&&jD}function jD(){this.agent.dirty(),this.getDownstream().dirty()}function t2(){this.agent&&this.agent.dirty()}function e2(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function r2(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,a){return J1(a)}):a2}var a2=J1(0);function J1(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function n2(r){return r.data.count()}function i2(r){fl=null;try{r(fo,j1)}catch{}return fl}var fo={},j1={},fl;tS(fo,hc);tS(j1,C1);fo.eachSeriesByType=fo.eachRawSeriesByType=function(r){fl=r};fo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fl=r.subType)};function tS(r,t){for(var e in t.prototype)r[e]=Zt}var og=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const o2={color:og,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],og]};var Kt="#B9B8CE",sg="#100C2A",es=function(){return{axisLine:{lineStyle:{color:Kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lg=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],eS={darkMode:!0,color:lg,backgroundColor:sg,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Kt}},textStyle:{color:Kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Kt},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:Kt}},timeline:{lineStyle:{color:Kt},label:{color:Kt},controlStyle:{color:Kt,borderColor:Kt}},calendar:{itemStyle:{color:sg},dayLabel:{color:Kt},monthLabel:{color:Kt},yearLabel:{color:Kt}},timeAxis:es(),logAxis:es(),valueAxis:es(),categoryAxis:es(),line:{symbol:"circle"},graph:{color:lg},gauge:{title:{color:Kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};eS.categoryAxis.splitLine.show=!1;var s2=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(H(t)){var i=ir(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Wh=["symbol","symbolSize","symbolRotate","symbolOffset"],ug=Wh.concat(["symbolKeepAspect"]),l2={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 a={},n={},i=!1,o=0;o<Wh.length;o++){var s=Wh[o],l=r.get(s);$(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=mt(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),g=0;g<u.length;g++){var p=u[g];h.setItemVisual(c,p,n[p](v,d))}}return{dataEach:i?f:null}}},u2={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<ug.length;s++){var l=ug[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function f2(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function h2(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 EB(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function v2(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=F({},n),o.dispatchAction(F(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Sn(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.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(),c=Ja(h,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:V(c)?h.getName(c[0]):h.getName(c),selected:H(l)?l:F({},l)})}})}function c2(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Sn("map","selectchanged",t,n,a),Sn("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Sn("map","selected",t,n,a),Sn("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Sn("map","unselected",t,n,a),Sn("pie","unselected",t,n,a))})}function En(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var d2=Math.round(Math.random()*9),p2=typeof Object.defineProperty=="function",g2=function(){function r(){this._id="__ec_inner_"+d2++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return p2?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[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}(),y2=st.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),m2=st.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),_2=st.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=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*v,l+s+c*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),S2=st.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),w2={line:te,rect:_t,roundRect:_t,square:_t,circle:Jn,diamond:m2,pin:_2,arrow:S2,triangle:y2},b2={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},hl={};A(w2,function(r,t){hl[t]=new r});var x2=st.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Qs(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=hl[a];n||(a="rect",n=hl[a]),b2[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function T2(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 ce(r,t,e,a,n,i,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=$_(r.slice(8),new et(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=tc(r.slice(7),{},new et(t,e,a,n),o?"center":"cover"):l=new x2({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=T2,i&&l.setColor(i),l}function su(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function lu(r,t){if(r!=null)return V(r)||(r=[r,r]),[Y(r[0],t[0])||0,Y(rt(r[1],r[0]),t[1])||0]}function Ha(r){return isFinite(r)}function C2(r,t,e){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,n=n*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),a=Ha(a)?a:0,n=Ha(n)?n:1,i=Ha(i)?i:0,o=Ha(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function A2(r,t,e){var a=e.width,n=e.height,i=Math.min(a,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*a+e.x,s=s*n+e.y,l=l*i),o=Ha(o)?o:.5,s=Ha(s)?s:.5,l=l>=0&&Ha(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Uh(r,t,e){for(var a=t.type==="radial"?A2(r,t,e):C2(r,t,e),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function M2(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 rs(r){return parseInt(r,10)}function as(r,t,e){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||rs(s[a])||rs(r.style[a]))-(rs(s[i])||0)-(rs(s[o])||0)|0}function D2(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:dt(r)?[r]:V(r)?r:null}function rS(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&D2(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=z(e,function(i){return i/n}),a/=n)}return[e,a]}var L2=new Pr(!0);function vl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function fg(r){return typeof r=="string"&&r!=="none"}function cl(r){var t=r.fill;return t!=null&&t!=="none"}function hg(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 vg(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 Yh(r,t,e){var a=i_(t.image,t.__image,e);if(Gl(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Fi),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function I2(r,t,e,a){var n,i=vl(e),o=cl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||L2,h=t.__dirty;if(!a){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=i&&!!v.colorStops,p=o&&!!c.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(m=h?Uh(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?Uh(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?Yh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?Yh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=rS(t),T=n[0],C=n[1]);var M=!0;(u||h&Dn)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&vg(r,e),o&&hg(r,e)):(o&&hg(r,e),i&&vg(r,e))),T&&r.setLineDash([])}function P2(r,t,e){var a=t.__image=i_(e.image,t.__image,t,t.onload);if(!(!a||!Gl(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(a,u,f,h,c,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function R2(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Ka,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=rS(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(vl(e)&&r.strokeText(n,e.x,e.y),cl(e)&&r.fillText(n,e.x,e.y)):(cl(e)&&r.fillText(n,e.x,e.y),vl(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var cg=["shadowBlur","shadowOffsetX","shadowOffsetY"],dg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function aS(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){ue(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Za.opacity:o}(a||t.blend!==e.blend)&&(i||(ue(r,n),i=!0),r.globalCompositeOperation=t.blend||Za.blend);for(var s=0;s<cg.length;s++){var l=cg[s];(a||t[l]!==e[l])&&(i||(ue(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(ue(r,n),i=!0),r.shadowColor=t.shadowColor||Za.shadowColor),i}function pg(r,t,e,a,n){var i=ho(t,n.inHover),o=a?null:e&&ho(e,n.inHover)||{};if(i===o)return!1;var s=aS(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(ue(r,n),s=!0),fg(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(ue(r,n),s=!0),fg(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(ue(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(ue(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<dg.length;f++){var h=dg[f],c=h[0];(a||i[c]!==o[c])&&(s||(ue(r,n),s=!0),r[c]=i[c]||h[1])}return s}function E2(r,t,e,a,n){return aS(r,ho(t,n.inHover),e&&ho(e,n.inHover),a,n)}function nS(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function k2(r,t,e){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),nS(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=a}function O2(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 gg=1,yg=2,mg=3,_g=4;function N2(r){var t=cl(r),e=vl(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 ue(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ho(r,t){return t&&r.__hoverStyle||r.style}function iS(r,t){Wa(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wa(r,t,e,a){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ge,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||M2(i,o))&&(o&&o.length&&(ue(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(ue(r,e),r.save(),k2(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof st&&t.autoBatch&&N2(t.style);s||O2(n,u.transform)?(ue(r,e),nS(r,t)):f||ue(r,e);var h=ho(t,e.inHover);t instanceof st?(e.lastDrawType!==gg&&(l=!0,e.lastDrawType=gg),pg(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),I2(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof no?(e.lastDrawType!==mg&&(l=!0,e.lastDrawType=mg),pg(r,t,u,l,e),R2(r,t,h)):t instanceof vr?(e.lastDrawType!==yg&&(l=!0,e.lastDrawType=yg),E2(r,t,u,l,e),P2(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==_g&&(l=!0,e.lastDrawType=_g),B2(r,t,e)),f&&a&&ue(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function B2(r,t,e){var a=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wa(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wa(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var hf=new g2,Sg=new wo(100),wg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&hf.delete(r);var i=hf.get(r);if(i)return i;var o=Z(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,hf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<wg.length;++c){var v=o[wg[c]];if(v!=null&&!V(v)&&!H(v)&&!dt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var g=Sg.get(d);g&&(n?u.svgElement=g:u.image=g)}var p=sS(o.dashArrayX),y=F2(o.dashArrayY),m=oS(o.symbol),_=G2(p),S=lS(y),b=!n&&Ir.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;b&&(b.width=x.width*e,b.height=x.height*e,T=b.getContext("2d")),M(),h&&Sg.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=kd(D,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=kd(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var I=-S,P=0,R=0,E=0;I<x.height;){if(P%2===0){for(var N=R/2%m.length,k=0,B=0,G=0;k<x.width*2;){for(var W=0,L=0;L<p[E].length;++L)W+=p[E][L];if(W<=0)break;if(B%2===0){var K=(1-o.symbolSize)*.5,tt=k+p[E][B]*K,it=I+y[P]*K,St=p[E][B]*o.symbolSize,pt=y[P]*o.symbolSize,Vt=G/2%m[N].length;Ht(tt,it,St,pt,m[N][Vt])}k+=p[E][B],++G,++B,B===p[E].length&&(B=0)}++E,E===p.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function Ht(Et,xt,J,ft,Qe){var Ot=n?1:e,Or=ce(Qe,Et*Ot,xt*Ot,J*Ot,ft*Ot,o.color,o.symbolKeepAspect);if(n){var gr=a.painter.renderOneToVNode(Or);gr&&w.children.push(gr)}else iS(T,Or)}}}}function oS(r){if(!r||r.length===0)return[["rect"]];if(H(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!H(r[e])){t=!1;break}if(t)return oS([r]);for(var a=[],e=0;e<r.length;++e)H(r[e])?a.push([r[e]]):a.push(r[e]);return a}function sS(r){if(!r||r.length===0)return[[0,0]];if(dt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!dt(r[a])){e=!1;break}if(e)return sS([r]);for(var n=[],a=0;a<r.length;++a)if(dt(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=z(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function F2(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(dt(r)){var t=Math.ceil(r);return[t,t]}var e=z(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function G2(r){return z(r,function(t){return lS(t)})}function lS(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function z2(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=dl(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=dl(n,t)}}})}var ze=new Ee,uS={};function V2(r,t){uS[r]=t}function fS(r){return uS[r]}var kB="5.5.0",OB={zrender:"5.5.0"},H2=1,W2=800,U2=900,Y2=1e3,Z2=2e3,X2=5e3,hS=1e3,$2=1100,yc=2e3,vS=3e3,q2=4e3,uu=4500,K2=4600,Q2=5e3,J2=6e3,cS=7e3,j2={PROCESSOR:{FILTER:Y2,SERIES_FILTER:W2,STATISTIC:X2},VISUAL:{LAYOUT:hS,PROGRESSIVE_LAYOUT:$2,GLOBAL:yc,CHART:vS,POST_CHART_LAYOUT:K2,COMPONENT:q2,BRUSH:Q2,CHART_ITEM:uu,ARIA:J2,DECAL:cS}},Ut="__flagInMainProcess",oe="__pendingUpdate",vf="__needsUpdateStatus",bg=/^[a-zA-Z0-9_]+$/,cf="__connectUpdateStatus",xg=0,tL=1,eL=2;function dS(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return gS(this,r,t)}}function pS(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gS(this,r,t)}}function gS(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ee.prototype[t].apply(r,e)}var yS=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ee),mS=yS.prototype;mS.on=pS("on");mS.off=pS("off");var wn,df,ns,Gr,pf,gf,yf,gi,yi,Tg,Cg,mf,Ag,is,Mg,_S,we,Dg,pl=function(r){O(t,r);function t(e,a,n){var i=r.call(this,new s2)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},H(a)&&(a=SS[a]),i._dom=e;var o="canvas",s="auto",l=!1;n.ssr&&U0(function(c){var v=at(c),d=v.dataIndex;if(d!=null){var g=U();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var u=i._zr=xh(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:rt(n.useDirtyRect,l),useCoarsePointer:rt(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=gc(Q(u.flush,u),17),a=j(a),a&&M1(a,!0),i._theme=a,i._locale=dM(n.locale||i1),i._coordSysMgr=new ru;var f=i._api=Mg(i);function h(c,v){return c.__prio-v.__prio}return Ms(yl,h),Ms(Zh,h),i._scheduler=new Q1(i,f,Zh,yl),i._messageCenter=new yS,i._initEvents(),i.resize=Q(i.resize,i),u.animation.on("frame",i._onframe,i),Tg(u,i),Cg(u,i),Ji(i),i}return t.prototype._onframe=function(){if(!this._disposed){Dg(this);var e=this._scheduler;if(this[oe]){var a=this[oe].silent;this[Ut]=!0;try{wn(this),Gr.update.call(this,null,this[oe].updateParams)}catch(l){throw this[Ut]=!1,this[oe]=null,l}this._zr.flush(),this[Ut]=!1,this[oe]=null,gi.call(this,a),yi.call(this,a)}else if(e.unfinished){var n=H2,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),gf(this,i),e.performVisualTasks(i),is(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,a,n){if(!this[Ut]){if(this._disposed){this.id;return}var i,o,s;if(X(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ut]=!0,!this._model||a){var l=new HM(this._api),u=this._theme,f=this._model=new hc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Xh);var h={seriesTransition:s,optionChanged:!0};if(n)this[oe]={silent:i,updateParams:h},this[Ut]=!1,this.getZr().wakeUp();else{try{wn(this),Gr.update.call(this,null,h)}catch(c){throw this[oe]=null,this[Ut]=!1,c}this._ssr||this._zr.flush(),this[oe]=null,this[Ut]=!1,gi.call(this,i),yi.call(this,i)}}},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||lt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(lt.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.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 A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(ml[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A($a,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(e)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=Ir.createCanvas(),y=xh(p,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:g}),a){var m="";return A(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.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 _t({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new vr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return pf(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return pf(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Hi(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Hi(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?f2(s,l,a):h2(s,a)},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;A(rL,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&En(s,function(d){var g=at(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=F({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),A($i,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),A(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),c2(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&&e_(this.getDom(),_c,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete $a[a.id]},t.prototype.resize=function(e){if(!this[Ut]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[oe]&&(i==null&&(i=this[oe].silent),n=!0,this[oe]=null),this[Ut]=!0;try{n&&wn(this),Gr.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[Ut]=!1,o}this[Ut]=!1,gi.call(this,i),yi.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(X(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!$h[e]){var n=$h[e](this._api,a),i=this._zr;this._loadingFX=n,i.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 a=F({},e);return a.type=$i[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(X(a)||(a={silent:!!a}),!!gl[e.type]&&this._model){if(this[Ut]){this._pendingActions.push(e);return}var n=a.silent;yf.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&lt.browser.weChat&&this._throttledZrFlush(),gi.call(this,n),yi.call(this,n)}},t.prototype.updateLabelLayout=function(){ze.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){wn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),df(h,!0),df(h,!1),c.plan()},df=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var T="_ec_"+w.id+"_"+w.type,C=!x&&p[T];if(!C){var M=ir(w.type),D=c?zt.getClass(M.main,M.sub):Xt.getClass(M.sub);C=new D,C.init(v,m),p[T]=C,g.push(C),y.add(C.group)}w.__viewId=C.__id=T,C.__alive=!0,C.__model=w,C.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(C,w,v,m)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),g.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ns=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=U(),A(Mt(_),function(w){var x=Xe(w,null);x!=null&&S.set(x,!0)})),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;if(!x)if(lp(v))if(w instanceof ne)v.type===Xa&&!v.notBlur&&!w.get(["emphasis","disabled"])&&iA(w,v,h._api);else{var T=Xv(w.mainType,w.componentIndex,v.name,h._api),C=T.focusSelf,M=T.dispatchers;v.type===Xa&&C&&!v.notBlur&&Ih(w.mainType,w.componentIndex,h._api),M&&A(M,function(D){v.type===Xa?ja(D):tn(D)})}else Rh(v)&&w instanceof ne&&(lA(w,v,h._api),op(w),we(h))},h),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;x||b(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[c]&&w[c](w.__model,p,h._api,v)}},Gr={prepareAndUpdate:function(h){wn(this),Gr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),gf(this,v),p.update(v,d),e(v),y.performVisualTasks(v,h),mf(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),ze.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=U();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),is(this,v,d,h,{},p),ze.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Xt.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),mf(this,c,this._api,h,{}),ze.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),Xt.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),ze.trigger("afterupdate",v,this._api))},updateLayout:function(h){Gr.update.call(this,h)}},pf=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=Hi(g,v),_=0;_<p.length;_++){var S=p[_];if(S[c]&&(y=S[c](g,m,d))!=null)return y}},gf=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},yf=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=gl[g],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&ir(_[0]);this[Ut]=!0;var w=[h],x=!1;h.batch&&(x=!0,w=z(h.batch,function(P){return P=Z(F({},P),h),P.batch=null,P}));var T=[],C,M=Rh(h),D=lp(h);if(D&&A_(this._api),A(w,function(P){if(C=y.action(P,v._model,v._api),C=C||F({},P),C.type=m.event||C.type,T.push(C),D){var R=zv(h),E=R.queryOptionMap,N=R.mainTypeSpecified,k=N?E.keys()[0]:"series";ns(v,S,P,k),we(v)}else M?(ns(v,S,P,"series"),we(v)):b&&ns(v,S,P,b.main,b.sub)}),S!=="none"&&!D&&!M&&!b)try{this[oe]?(wn(this),Gr.update.call(this,h),this[oe]=null):Gr[S].call(this,h)}catch(P){throw this[Ut]=!1,P}if(x?C={type:m.event||g,escapeConnect:p,batch:T}:C=T[0],this[Ut]=!1,!c){var L=this._messageCenter;if(L.trigger(C.type,C),M){var I={type:"selectchanged",escapeConnect:p,selected:uA(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},gi=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();yf.call(this,v,h)}},yi=function(h){!h&&this.trigger("updated")},Tg=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[oe]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Cg=function(h,c){h.on("mouseover",function(v){var d=v.target,g=En(d,Ph);g&&(oA(g,v,c._api),we(c))}).on("mouseout",function(v){var d=v.target,g=En(d,Ph);g&&(sA(g,v,c._api),we(c))}).on("click",function(v){var d=v.target,g=En(d,function(m){return at(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=at(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function a(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:w})}),d){var g=c.concat(v),p,y;Ms(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(g,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;p!=null&&(S=Math.max(p,S)),b?(S===p&&b!==y&&S++,y=b):y&&(S===p&&S++,y=""),p=S,_.setZLevel(S)})}}mf=function(h,c,v,d,g){a(c),Ag(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive=!1}),is(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},Ag=function(h,c,v,d,g,p){A(p||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},is=function(h,c,v,d,g,p){var y=h._scheduler;g=F(g||{},{updatedSeries:c.getSeries()}),ze.trigger("series:beforeupdate",c,v,g);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),p&&p.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),op(_)}),y.unfinished=m||y.unfinished,ze.trigger("series:layoutlabels",c,v,g),ze.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),i(h,c),ze.trigger("series:afterupdate",c,v,g)},we=function(h){h[vf]=!0,h.getZr().wakeUp()},Dg=function(h){h[vf]&&(h.getZr().storage.traverse(function(c){Fn(c)||n(c)}),h[vf]=!1)};function n(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Hl&&h.states.emphasis?c.push("emphasis"):h.hoverState===Vl&&h.states.blur&&c.push("blur"),h.useStates(c)}function i(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!lt.node&&!lt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return l(g,v,d,-1/0),!0})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!Fn(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Fn(y))return;if(y instanceof st&&pA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&n(y)}})}Mg=function(h){return new(function(c){O(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){ja(d,g),we(h)},v.prototype.leaveEmphasis=function(d,g){tn(d,g),we(h)},v.prototype.enterBlur=function(d){nA(d),we(h)},v.prototype.leaveBlur=function(d){b_(d),we(h)},v.prototype.enterSelect=function(d){x_(d),we(h)},v.prototype.leaveSelect=function(d){T_(d),we(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(C1))(h)},_S=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[cf]=d}}A($i,function(v,d){h._messageCenter.on(d,function(g){if(ml[h.group]&&h[cf]!==xg){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];A($a,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,xg),A(y,function(m){m[cf]!==tL&&m.dispatchAction(p)}),c(y,eL)}})})}}(),t}(Ee),mc=pl.prototype;mc.on=dS("on");mc.off=dS("off");mc.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var rL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var gl={},$i={},Zh=[],Xh=[],yl=[],SS={},$h={},$a={},ml={},aL=+new Date-0,nL=+new Date-0,_c="_echarts_instance_";function NB(r,t,e){var a=!(e&&e.ssr);if(a){var n=wS(r);if(n)return n}var i=new pl(r,t,e);return i.id="ec_"+aL++,$a[i.id]=i,a&&e_(r,_c,i.id),_S(i),ze.trigger("afterinit",i),i}function BB(r){if(V(r)){var t=r;r=null,A(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+nL++,A(t,function(e){e.group=r})}return ml[r]=!0,r}function iL(r){ml[r]=!1}var FB=iL;function GB(r){H(r)?r=$a[r]:r instanceof pl||(r=wS(r)),r instanceof pl&&!r.isDisposed()&&r.dispose()}function wS(r){return $a[QT(r,_c)]}function zB(r){return $a[r]}function bS(r,t){SS[r]=t}function xS(r){ut(Xh,r)<0&&Xh.push(r)}function TS(r,t){wc(Zh,r,t,Z2)}function oL(r){Sc("afterinit",r)}function sL(r){Sc("afterupdate",r)}function Sc(r,t){ze.on(r,t)}function dr(r,t,e){$(t)&&(e=t,t="");var a=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||a).toLowerCase(),t=r.event,!$i[t]&&(Re(bg.test(a)&&bg.test(t)),gl[a]||(gl[a]={action:e,actionInfo:r}),$i[t]=a)}function lL(r,t){ru.register(r,t)}function VB(r){var t=ru.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function uL(r,t){wc(yl,r,t,hS,"layout")}function un(r,t){wc(yl,r,t,vS,"visual")}var Lg=[];function wc(r,t,e,a,n){if(($(t)||X(t))&&(e=t,t=a),!(ut(Lg,e)>=0)){Lg.push(e);var i=Q1.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function CS(r,t){$h[r]=t}function HB(r){qb({createCanvas:r})}function fL(r,t,e){var a=fS("registerMap");a&&a(r,t,e)}function WB(r){var t=fS("getMap");return t&&t(r)}var hL=wD;un(yc,XD);un(uu,$D);un(uu,qD);un(yc,l2);un(uu,u2);un(cS,z2);xS(M1);TS(U2,tD);CS("default",KD);dr({type:Xa,event:Xa,update:Xa},Zt);dr({type:Es,event:Es,update:Es},Zt);dr({type:Wi,event:Wi,update:Wi},Zt);dr({type:ks,event:ks,update:ks},Zt);dr({type:Ui,event:Ui,update:Ui},Zt);bS("light",o2);bS("dark",eS);var UB={};function mi(r){return r==null?0:r.length||1}function Ig(r){return r}var vo=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Ig,this._newKeyGetter=n||Ig,this.context=i,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,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=mi(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],h=mi(u),c=mi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=mi(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=mi(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),vL=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 cL(r,t){var e={},a=e.encode={},n=U(),i=[],o=[],s={};A(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;_f(a,d)[g]=c,v.isExtraCoord||(n.set(d,1),pL(v.type)&&(i[0]=c),_f(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}_1.each(function(p,y){var m=_f(a,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(c,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=z(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new vL(s,t),e}function _f(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function dL(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function pL(r){return!(r==="ordinal"||r==="time")}var Gs=function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r}(),gL=wt(),yL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},AS=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=LS(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return rt(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=L1(this.source),a=!IS(t),n="",i=[],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 c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yL[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;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 MS(r){return r instanceof AS}function DS(r){for(var t=U(),e=0;e<(r||[]).length;e++){var a=r[e],n=X(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function LS(r){var t=gL(r);return t.dimNameMap||(t.dimNameMap=DS(r.dimensionsDefine))}function IS(r){return r>30}var _i=X,zr=z,mL=typeof Int32Array>"u"?Array:Int32Array,_L="e\0\0",Pg=-1,SL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wL=["_approximateExtent"],Rg,os,Si,wi,Sf,ss,wf,bL=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 a,n=!1;MS(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var h=a[f],c=H(h)?new Gs({name:h}):h instanceof Gs?h:new Gs(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),i[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=U();A(o,function(p){g.set(i[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;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 a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(dt(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(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Gh&&(i=t),!i){var o=this.dimensions,s=vc(t)||$t(t)?new I1(t,o.length):t;i=new Gh;var l=zr(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=cL(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 a=this._store.appendValues(t,e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&wf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==jr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===ke;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&FT(h)&&(this.hasItemOption=!0),h){var c=h.name;i[f]==null&&c!=null&&(i[f]=Xe(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Xe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)wf(this,f);Rg(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){_i(t)?F(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Si(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return os(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.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 a=this,n=this._store;return V(t)?n.getValues(zr(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;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 a=t&&this._invertedIndicesMap[t],n=a[e];return n==null||isNaN(n)?Pg:n},r.prototype.indicesOfNearest=function(t,e,a){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,a)},r.prototype.each=function(t,e,a){$(t)&&(a=e,e=t,t=[]);var n=a||this,i=zr(wi(t),this._getStoreDimIndex,this);this._store.each(i,n?Q(e,n):e)},r.prototype.filterSelf=function(t,e,a){$(t)&&(a=e,e=t,t=[]);var n=a||this,i=zr(wi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Q(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=mt(t);return A(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){$(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=zr(wi(t),this._getStoreDimIndex,this),s=ss(this);return s._store=this._store.map(o,i?Q(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=zr(wi(t),this._getStoreDimIndex,this);this._store.modify(o,i?Q(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=ss(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.lttbDownSample=function(t,e){var a=ss(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new Pt(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new vo(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return os(t,a)},function(a){return os(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},_i(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),V(i)?i=i.slice():_i(i)&&(i=F({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,_i(e)?F(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){_i(t)?F(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,a){this._itemLayouts[t]=a?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Dh(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:zr(this.dimensions,this._getDimInfo,this),this.hostModel)),Sf(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];$(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(kl(arguments)))})},r.internalField=function(){Rg=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mL(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Pg;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Si=function(t,e,a){return Xe(t._getCategory(e,a),null)},os=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Si(t,t._idDimIdx,e)),a==null&&(a=_L+e),a},wi=function(t){return V(t)||(t=t!=null?[t]:[]),t},ss=function(t){var e=new r(t._schema?t._schema:zr(t.dimensions,t._getDimInfo,t),t.hostModel);return Sf(e,t),e},Sf=function(t,e){A(SL.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,A(wL,function(a){t[a]=j(e[a])}),t._calculationInfo=F({},e._calculationInfo)},wf=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Si(t,i,e)),l==null&&o!=null&&(n[e]=l=Si(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}();const bc=bL;function YB(r,t){return xc(r,t).dimensions}function xc(r,t){vc(r)||(r=cc(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=U(),i=[],o=TL(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&IS(o),l=a===r.dimensionsDefine,u=l?LS(r):DS(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=U(f),c=new F1(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var M=c[C];if(M<0){var D=a[C],L=X(D)?D:{name:D},I=new Gs,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=i.length;return c[C]=R,I.storeDimIndex=C,i.push(I),I}return i[M]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,M){var D=Mt(C).slice();if(D.length===1&&!H(D[0])&&D[0]<0){h.set(M,!1);return}var L=h.set(M,[]);A(D,function(I,P){var R=H(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,p(d(R),M,P))})});var g=0;A(e,function(C){var M,D,L,I;if(H(C))M=C,I={};else{I=C,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=F({},I),I.ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(M);if(R!==!1){if(R=Mt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&R.push(g++)}A(R,function(N,k){var B=d(N);if(l&&I.type!=null&&(B.type=I.type),p(Z(B,I),M,k),B.name==null&&D){var G=D[k];!X(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}L&&Z(B.otherDims,L)})}});function p(C,M,D){_1.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)A(i,function(C){b(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),T=x.coordDim;T==null&&(x.coordDim=CL(S,n,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),b(x),x.type==null&&(b1(r,w)===Ft.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return xL(i),new AS({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function xL(r){for(var t=U(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function TL(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;X(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function CL(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var AL=function(){function r(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return r}();function ML(r){var t=r.get("coordinateSystem"),e=new AL(t),a=DL[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var DL={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Nt).models[0],i=r.getReferringComponents("yAxis",Nt).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),bn(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),bn(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Nt).models[0];t.coordSysDims=["single"],e.set("single",n),bn(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Nt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),bn(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),bn(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),bn(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bn(r){return r.get("type")==="category"}function LL(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;IL(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(A(i,function(m,_){H(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;A(i,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(i.push(p),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function IL(r){return!MS(r.schema)}function rn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function PL(r,t){return rn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function RL(r,t){var e=r.get("coordinateSystem"),a=ru.get(e),n;return t&&t.coordSysDims&&(n=z(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=dL(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function EL(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function fu(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=cc(r)):(n=a.getSource(),i=n.sourceFormat===ke);var o=ML(t),s=RL(t,o),l=e.useEncodeDefaulter,u=$(l)?l:l?vt(LM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=xc(n,f),c=EL(h.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(h),d=LL(t,{schema:h,store:v}),g=new bc(h,t);g.setCalculationInfo(d);var p=c!=null&&kL(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(i?n:v,null,p),g}function kL(r){if(r.sourceFormat===ke){var t=OL(r.data||[]);return!V(xo(t))}}function OL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var pr=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 a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[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}();Fl(pr);var NL=0,qh=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++NL}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&z(a,BL);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,a=this._needCollect;if(!H(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r}();function BL(r){return X(r)&&r.value!=null?r.value:r+""}function Kh(r){return r.type==="interval"||r.type==="log"}function FL(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=q0(i/t,!0);e!=null&&o<e&&(o=n.interval=e),a!=null&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=PS(o),l=n.niceTickExtent=[Lt(Math.ceil(r[0]/o)*o,s),Lt(Math.floor(r[1]/o)*o,s)];return GL(l,r),n}function bf(r){var t=Math.pow(10,Fv(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Lt(e*t)}function PS(r){return Ar(r)+2}function Eg(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function GL(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Eg(r,0,t),Eg(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function hu(r,t){return r>=t[0]&&r<=t[1]}function vu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function cu(r,t){return r*(t[1]-t[0])+t[0]}var Tc=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new qh({})),V(n)&&(n=new qh({categories:z(n,function(i){return X(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),hu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),vu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(cu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[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 a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},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}(pr);pr.registerClass(Tc);var Pa=Lt,sa=function(r){O(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 hu(e,this._extent)},t.prototype.normalize=function(e){return vu(e,this._extent)},t.prototype.scale=function(e){return cu(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]<a[0]&&(a[0]=e[0]),e[1]>a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=PS(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]<i[0]&&(e?s.push({value:Pa(i[0]-a,o)}):s.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Pa(u+a,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(e?s.push({value:Pa(f+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var s=a[o],l=a[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=Pa(l.value+(u+1)*c);v>i[0]&&v<i[1]&&f.push(v),u++}n.push(f)}return n},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Ar(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Pa(e.value,n,!0);return p1(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=FL(i,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(a[0]=Pa(Math.floor(a[0]/o)*o)),e.fixMax||(a[1]=Pa(Math.ceil(a[1]/o)*o))},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(pr);pr.registerClass(sa);var RS=typeof Float32Array<"u",zL=RS?Float32Array:Array;function Dr(r){return V(r)?RS?new Float32Array(r):r:new zL(r)}var Qh="__ec_stack_";function Cc(r){return r.get("stack")||Qh+r.seriesIndex}function Ac(r){return r.dim+r.index}function ZB(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(Z({bandWidth:n,axisKey:a,stackId:Qh+i},r));for(var o=OS(t),s=[],i=0;i<r.count;i++){var l=o[a][Qh+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ES(r,t){var e=[];return t.eachSeriesByType(r,function(a){NS(a)&&e.push(a)}),e}function VL(r){var t={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function kS(r){var t=VL(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Y(a.get("barWidth"),s),g=Y(a.get("barMaxWidth"),s),p=Y(a.get("barMinWidth")||(BS(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Ac(i),stackId:Cc(a)})}),OS(e)}function OS(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var c=a.barMinWidth;c&&(l[u].minWidth=c);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=mt(i).length;s=Math.max(35-l*4,15)+"%"}var u=Y(s,o),f=Y(a.gap,1),h=a.remainedWidth,c=a.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(i,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,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;A(i,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function HL(r,t,e){if(r&&t){var a=r[Ac(t)];return a!=null&&e!=null?a[Cc(e)]:a}}function WL(r,t){var e=ES(r,t),a=kS(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Cc(n),u=a[Ac(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function UL(r){return{seriesType:r,plan:iu(),reset:function(t){if(NS(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),h=rn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),v=YL(n,i),d=BS(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Dr(b*3),x=d&&l&&Dr(b*3),T=d&&Dr(b),C=a.master.getRect(),M=c?C.width:C.height,D,L=S.getStore(),I=0;(D=_.next())!=null;){var P=L.get(h?p:o,D),R=L.get(s,D),E=v,N=void 0;h&&(N=+P-L.get(o,D));var k=void 0,B=void 0,G=void 0,W=void 0;if(c){var K=a.dataToPoint([P,R]);if(h){var tt=a.dataToPoint([N,R]);E=tt[0]}k=E,B=K[1]+m,G=K[0]-E,W=y,Math.abs(G)<g&&(G=(G<0?-1:1)*g)}else{var K=a.dataToPoint([R,P]);if(h){var tt=a.dataToPoint([R,N]);E=tt[1]}k=K[0]+m,B=E,G=y,W=K[1]-E,Math.abs(W)<g&&(W=(W<=0?-1:1)*g)}d?(w[I]=k,w[I+1]=B,w[I+2]=c?G:W,x&&(x[I]=c?C.x:k,x[I+1]=c?B:C.y,x[I+2]=M),T[D]=D):S.setItemLayout(D,{x:k,y:B,width:G,height:W}),I+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function NS(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function BS(r){return r.pipelineContext&&r.pipelineContext.large}function YL(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var ZL=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},FS=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return Ql(e.value,Tp[mM(zn(this._minLevelUnit))]||Tp.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return _M(e,a,n,o,i)},t.prototype.getTicks=function(){var e=this._interval,a=this._extent,n=[];if(!e)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=jL(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Ie,a[1]+=Ie),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Ie}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ls.length,l=Math.min(ZL(ls,this._approxInterval,0,s),s-1);this._interval=ls[l][1],this._minLevelUnit=ls[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return dt(e)?e:+fr(e)},t.prototype.contain=function(e){return hu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return vu(this.parse(e),this._extent)},t.prototype.scale=function(e){return cu(e,this._extent)},t.type="time",t}(sa),ls=[["second",ic],["minute",oc],["hour",Zi],["quarter-day",Zi*6],["half-day",Zi*12],["day",Ie*1.2],["half-week",Ie*3.5],["week",Ie*7],["month",Ie*31],["quarter",Ie*95],["half-year",xp/2],["year",xp]];function XL(r,t,e,a){var n=fr(t),i=fr(e),o=function(d){return Cp(n,d,a)===Cp(i,d,a)},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")},c=function(){return h()&&o("second")},v=function(){return c()&&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 c();case"millisecond":return v()}}function $L(r,t){return r/=Ie,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qL(r){var t=30*Ie;return r/=t,r>6?6:r>3?3:r>2?2:1}function KL(r){return r/=Zi,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function kg(r,t){return r/=t?oc:ic,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function QL(r){return q0(r,!0)}function JL(r,t,e){var a=new Date(r);switch(zn(t)){case"year":case"month":a[u1(e)](0);case"day":a[f1(e)](1);case"hour":a[h1(e)](0);case"minute":a[v1(e)](0);case"second":a[c1(e)](0),a[d1(e)](0)}return a.getTime()}function jL(r,t,e,a){var n=1e4,i=s1,o=0;function s(M,D,L,I,P,R,E){for(var N=new Date(D),k=D,B=N[I]();k<L&&k<=a[1];)E.push({value:k}),B+=M,N[P](B),k=N.getTime();E.push({value:k,notAdd:!0})}function l(M,D,L){var I=[],P=!D.length;if(!XL(zn(M),a[0],a[1],e)){P&&(D=[{value:JL(new Date(a[0]),M,e)},{value:a[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,N=D[R+1].value;if(E!==N){var k=void 0,B=void 0,G=void 0,W=!1;switch(M){case"year":k=Math.max(1,Math.round(t/Ie/365)),B=sc(e),G=SM(e);break;case"half-year":case"quarter":case"month":k=qL(t),B=Vn(e),G=u1(e);break;case"week":case"half-week":case"day":k=$L(t),B=Jl(e),G=f1(e),W=!0;break;case"half-day":case"quarter-day":case"hour":k=KL(t),B=so(e),G=h1(e);break;case"minute":k=kg(t,!0),B=jl(e),G=v1(e);break;case"second":k=kg(t,!1),B=tu(e),G=c1(e);break;case"millisecond":k=QL(t),B=eu(e),G=d1(e);break}s(k,E,N,B,G,W,I),M==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,c=0,v=0;v<i.length&&o++<n;++v){var d=zn(i[v]);if(yM(i[v])){l(i[v],u[u.length-1]||[],f);var g=i[v+1]?zn(i[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(M,D){return M.value-D.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===i[v]))break}f=[]}}}for(var S=Tt(z(u,function(M){return Tt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],w=S.length-1,v=0;v<S.length;++v)for(var x=S[v],T=0;T<x.length;++T)b.push({value:x[T].value,level:w-v});b.sort(function(M,D){return M.value-D.value});for(var C=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&C.push(b[v]);return C}pr.registerClass(FS);var Og=pr.prototype,qi=sa.prototype,tI=Lt,eI=Math.floor,rI=Math.ceil,us=Math.pow,Be=Math.log,Mc=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new sa,e._interval=0,e}return t.prototype.getTicks=function(e){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=qi.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=Lt(us(this.base,l));return u=l===n[0]&&this._fixMin?fs(u,i[0]):u,u=l===n[1]&&this._fixMax?fs(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,a){var n=Be(this.base);e=Be(Math.max(0,e))/n,a=Be(Math.max(0,a))/n,qi.setExtent.call(this,e,a)},t.prototype.getExtent=function(){var e=this.base,a=Og.getExtent.call(this);a[0]=us(e,a[0]),a[1]=us(e,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=fs(a[0],i[0])),this._fixMax&&(a[1]=fs(a[1],i[1])),a},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var a=this.base;e[0]=Be(e[0])/Be(a),e[1]=Be(e[1])/Be(a),Og.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,a){this.unionExtent(e.getApproximateExtent(a))},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=ET(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Lt(rI(a[0]/i)*i),Lt(eI(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){qi.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=Be(e)/Be(this.base),hu(e,this._extent)},t.prototype.normalize=function(e){return e=Be(e)/Be(this.base),vu(e,this._extent)},t.prototype.scale=function(e){return e=cu(e,this._extent),us(this.base,e)},t.type="log",t}(pr),GS=Mc.prototype;GS.getMinorTicks=qi.getMinorTicks;GS.getLabel=qi.getLabel;function fs(r,t){return tI(r,Ar(t))}pr.registerClass(Mc);var aI=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);$(i)?this._modelMinNum=hs(t,i({min:a[0],max:a[1]})):i!=="dataMin"&&(this._modelMinNum=hs(t,i));var o=this._modelMaxRaw=e.get("max",!0);if($(o)?this._modelMaxNum=hs(t,o({min:a[0],max:a[1]})):o!=="dataMax"&&(this._modelMaxNum=hs(t,o)),n)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=V(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ra(l[0],1),ra(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Qi(s)||Qi(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[iI[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=nI[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),nI={min:"_determinedMin",max:"_determinedMax"},iI={min:"_dataMin",max:"_dataMax"};function zS(r,t,e){var a=r.rawExtentInfo;return a||(a=new aI(r,t,e),r.rawExtentInfo=a,a)}function hs(r,t){return t==null?null:Qi(t)?NaN:r.parse(t)}function VS(r,t){var e=r.type,a=zS(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=ES("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=kS(s),f=oI(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function oI(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=HL(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/i,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function _l(r,t){var e=t,a=VS(r,e),n=a.extent,i=e.get("splitNumber");r instanceof Mc&&(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:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function HS(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Tc({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new FS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(pr.getClass(t)||sa)}}function sI(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Lo(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):H(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}}(t):$(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(Dc(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function Dc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function lI(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof Tc?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Lo(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=a?a[f]:{value:i[0]+f},c=s(h,f),v=o.getTextRect(c),d=uI(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function uI(r,t){var e=t*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=a*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new et(r.x,r.y,i,o);return s}function Lc(r){var t=r.get("interval");return t??"auto"}function WS(r){return r.type==="category"&&Lc(r.getLabelModel())===0}function Sl(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[PL(r,a)]=!0}),mt(e)}function fI(r,t,e){t&&A(Sl(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Ic=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Ng=[],hI={registerPreprocessor:xS,registerProcessor:TS,registerPostInit:oL,registerPostUpdate:sL,registerUpdateLifecycle:Sc,registerAction:dr,registerCoordinateSystem:lL,registerLayout:uL,registerVisual:un,registerTransform:hL,registerLoading:CS,registerMap:fL,registerImpl:V2,PRIORITY:j2,ComponentModel:ht,ComponentView:zt,SeriesModel:ne,ChartView:Xt,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){zt.registerClass(r)},registerSeriesModel:function(r){ne.registerClass(r)},registerChartView:function(r){Xt.registerClass(r)},registerSubTypeDefaulter:function(r,t){ht.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){W0(r,t)}};function Se(r){if(V(r)){A(r,function(t){Se(t)});return}ut(Ng,r)>=0||(Ng.push(r),$(r)&&(r={install:r}),r.install(hI))}var vI=1e-8;function Bg(r,t){return Math.abs(r-t)<vI}function Fg(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=wr(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Bg(n[0],s[0])||!Bg(n[1],s[1]))&&(a+=wr(n[0],n[1],s[0],s[1],t,e)),a!==0}var cI=[];function xf(r,t){for(var e=0;e<r.length;e++)Bt(r[e],r[e],t)}function Gg(r,t,e,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(xr(t,t,i),Tr(e,e,i))}}function dI(r){for(var t=0,e=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var US=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),zg=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Vg=function(){function r(t){this.type="linestring",this.points=t}return r}(),YS=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return dI(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Gg(s.exterior,n,i,e):A(s.points,function(l){Gg(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new et(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Fg(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Fg(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new et(e,a,n,i),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(xf(c.exterior,u),A(c.interiors,function(v){xf(v,u)})):A(c.points,function(v){xf(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(US),pI=function(r){O(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=So(cI),o=e;o&&!o.isGeoSVGGraphicRoot;)sr(i,o.getLocalTransform(),i),o=o.parent;return sn(i,i),Bt(n,n,i),n},t}(US);function gI(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=ZS(s,o,e);break;case"Polygon":Tf(s,o,e);break;case"MultiLineString":Tf(s,o,e);break;case"MultiPolygon":A(s,function(l,u){return Tf(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Tf(r,t,e){for(var a=0;a<r.length;a++)r[a]=ZS(r[a],t[a],e)}function ZS(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function yI(r,t){return r=gI(r),z(Tt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new zg(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new zg(l[0],l.slice(1)))});break;case"LineString":i.push(new Vg([n.coordinates]));break;case"MultiLineString":i.push(new Vg(n.coordinates))}var s=new YS(a[t||"name"],i,a.cp);return s.properties=a,s})}var co=wt();function mI(r){return r.type==="category"?SI(r):bI(r)}function _I(r,t){return r.type==="category"?wI(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function SI(r){var t=r.getLabelModel(),e=XS(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function XS(r,t){var e=$S(r,"labels"),a=Lc(t),n=qS(e,a);if(n)return n;var i,o;return $(a)?i=JS(r,a):(o=a==="auto"?xI(r):a,i=QS(r,o)),KS(e,a,{labels:i,labelCategoryInterval:o})}function wI(r,t){var e=$S(r,"ticks"),a=Lc(t),n=qS(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),$(a))i=JS(r,a,!0);else if(a==="auto"){var s=XS(r,r.getLabelModel());o=s.labelCategoryInterval,i=z(s.labels,function(l){return l.tickValue})}else o=a,i=QS(r,o,!0);return KS(e,a,{ticks:i,tickCategoryInterval:o})}function bI(r){var t=r.scale.getTicks(),e=Lo(r);return{labels:z(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function $S(r,t){return co(r)[t]||(co(r)[t]=[])}function qS(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function KS(r,t,e){return r.push({key:t,value:e}),e}function xI(r){var t=co(r).autoInterval;return t??(co(r).autoInterval=r.calculateCategoryInterval())}function TI(r){var t=CI(r),e=Lo(r),a=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),c=0,v=0;l<=i[1];l+=s){var d=0,g=0,p=bo(e({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=co(r.model),b=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function CI(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 QS(r,t,e){var a=Lo(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=WS(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==i[0]&&g(i[0]);for(var d=u;d<=i[1];d+=l)g(d);v&&d-l!==i[1]&&g(i[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:p})}return s}function JS(r,t,e){var a=r.scale,n=Lo(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Hg=[0,1],AI=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&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 Z0(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Wg(a,n.count())),At(t,Hg,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Wg(a,n.count()));var i=At(t,a,Hg,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=_I(this,e),n=a.ticks,i=z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return MI(this,i,o,t.clamp),i},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 a=this.scale.getMinorTicks(e),n=z(a,function(i){return z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return mI(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(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return TI(this)},r}();function Wg(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function MI(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(v){v.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=i[0]>i[1];c(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&c(o.coord,i[1])&&t.push({coord:i[1]});function c(v,d){return v=Lt(v),d=Lt(d),h?v>d:v<d}}const ha=AI;var bi=Math.PI*2,Ra=Pr.CMD,DI=["top","right","bottom","left"];function LI(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function II(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(a-n)%bi<1e-4)return l[0]=f,l[1]=h,u-e;if(i){var c=a;a=Mr(n),n=Mr(c)}else a=Mr(a),n=Mr(n);a>n&&(n+=bi);var v=Math.atan2(s,o);if(v<0&&(v+=bi),v>=a&&v<=n||v+bi>=a&&v+bi<=n)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(a)+r,g=e*Math.sin(a)+t,p=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=p,l[1]=y,Math.sqrt(_))}function wl(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,h=a-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-n)*(g-n)+(p-i)*(p-i))}function jS(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Ve=[];function PI(r,t,e){var a=jS(t.x,t.y,t.width,t.height,r.x,r.y,Ve);return e.set(Ve[0],Ve[1]),a}function RI(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var g=u;switch(d){case Ra.M:i=f[v++],o=f[v++],a=i,n=o;break;case Ra.L:g=wl(a,n,f[v],f[v+1],h,c,Ve,!0),a=f[v++],n=f[v++];break;case Ra.C:g=P0(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Ve),a=f[v++],n=f[v++];break;case Ra.Q:g=E0(a,n,f[v++],f[v++],f[v],f[v+1],h,c,Ve),a=f[v++],n=f[v++];break;case Ra.A:var p=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var w=!!(1-f[v++]);s=Math.cos(S)*m+p,l=Math.sin(S)*_+y,v<=1&&(i=s,o=l);var x=(h-p)*_/m+p;g=II(p,y,_,S,S+b,w,x,c,Ve),a=Math.cos(S+b)*m+p,n=Math.sin(S+b)*_+y;break;case Ra.R:i=a=f[v++],o=n=f[v++];var T=f[v++],C=f[v++];g=jS(i,o,T,C,h,c,Ve);break;case Ra.Z:g=wl(a,n,i,o,h,c,Ve,!0),a=i,n=o;break}g<u&&(u=g,e.set(Ve[0],Ve[1]))}return u}var Ue=new q,yt=new q,Dt=new q,or=new q,nr=new q;function Ug(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||DI,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),h=f&&sn([],f),c=t.get("length2")||0;u&&Dt.copy(u);for(var v=0;v<o.length;v++){var d=o[v];LI(d,0,s,Ue,or),q.scaleAndAdd(yt,Ue,or,c),yt.transform(h);var g=r.getBoundingRect(),p=u?u.distance(yt):r instanceof st?RI(yt,r.path,Dt):PI(yt,g,Dt);p<l&&(l=p,yt.transform(f),Dt.transform(f),Dt.toArray(i[0]),yt.toArray(i[1]),Ue.toArray(i[2]))}tw(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var bl=[],jt=new q;function tw(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ue.fromArray(r[0]),yt.fromArray(r[1]),Dt.fromArray(r[2]),q.sub(or,Ue,yt),q.sub(nr,Dt,yt);var e=or.len(),a=nr.len();if(!(e<.001||a<.001)){or.scale(1/e),nr.scale(1/a);var n=or.dot(nr),i=Math.cos(t);if(i<n){var o=wl(yt.x,yt.y,Dt.x,Dt.y,Ue.x,Ue.y,bl,!1);jt.fromArray(bl),jt.scaleAndAdd(nr,o/Math.tan(Math.PI-t));var s=Dt.x!==yt.x?(jt.x-yt.x)/(Dt.x-yt.x):(jt.y-yt.y)/(Dt.y-yt.y);if(isNaN(s))return;s<0?q.copy(jt,yt):s>1&&q.copy(jt,Dt),jt.toArray(r[1])}}}}function EI(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ue.fromArray(r[0]),yt.fromArray(r[1]),Dt.fromArray(r[2]),q.sub(or,yt,Ue),q.sub(nr,Dt,yt);var a=or.len(),n=nr.len();if(!(a<.001||n<.001)){or.scale(1/a),nr.scale(1/n);var i=or.dot(t),o=Math.cos(e);if(i<o){var s=wl(yt.x,yt.y,Dt.x,Dt.y,Ue.x,Ue.y,bl,!1);jt.fromArray(bl);var l=Math.PI/2,u=Math.acos(nr.dot(t)),f=l+u-e;if(f>=l)q.copy(jt,Dt);else{jt.scaleAndAdd(nr,s/Math.tan(Math.PI/2-f));var h=Dt.x!==yt.x?(jt.x-yt.x)/(Dt.x-yt.x):(jt.y-yt.y)/(Dt.y-yt.y);if(isNaN(h))return;h<0?q.copy(jt,yt):h>1&&q.copy(jt,Dt)}jt.toArray(r[1])}}}}function Cf(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function kI(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=br(a[0],a[1]),i=br(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Gi([],a[1],a[0],o/n),l=Gi([],a[1],a[2],o/i),u=Gi([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function ew(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<tl.length;l++){var u=tl[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:rt(n.states[u]&&n.states[u].ignore,s);if(v||!rt(c,o)){var d=h?a:a&&a.states[u];d&&(d.ignore=!0),a&&Cf(a,!0,u,f);continue}a||(a=new qe,r.setTextGuideLine(a),!h&&(s||!o)&&Cf(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Cf(a,!1,u,f)}}if(a){Z(a.style,e),a.style.fill=null;var g=i.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||!1,a.buildPath=kI}}function rw(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<ve.length;a++){var n=ve[a];e[n]=r.getModel([n,t])}return e}function aw(r){for(var t=[],e=0;e<r.length;e++){var a=r[e];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new rl(o,i):null;t.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:f,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return t}function nw(r,t,e,a,n,i){var o=r.length;if(o<2)return;r.sort(function(T,C){return T.rect[t]-C.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&i&&b(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&w(-y,.8),m<0&&w(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&x(-y),m<0&&x(m);function _(){y=g.rect[t]-a,m=n-p.rect[t]-p.rect[e]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var L=D+T;L<0&&w(-L*M,1)}else w(-T*M,1)}}function b(T,C,M){T!==0&&(u=!0);for(var D=C;D<M;D++){var L=r[D],I=L.rect;I[t]+=T,L.label[t]+=T}}function w(T,C){for(var M=[],D=0,L=1;L<o;L++){var I=r[L-1].rect,P=Math.max(r[L].rect[t]-I[t]-I[e],0);M.push(P),D+=P}if(D){var R=Math.min(Math.abs(T)/D,C);if(T>0)for(var L=0;L<o-1;L++){var E=M[L]*R;b(E,0,L+1)}else for(var L=o-1;L>0;L--){var E=M[L-1]*R;b(-E,L,o)}}}function x(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D<o-1;D++)if(C>0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return u}function OI(r,t,e,a){return nw(r,"x","width",t,e,a)}function iw(r,t,e,a){return nw(r,"y","height",t,e,a)}function ow(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new et(0,0,0,0);function a(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;e.copy(i.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=i.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new rl(d.localRect,d.transform)),h||(h=new rl(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(a(u),f&&a(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function NI(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function BI(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:NI(a&&a.shape.points)}}var Yg=["align","verticalAlign","width","height","fontSize"],qt=new Cr,Af=wt(),FI=wt();function vs(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var cs=["x","y","rotation"],GI=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();et.applyTransform(f,f,u),u?qt.setLocalTransform(u):(qt.x=qt.y=qt.rotation=qt.originX=qt.originY=0,qt.scaleX=qt.scaleY=1),qt.rotation=Mr(qt.rotation);var h=n.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();et.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:qt.x,y:qt.y,scaleX:qt.scaleX,scaleY:qt.scaleY,rotation:qt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");($(n)||mt(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=at(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){Ug(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;$(o.layoutOption)?f=o.layoutOption(BI(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=Y(f.x,e),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Y(f.y,a),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Af(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<Yg.length;g++){var p=Yg[g];s.setStyle(p,f[p]!=null?f[p]:u.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=aw(this._labelList),i=Tt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Tt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});OI(i,0,e),iw(o,0,a);var s=Tt(n,function(l){return l.layoutOption.hideOverlap});ow(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Af(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=at(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var h=s.getModel("labelLine");ew(t,rw(s),l),Ug(t,h)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!Fn(t))){var i=Af(a),o=i.oldLayout,s=at(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var c=t.prevStates;c&&(ut(c,"select")>=0&&a.attr(i.oldLayoutSelect),ut(c,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),bt(a,u,e,l)}else if(a.attr(u),!jn(a).valueAnimation){var h=rt(a.style.opacity,1);a.style.opacity=0,Rt(a,{style:{opacity:h}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};vs(v,u,cs),vs(v,a.states.select,cs)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};vs(d,u,cs),vs(d,a.states.emphasis,cs)}r1(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=FI(n),o=i.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),bt(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,Rt(n,{style:{strokePercent:1}},e)),i.oldLayout=g}},r}(),Mf=wt();function XB(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Mf(e).labelManager;n||(n=Mf(e).labelManager=new GI),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Mf(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var zI=function(r){O(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 fu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new ot,n=ce("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=ce(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.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),a},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}(ne);function Pc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Xn(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Xn(r,t,e[o]));return i.join(" ")}}function sw(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Rc=function(r){O(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=ce(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=VI,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(){ja(this.childAt(0))},t.prototype.downplay=function(){tn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):bt(c,v,s,a),io(c)}if(this._updateCommon(e,a,l,n,i),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Rt(c,v,s,a)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,c=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=kr(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=lu(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var w=e.getItemVisual(a,"style"),x=w.fill;if(s instanceof vr){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(F({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;fa(s,g,{labelFetcher:l,labelDataIndex:a,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(R){return D?e.getName(R):Pc(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=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),$e(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=at(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&al(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();al(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return su(e.getItemVisual(a,"symbolSize"))},t}(ot);function VI(r,t){this.parent.drift(r,t)}function Df(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zg(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Xg(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:kr(t),cursorStyle:t.get("cursor")}}var lw=function(){function r(t){this.group=new ot,this._SymbolCtor=t||Rc}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zg(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Xg(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||a.removeAll(),t.diff(i).add(function(h){var c=f(h);if(Df(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),a.add(v)}}).update(function(h,c){var v=i.getItemGraphicEl(c),d=f(h);if(!Df(t,d,h,e)){a.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)a.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):bt(v,y,n)}a.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=i.getItemGraphicEl(h);c&&c.fadeOut(function(){a.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Xg(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Zg(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Df(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Ao(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();function uw(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=HI(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=z(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return rn(t,h[0])&&(c=!0,h[0]=v),rn(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function HI(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:dt(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function fw(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function WI(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function UI(r,t,e,a,n,i,o,s){for(var l=WI(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=uw(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,w=void 0,x=void 0;switch(S.cmd){case"=":w=S.idx*2,x=S.idx1*2;var T=y[w],C=y[w+1],M=m[x],D=m[x+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),f.push(M,D),h.push(e[w],e[w+1]),c.push(a[x],a[x+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=p.dataDimsForPoint,P=n.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);x=L*2,u.push(P[0],P[1]),f.push(m[x],m[x+1]);var R=fw(p,n,t,L);h.push(R[0],R[1]),c.push(a[x],a[x+1]),g.push(t.getRawIndex(L));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(St,pt){return g[St]-g[pt]});for(var E=u.length,N=Dr(E),k=Dr(E),B=Dr(E),G=Dr(E),W=[],_=0;_<d.length;_++){var K=d[_],tt=_*2,it=K*2;N[tt]=u[it],N[tt+1]=u[it+1],k[tt]=f[it],k[tt+1]=f[it+1],B[tt]=h[it],B[tt+1]=h[it+1],G[tt]=c[it],G[tt+1]=c[it+1],W[_]=v[K]}return{current:N,next:k,stackedOnCurrent:B,stackedOnNext:G,status:W}}var Vr=Math.min,Hr=Math.max;function qa(r,t){return isNaN(r)||isNaN(t)}function Jh(r,t,e,a,n,i,o,s,l){for(var u,f,h,c,v,d,g=e,p=0;p<a;p++){var y=t[g*2],m=t[g*2+1];if(g>=n||g<0)break;if(qa(y,m)){if(l){g+=i;continue}break}if(g===e)r[i>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var b=g+i,w=t[b*2],x=t[b*2+1];w===y&&x===m&&p<a;)p++,b+=i,g+=i,w=t[b*2],x=t[b*2+1],y=t[g*2],m=t[g*2+1],_=y-u,S=m-f;var T=p+1;if(l)for(;qa(w,x)&&T<a;)T++,b+=i,w=t[b*2],x=t[b*2+1];var C=.5,M=0,D=0,L=void 0,I=void 0;if(T>=a||qa(w,x))v=y,d=m;else{M=w-u,D=x-f;var P=y-u,R=w-y,E=m-f,N=x-m,k=void 0,B=void 0;if(s==="x"){k=Math.abs(P),B=Math.abs(R);var G=M>0?1:-1;v=y-G*k*o,d=m,L=y+G*B*o,I=m}else if(s==="y"){k=Math.abs(E),B=Math.abs(N);var W=D>0?1:-1;v=y,d=m-W*k*o,L=y,I=m+W*B*o}else k=Math.sqrt(P*P+E*E),B=Math.sqrt(R*R+N*N),C=B/(B+k),v=y-M*o*(1-C),d=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=Vr(L,Hr(w,y)),I=Vr(I,Hr(x,m)),L=Hr(L,Vr(w,y)),I=Hr(I,Vr(x,m)),M=L-y,D=I-m,v=y-M*k/B,d=m-D*k/B,v=Vr(v,Hr(u,y)),d=Vr(d,Hr(f,m)),v=Hr(v,Vr(u,y)),d=Hr(d,Vr(f,m)),M=y-v,D=m-d,L=y+M*B/k,I=m+D*B/k}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}u=y,f=m,g+=i}return p}var hw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),YI=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hw},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&qa(n[o*2-2],n[o*2-1]);o--);for(;i<o&&qa(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Jh(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Pr.CMD,s,l,u=a==="x",f=[],h=0;h<i.length;){var c=i[h++],v=void 0,d=void 0,g=void 0,p=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[h++],l=i[h++];break;case o.L:if(v=i[h++],d=i[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[h++],d=i[h++],g=i[h++],p=i[h++],y=i[h++],m=i[h++];var b=u?Xs(s,v,g,y,e,f):Xs(l,d,p,m,e,f);if(b>0)for(var w=0;w<b;w++){var x=f[w];if(x<=1&&x>=0){var S=u?kt(l,d,p,m,x):kt(s,v,g,y,x);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(st),ZI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(hw),XI=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new ZI},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&qa(n[s*2-2],n[s*2-1]);s--);for(;o<s&&qa(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Jh(e,n,o,s,s,1,a.smooth,l,a.connectNulls);Jh(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(st);function vw(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.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 _t({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=$(n)?function(p){n(p,h)}:null;Rt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,a,g)}return h}function cw(r,t,e){var a=r.getArea(),n=Lt(a.r0,1),i=Lt(a.r,1),o=new _e({shape:{cx:Lt(r.cx,1),cy:Lt(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Rt(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function dw(r,t,e,a,n){if(r){if(r.type==="polar")return cw(r,t,e);if(r.type==="cartesian2d")return vw(r,t,e,a,n)}else return null;return null}function Ec(r,t){return r.type===t}function $g(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function qg(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function Kg(r,t){var e=qg(r),a=e[0],n=e[1],i=qg(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Qg(r){return dt(r)?r:r?.5:0}function $I(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=Dr(a*2),i=0;i<a;i++){var o=fw(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Wr(r,t,e,a){var n=t.getBaseAxis(),i=n.dim==="x"||n.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(a){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[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var c=(u[i]+f[i])/2,v=[];l[i]=v[i]=c,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function qI(r,t){var e=[],a=r.length,n,i;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=Ov(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,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),i=l}return e}function KI(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=qI(u,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Jv(0,0,0,0,c,!0);return m[n]=g,m[n+"2"]=p,m}}}function QI(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&JI(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function JI(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Rc.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function jI(r,t){return isNaN(r)||isNaN(t)}function tP(r){for(var t=r.length/2;t>0&&jI(r[t*2-2],r[t*2-1]);t--);return t-1}function Jg(r,t){return[r[t*2],r[t*2+1]]}function eP(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function pw(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ve.length;t++)if(r.get([ve[t],"endLabel","show"]))return!0;return!1}function Lf(r,t,e,a){if(Ec(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=pw(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=vw(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return cw(t,e,a)}function rP(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var aP=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new ot,a=new lw;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,g=this._polyline,p=this._polygon,y=this._lineGroup,m=!a.ssr&&e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=uw(o,l,S),w=_&&$I(o,l,b),x=e.get("showSymbol"),T=e.get("connectNulls"),C=x&&!c&&QI(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(pt,Vt){pt.__temp&&(s.remove(pt),M.setItemGraphicEl(Vt,null))}),x||d.remove(),s.add(y);var D=c?!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=KI(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&v.type===o.type&&D===this._step))x&&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),D&&(h=Wr(h,o,D,T),w&&(w=Wr(w,o,D,T))),g=this._newPolyline(h),_?p=this._newPolygon(h,w):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,en(I)),y.setClipPath(Lf(this,o,!0,e));else{_&&!p?p=this._newPolygon(h,w):p&&!_&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,en(I));var P=y.getClipPath();if(P){var R=Lf(this,o,!1,e);Rt(P,{shape:R.shape},e)}else y.setClipPath(Lf(this,o,!0,e));x&&d.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(pt){return[h[pt*2],h[pt*2+1]]}}),(!$g(this._stackedOnPoints,w)||!$g(this._points,h))&&(m?this._doUpdateAnimation(l,w,o,n,D,S,T):(D&&(h=Wr(h,o,D,T),w&&(w=Wr(w,o,D,T))),g.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:w})))}var E=e.getModel("emphasis"),N=E.get("focus"),k=E.get("blurScope"),B=E.get("disabled");if(g.useStyle(Z(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),ia(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=g.getState("emphasis").style;G.lineWidth=+g.style.lineWidth+1}at(g).seriesIndex=e.seriesIndex,$e(g,N,k,B);var W=Qg(e.get("smooth")),K=e.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:K,connectNulls:T}),p){var tt=l.getCalculationInfo("stackedOnSeries"),it=0;p.useStyle(Z(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),tt&&(it=Qg(tt.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:it,smoothMonotone:K,connectNulls:T}),ia(p,e,"areaStyle"),at(p).seriesIndex=e.seriesIndex,$e(p,N,k,B)}var St=function(pt){i._changePolyState(pt)};l.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=St)}),this._polyline.onHoverStateChange=St,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){at(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Ja(o,i);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 c=e.get("zlevel")||0,v=e.get("z")||0;u=new Rc(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Xt.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Ja(o,i);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 Xt.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;ap(this._polyline,e),a&&ap(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new YI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new XI({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");$(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=$(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(p);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var w=n;i?(y=w.x,m=w.x+w.width,_=v.x):(y=w.y+w.height,m=w.y,_=v.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var T=$(h)?h(d):f*x+c,C=g.getSymbolPath(),M=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(pw(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 Ct({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=tP(l);f>=0&&(fa(s,kr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?sw(o,v):Pc(o,h)},enableTextSetter:!0},rP(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),w=(y?0:-g)*(m?-1:1),x=y?"x":"y",T=eP(h,S,x),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!v){var L=Jg(h,C[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=r_(n,d,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=e===1||i.lastFrameIndex>0?C[0]:0,L=Jg(h,R);o&&(D=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var E=jn(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=UI(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=Wr(c.current,n,o,l),d=Wr(c.stackedOnCurrent,n,o,l),g=Wr(c.next,n,o,l),p=Wr(c.stackedOnNext,n,o,l)),Kg(v,g)>3e3||f&&Kg(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),bt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),bt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=x[M],C.y=x[M+1],C.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Xt);function kc(r,t){return{seriesType:r,plan:iu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=z(n.dimensions,function(v){return a.mapDimension(v)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");rn(a,s[0])&&(s[0]=u),rn(a,s[1])&&(s[1]=u);var f=a.getStore(),h=a.getDimensionIndex(s[0]),c=a.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var g=v.end-v.start,p=o&&Dr(g*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var w=f.get(h,_);b=n.dataToPoint(w,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),b=n.dataToPoint(y,null,m);o?(p[S++]=b[0],p[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",p)}}}}}}var nP={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],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,a=0;a<r.length;a++){var n=r[a],i=Math.abs(n);i>t&&(t=i,e=n)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},iP=function(r){return Math.round(r.length/2)};function gw(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v));var d=void 0;H(i)?d=nP[i]:$(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,iP))}}}}}function $B(r){r.registerChartView(aP),r.registerSeriesModel(zI),r.registerLayout(kc("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gw("line"))}var jh=function(r){O(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,a){return fu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(c,v){if(c.type==="category"&&a!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],y=a[v]==="x1"||a[v]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,x=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(x===p){_=w;break}else if(x<p)m=w;else if(m!=null&&x>p){_=(w+m)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=i.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}(ne);ne.registerClass(jh);var oP=function(r){O(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 fu(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"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Kl(jh.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}(jh),sP=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}(),xl=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new sP},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,c=a.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(g*o+n,p*o+i),e.arc(g*u+n,p*u+i,l,-Math.PI+f,f,!c)):e.moveTo(g*s+n,p*s+i),e.arc(n,i,s,f,h,!c),e.arc(y*u+n,m*u+i,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(n,i,o,h,f,c)},t}(st);function lP(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Qs(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,g=u.startAngle,p=u.endAngle,y=(g+p)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(g),w=h+c*S(g),x="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),w=h+(v-l)*S(y),x="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),w=h+(v+l)*S(y),x="center",T="bottom";break;case"startAngle":b=f+d*_(g)+ds(g,l+m,!1),w=h+d*S(g)+ps(g,l+m,!1),x="right",T="middle";break;case"insideStartAngle":b=f+d*_(g)+ds(g,-l+m,!1),w=h+d*S(g)+ps(g,-l+m,!1),x="left",T="middle";break;case"middle":b=f+d*_(y),w=h+d*S(y),x="center",T="middle";break;case"endArc":b=f+(c+l)*_(y),w=h+(c+l)*S(y),x="center",T="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),w=h+(c-l)*S(y),x="center",T="top";break;case"endAngle":b=f+d*_(p)+ds(p,l+m,!0),w=h+d*S(p)+ps(p,l+m,!0),x="left",T="middle";break;case"insideEndAngle":b=f+d*_(p)+ds(p,-l+m,!0),w=h+d*S(p)+ps(p,-l+m,!0),x="right",T="middle";break;default:return Qs(a,n,i)}return a=a||{},a.x=b,a.y=w,a.align=x,a.verticalAlign=T,a}}function uP(r,t,e,a){if(dt(a)){r.setTextConfig({rotation:a});return}else if(V(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+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=i;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 ds(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ps(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Bi(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;V(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(a,function(i){return ra(i,n)})}}var If=Math.max,Pf=Math.min;function fP(r,t){var e=r.getArea&&r.getArea();if(Ec(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var hP=function(r){O(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,a,n,i){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,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Ao(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){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 c=e.isAnimationEnabled()?e:null,v=vP(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,g=fP(u,s);o.removeClipPath();var p=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,w=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(D){var L=gs[u.type](s,D),I=_P(u,h,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=gs[u.type](s,D,L);if(y&&T(D),!(!s.hasValue(D)||!ay[u.type](I))){var P=!1;d&&(P=jg[u.type](g,I));var R=ty[u.type](e,s,D,I,h,c,f.model,!1,p);v&&(R.forceLabelAnimation=!0),ny(R,s,D,L,I,e,h,u.type==="polar"),w?R.attr({shape:I}):v?ey(v,c,R,I,D,h,!1,!1):Rt(R,{shape:I},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=gs[u.type](s,D,I);if(y){var R=void 0;b.length===0?R=T(L):(R=b[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=gs[u.type](s,D),N=mw(h,E,u);bt(R,{shape:N},c,D)}var k=l.getItemGraphicEl(L);if(!s.hasValue(D)||!ay[u.type](P)){o.remove(k);return}var B=!1;if(d&&(B=jg[u.type](g,P),B&&o.remove(k)),k?io(k):k=ty[u.type](e,s,D,P,h,c,f.model,!!k,p),v&&(k.forceLabelAnimation=!0),x){var G=k.getTextContent();if(G){var W=jn(G);W.prevValue!=null&&(W.prevValue=W.value)}}else ny(k,s,D,I,P,e,h,u.type==="polar");w?k.attr({shape:P}):v?ey(v,c,k,P,D,h,!0,x):bt(k,{shape:P},e,D,null),s.setItemGraphicEl(D,k),k.ignore=B,o.add(k)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&nl(L,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ot);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),oy(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),oy(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&dw(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){nl(i,e,at(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Xt),jg={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=If(t.x,r.x),s=Pf(t.x+t.width,n),l=If(t.y,r.y),u=Pf(t.y+t.height,i),f=s<o,h=u<l;return t.x=f&&o>n?s:o,t.y=h&&l>i?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<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 a=t.r;t.r=t.r0,t.r0=a}var n=Pf(t.r,r.r),i=If(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},ty={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new _t({shape:F({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?xl:_e,f=new u({shape:a,z2:1});f.name="item";var h=yw(n);if(f.calculateTextPosition=lP(h,{isRoundCap:u===xl}),i){var c=f.shape,v=n?"r":"endAngle",d={};c[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?bt:Rt)(f,{shape:d},i)}return f}};function vP(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function ey(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?bt:Rt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?bt:Rt)(e,{shape:u},f,n)}function ry(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var cP=["x","y","width","height"],dP=["cx","cy","r","startAngle","endAngle"],ay={cartesian2d:function(r){return!ry(r,cP)},polar:function(r){return!ry(r,dP)}},gs={cartesian2d:function(r,t,e){var a=r.getItemLayout(t),n=e?gP(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function pP(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function yw(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function ny(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,h=Bi(a.getModel("itemStyle"),f,!0);F(f,h),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=a.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=kr(a);fa(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Pc(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=a.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,uP(r,p==="outside"?v:p,yw(o),a.get(["label","rotate"]))}e1(g,d,i.getRawValue(e),function(m){return sw(t,m)});var y=a.getModel(["emphasis"]);$e(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ia(r,a),pP(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function gP(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var yP=function(){function r(){}return r}(),iy=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new yP},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(st);function oy(r,t,e,a){var n=r.getData(),i=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 iy({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new iy({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),at(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",sy),h.on("mousemove",sy)),e&&e.push(h)}var sy=gc(function(r){var t=this,e=mP(t,r.offsetX,r.offsetY);at(t).dataIndex=e>=0?e:null},30,!1);function mP(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f<h;f++){var c=f*3;if(l[a]=u,l[n]=i[c+2],s[a]=i[c+a],s[n]=i[c+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 mw(r,t,e){if(Ec(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function _P(r,t,e){var a=r.type==="polar"?_e:_t;return new a({shape:mw(t,e,r),silent:!0,z2:0})}function qB(r){r.registerChartView(hP),r.registerSeriesModel(oP),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(WL,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,UL("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gw("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var ly=Math.PI*2,ys=Math.PI/180;function _w(r,t){return hr(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Sw(r,t){var e=_w(r,t),a=r.get("center"),n=r.get("radius");V(n)||(n=[0,n]);var i=Y(e.width,t.getWidth()),o=Y(e.height,t.getHeight()),s=Math.min(i,o),l=Y(n[0],s/2),u=Y(n[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(a);f=v[0]||0,h=v[1]||0}else V(a)||(a=[a,a]),f=Y(a[0],i)+e.x,h=Y(a[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function SP(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=_w(a,e),s=Sw(a,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-a.get("startAngle")*ys,v=a.get("endAngle"),d=a.get("padAngle")*ys;v=v==="auto"?c-ly:-v*ys;var g=a.get("minAngle")*ys,p=g+d,y=0;n.each(i,function(E){!isNaN(E)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),w=a.get("stillShowZeroSum"),x=n.getDataExtent(i);x[0]=0;var T=S?1:-1,C=[c,v],M=T*d/2;Hv(C,!S),c=C[0],v=C[1];var D=Math.abs(v-c),L=D,I=0,P=c;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(E,N){var k;if(isNaN(E)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?k=m===0&&w?_:E*_:k=D/y,k<p?(k=p,L-=p):I+=E;var B=P+T*k,G=0,W=0;d>k?(G=P+T*k/2,W=G):(G=P+M,W=B-M),n.setItemLayout(N,{angle:k,startAngle:G,endAngle:W,clockwise:S,cx:l,cy:u,r0:h,r:b?At(E,x,[h,f]):f}),P=B}),L<ly&&y)if(L<=.001){var R=D/y;n.each(i,function(E,N){if(!isNaN(E)){var k=n.getItemLayout(N);k.angle=R;var B=0,G=0;R<d?(B=c+T*(N+1/2)*R,G=B):(B=c+T*N*R+M,G=c+T*(N+1)*R-M),k.startAngle=B,k.endAngle=G}})}else _=L/I,P=c,n.each(i,function(E,N){if(!isNaN(E)){var k=n.getItemLayout(N),B=k.angle===p?p:E*_,G=0,W=0;B<d?(G=P+T*B/2,W=G):(G=P+M,W=P+T*B-M),k.startAngle=G,k.endAngle=W,P+=T*B}})})}function ww(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var wP=Math.PI/180;function uy(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],S=Math.abs(_.label.y-e),b=a+_.len,w=b*b,x=Math.sqrt((1-Math.abs(S*S/y))*w),T=t+(x+_.len2)*n,C=T-_.label.x,M=_.targetTextWidth-C*n;bw(_,M,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],S=_.label.y>e?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var w=_.label.x-t-_.len2*n,x=a+_.len,T=Math.abs(w)<x?Math.sqrt(b*b/(1-w*w/x/x)):x;S.rB=T,S.maxY=b}S.list.push(_)}f(p),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}iw(r,l,l+o)&&h(r)}function bP(r,t,e,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Rf(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Rf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+n-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+n-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+n-v.x-d.bleedMargin,d.targetTextWidth=p,bw(d,p)}}uy(u,t,e,a,1,n,i,o,s,h),uy(l,t,e,a,-1,n,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Rf(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,w=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+b+d.labelDistance:g[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=v.y}}}function bw(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(t<f||e){var h=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;a.setStyle("width",d)}var g=a.getBoundingRect();i.width=g.width;var p=(a.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-h)/2}}}function Rf(r){return r.position==="center"}function xP(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*wP,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),T=x.shape,C=x.getTextContent(),M=x.getTextGuideLine(),D=t.getItemModel(w),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=Y(L.get("edgeDistance"),u),N=L.get("bleedMargin"),k=D.getModel("labelLine"),B=k.get("length");B=Y(B,u);var G=k.get("length2");if(G=Y(G,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,v),C.ignore=!0,M&&(A(M.states,v),M.ignore=!0);return}if(d(C)){var W=(T.startAngle+T.endAngle)/2,K=Math.cos(W),tt=Math.sin(W),it,St,pt,Vt;a=T.cx,n=T.cy;var Ht=I==="inside"||I==="inner";if(I==="center")it=T.cx,St=T.cy,Vt="center";else{var Et=(Ht?(T.r+T.r0)/2*K:T.r*K)+a,xt=(Ht?(T.r+T.r0)/2*tt:T.r*tt)+n;if(it=Et+K*3,St=xt+tt*3,!Ht){var J=Et+K*(B+l-T.r),ft=xt+tt*(B+l-T.r),Qe=J+(K<0?-1:1)*G,Ot=ft;R==="edge"?it=K<0?f+E:f+u-E:it=Qe+(K<0?-P:P),St=Ot,pt=[[Et,xt],[J,ft],[Qe,Ot]]}Vt=Ht?"center":R==="edge"?K>0?"right":"left":K>0?"left":"right"}var Or=Math.PI,gr=0,ri=L.get("rotate");if(dt(ri))gr=ri*(Or/180);else if(I==="center")gr=0;else if(ri==="radial"||ri===!0){var Fb=K<0?-W+Or:-W;gr=Fb}else if(ri==="tangential"&&I!=="outside"&&I!=="outer"){var fn=Math.atan2(K,tt);fn<0&&(fn=Or*2+fn);var Gb=tt>0;Gb&&(fn=Or+fn),gr=fn-Or}if(i=!!gr,C.x=it,C.y=St,C.rotation=gr,C.setStyle({verticalAlign:"middle"}),Ht){C.setStyle({align:Vt});var yu=C.states.select;yu&&(yu.x+=C.x,yu.y+=C.y)}else{var ai=C.getBoundingRect().clone();ai.applyTransform(C.getComputedTransform());var id=(C.style.margin||0)+2.1;ai.y-=id/2,ai.height+=id,e.push({label:C,labelLine:M,position:I,len:B,len2:G,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new q(K,tt),linePoints:pt,textAlign:Vt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ai,unconstrainedWidth:ai.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:Ht})}}),!i&&r.get("avoidLabelOverlap")&&bP(e,a,n,l,u,c,f,h);for(var g=0;g<e.length;g++){var p=e[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(A(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=p.linePoints;_||!b?(A(m.states,v),m.ignore=!0):(tw(b,p.minTurnAngle),EI(b,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new q(b[0][0],b[0][1])})}}}var TP=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new Ct;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),h=F(Bi(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Rt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Rt(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Rt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,bt(o,{shape:{endAngle:f.endAngle}},s,a))}else io(o),bt(o,{shape:h},s,a);o.useStyle(e.getItemVisual(a,"style")),ia(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Bi(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:g,y:p,shape:Bi(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:Bi(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:g,y:p}),F(_.ensureState("select"),{x:g,y:p}),$e(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;fa(i,kr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new qe,this.setTextGuideLine(v)),ew(this,rw(o),{stroke:u,opacity:On(s.get(["lineStyle","opacity"]),f,1)})}},t}(_e),CP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=new _e({shape:Sw(e,n)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var d=new TP(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var g=s.getItemGraphicEl(d);g.updateData(o,v,u),g.off("click"),l.add(g),o.setItemGraphicEl(v,g)}).remove(function(v){var d=s.getItemGraphicEl(v);nl(d,e,v)}).execute(),xP(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Xt);function Oc(r,t,e){t=V(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=xc(a,t).dimensions,i=new bc(n,r);return i.initData(a,e),i}var xw=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),AP=wt(),MP=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new xw(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Oc(this,{coordDimensions:["value"],encodeDefaulter:vt(IM,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=AP(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=X0(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){js(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ne);function DP(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(dt(o)&&!isNaN(o)&&o<0)})}}}function KB(r){r.registerChartView(CP),r.registerSeriesModel(MP),v2("pie",r.registerAction),r.registerLayout(vt(SP,"pie")),r.registerProcessor(ww("pie")),r.registerProcessor(DP("pie"))}var LP=function(r){O(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,a){return fu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ne),Tw=4,IP=function(){function r(){}return r}(),PP=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new IP},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Tw,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<n.length;){var c=n[h++],v=n[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,h=i[f]-s/2,c=i[f+1]-l/2;if(e>=h&&a>=c&&e<=h+s&&a<=c+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<n.length;){var v=n[c++],d=n[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),h=Math.max(d,h)}e=this._rect=new et(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(st),RP=function(){function r(){this.group=new ot}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new PP({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=ce(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Tw;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=at(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),EP=function(r){O(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,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=kc("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new RP:new lw,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Xt),kP=function(r){O(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}(ht),tv=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Nt).models[0]},t.type="cartesian2dAxis",t}(ht);de(tv,Ic);var Cw={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)"]}}},OP=nt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Cw),Nc=nt({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}}},Cw),NP=nt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Nc),BP=Z({logBase:10},Nc);const Aw={category:OP,value:Nc,time:NP,log:BP};var FP={value:1,category:1,time:1,log:1};function Tl(r,t,e,a){A(FP,function(n,i){var o=nt(nt({},Aw[i],!0),a,!0),s=function(l){O(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=lo(this),v=c?Do(f):{},d=h.getTheme();nt(f,d.get(i+"Axis")),nt(f,this.getDefaultOption()),f.type=fy(f),c&&Zn(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=qh.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."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",fy)}function fy(r){return r.type||(r.data?"category":"value")}var GP=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 z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(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}(),ev=["x","y"];function hy(r){return r.type==="interval"||r.type==="time"}var zP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ev,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!hy(e)||!hy(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-i[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=sn([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.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,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new et(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Bt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return Bt(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new et(i,o,s,l)},t}(GP),VP=function(r){O(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"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 a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ha);function rv(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}i.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ta(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function vy(r){return r.get("coordinateSystem")==="cartesian2d"}function cy(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Nt).models[0];t[a]=i}),t}var Ef=Math.log;function Mw(r,t,e){var a=sa.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=VS(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Ef(r.base);u=[Ef(u[0])/c,Ef(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=a.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=a.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=bf(d),p=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=bf(d),g=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=bf(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=Lt(p-m),g<0&&u[0]>=0?(g=0,p=Lt(m)):p>0&&u[1]<=0&&(p=0,g=-Lt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,g+d*_,p+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,g+d,p-d)}var HP=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ev,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=mt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,g=v.scale;Kh(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(_l(g,d),Kh(g)&&(s=v))}f.length&&(s||(s=f.pop(),_l(s.scale,s.model)),A(f,function(p){Mw(p.scale,p.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){dy(a,"y",o,i)}),A(a.y,function(o){dy(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=hr(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=lI(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),WP(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}X(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Nt).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Nt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ut(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.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,a){var n=this,i=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,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,g=new zP(d);g.master=n,g.model=t,n._coordsMap[d]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function u(f){return function(h,c){if(kf(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new VP(f,HS(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=i,d.index=c,i._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(vy(n)){var i=cy(n),o=i.xAxisModel,s=i.yAxisModel;if(!kf(o,e)||!kf(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");a(u,f),a(u,h)}},this);function a(n,i){A(Sl(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return A(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ut(e,i)<0&&e.push(i),ut(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){if(vy(n)){var i=cy(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=ev,r}();function kf(r,t){return r.getCoordSysModel()===t}function dy(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)py(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&py(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(h){return h.dim+"_"+h.index}}function py(r){return r&&r.type!=="category"&&r.type!=="time"&&sI(r)}function WP(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}var Kr=Math.PI,me=function(){function r(t,e){this.group=new ot,this.opt=e,this.axisModel=t,Z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new ot({x:e.position[0],y:e.position[1],rotation:e.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(t){return!!gy[t]},r.prototype.add=function(t){gy[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,a){var n=$0(e-t),i,o;return Js(n)?(o=a>0?"top":"bottom",i="center"):Js(n-Kr)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Kr?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,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}(),gy={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Bt(s,s,o),Bt(l,l,o));var f=F({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new te({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});oo(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||dt(v))&&(v=[v,v]);var d=lu(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{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(c[m]!=="none"&&c[m]!=null){var _=ce(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,a){var n=ZP(e,a,t,r),i=$P(e,a,t,r);if(YP(t,i,n),XP(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=aw(z(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ow(o)}},axisName:function(r,t,e,a){var n=ta(r.axisName,t.get("name"));if(n){var i=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=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,my(i)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*Kr/180);var d;my(i)?c=me.innerTextLayout(r.rotation,v??r.rotation,o):(c=UP(r.rotation,i,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=ta(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ct({x:h[0],y:h[1],rotation:c.rotation,silent:me.isLabelSilent(t),style:fe(s,{text:n,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Co({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=me.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,at(_).eventData=S}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function UP(r,t,e,a){var n=$0(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Js(n-Kr/2)?(o=l?"bottom":"top",i="center"):Js(n-Kr*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Kr*1.5&&n>Kr/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function YP(r,t,e){if(!WS(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=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],c=e[e.length-2];a===!1?(be(i),be(u)):yy(i,o)&&(a?(be(o),be(f)):(be(i),be(u))),n===!1?(be(s),be(h)):yy(l,s)&&(n?(be(l),be(c)):(be(s),be(h)))}}function be(r){r&&(r.ignore=!0)}function yy(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=So([]);return Qn(n,n,-r.rotation),e.applyTransform(sr([],n,r.getLocalTransform())),a.applyTransform(sr([],n,t.getLocalTransform())),e.intersect(a)}}function my(r){return r==="middle"||r==="center"}function Dw(r,t,e,a,n){for(var i=[],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&&(Bt(o,o,t),Bt(s,s,t));var f=new te({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});oo(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f)}return i}function ZP(r,t,e,a){var n=e.axis,i=e.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),u=n.getTicksCoords(),f=Dw(u,t.transform,l,Z(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function XP(r,t,e,a){var n=e.axis,i=e.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=Z(s.getLineStyle(),Z(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Dw(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function $P(r,t,e,a){var n=e.axis,i=ta(a.axisLabelShow,e.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(ta(a.labelRotate,o.get("rotate"))||0)*Kr/180,f=me.innerTextLayout(a.rotation,u,a.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=me.isLabelSilent(e),d=e.get("triggerEvent");return A(l,function(g,p){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,S=o;if(h&&h[y]){var b=h[y];X(b)&&b.textStyle&&(S=new Pt(b.textStyle,o,e.ecModel))}var w=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),x=n.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,C=rt(S.getShallow("alignMinLabel",!0),T),M=rt(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,L=rt(S.getShallow("verticalAlignMinLabel",!0),D),I=rt(S.getShallow("verticalAlignMaxLabel",!0),D),P=new Ct({x,y:a.labelOffset+a.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:fe(S,{text:m,align:p===0?C:p===l.length-1?M:T,verticalAlign:p===0?L:p===l.length-1?I:D,fill:$(w)?w(n.type==="category"?_:n.type==="value"?y+"":y,p):w})});if(P.anid="label_"+y,d){var R=me.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=p,n.type==="category"&&(R.dataIndex=y),at(P).eventData=R}t.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}function qP(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return KP(e,r,t),e.seriesInvolved&&JP(e,r),e}function KP(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=po(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",a);if(A(s.getAxes(),vt(g,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,vt(g,v?"cross":!0,c)),v&&A(d.otherAxes,vt(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!p&&!av(_))){y==null&&(y=_.get("triggerTooltip")),_=p?QP(m,h,n,t,p,y):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=po(m.model),T=y||b||m.type==="category",C=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:b,useHandle:av(_),seriesModels:[],linkGroup:null};u[x]=C,r.seriesInvolved=r.seriesInvolved||T;var M=jP(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function QP(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=j(o.get(c))}),l.snap=r.type!=="category"&&!!i,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,!i){var h=l.lineStyle=o.get("crossStyle");h&&Z(u,h.textStyle)}}return r.model.getModel("axisPointer",new Pt(l,e,a))}function JP(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[po(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function jP(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Of(i[a+"AxisId"],e.id)||Of(i[a+"AxisIndex"],e.componentIndex)||Of(i[a+"AxisName"],e.name))return n}}function Of(r,t){return r==="all"||V(r)&&ut(r,t)>=0||r===t}function tR(r){var t=Bc(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=av(e);i==null&&(n.status=s?"show":"hide");var l=a.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 Bc(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[po(r)]}function eR(r){var t=Bc(r);return t&&t.axisPointerModel}function av(r){return!!r.get(["handle","show"])}function po(r){return r.type+"||"+r.id}var _y={},Io=function(r){O(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,a,n,i){this.axisPointerClass&&tR(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=eR(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){_y[e]=a},t.getAxisPointerClass=function(e){return e&&_y[e]},t.type="axis",t}(zt),nv=wt();function rR(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,h=nv(r).splitAreaColors,c=U(),v=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=V(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;n.isHorizontal()?(_=p,S=l.y,b=m-_,w=l.height,p=_+b):(_=l.x,S=p,b=l.width,w=m-S,p=S+w);var x=u[d-1].tickValue;x!=null&&c.set(x,v),t.add(new _t({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:b,height:w},style:Z({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}nv(r).splitAreaColors=c}}}function aR(r){nv(r).splitAreaColors=null}var nR=["axisLine","axisTickLabel","axisName"],iR=["splitArea","splitLine","minorSplitLine"],Lw=function(r){O(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,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=rv(s,e),u=new me(e,F({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Kh(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(nR,u.add,u),this._axisGroup.add(u.getGroup()),A(iR,function(h){e.get([h,"show"])&&oR[h](this,this._axisGroup,e,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||rc(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){aR(this)},t.type="cartesianAxis",t}(Io),oR={splitLine:function(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=V(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:i}),c=[],v=[],d=o.getLineStyle(),g=0;g<h.length;g++){var p=n.toGlobalCoord(h[g].coord);u?(c[0]=p,c[1]=l.y,v[0]=p,v[1]=l.y+l.height):(c[0]=l.x,c[1]=p,v[0]=l.x+l.width,v[1]=p);var y=f++%s.length,m=h[g].tickValue,_=new te({anid:m!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Z({stroke:s[y]},d),silent:!0});oo(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,a){var n=e.axis,i=e.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=n.toGlobalCoord(u[v][d].coord);l?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var p=new te({anid:"minor_line_"+u[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});oo(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,a){rR(r,t,e,a)}},Iw=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(Lw),sR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Iw.type,e}return t.type="yAxis",t}(Lw),lR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new _t({shape:e.coordinateSystem.getRect(),style:Z({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(zt),Sy={offset:0};function Pw(r){r.registerComponentView(lR),r.registerComponentModel(kP),r.registerCoordinateSystem("cartesian2d",HP),Tl(r,"x",tv,Sy),Tl(r,"y",tv,Sy),r.registerComponentView(Iw),r.registerComponentView(sR),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function QB(r){Se(Pw),r.registerSeriesModel(LP),r.registerChartView(EP),r.registerLayout(kc("scatter"))}function uR(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=wy(f)?f:by(n)})}),e.each(function(o){var s=d0(a[o],function(l){return wy(l)})||by(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function wy(r){return!isNaN(r[0])&&!isNaN(r[1])}function by(r){return[r.cx,r.cy]}function fR(r){var t=r.polar;if(t){V(t)||(t=[t]);var e=[];A(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],V(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var hR=function(r){O(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,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(c,v){var d=c.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var g=su(c.getItemVisual(v,"symbolSize")),p=ce(d,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return p.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),p}}function f(c,v,d,g,p,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(g,p);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),$l[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,p)):_.setPosition(v[m]),d.add(_))}}function h(c){return z(c,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var d=new Er,g=new qe,p={shape:{points:v}};d.shape.points=h(v),g.shape.points=h(v),Rt(d,p,e,c),Rt(g,p,e,c);var y=new ot,m=new ot;y.add(g),y.add(d),y.add(m),f(g.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var d=l.getItemGraphicEl(v),g=d.childAt(0),p=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(g.shape.points,m.shape.points,y,s,c,!1),io(p),io(g),bt(g,m,e),bt(p,m,e),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var d=s.getItemModel(v),g=c.childAt(0),p=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),g.useStyle(Z(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ia(g,d,"lineStyle"),ia(p,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();p.ignore=b,A(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();p.ensureState(T).ignore=M&&b}),p.useStyle(Z(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var w=d.getModel("emphasis"),x=w.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof vr){var C=T.style;T.useStyle(F({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var M=T.ensureState("emphasis");M.style=j(x);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(D==null||isNaN(D))&&(D=""),fa(T,kr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),$e(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Xt),vR=function(r){O(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.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new xw(Q(this.getData,this),Q(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Oc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Z1(this,e);return oa("section",{header:u,sortBlocks:!0,blocks:z(s,function(h){var c=i.get(i.mapDimension(h.dim),e);return oa("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(z(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(ne),xi=Aw.value;function ms(r,t){return Z({show:t},r)}var cR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var g=l;d.color!=null&&(g=Z({color:d.color},l));var p=nt(j(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:c},!1);if(H(f)){var y=p.name;p.name=f.replace("{value}",y??"")}else $(f)&&(p.name=f(p.name,p));var m=new Pt(p,null,this.ecModel);return de(m,Ic.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:nt({lineStyle:{color:"#bbb"}},xi.axisLine),axisLabel:ms(xi.axisLabel,!1),axisTick:ms(xi.axisTick,!1),splitLine:ms(xi.splitLine,!0),splitArea:ms(xi.splitArea,!0),indicator:[]},t}(ht),dR=["axisLine","axisTickLabel","axisName"],pR=function(r){O(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,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=z(n,function(o){var s=o.model.get("showName")?o.name:"",l=new me(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(i,function(o){A(dR,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),d=V(c)?c:[c],g=V(v)?v:[v],p=[],y=[];function m(R,E,N){var k=N%E.length;return R[k]=R[k]||[],k}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,w=0;w<_.length;w++){if(f){var x=m(p,d,w);p[x].push(new Jn({shape:{cx:S,cy:b,r:_[w].coord}}))}if(h&&w<_.length-1){var x=m(y,g,w);y[x].push(new Ul({shape:{cx:S,cy:b,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var T,C=z(n,function(R,E){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),z(N,function(k){return a.coordToPoint(k.coord,E)})}),M=[],w=0;w<=T;w++){for(var D=[],L=0;L<n.length;L++)D.push(C[L][w]);if(D[0]&&D.push(D[0].slice()),f){var x=m(p,d,w);p[x].push(new qe({shape:{points:D}}))}if(h&&M){var x=m(y,g,w-1);y[x].push(new Er({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(R,E){this.group.add(We(R,{style:Z({stroke:"none",fill:g[E%g.length]},P),silent:!0}))},this),A(p,function(R,E){this.group.add(We(R,{style:Z({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},t.type="radar",t}(zt),gR=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(ha),yR=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new gR(o,new sa);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(i-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight(),o=Math.min(n,i)/2;this.cx=Y(a[0],n),this.cy=Y(a[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(H(s)||dt(s))&&(s=[0,s]),this.r0=Y(s[0],o),this.r=Y(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;A(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();A(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new sa;o.setExtent(0,i),o.setInterval(1),A(a,function(s,l){Mw(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();function mR(r){r.registerCoordinateSystem("radar",yR),r.registerComponentModel(cR),r.registerComponentView(pR),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function JB(r){Se(mR),r.registerChartView(hR),r.registerSeriesModel(vR),r.registerLayout(uR),r.registerProcessor(ww("radar")),r.registerPreprocessor(fR)}var xy="\0_ec_interaction_mutex";function _R(r,t,e){var a=Fc(r);a[t]=e}function SR(r,t,e){var a=Fc(r),n=a[t];n===e&&(a[t]=null)}function Ty(r,t){return!!Fc(r)[t]}function Fc(r){return r[xy]||(r[xy]={})}dr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Zt);var Rw=function(r){O(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Q(a._mousedownHandler,a),i=Q(a._mousemoveHandler,a),o=Q(a._mouseupHandler,a),s=Q(a._mousewheelHandler,a),l=Q(a._pinchHandler,a);return a.enable=function(u,f){this.disable(),this._opt=Z(j(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",i),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},a.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},a}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(!fd(e)){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!zs("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Ty(this._zr,"globalPan"))){var a=e.offsetX,n=e.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&Wn(e.event),Ew(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){fd(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var a=zs("zoomOnMouseWheel",e,this._opt),n=zs("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Nf(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),c=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Nf(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Ty(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;Nf(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ee);function Nf(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Wn(a.event),Ew(r,t,e,a,n))}function Ew(r,t,e,a,n){n.isAvailableBehavior=Q(zs,null,e,a),r.trigger(t,n)}function zs(r,t,e){var a=e[r];return!r||a&&(!H(a)||t.event[a+"Key"])}function wR(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function bR(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var xR={axisPointer:1,tooltip:1,brush:1};function kw(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!xR.hasOwnProperty(a.mainType)&&n&&n.model!==e}function Ow(r){if(H(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Bf,Cl={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Cy=mt(Cl),Al={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Ay=mt(Al),TR=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=Ow(t);this._defsUsePending=[];var n=new ot;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),pe(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;MR(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=du(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(h=Bw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=n;n=new ot,n.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new _t({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Bf[s];if(f&&re(Bf,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),s==="g"&&(u=c)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var v=My[s];if(v&&re(My,s)){var d=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=d)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,a,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},r.prototype._parseText=function(t,e){var a=new no({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xe(e,a),pe(t,a,this._defsUsePending,!1,!1),CR(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){Bf={g:function(t,e){var a=new ot;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new _t;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new Jn;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new te;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new qv;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Iy(a));var i=new Er({shape:{points:n||[]},silent:!0});return xe(e,i),pe(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Iy(a));var i=new qe({shape:{points:n||[]},silent:!0});return xe(e,i),pe(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new vr;return xe(e,a),pe(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ot;return xe(e,s),pe(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ot;return xe(e,s),pe(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=R_(a);return xe(e,n),pe(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),My={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Jv(t,e,a,n);return Dy(r,i),Ly(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Z_(t,e,a);return Dy(r,n),Ly(r,n),n}};function Dy(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Ly(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};Nw(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function xe(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Z(t.__inheritedStyle,r.__inheritedStyle))}function Iy(r){for(var t=du(r),e=[],a=0;a<t.length;a+=2){var n=parseFloat(t[a]),i=parseFloat(t[a+1]);e.push([n,i])}return e}function pe(r,t,e,a,n){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(IR(r,t),Nw(r,o,s),a||PR(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Py(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=Py(i,"stroke",o.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=z(du(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function CR(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var AR=/^url\(\s*#(.*?)\)/;function Py(r,t,e,a){var n=e&&e.match(AR);if(n){var i=Pe(n[1]);a.push([r,t,i]);return}return e==="none"&&(e=null),e}function MR(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var DR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function du(r){return r.match(DR)||[]}var LR=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ff=Math.PI/180;function IR(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],n=null;e.replace(LR,function(h,c,v){return a.push(c,v),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=du(o);switch(n=n||Ye(),s){case"translate":Un(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":kv(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qn(n,n,-parseFloat(l[0])*Ff,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ff);sr(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Ff);sr(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Ry=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nw(r,t,e){var a=r.getAttribute("style");if(a){Ry.lastIndex=0;for(var n;(n=Ry.exec(a))!=null;){var i=n[1],o=re(Cl,i)?Cl[i]:null;o&&(t[o]=n[2]);var s=re(Al,i)?Al[i]:null;s&&(e[s]=n[2])}}}function PR(r,t,e){for(var a=0;a<Cy.length;a++){var n=Cy[a],i=r.getAttribute(n);i!=null&&(t[Cl[n]]=i)}for(var a=0;a<Ay.length;a++){var n=Ay[a],i=r.getAttribute(n);i!=null&&(e[Al[n]]=i)}}function Bw(r,t){var e=t.width/r.width,a=t.height/r.height,n=Math.min(e,a);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function RR(r,t){var e=new TR;return e.parse(r,t)}var ER=U(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),kR=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=U(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Ow(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=NR(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&RR(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,Re(a!=null)}catch(p){throw new Error(`Invalid svg format
`+p.message)}var n=new ot;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=a.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new et(u,f,h,c)}if(s){var d=Bw(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new _t({shape:l.plain()}));var g=[];return A(e.named,function(p){ER.get(p.svgNodeTagLower)!=null&&(g.push(p),OR(p.el))}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function OR(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function NR(r){var t=[],e=U();return A(r,function(a){if(a.namedFrom==null){var n=new pI(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var iv=[126,25],Ey="南海诸岛",Na=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ea=0;Ea<Na.length;Ea++)for(var xn=0;xn<Na[Ea].length;xn++)Na[Ea][xn][0]/=10.5,Na[Ea][xn][1]/=-10.5/.75,Na[Ea][xn][0]+=iv[0],Na[Ea][xn][1]+=iv[1];function BR(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Ey)return;t.push(new YS(Ey,z(Na,function(a){return{type:"polygon",exterior:a}}),iv))}}var FR={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function GR(r,t){if(r==="china"){var e=FR[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var zR=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function VR(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:zR[0]})}var HR="name",WR=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=U(),this._mapName=t,this._specialAreas=a,this._geoJSON=YR(e)}return r.prototype.load=function(t,e){e=e||HR;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:UR(n)})}var i=U(),o=[];return A(a.regions,function(s){var l=s.name;t&&re(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new et(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?yI(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return BR(e,n),A(n,function(i){var o=i.name;GR(e,i),VR(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function UR(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function YR(r){return H(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ti=U();const la={registerMap:function(r,t,e){if(t.svg){var a=new kR(r,t.svg);Ti.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new WR(r,n,e);Ti.set(r,a)}},getGeoResource:function(r){return Ti.get(r)},getMapForUser:function(r){var t=Ti.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ti.get(r);if(a)return a.load(t,e)}};var Gc=["rect","circle","line","ellipse","polygon","polyline","path"],ZR=U(Gc),XR=U(Gc.concat(["g"])),$R=U(Gc.concat(["g"])),Fw=wt();function _s(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function ky(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var qR=function(){function r(t){var e=new ot;this.uid=ti("ec_map_draw"),this._controller=new Rw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new ot),e.add(this._svgGroup=new ot)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,d=!u.childAt(0)||i;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):bt(f,v,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,p={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=U(),a=U(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function h(v){for(var d=[],g=!u&&l&&l.project,p=0;p<v.length;++p){var y=f(v[p],g);y&&d.push(y)}return d}function c(v){return{shape:{points:h(v)}}}n.removeAll(),A(t.geo.regions,function(v){var d=v.name,g=e.get(d),p=a.get(d)||{},y=p.dataIdx,m=p.regionModel;g||(g=e.set(d,new ot),n.add(g),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];A(v.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=zy(T,u)),A(T,function(M){_.push(new Er(c(M)))})}else{var C=x.points;u&&(C=zy(C,u,!0)),A(C,function(M){S.push(new qe(c(M)))})}});var b=f(v.getCenter(),l&&l.project);function w(x,T){if(x.length){var C=new U_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});g.add(C),Oy(t,C,y,m),Ny(t,C,d,m,o,y,b),T&&(ky(C),A(C.states,ky))}}w(_),w(S,!0)}),e.each(function(v,d){var g=a.get(d),p=g.dataIdx,y=g.regionModel;By(t,v,d,y,o,p),Fy(t,v,d,y,o),Gy(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=U(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(ZR.get(f)!=null&&h instanceof na&&Oy(t,h,c,v),h instanceof na&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&($R.get(f)!=null&&Ny(t,h,s,v,l,c,null),By(t,h,s,v,l,c),Fy(t,h,s,v,l),XR.get(f)!=null)){var d=Gy(t,h,s,v,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Zv(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=la.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=la.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a){var n=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,wR(o,u.dx,u.dy),a.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,bR(o,u.scale,u.originX,u.originY),a.dispatchAction(F(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,h){return n.containPoint([f,h])&&!kw(u,a,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Fw(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function Oy(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=_s(n),u=_s(i),f=_s(s),h=_s(o),c=r.data;if(c){var v=c.getItemVisual(e,"style"),d=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=dl(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Zv(t)}function Ny(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var h=l?e:i,c=void 0;(!s||i>=0)&&(c=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;fa(t,kr(a),{labelFetcher:c,labelDataIndex:h,defaultText:e},v);var d=t.getTextContent();if(d&&(Fw(d).ignore=d.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function By(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):at(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Fy(r,t,e,a,n){r.data||Co({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Gy(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return $e(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&cA(t,n,e),o}function zy(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),a}var Vy=Bt,Gw=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Cr,a._rawTransformable=new Cr,a.name=e,a}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new et(e,a,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new et(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new et(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,a){e&&(this._center=[Y(e[0],a.getWidth()),Y(e[1],a.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var a=this.zoomLimit;a&&(a.max!=null&&(e=Math.min(a.max,e)),a.min!=null&&(e=Math.max(a.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Bt([],i,e),n=Bt([],n,e),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),Nl(this.transform||(this.transform=[]),a.transform||Ye()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],sn(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Cr;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Vy(n,e,i):S0(n,e)},t.prototype.pointToData=function(e){var a=this.invTransform;return a?Vy([],e,a):[e[0],e[1]]},t.prototype.convertToPixel=function(e,a,n){var i=Hy(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Hy(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Cr);function Hy(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var KR={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zw=["lng","lat"],Vw=function(r){O(t,r);function t(e,a,n){var i=r.call(this,e)||this;i.dimensions=zw,i.type="geo",i._nameCoordMap=U(),i.map=a;var o=n.projection,s=la.load(a,n.nameMap,n.nameProperty),l=la.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=KR[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var v=u[c].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:rt(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new et(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(H(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e){var a=this.projection;return a&&(e=a.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=Wy(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Wy(a);return i===this?i.pointToData(n):null},t}(Gw);de(Vw,Gw);function Wy(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Nt).models[0]||{}).coordinateSystem:null}const Uy=Vw;function Yy(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(w,x,T,C){for(var M=T-w,D=C-x,L=0;L<=100;L++){var I=L/100,P=i.project([w+M*I,x+D*I]);xr(a,a,P),Tr(n,n,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),g=t.getHeight(),p=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[Y(c[0],d),Y(c[1],g)],_=Y(v,Math.min(d,g)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},p>1?(S.width=_,S.height=_/p):(S.height=_,S.width=_*p),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=p,S=hr(b,{width:d,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function QR(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var JR=function(){function r(){this.dimensions=zw}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Uy(l+s,l,F({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=Yy,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=z(o,function(f){return f.get("nameMap")}),u=new Uy(s,s,F({nameMap:Mv(l)},n(o[0])));u.zoomLimit=ta.apply(null,z(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=Yy,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,QR(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=U(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=la.load(e,a,n);return A(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),Hw=new JR,jR=function(r){O(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,a,n){var i=la.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),js(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=Hw.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=ur(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Pt(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},U()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Pt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if($(i))return o.status=a,i(o);if(H(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ht);function Zy(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function tE(r,t,e,a){var n=r.getZoom(),i=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Zy(r,s),a)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(Zy(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var eE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new qR(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;En(e.target,function(n){return(a=at(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=at(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(zt);function rE(r,t,e){la.registerMap(r,t,e)}function jB(r){r.registerCoordinateSystem("geo",Hw),r.registerComponentModel(jR),r.registerComponentView(eE),r.registerImpl("registerMap",rE),r.registerImpl("getMap",function(e){return la.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;A(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];A(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType||"series";a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=tE(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}var Xy=te.prototype,Gf=Kv.prototype,Ww=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ww);function zf(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var aE=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ww},t.prototype.buildPath=function(e,a){zf(a)?Xy.buildPath.call(this,e,a):Gf.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return zf(this.shape)?Xy.pointAt.call(this,e):Gf.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=zf(a)?[a.x2-a.x1,a.y2-a.y1]:Gf.tangentAt.call(this,e);return Ol(n,n)},t}(st),Vf=["fromSymbol","toSymbol"];function $y(r){return"_"+r+"Type"}function qy(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=su(n),u=lu(o||0,l);return a+l+u+(i||"")+(s||"")}function Ky(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=su(n),u=lu(o||0,l),f=ce(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function nE(r){var t=new aE({name:"line",subPixelOptimize:!0});return ov(t.shape,r),t}function ov(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var zc=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=nE(o);s.shape.percent=0,Rt(s,{shape:{percent:1}},i,a),this.add(s),A(Vf,function(l){var u=Ky(l,e,a);this.add(u),this[$y(l)]=qy(l,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};ov(l.shape,s),bt(o,l,i,a),A(Vf,function(u){var f=qy(u,e,a),h=$y(u);if(this[h]!==f){this.remove(this.childOfName(u));var c=Ky(u,e,a);this.add(c)}this[h]=f},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,c=n&&n.focus,v=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(a),g=d.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),c=g.get("focus"),v=g.get("blurScope"),f=kr(d)}var p=e.getItemVisual(a,"style"),y=p.stroke;o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(Vf,function(w){var x=this.childOfName(w);if(x){x.setColor(y),x.style.opacity=p.opacity;for(var T=0;T<ve.length;T++){var C=ve[T],M=o.getState(C);if(M){var D=M.style||{},L=x.ensureState(C),I=L.style||(L.style={});D.stroke!=null&&(I[x.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(I.opacity=D.opacity)}}x.markRedraw()}},this);var m=i.getRawValue(a);fa(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(w,x){return i.getFormattedLabel(w,x,e.dataType)}},inheritColor:y||"#000",defaultOpacity:p.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?Lt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");V(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),$e(this,c,v,h)},t.prototype.highlight=function(){ja(this)},t.prototype.downplay=function(){tn(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");ov(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),c=Iv([],h,f);Ol(c,c);function v(M,D){var L=M.__specifiedRotation;if(L==null){var I=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",L)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(h),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,g=void 0,p=i.__labelDistance,y=p[0]*o,m=p[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],w=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var x=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,g="top";break;default:C=0,g="middle"}switch(i.__position){case"end":i.x=c[0]*y+h[0],i.y=c[1]*m+h[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",g=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",g=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*x+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*x,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*x+h[0],i.y=h[1]+C,d=S[0]>=0?"right":"left",i.originX=y*x,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||d})}},t}(ot),iE=function(){function r(t){this.group=new ot,this._LineCtor=t||zc}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Qy(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Qy(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!oE(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Hf(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Ao(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(Hf(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!Hf(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function oE(r){return r.animators&&r.animators.length>0}function Qy(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:kr(t)}}function Jy(r){return isNaN(r[0])||isNaN(r[1])}function Hf(r){return r&&!Jy(r[0])&&!Jy(r[1])}var sE=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),lE=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new sE},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(st);function uE(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=Y(e[0],t.getWidth()),s=Y(e[1],t.getHeight()),l=Y(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ss(r,t){var e=r==null?"":r+"";return t&&(H(t)?e=t.replace("{value}",e):$(t)&&(e=t(r))),e}var fE=function(r){O(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,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=uE(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),c=h.get("roundCap"),v=c?xl:_e,d=h.get("show"),g=h.getModel("lineStyle"),p=g.get("width"),y=[u,f];Hv(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var w=Math.min(Math.max(i[b][0],0),1);f=u+m*w;var x=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});x.setStyle({fill:i[b][1]}),x.setStyle(g.getLineStyle(["color","width"])),S.push(x),_=f}S.reverse(),A(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=C&&(M===0?0:i[M-1][0])<C)return i[M][1];return i[M-1][1]};this._renderTicks(e,a,n,T,o,u,f,l,p),this._renderTitleAndDetail(e,a,n,T,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,T,o,u,f,l,p)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,f){for(var h=this.group,c=o.cx,v=o.cy,d=o.r,g=+e.get("min"),p=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),b=m.get("splitNumber"),w=Y(y.get("length"),d),x=Y(m.get("length"),d),T=s,C=(l-s)/S,M=C/b,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var N=I?I+f:f,k=new te({shape:{x1:P*(d-N)+c,y1:R*(d-N)+v,x2:P*(d-w-N)+c,y2:R*(d-w-N)+v},style:D,silent:!0});D.stroke==="auto"&&k.setStyle({stroke:i(E/S)}),h.add(k)}if(_.get("show")){var N=_.get("distance")+I,B=Ss(Lt(E/S*(p-g)+g),_.get("formatter")),G=i(E/S),W=P*(d-w-N)+c,K=R*(d-w-N)+v,tt=_.get("rotate"),it=0;tt==="radial"?(it=-T+2*Math.PI,it>Math.PI/2&&(it+=Math.PI)):tt==="tangential"?it=-T-Math.PI/2:dt(tt)&&(it=tt*Math.PI/180),it===0?h.add(new Ct({style:fe(_,{text:B,x:W,y:K,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):h.add(new Ct({style:fe(_,{text:B,x:W,y:K,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:W,originY:K,rotation:it}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var St=0;St<=b;St++){P=Math.cos(T),R=Math.sin(T);var pt=new te({shape:{x1:P*(d-N)+c,y1:R*(d-N)+v,x2:P*(d-x-N)+c,y2:R*(d-x-N)+v},silent:!0,style:L});L.stroke==="auto"&&pt.setStyle({stroke:i((E+St/b)/S)}),h.add(pt),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var h=this.group,c=this._data,v=this._progressEls,d=[],g=e.get(["pointer","show"]),p=e.getModel("progress"),y=p.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),b=+e.get("max"),w=[S,b],x=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=Y(I.get("width"),o.r),R=Y(I.get("length"),o.r),E=e.get(["pointer","icon"]),N=I.get("offsetCenter"),k=Y(N[0],o.r),B=Y(N[1],o.r),G=I.get("keepAspect"),W;return E?W=ce(E,k-P/2,B-R,P,R,null,G):W=new lE({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:B}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=p.get("roundCap"),I=L?xl:_e,P=p.get("overlap"),R=P?p.get("width"):f/m.count(),E=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(k.z2=b-m.get(_,M)%b),k}(y||g)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(g){var L=T(M,s);Rt(L,{rotation:-((isNaN(+D)?x[0]:At(D,w,x,!0))+Math.PI/2)},e),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=p.get("clip");Rt(I,{shape:{endAngle:At(D,w,x,P)}},e),h.add(I),Dh(e.seriesIndex,m.dataType,M,I),d[M]=I}}).update(function(M,D){var L=m.get(_,M);if(g){var I=c.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,bt(R,{rotation:-((isNaN(+L)?x[0]:At(L,w,x,!0))+Math.PI/2)},e),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=v[D],N=E?E.shape.endAngle:s,k=C(M,N),B=p.get("clip");bt(k,{shape:{endAngle:At(L,w,x,B)}},e),h.add(k),Dh(e.seriesIndex,m.dataType,M,k),d[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(g){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),k=N.fill;if(E instanceof vr){var B=E.style;E.useStyle(F({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),E.type!=="pointer"&&E.setColor(k);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",i(At(m.get(_,M),w,[0,1],!0))),E.z2EmphasisLift=0,ia(E,D),$e(E,I,P,R)}if(y){var G=d[M];G.useStyle(m.getItemVisual(M,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,ia(G,D),$e(G,I,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=ce(s,a.cx-o/2+Y(l[0],a.r),a.cy-o/2+Y(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),h=+e.get("max"),c=new ot,v=[],d=[],g=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Ct({silent:!0}),d[y]=new Ct({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ot,b=i(At(_,[f,h],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var x=w.get("offsetCenter"),T=o.cx+Y(x[0],o.r),C=o.cy+Y(x[1],o.r),M=v[y];M.attr({z2:p?0:2,style:fe(w,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+Y(L[0],o.r),P=o.cy+Y(L[1],o.r),R=Y(D.get("width"),o.r),E=Y(D.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],k=D.get("formatter");M.attr({z2:p?0:2,style:fe(D,{x:I,y:P,text:Ss(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),e1(M,{normal:D},_,function(G){return Ss(G,k)}),g&&r1(M,y,l,e,{getFormattedLabel:function(G,W,K,tt,it,St){return Ss(St?St.interpolatedValue:_,k)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Xt),hE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Oc(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ne);function t5(r){r.registerChartView(fE),r.registerSeriesModel(hE)}function Po(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Tn(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Tn(s,[0,o]),n=i=Tn(s,[n,i]),a=0}t[0]=Tn(t[0],e),t[1]=Tn(t[1],e);var l=Wf(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Tn(t[a],f);var h;return h=Wf(t,a),n!=null&&(h.sign!==l.sign||h.span<n)&&(t[1-a]=t[a]+l.sign*n),h=Wf(t,a),i!=null&&h.span>i&&(t[1-a]=t[a]+h.sign*i),t}function Wf(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 Tn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var an=!0,go=Math.min,$n=Math.max,vE=Math.pow,cE=1e4,dE=6,pE=6,jy="globalPan",gE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},yE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},tm={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},mE=0,_E=function(r){O(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new ot,a._uid="brushController_"+mE++,A(AE,function(n,i){this._handlers[i]=Q(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||_R(a,jy,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=nt(j(tm),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;SR(e,jy,this._uid),A(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};A(e,function(n){a[n.panelId]=j(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(c){return nt(j(tm),c,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new vo(n,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:a+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&n[v]===s)i[c]=n[v];else{var g=i[c]=v!=null?(n[v].__brushOption=d,n[v]):Yw(o,Uw(o,d));Vc(o,g)}}function h(c){n[c]!==s&&o.group.remove(n[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),sv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ee);function Uw(r,t){var e=pu[t.brushType].createCover(r,t);return e.__brushOption=t,Xw(e,t),r.group.add(e),e}function Yw(r,t){var e=Hc(t);return e.endCreating&&(e.endCreating(r,t),Xw(t,t.__brushOption)),t}function Zw(r,t){var e=t.__brushOption;Hc(t).updateCoverShape(r,t,e.range,e)}function Xw(r,t){var e=t.z;e==null&&(e=cE),r.traverse(function(a){a.z=e,a.z2=e})}function Vc(r,t){Hc(t).updateCommon(r,t),Zw(r,t)}function Hc(r){return pu[r.__brushOption.brushType]}function Wc(r,t,e){var a=r._panels;if(!a)return an;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function $w(r,t){var e=r._panels;if(!e)return an;var a=t.__brushOption.panelId;return a!=null?e[a]:an}function sv(r){var t=r._covers,e=t.length;return A(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function nn(r,t){var e=z(r._covers,function(a){var n=a.__brushOption,i=j(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function SE(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=vE(n*n+i*i,.5);return o>dE}function qw(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Kw(r,t,e,a){var n=new ot;return n.add(new _t({name:"main",style:Uc(e),silent:!0,draggable:!0,cursor:"move",drift:vt(em,r,t,n,["n","s","w","e"]),ondragend:vt(nn,t,{isEnd:!0})})),A(a,function(i){n.add(new _t({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:vt(em,r,t,n,i),ondragend:vt(nn,t,{isEnd:!0})}))}),n}function Qw(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=$n(n,pE),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],h=e[1][1],c=f-i+n/2,v=h-i+n/2,d=f-o,g=h-s,p=d+n,y=g+n;_r(r,t,"main",o,s,d,g),a.transformable&&(_r(r,t,"w",l,u,i,y),_r(r,t,"e",c,u,i,y),_r(r,t,"n",l,u,p,i),_r(r,t,"s",l,v,p,i),_r(r,t,"nw",l,u,i,i),_r(r,t,"ne",c,u,i,i),_r(r,t,"sw",l,v,i,i),_r(r,t,"se",c,v,i,i))}function lv(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Uc(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?uv(r,i[0]):bE(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?yE[s]+"-resize":null})})}function _r(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(TE(Yc(r,t,[[a,n],[a+i,n+o]])))}function Uc(r){return Z({strokeNoScale:!0},r.brushStyle)}function Jw(r,t,e,a){var n=[go(r,e),go(t,a)],i=[$n(r,e),$n(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function wE(r){return Zl(r.group)}function uv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ec(e[t],wE(r));return a[n]}function bE(r,t){var e=[uv(r,t[0]),uv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function em(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=jw(t,n,i);A(a,function(u){var f=gE[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Jw(s[0][0],s[1][0],s[0][1],s[1][1])),Vc(t,e),nn(t,{isEnd:!1})}function xE(r,t,e,a){var n=t.__brushOption.range,i=jw(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Vc(r,t),nn(r,{isEnd:!1})}function jw(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function Yc(r,t,e){var a=$w(r,t);return a&&a!==an?a.clipPath(e,r._transform):j(e)}function TE(r){var t=go(r[0][0],r[1][0]),e=go(r[0][1],r[1][1]),a=$n(r[0][0],r[1][0]),n=$n(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function CE(r,t,e){if(!(!r._brushType||ME(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=Wc(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===an||s.panelId===i.panelId)&&pu[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function fv(r){var t=r.event;t.preventDefault&&t.preventDefault()}function hv(r,t,e){return r.childOfName("main").contain(t,e)}function tb(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),SE(r)||n){if(i&&!n){o.brushMode==="single"&&sv(r);var l=j(o);l.brushType=rm(l.brushType,i),l.panelId=i===an?null:i.panelId,n=r._creatingCover=Uw(r,l),r._covers.push(n)}if(n){var u=pu[rm(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(Yc(r,n,r._track)),a&&(Yw(r,n),u.updateCommon(r,n)),Zw(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&Wc(r,t,e)&&sv(r)&&(s={isEnd:a,removeOnClick:!0});return s}function rm(r,t){return r==="auto"?t.defaultBrushType:r}var AE={mousedown:function(r){if(this._dragging)am(this,r);else if(!r.target||!r.target.draggable){fv(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Wc(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(CE(this,r,a),this._dragging){fv(r);var n=tb(this,r,a,!1);n&&nn(this,n)}},mouseup:function(r){am(this,r)}};function am(r,t){if(r._dragging){fv(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=tb(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&nn(r,i)}}function ME(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var pu={lineX:nm(0),lineY:nm(1),rect:{createCover:function(r,t){function e(a){return a}return Kw({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=qw(r);return Jw(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){Qw(r,t,e,a)},updateCommon:lv,contain:hv},polygon:{createCover:function(r,t){var e=new ot;return e.add(new qe({name:"main",style:Uc(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Er({name:"main",draggable:!0,drift:vt(xE,r,t),ondragend:vt(nn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:Yc(r,t,e)})},updateCommon:lv,contain:hv}};function nm(r){return{createCover:function(t,e){return Kw({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=qw(t),a=go(e[0][r],e[1][r]),n=$n(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=$w(t,e);if(o!==an&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),Qw(t,e,l,n)},updateCommon:lv,contain:hv}}function DE(r){return r=Zc(r),function(t){return Q_(t,r)}}function LE(r,t){return r=Zc(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function IE(r,t,e){var a=Zc(r);return function(n,i){return a.contain(i[0],i[1])&&!kw(n,t,e)}}function Zc(r){return et.create(r)}var eb=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new zc(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");V(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=ce(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),h=ta(a.get("delay"),function(v){return v/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;$(h)?c=h(n):c=h,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return br(e.__p1,e.__cp1)+br(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Gt,f=fh;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),c=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(c,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=br(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*br(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(ot),rb=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new qe({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};bt(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),f=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}i.useStyle(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,$e(this,l,u,f)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t}(ot),PE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new rb(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=br(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],c=n[l+1];e.x=h[0]*(1-f)+f*c[0],e.y=h[1]*(1-f)+f*c[1];var v=e.__t<1?c[0]-h[0]:h[0]-c[0],d=e.__t<1?c[1]-h[1]:h[1]-c[1];e.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(eb),RE=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),EE=function(r){O(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RE},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],h=n[o++],c=n[o++];if(e.moveTo(u,f),i>0){var v=(u+h)/2-(f-c)*i,d=(f+c)/2-(h-u)*i;e.quadraticCurveTo(v,d,h,c)}else e.lineTo(h,c)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var h=i[u++],c=i[u++],v=1;v<f;v++){var d=i[u++],g=i[u++];if(Zr(h,c,d,g,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var h=i[u++],c=i[u++],d=i[u++],g=i[u++];if(o>0){var p=(h+d)/2-(c-g)*o,y=(c+g)/2-(d-h)*o;if(f_(h,c,p,y,d,g,s,e,a))return l}else if(Zr(h,c,d,g,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],h=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(h,o),l=Math.max(h,l)}e=this._rect=new et(i,o,s,l)}return e},t}(st),kE=function(){function r(){this.group=new ot}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new EE({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=at(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),ab={seriesType:"lines",plan:iu(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,c=[],f=n.start;f<n.end;f++){var v=r.getLineCoords(f,o);e&&(s[h++]=v);for(var d=0;d<v;d++)c=t.dataToPoint(o[d],!1,c),s[h++]=c[0],s[h++]=c[1]}i.setLayout("linesPoints",s)}else for(var f=n.start;f<n.end;f++){var g=i.getItemModel(f),v=r.getLineCoords(f,o),p=[];if(e)for(var y=0;y<v;y++)p.push(t.dataToPoint(o[y]));else{p[0]=t.dataToPoint(o[0]),p[1]=t.dataToPoint(o[1]);var m=g.get(["lineStyle","curveness"]);+m&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*m,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*m])}i.setItemLayout(f,p)}}}}}},OE=function(r){O(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,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=e.get("clip",!0)&&dw(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=ab.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new kE:new iE(o?i?PE:rb:i?eb:zc),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Xt),NE=typeof Uint32Array>"u"?Array:Uint32Array,BE=typeof Float64Array>"u"?Array:Float64Array;function im(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=z(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Mv([n,e[0],e[1]])}))}var FE=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],im(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(im(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ws(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ws(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),dt(e[0])){for(var n=e.length,i=new NE(n),o=new BE(n),s=0,l=0,u=0,f=0;f<n;){u++;var h=e[f++];i[l++]=s+a,i[l++]=h;for(var c=0;c<h;c++){var v=e[f++],d=e[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new bc(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),oa("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ne);function ws(r){return r instanceof Array||(r=[r,r]),r}var GE={seriesType:"lines",reset:function(r){var t=ws(r.get("symbol")),e=ws(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=ws(s.getShallow("symbol",!0)),u=ws(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function e5(r){r.registerChartView(OE),r.registerSeriesModel(FE),r.registerLayout(ab),r.registerVisual(GE)}var Fa=wt(),om=j,Uf=Q,nb=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,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,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ot,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var c=vt(sm,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}um(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Bc(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Fa(t).pointerEl=new $l[i.type](om(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Fa(t).labelEl=new Ct(om(e.label));t.add(i),lm(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Fa(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Fa(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),lm(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Xl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wn(u.event)},onmousedown:Uf(this._onHandleDragMove,this,0,0),drift:Uf(this._onHandleDragMove,this),ondragend:Uf(this._onHandleDragEnd,this)}),a.add(n)),um(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");V(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ou(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){sm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Yf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Yf(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Yf(n)),Fa(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.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(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ul(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function sm(r,t,e,a){ib(Fa(e).lastProp,a)||(Fa(e).lastProp=a,t?bt(e,a,r):(e.stopAnimation(),e.attr(a)))}function ib(r,t){if(X(r)&&X(t)){var e=!0;return A(t,function(a,n){e=e&&ib(r[n],a)}),!!e}else return r===t}function lm(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Yf(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function um(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function ob(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function sb(r,t,e,a,n){var i=e.get("value"),o=lb(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Mo(s.get("padding")||0),u=s.getFont(),f=bo(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),zE(h,c,v,a);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:fe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function zE(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function lb(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Dc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?i=o.replace("{value}",i):$(o)&&(i=o(s))}return i}function ub(r,t,e){var a=Ye();return Qn(a,a,e.rotation),Un(a,a,e.position),Yn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function VE(r,t,e,a,n,i){var o=me.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),sb(t,a,n,i,{position:ub(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fb(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function HE(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function fm(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var WE=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=hm(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=ob(i),v=UE[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=rv(l.model,n);VE(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=rv(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=ub(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=hm(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(nb);function hm(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var UE={line:function(r,t,e){var a=fb([t,e[0]],[t,e[1]],vm(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:HE([t-a/2,e[0]],[a,n],vm(r))}}};function vm(r){return r.dim==="x"?0:1}var YE=function(r){O(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}(ht),Lr=wt(),ZE=A;function hb(r,t,e){if(!lt.node){var a=t.getZr();Lr(a).records||(Lr(a).records={}),XE(a,t);var n=Lr(a).records[r]||(Lr(a).records[r]={});n.handler=e}}function XE(r,t){if(Lr(r).initialized)return;Lr(r).initialized=!0,e("click",vt(cm,"click")),e("mousemove",vt(cm,"mousemove")),e("globalout",qE);function e(a,n){r.on(a,function(i){var o=KE(t);ZE(Lr(r).records,function(s){s&&n(s,i,o.dispatchAction)}),$E(o.pendings,t)})}}function $E(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function qE(r,t,e){r.handler("leave",null,e)}function cm(r,t,e,a){t.handler(r,e,a)}function KE(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function vv(r,t){if(!lt.node){var e=t.getZr(),a=(Lr(e).records||{})[r];a&&(Lr(e).records[r]=null)}}var QE=function(r){O(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,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";hb("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,a){vv("axisPointer",a)},t.prototype.dispose=function(e,a){vv("axisPointer",a)},t.type="axisPointer",t}(zt);function vb(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Ja(i,r);if(o==null||o<0||V(o))return{point:[]};var s=i.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,c=u.dim,v=h==="x"||h==="radius"?1:0,d=i.mapDimension(c),g=[];g[v]=i.get(d,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(i.getValues(z(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var dm=wt();function JE(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Vs(n)&&(n=vb({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Vs(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||Vs(n),c={},v={},d={list:[],map:{}},g={showPointer:vt(tk,v),showTooltip:vt(ek,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var w=S.axis,x=ik(u,S);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=w.pointToData(n)),T!=null&&pm(S,T,g,!1,c)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var w=v[b];if(S!==y&&w){var x=w.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,gm(S),gm(y)))),p[y.key]=x}})}),A(p,function(y,m){pm(f[m],y,g,!0,c)}),rk(v,f,c),ak(d,n,r,o),nk(f,o,e),c}}function pm(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=jE(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&F(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function jE(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,n=h,i.length=0),A(c,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:n}}function tk(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function ek(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=po(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function rk(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function ak(r,t,e,a){if(Vs(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({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 nk(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=dm(a)[n]||{},o=dm(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[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 ik(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function gm(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Vs(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xc(r){Io.registerAxisPointerClass("CartesianAxisPointer",WE),r.registerComponentModel(YE),r.registerComponentView(QE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=qP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JE)}function r5(r){Se(Pw),Se(Xc)}var ok=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),c=i.get("type");if(c&&c!=="none"){var v=ob(i),d=lk[c](s,l,h,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var g=i.get(["label","margin"]),p=sk(a,n,i,l,g);sb(e,n,i,o,p)},t}(nb);function sk(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var c=Ye();Qn(c,c,s),Un(c,c,[a.cx,a.cy]),u=Yn([o,-n],c);var v=t.getModel("axisLabel").get("rotate")||0,d=me.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var g=l[1];u=a.coordToPoint([g+n,o]);var p=a.cx,y=a.cy;f=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",h=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var lk={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:fb(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:fm(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:fm(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},uk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ht),$c=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Nt).models[0]},t.type="polarAxis",t}(ht);de($c,Ic);var fk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}($c),hk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}($c),qc=function(r){O(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(ha);qc.prototype.dataToRadius=ha.prototype.dataToCoord;qc.prototype.radiusToData=ha.prototype.coordToData;var vk=wt(),Kc=function(r){O(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=bo(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),d=vk(e.model),g=d.lastAutoInterval,p=d.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(ha);Kc.prototype.dataToAngle=ha.prototype.dataToCoord;Kc.prototype.angleToData=ha.prototype.coordToData;var cb=["radius","angle"],ck=function(){function r(t){this.dimensions=cb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new qc,this._angleAxis=new Kc,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,c=this.r0;return f<=h*h&&f>=c*c}}},r.prototype.convertToPixel=function(t,e,a){var n=ym(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=ym(e);return n===this?this.pointToData(a):null},r}();function ym(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const dk=ck;function pk(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=Y(a[0],n),r.cy=Y(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[Y(l[0],s),Y(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function gk(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(Sl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(Sl(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),_l(a.scale,a.model),_l(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function yk(r){return r.mainType==="angleAxis"}function mm(r,t){var e;if(r.type=t.get("type"),r.scale=HS(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),yk(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var mk={dimensions:cb,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new dk(n+"");i.update=gk;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");mm(o,l),mm(s,u),pk(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",Nt).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},_k=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function bs(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function xs(r){var t=r.getRadiusAxis();return t.inverse?0:1}function _m(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Sk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=z(n.getViewLabels(),function(f){f=j(f);var h=n.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});_m(u),_m(s),A(_k,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&wk[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Io),wk={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=xs(e),h=f?0:1,c,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?c=new $l[v]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new Ul({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[xs(e)],u=z(a,function(f){return new te({shape:bs(e,[l,l+s],f.coord)})});r.add(We(u,{style:Z(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[xs(e)],f=[],h=0;h<n.length;h++)for(var c=0;c<n[h].length;c++)f.push(new te({shape:bs(e,[u,u+l],n[h][c].coord)}));r.add(We(f,{style:Z(s.getModel("lineStyle").getLineStyle(),Z(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");A(o,function(h,c){var v=l,d=h.tickValue,g=i[xs(e)],p=e.coordToPoint([g+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(p[0]-y)/g<.3?"center":p[0]>y?"left":"right",S=Math.abs(p[1]-m)/g<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];X(b)&&b.textStyle&&(v=new Pt(b.textStyle,l,l.ecModel))}var w=new Ct({silent:me.isLabelSilent(t),style:fe(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(w),f){var x=me.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=h.rawLabel,at(w).eventData=x}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<a.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new te({shape:bs(e,i,a[h].coord)}))}for(var h=0;h<f.length;h++)r.add(We(f[h],{style:Z({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new te({shape:bs(e,i,n[u][f].coord)}));r.add(We(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-a[0].coord*h,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),g=t.get("clockwise"),p=1,y=a.length;p<=y;p++){var m=p===y?a[0].coord:a[p].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new _e({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:c,endAngle:-m*h,clockwise:g},silent:!0})),c=-m*h}for(var p=0;p<f.length;p++)r.add(We(f[p],{style:Z({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}},bk=["axisLine","axisTickLabel","axisName"],xk=["splitLine","splitArea","minorSplitLine"],Tk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,i=this._axisGroup=new ot;this.group.add(i);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=Ak(s,e,h),d=new me(e,v);A(bk,d.add,d),i.add(d.getGroup()),rc(n,i,e),A(xk,function(g){e.get([g,"show"])&&!o.scale.isBlank()&&Ck[g](this.group,e,s,h,c,u,f)},this)}},t.type="radiusAxis",t}(Io),Ck={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),h=Math.PI/180,c=f.getExtent(),v=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],g=0;g<i.length;g++){var p=u++%l.length;d[p]=d[p]||[],d[p].push(new $l[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[g].coord,0),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:f.inverse}}))}for(var g=0;g<d.length;g++)r.add(We(d[g],{style:Z({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Jn({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(We(u,{style:Z({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=i[0].coord,c=1;c<i.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new _e({shape:{cx:e.cx,cy:e.cy,r0:h,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=i[c].coord}for(var c=0;c<f.length;c++)r.add(We(f[c],{style:Z({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function Ak(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function db(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function pb(r,t){return t.dim+r.model.componentIndex}function Mk(r,t,e){var a={},n=Dk(Tt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=pb(s,l),f=db(i),h=n[u][f],c=h.offset,v=h.width,d=s.getOtherAxis(l),g=i.coordinateSystem.cx,p=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[f]=a[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=rn(o,_),w=l.dim!=="radius"||!i.get("roundCap",!0),x=d.dataToCoord(0),T=0,C=o.count();T<C;T++){var M=o.get(_,T),D=o.get(S,T),L=M>=0?"p":"n",I=x;b&&(a[f][D]||(a[f][D]={p:x,n:x}),I=a[f][D][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if(d.dim==="radius"){var k=d.dataToCoord(M)-x,B=l.dataToCoord(D);Math.abs(k)<y&&(k=(k<0?-1:1)*y),P=I,R=I+k,E=B-c,N=E-v,b&&(a[f][D][L]=R)}else{var G=d.dataToCoord(M,w)-x,W=l.dataToCoord(D);Math.abs(G)<m&&(G=(G<0?-1:1)*m),P=W+c,R=P+v,E=I,N=I+G,b&&(a[f][D][L]=N)}o.setItemLayout(T,{cx:g,cy:p,r0:P,r:R,startAngle:-E*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:E>=N})}}})}function Dk(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=pb(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;t[l]=h;var v=db(a);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var d=Y(a.get("barWidth"),f),g=Y(a.get("barMaxWidth"),f),p=a.get("barGap"),y=a.get("barCategoryGap");d&&!c[v].width&&(d=Math.min(h.remainedWidth,d),c[v].width=d,h.remainedWidth-=d),g&&(c[v].maxWidth=g),p!=null&&(h.gap=p),y!=null&&(h.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=Y(a.categoryGap,o),l=Y(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(i,function(g,p){var y=g.maxWidth;y&&y<h&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;A(i,function(g,p){g.width||(g.width=h),v=g,c+=g.width*(1+l)}),v&&(c-=v.width*l);var d=-c/2;A(i,function(g,p){e[n][p]=e[n][p]||{offset:d,width:g.width},d+=g.width*(1+l)})}),e}var Lk={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Ik={splitNumber:5},Pk=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(zt);function a5(r){Se(Xc),Io.registerAxisPointerClass("PolarAxisPointer",ok),r.registerCoordinateSystem("polar",mk),r.registerComponentModel(uk),r.registerComponentView(Pk),Tl(r,"angle",fk,Lk),Tl(r,"radius",hk,Ik),r.registerComponentView(Sk),r.registerComponentView(Tk),r.registerLayout(vt(Mk,"bar"))}var Sm=["x","y","radius","angle","single"],Rk=["cartesian2d","polar","singleAxis"];function Ek(r){var t=r.get("coordinateSystem");return ut(Rk,t)>=0}function Qr(r){return r+"Axis"}function kk(r,t){var e=U(),a=[],n=U();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return a}function gb(r){var t=r.ecModel,e={infoList:[],infoMap:U()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Qr(a),n);if(i){var o=i.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(i)}}}),e}var Zf=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}(),yo=function(r){O(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,a,n){var i=wm(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=wm(e);nt(this.option,e,!0),nt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=U(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(Sm,function(n){var i=this.getReferringComponents(Qr(n),KT);if(i.specified){a=!0;var o=new Zf;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new Zf;if(c.add(h.componentIndex),e.set(f,c),i=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Nt).models[0];v&&A(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Nt).models[0]&&c.add(d.componentIndex)})}}}i&&A(Sm,function(u){if(i){var f=n.findComponents({mainType:Qr(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Zf;h.add(f[0].componentIndex),e.set(u,h),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Qr(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Qr(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],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;a||(a=u)}return a},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}(ht);function wm(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Ok=function(r){O(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}(yo),Qc=function(r){O(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,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(zt),Nk=function(r){O(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}(Qc),In=A,bm=Ei,Bk=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}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(Ek(e)){var a=Qr(this._dimName),n=e.getReferringComponents(a,Nt).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 j(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;In(["start","end"],function(c,v){var d=t[c],g=t[c+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),g=n.parse(At(d,o,e))):(u=!0,g=g==null?e[v]:n.parse(g),d=At(g,e,o)),l[v]=g==null||isNaN(g)?e[v]:g,s[v]=d==null||isNaN(d)?o[v]:d}),bm(l),bm(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,d,g,p){var y=p?"Span":"ValueSpan";Po(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=At(c[m],d,g,!0),p&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Fk(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;In(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var h=u.getStore(),c=z(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,g,p,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(p=!0),S&&(d=!0),b&&(g=!0)}return p&&d&&g})}else In(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});In(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;In(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=At(a[0]+o,a,[0,100],!0):i!=null&&(o=At(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=Z0(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function Fk(r,t,e){var a=[1/0,-1/0];In(e,function(o){fI(a,o.getData(),t)});var n=r.getAxisModel(),i=zS(n.axis.scale,n,a).calculate();return[i.min,i.max]}var Gk={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Qr(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bk(n,i,s,r),e.push(o.__dzAxisProxy))});var a=U();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function zk(r){r.registerAction("dataZoom",function(t,e){var a=kk(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var xm=!1;function Jc(r){xm||(xm=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Gk),zk(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Vk(r){r.registerComponentModel(Ok),r.registerComponentView(Nk),Jc(r)}var He=function(){function r(){}return r}(),yb={};function Ci(r,t){yb[r]=t}function mb(r){return yb[r]}var Hk=function(r){O(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;A(this.option.feature,function(a,n){var i=mb(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),nt(a,i.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}(ht);function Wk(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=hr(a,i,n);Hn(t.get("orient"),r,t.get("itemGap"),o.width,o.height),xM(r,a,i,n)}function _b(r,t){var e=Mo(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new _t({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:a,silent:!0,z2:-1}),r}var Uk=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){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=[];A(u,function(d,g){h.push(g)}),new vo(this._featureNames||[],h).add(c).update(c).remove(vt(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],y=h[g],m=u[p],_=new Pt(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===p&&(m.title=i.newTitle),p&&!y){if(Yk(p))S={onclick:_.option.onclick,featureName:p};else{var b=mb(p);if(!b)return;S=new b}f[p]=S}else if(S=f[y],!S)return;S.uid=ti("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var w=S instanceof He;if(!p&&y){w&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(a,n);return}v(_,S,p),_.setIconStatus=function(x,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[x]=T,M[x]&&(T==="emphasis"?ja:tn)(M[x])},S instanceof He&&S.render&&S.render(_,a,n,i)}function v(d,g,p){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=g instanceof He&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},b,w;H(_)?(b={},b[p]=_):b=_,H(S)?(w={},w[p]=S):w=S;var x=d.iconPaths={};A(b,function(T,C){var M=Xl(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new Ct({style:{text:w[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:t1({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},a)},ignore:!0});M.setTextContent(L),Co({el:M,componentModel:e,itemName:C,formatterParamsExtra:{title:w[C]}}),M.__title=w[C],M.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")}),M.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"?ja:tn)(M),o.add(M),M.on("click",Q(g.onclick,g,a,n,C)),x[C]=M})}Wk(o,e,n),o.add(_b(o.getBoundingRect(),e)),l||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),y=p.textConfig||(p.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!$(_)&&g){var S=_.style||(_.style={}),b=bo(g,Ct.makeFont(S)),w=d.x+o.x,x=d.y+o.y+s,T=!1;x+b.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;w+b.width/2>n.getWidth()?(y.position=["100%",C],S.align="right"):w-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof He&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof He&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof He&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(zt);function Yk(r){return r.indexOf("my")===0}var Zk=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.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=lt.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+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 c=l.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,y=new Uint8Array(p);p--;)y[p]=d.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=n.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',T=window.open();T.document.write(x),T.document.title=i}},t.getDefaultOption=function(e){var a={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 a},t}(He),Tm="__ec_magicType_stack__",Xk=[["line","bar"],["stack"]],$k=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={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 a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(Cm[n]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,d=Cm[n](c,v,h,i);d&&(Z(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(n==="line"||n==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var y=p.dim,m=y+"Axis",_=h.getReferringComponents(m,Nt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(Xk,function(h){ut(h,n)>=0&&A(h,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=nt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(He),Cm={line:function(r,t,e,a){if(r==="bar")return nt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return nt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===Tm;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),nt({id:t,stack:n?"":Tm},a.get(["option","stack"])||{},!0)}};dr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var gu=new Array(60).join("-"),qn="	";function qk(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.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:a}}function Kk(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[n.model.getCategories()];A(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var u=[s.join(qn)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(qn))}t.push(u.join(`
`))}),t.join(`

`+gu+`

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

`+gu+`

`)}function Jk(r){var t=qk(r);return{value:Tt([Kk(t.seriesGroupByCategoryAxis),Qk(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+gu+`

`),meta:t.meta}}function Ml(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jk(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(qn)>=0)return!0}var cv=new RegExp("["+qn+"]+","g");function tO(r){for(var t=r.split(/\n+/g),e=Ml(t.shift()).split(cv),a=[],n=z(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Ml(t[i]).split(cv);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function eO(r){for(var t=r.split(/\n+/g),e=Ml(t.shift()),a=[],n=0;n<t.length;n++){var i=Ml(t[n]);if(i){var o=i.split(cv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function rO(r,t){var e=r.split(new RegExp(`
*`+gu+`
*`,"g")),a={series:[]};return A(e,function(n,i){if(jk(n)){var o=tO(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=eO(n);a.series.push(o)}}),a}var aO=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=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=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),c=i.get("contentToOption"),v=Jk(e);if($(h)){var d=h(a.getOption());H(d)?u.innerHTML=d:Qa(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var g=f.style;g.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",g.color=i.get("textColor"),g.borderColor=i.get("textareaBorderColor"),g.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var p=v.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:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function w(){n.removeChild(o),b._dom=null}uh(_,"click",w),uh(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){w();return}var x;try{$(c)?x=c(u,a.getOption()):x=rO(f.value,p)}catch(T){throw w(),new Error("Data view format error "+T)}x&&a.dispatchAction({type:"changeDataView",newOption:x}),w()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.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,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={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 a},t}(He);function nO(r,t){return z(r,function(e,a){var n=t&&t[a];if(X(n)&&!V(n)){var i=X(e)&&!V(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=Z(e,n),o&&delete e.name,e}else return e})}dr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(F({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:nO(a.data,i)})}}),t.mergeOption(Z({series:e},r.newOption))});var Sb=A,wb=wt();function iO(r,t){var e=jc(r);Sb(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<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 oO(r){var t=jc(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return Sb(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function sO(r){wb(r).snapshots=null}function lO(r){return jc(r).length}function jc(r){var t=wb(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var uO=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){sO(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={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 a},t}(He);dr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var fO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],bb=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=Am(e,t);A(hO,function(o,s){(!a||!a.include||ut(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Xf[a.brushType](0,i,n);a.__rangeOffset={offset:Im[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Xf[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Xf[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?Im[a.brushType](i.values,o.offset,vO(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:DE(n),isTargetByCursor:IE(n,t,a.coordSysModel),getLinearBrushOtherExtent:LE(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&ut(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=Am(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Mm.length;l++)if(Mm[l](n,o))return o}return!0},r}();function dv(r){return r[0]>r[1]&&r.reverse(),r}function Am(r,t){return Hi(r,t,{includeMainTypes:fO})}var hO={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=U(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,c){(ut(e,h.getAxis("x").model)>=0||ut(a,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Dm.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:Dm.geo})})}},Mm=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Dm={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Zl(r)),t}},Xf={lineX:vt(Lm,0),lineY:vt(Lm,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[dv([n[0],i[0]]),dv([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=z(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);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:i,xyMinMax:n}}};function Lm(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=dv(z([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Im={lineX:vt(Pm,0),lineY:vt(Pm,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 z(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function Pm(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function vO(r,t){var e=Rm(r),a=Rm(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Rm(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var pv=A,cO=ZT("toolbox-dataZoom_"),dO=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new _E(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),yO(e,a,this,i,n),gO(e,a)},t.prototype.onclick=function(e,a,n){pO[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new bb(td(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),iO(i,n),this._dispatchZoomAction(n);function s(u,f,h){var c=f.getAxis(u),v=c.model,d=l(u,v,i),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=Po(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var a=[];pv(e,function(n,i){a.push(j(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={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 a},t}(He),pO={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(oO(this.ecModel))}};function td(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 gO(r,t){r.setIconStatus("back",lO(t)>1?"emphasis":"normal")}function yO(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new bb(td(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(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}RM("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=td(a),o=Hi(r,i);pv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),pv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:cO+u+h};c[f]=h,n.push(c)}return n});function n5(r){r.registerComponentModel(Hk),r.registerComponentView(Uk),Ci("saveAsImage",Zk),Ci("magicType",$k),Ci("dataView",aO),Ci("dataZoom",dO),Ci("restore",uO),Se(Vk)}var mO=function(r){O(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}(ht);function xb(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Tb(r){if(lt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var Cb=Tb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_O=Tb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Ab(r,t){if(!r)return t;t=g1(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function SO(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var wO=Ab(_O,"transition"),ed=Ab(Cb,"transform"),bO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(lt.transform3dSupported?"will-change:transform;":"");function xO(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function TO(r,t,e){if(!H(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=en(t);var i=xO(e),o=Math.max(Math.round(n)*1.5,6),s="",l=ed+":",u;ut(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+g.join("")+'"></div>'}function CO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=lt.transformSupported?","+ed+a:",left"+a+",top"+a),wO+":"+n}function Em(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!lt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=lt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+ed+":"+o+";":[["top",0],["left",0],[Cb,o]]}function AO(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),A(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function MO(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=X1(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+c),t&&n&&a.push(CO(n,e)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(v){var d="border-"+v,g=g1(d),p=r.get(g);p!=null&&a.push(d+":"+p+(v==="color"?"":"px"))}),a.push(AO(f)),h!=null&&a.push("padding:"+Mo(h).join("px ")+"px"),a.join(";")+";"}function km(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&dx(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var DO=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,lt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(H(i)?document.querySelector(i):Qa(i)?i:$(i)&&i(t.getDom()));km(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ce(f,l,!0),u.dispatch("mousemove",l)}},a.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(),a=SO(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=bO+MO(t,!this._firstShow,this._longHide)+Em(i[0],i[1],!0)+("border-color:"+en(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,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(i)&&a.get("trigger")==="item"&&!xb(a)&&(s=TO(a,n,i)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)Qa(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 a=this._styleCoord;if(km(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Em(a[0],a[1]);A(i,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",lt.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(Q(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}(),LO=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Nm(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,a,n,i){var o=this;X(t)&&ct(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Ct({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:X1(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["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(),a=Om(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;Nm(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Yr(i.borderWidth||0),s=Om(i);a.x=t+o+s.left,a.y=e+o+s.top,a.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(Q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Yr(r){return Math.max(0,r)}function Om(r){var t=Yr(r.shadowBlur||0),e=Yr(r.shadowOffsetX||0),a=Yr(r.shadowOffsetY||0);return{left:Yr(t-e),right:Yr(t+e),top:Yr(t-a),bottom:Yr(t+a)}}function Nm(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var IO=new _t({shape:{x:-1,y:-1,width:2,height:2}}),PO=function(r){O(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,a){if(!(lt.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=JT(n.get("renderMode"));this._tooltipContent=i==="richText"?new LO(a):new DO(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(lt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ou(this,"_updatePosition",50,"fixRate"):ul(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");hb("itemTooltip",this._api,Q(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||lt.node||!n.getDom())){var o=Bm(i,n);this._ticket="";var s=i.dataByCoordSys,l=OO(i,a,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=IO;f.x=i.x,f.y=i.y,f.update(),at(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var h=vb(i,a),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Bm(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),h=Ai([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){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=at(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;En(n,function(f){if(at(f).dataIndex!=null)return l=f,!0;if(at(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Ai([a.tooltipOption],i),l=this._renderMode,u=[],f=oa("section",{blocks:[],noHeader:!0}),h=[],c=new ff;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=lb(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=oa("section",{header:w,noHeader:!Pe(w),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Dc(S.axis,{value:b}),D.axisValueLabel=w,D.marker=c.makeTooltipMarker("item",en(D.color),l);var L=Yp(C.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=Ai([C],i).get("valueFormatter");x.blocks.push(P?F({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=a.position,d=s.get("order"),g=Qp(f,c,l,d,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?`

`:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=at(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=Ai([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new ff;y.marker=m.makeTooltipMarker("item",en(y.color),v);var _=Yp(u.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),w=_.frag,x=w?Qp(b?F({valueFormatter:b},w):w,m,v,S,i.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=at(a),o=i.tooltipConfig,s=o.option||{};if(H(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,c=Ai(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new ff;this._showOrMove(c,function(){var p=j(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,a,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=V(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Ql(y.axisValue,v,p)),v=y1(v,n,!0)}else if($(c)){var _=Q(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=i,v=c(n,i,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||V(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!V(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(a))n=Y(a[0],u),i=Y(a[1],f);else if(X(a)){var g=a;g.width=h[0],g.height=h[1];var p=hr(g,{width:u,height:f});n=p.x,i=p.y,c=null,v=null}else if(H(a)&&l){var y=kO(a,d,h,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=RO(n,i,o,u,f,c?null:20,v?null:20);n=y[0],i=y[1]}if(c&&(n-=Fm(c)?h[0]/2:c==="right"?h[0]:0),v&&(i-=Fm(v)?h[1]/2:v==="bottom"?h[1]:0),xb(e)){var y=EO(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){lt.node||!a.getDom()||(ul(this,"_updatePosition"),this._tooltipContent.dispose(),vv("itemTooltip",a))},t.type="tooltip",t}(zt);function Ai(r,t,e){var a=t.ecModel,n;e?(n=new Pt(e,a,a),n=new Pt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Pt&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(n=new Pt(o,n,a)))}return n}function Bm(r,t){return r.dispatchAction||Q(t.dispatchAction,t)}function RO(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function EO(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function kO(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+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-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-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-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function Fm(r){return r==="center"||r==="middle"}function OO(r,t,e){var a=zv(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=To(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function i5(r){Se(Xc),r.registerComponentModel(mO),r.registerComponentView(PO),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zt)}var NO=function(r){O(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}(ht),BO=function(r){O(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,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=rt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ct({style:fe(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Ct({style:fe(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Mp(d,"_"+e.get("target"))}),g&&v.on("click",function(){Mp(g,"_"+e.get("subtarget"))}),at(f).eventData=at(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),c&&i.add(v);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=hr(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"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new _t({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(zt);function o5(r){r.registerComponentModel(NO),r.registerComponentView(BO)}var FO=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"])}},gv=function(r){O(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,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),V(a)&&A(a,function(i,o){H(i)&&(i={type:i}),a[o]=nt(i,FO(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(c)),c.length?a=a.concat(c):f=!0}else f=!0;f&&Gv(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=U(),s=z(i,function(l){return(H(l)||dt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Pt(l,this,this.ecModel))},this);this._data=Tt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ut(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}(ht),Cn=vt,yv=A,Ts=ot,Mb=function(r){O(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 Ts),this.group.add(this._selectorGroup=new Ts),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=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,a,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),v=hr(f,h,c),d=this.layoutInner(e,o,v,i,l,u),g=hr(Z({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_b(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=U(),h=a.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),yv(a.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
`)){var p=new Ts;p.newline=!0,u.add(p);return}var y=n.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(y,g,d,v,a,e,_,b,S,h,i);w.on("click",Cn(Gm,g,null,i,c)).on("mouseover",Cn(mv,y.name,null,i,c)).on("mouseout",Cn(_v,y.name,null,i,c)),n.ssr&&w.eachChild(function(x){var T=at(x);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(g,!0)}else n.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=he(M.fill);L&&L[3]===0&&(L[3]=.2,M=F(F({},M),{fill:ua(L,"rgba")}));var I=this._createItem(x,g,d,v,a,e,{},M,D,h,i);I.on("click",Cn(Gm,null,g,i,c)).on("mouseover",Cn(mv,null,g,i,c)).on("mouseout",Cn(_v,null,g,i,c)),n.ssr&&I.eachChild(function(P){var R=at(P);R.seriesIndex=x.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();yv(e,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);fa(h,{normal:c,emphasis:v},{defaultText:u.title}),el(h)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=GO(f,i,l,u,v,p,c),b=new Ts,w=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(zO({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;H(M)&&M?D=M.replace("{name}",a??""):$(M)&&(D=M(a));var L=p?w.getTextColor():i.get("inactiveColor");b.add(new Ct({style:fe(w,{text:D,x:T,y:g/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new _t({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Co({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),el(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Hn(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){Hn("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}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}(zt);function GO(r,t,e,a,n,i,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),yv(p,function(m,_){p[_]==="inherit"&&(p[_]=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"?a.decal:dl(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function zO(r){var t=r.icon||"roundRect",e=ce(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 Gm(r,t,e,a){_v(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),mv(r,t,e,a)}function Db(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function mv(r,t,e,a){Db(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function _v(r,t,e,a){Db(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function VO(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Mi(r,t,e){var a={},n=r==="toggleSelected",i;return e.eachComponent("legend",function(o){n&&i!=null?o[i?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),i=o.isSelected(t.name));var s=o.getData();A(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&f:a[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function HO(r){r.registerAction("legendToggleSelect","legendselectchanged",vt(Mi,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",vt(Mi,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",vt(Mi,"inverseSelect")),r.registerAction("legendSelect","legendselected",vt(Mi,"select")),r.registerAction("legendUnSelect","legendunselected",vt(Mi,"unSelect"))}function Lb(r){r.registerComponentModel(gv),r.registerComponentView(Mb),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,VO),r.registerSubTypeDefaulter("legend",function(){return"plain"}),HO(r)}var WO=function(r){O(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,a,n){var i=Do(e);r.prototype.init.call(this,e,a,n),zm(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),zm(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Kl(gv.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}(gv);function zm(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Zn(t,e,{type:"box",ignoreSize:!!n})}var Vm=ot,$f=["width","height"],qf=["x","y"],UO=function(r){O(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 Vm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Vm)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),c=V(h)?h:[h,h];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new Ct({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=Xl(a.get("pageIcons",!0)[a.getOrient().name][p],{onclick:Q(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=$f[u],h=qf[u],c=$f[1-u],v=qf[1-u];o&&Hn("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],y=j(n);o&&(y[f]=n[f]-g[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,c,v,h);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-u]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Hn(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),Hn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>n[o],p=[-v.x,-v.y];a||(p[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=rt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],g){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new _t({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&bt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=a[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=$f[o],l=qf[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=u+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(w){if(w){var x=w.getBoundingRect(),T=x[l]+w[l];return{s:T,e:T+x[s],i:w.__legendDataIndex}}}function b(w,x){return w.e>=x&&w.s<=x+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(Mb);function YO(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function ZO(r){Se(Lb),r.registerComponentModel(WO),r.registerComponentView(UO),YO(r)}function s5(r){Se(Lb),Se(ZO)}var XO=function(r){O(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=Kl(yo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yo),rd=wt();function $O(r,t,e){rd(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function qO(r,t){for(var e=rd(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Ib(e,o))}}}function Ib(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function KO(r,t){var e={model:t,containsPoint:vt(JO,t),dispatchAction:vt(QO,r),dataZoomInfoMap:null,controller:null},a=e.controller=new Rw(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!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 QO(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function JO(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function jO(r){var t,e="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[e+s]>a[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function tN(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=rd(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=U());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gb(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,KO(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=U());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Ib(n,i);return}var f=jO(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ou(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var eN=function(r){O(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,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$O(n,e,{pan:Q(Kf.pan,this),zoom:Q(Kf.zoom,this),scrollMove:Q(Kf.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){qO(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Qc),Kf={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Qf[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Po(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Hm(function(r,t,e,a,n,i){var o=Qf[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Hm(function(r,t,e,a,n,i){var o=Qf[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Hm(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(Po(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Qf={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=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=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function rN(r){Jc(r),r.registerComponentModel(XO),r.registerComponentView(eN),tN(r)}var aN=function(r){O(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=Kl(yo.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}(yo),Di=_t,Wm=7,nN=1,Jf=30,iN=7,Li="horizontal",Um="vertical",oN=5,sN=["line","bar","candlestick","scatter"],lN={easing:"cubicOut",duration:100,delay:0},uN=function(r){O(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,a){this.api=a,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),ou(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ul(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 a=this._displayables.sliderGroup=new ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?iN:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Li?{right:s.width-o.x-o.width,top:s.height-Jf-Wm-i,width:o.width,height:Jf}:{right:Wm,top:o.y,width:Jf,height:o.height},u=Do(e.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=hr(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Um&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Li&&!o?{scaleY:l?1:-1,scaleX:1}:n===Li&&o?{scaleY:l?1:-1,scaleX:-1}:n===Um&&!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=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new Di({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Di({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();i?(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 a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,a[1]],d=[0,a[0]],g=[[a[0],0],[0,0]],p=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]),S;o.each([l],function(C,M){if(_>0&&M%_){m+=y;return}var D=C==null||isNaN(C)||C==="",L=D?0:At(C,h,v,!0);D&&!S&&M?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&S&&(g.push([m,0]),p.push([m,0])),g.push([m,L]),p.push([m,L]),m+=y,S=D}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var b=this.dataZoomModel;function w(C){var M=b.getModel(C?"selectedDataBackground":"dataBackground"),D=new ot,L=new Er({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new qe({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(I),D}for(var x=0;x<3;x++){var T=w(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&ut(sN,u.get("type"))<0)){var f=i.getComponent(Qr(o),s).axis,h=fN(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.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"),c=a.filler=new Di({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Di({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:nN,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!hl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=ce(S,-1,0,2,2,null,!0);b.attr({cursor:Ym(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),x=l.get("handleSize");this._handleHeight=Y(x,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),el(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");e.add(i[_]=new Ct({silent:!0,invisible:!0,style:fe(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(h){var d=Y(l.get("moveHandleSize"),s[1]),g=a.moveHandle=new _t({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),p=d*.8,y=a.moveHandleIcon=ce(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new _t({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:Ym(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[At(e[0],[0,100],a,!0),At(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Po(a,i,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=Ei([At(i[0],o,l,!0),At(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Ei(n.slice()),o=this._size;A([0,1],function(v){var d=a.handles[v],g=this._handleHeight;d.attr({scaleX:g/2,scaleY:g/2,x:n[v]+(v?-1:1),y:o[1]/2-g/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new _t,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.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 c=Ei(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var g=Zl(n.handles[d].parent,this.group),p=ec(d===0?"right":"left",g),y=this._handleWidth/2+oN,m=Yn([c[d]+(d===0?-y:y),this._size[1]/2],g);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Li?"middle":p,align:o===Li?p:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return $(i)?i(e,s):H(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),a.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,Wn(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Yn([a,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 a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new q(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ei([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&&(Wn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Di({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),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 a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?lN:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=gb(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Qc);function fN(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Ym(r){return r==="vertical"?"ns-resize":"ew-resize"}function hN(r){r.registerComponentModel(aN),r.registerComponentView(uN),Jc(r)}function l5(r){Se(rN),Se(hN)}var Zm={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vN=function(){function r(t){var e=this._condVal=H(t)?new RegExp(t):g0(t)?t:null;if(e==null){var a="";ct(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):dt(e)?this._condVal.test(t+""):!1},r}(),cN=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),dN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),pN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),gN=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),yN=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function ad(r,t){if(r===!0||r===!1){var e=new cN;return e.value=r,e}var a="";return Pb(r)||ct(a),r.and?Xm("and",r,t):r.or?Xm("or",r,t):r.not?mN(r,t):_N(r,t)}function Xm(r,t,e){var a=t[r],n="";V(a)||ct(n),a.length||ct(n);var i=r==="and"?new dN:new pN;return i.children=z(a,function(o){return ad(o,e)}),i.children.length||ct(n),i}function mN(r,t){var e=r.not,a="";Pb(e)||ct(a);var n=new gN;return n.child=ad(e,t),n.child||ct(a),n}function _N(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=mt(r),o=r.parser,s=o?k1(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=re(Zm,u)?Zm[u]:u,h=r[u],c=s?s(h):h,v=dD(f,c)||f==="reg"&&new vN(c);v||ct(e),n.push(v)}}n.length||ct(e);var d=new yN;return d.valueGetterParam=a,d.valueParser=s,d.getValue=t.getValue,d.subCondList=n,d}function Pb(r){return X(r)&&!$t(r)}var SN=function(){function r(t,e){this._cond=ad(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function wN(r,t){return new SN(r,t)}var bN={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=wN(r.config,{valueGetterAttrMap:U({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;re(s,"dimension")||ct(l);var f=t.getDimensionInfo(u);return f||ct(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},xN={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=Mt(e);n.length||ct(a);var i=[];A(n,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&ct(a),c!=="asc"&&c!=="desc"&&ct(a),d&&d!=="min"&&d!=="max"){var g="";ct(g)}if(c!=="asc"&&c!=="desc"){var p="";ct(p)}var y=t.getDimensionInfo(h);y||ct(a);var m=v?k1(v):null;v&&!m&&ct(a),i.push({dimIdx:y.index,parser:m,comparator:new N1(c,d)})});var o=t.sourceFormat;o!==ae&&o!==Oe&&ct(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,h){for(var c=0;c<i.length;c++){var v=i[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function u5(r){r.registerTransform(bN),r.registerTransform(xN)}var TN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new z1(this),qp(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),qp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:lr},t}(ht),CN=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(zt);function f5(r){r.registerComponentModel(TN),r.registerComponentView(CN)}var rr=Pr.CMD;function kn(r,t){return Math.abs(r-t)<1e-5}function Sv(r){var t=r.data,e=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(I,P){n&&n.length>2&&a.push(n),n=[I,P]}function f(I,P,R,E){kn(I,R)&&kn(P,E)||n.push(I,P,R,E,R,E)}function h(I,P,R,E,N,k){var B=Math.abs(P-I),G=Math.tan(B/4)*4/3,W=P<I?-1:1,K=Math.cos(I),tt=Math.sin(I),it=Math.cos(P),St=Math.sin(P),pt=K*N+R,Vt=tt*k+E,Ht=it*N+R,Et=St*k+E,xt=N*G*W,J=k*G*W;n.push(pt-xt*tt,Vt+J*K,Ht+xt*St,Et-J*it,Ht,Et)}for(var c,v,d,g,p=0;p<e;){var y=t[p++],m=p===1;switch(m&&(i=t[p],o=t[p+1],s=i,l=o,(y===rr.L||y===rr.C||y===rr.Q)&&(n=[s,l])),y){case rr.M:i=s=t[p++],o=l=t[p++],u(s,l);break;case rr.L:c=t[p++],v=t[p++],f(i,o,c,v),i=c,o=v;break;case rr.C:n.push(t[p++],t[p++],t[p++],t[p++],i=t[p++],o=t[p++]);break;case rr.Q:c=t[p++],v=t[p++],d=t[p++],g=t[p++],n.push(i+2/3*(c-i),o+2/3*(v-o),d+2/3*(c-d),g+2/3*(v-g),d,g),i=d,o=g;break;case rr.A:var _=t[p++],S=t[p++],b=t[p++],w=t[p++],x=t[p++],T=t[p++]+x;p+=1;var C=!t[p++];c=Math.cos(x)*b+_,v=Math.sin(x)*w+S,m?(s=c,l=v,u(s,l)):f(i,o,c,v),i=Math.cos(T)*b+_,o=Math.sin(T)*w+S;for(var M=(C?-1:1)*Math.PI/2,D=x;C?D>T:D<T;D+=M){var L=C?Math.max(D+M,T):Math.min(D+M,T);h(D,L,_,S,b,w)}break;case rr.R:s=i=t[p++],l=o=t[p++],c=s+t[p++],v=l+t[p++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case rr.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function wv(r,t,e,a,n,i,o,s,l,u){if(kn(r,e)&&kn(t,a)&&kn(n,o)&&kn(i,s)){l.push(o,s);return}var f=2/u,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=a-t,y=n-o,m=i-s,_=g*g+p*p,S=y*y+m*m;if(_<h&&S<h){l.push(o,s);return}var b=c*g+v*p,w=-c*y-v*m,x=_-b*b,T=S-w*w;if(x<h&&b>=0&&T<h&&w>=0){l.push(o,s);return}var C=[],M=[];ea(r,e,n,o,.5,C),ea(t,a,i,s,.5,M),wv(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),wv(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function AN(r,t){var e=Sv(r),a=[];t=t||1;for(var n=0;n<e.length;n++){var i=e[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],c=i[u++],v=i[u++],d=i[u++],g=i[u++];wv(s,l,f,h,c,v,d,g,o,t),s=d,l=g}a.push(o)}return a}function Rb(r,t,e){var a=r[t],n=r[1-t],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,h=e-f;if(h>0)for(var u=0;u<h;u++)l[u%o]+=1;return l}function $m(r,t,e){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),h=Rb([l,u],f?0:1,t),c=(f?s:u)/h.length,v=0;v<h.length;v++)for(var d=(f?u:s)/h[v],g=0;g<h[v];g++){var p={};f?(p.startAngle=i+c*v,p.endAngle=i+c*(v+1),p.r0=a+d*g,p.r=a+d*(g+1)):(p.startAngle=i+d*g,p.endAngle=i+d*(g+1),p.r0=a+c*v,p.r=a+c*(v+1)),p.clockwise=r.clockwise,p.cx=r.cx,p.cy=r.cy,e.push(p)}}function MN(r,t,e){for(var a=r.width,n=r.height,i=a>n,o=Rb([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],d=0;d<o[c];d++){var g={};g[u]=c*h,g[f]=d*v,g[s]=h,g[l]=v,g.x+=r.x,g.y+=r.y,e.push(g)}}function qm(r,t,e,a){return r*a-e*t}function DN(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,h=s-i,c=qm(f,h,l,u);if(Math.abs(c)<1e-6)return null;var v=r-n,d=t-i,g=qm(v,d,f,h)/c;return g<0||g>1?null:new q(g*l+r,g*u+t)}function LN(r,t,e){var a=new q;q.sub(a,e,t),a.normalize();var n=new q;q.sub(n,r,t);var i=n.dot(a);return i}function An(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function IN(r,t,e){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=DN(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&n.push({projPt:LN(l,t,e),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(p,y){return p.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[c],g=[v],i=u.idx+1;i<=f.idx;i++)An(d,r[i].slice());An(d,v),An(d,c);for(var i=f.idx+1;i<=u.idx+a;i++)An(g,r[i%a].slice());return An(g,c),An(g,v),[{points:d},{points:g}]}function Km(r){var t=r.points,e=[],a=[];u_(t,e,a);var n=new et(e[0],e[1],a[0]-e[0],a[1]-e[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new q,f=new q;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),IN(t,u,f)}function Dl(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Dl(r,i[0],n,a),Dl(r,i[1],e-n,a)}return a}function PN(r,t){for(var e=[],a=0;a<t;a++)e.push($v(r));return e}function RN(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function EN(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function kN(r,t){var e=[],a=r.shape,n;switch(r.type){case"rect":MN(a,t,e),n=_t;break;case"sector":$m(a,t,e),n=_e;break;case"circle":$m({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),n=_e;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=z(AN(r.getUpdatedPathProxy(),o),function(y){return EN(y)}),l=s.length;if(l===0)Dl(Km,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,h=z(s,function(y){var m=[],_=[];u_(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var c=t,u=0;u<l;u++){var v=h[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(v.area/f*t);d<0||(Dl(Km,{points:v.poly},d,e),c-=d)}}n=Er;break}if(!n)return PN(r,t);for(var g=[],u=0;u<e.length;u++){var p=new n;p.setShape(e[u]),RN(r,p),g.push(p)}return g}function ON(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var n=[],i=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,h=[o[0],o[1]],c=l,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(c<=0){h.push(p,y,m,_,S,b);continue}for(var w=Math.min(c,f-1)+1,x=1;x<=w;x++){var T=x/w;ea(d,p,m,S,T,n),ea(g,y,_,b,T,i),d=n[3],g=i[3],h.push(n[1],i[1],n[2],i[2],d,g),p=n[5],y=i[5],m=n[6],_=i[6]}c-=w-1}return o===r?[h,t]:[r,h]}function Qm(r,t){for(var e=r.length,a=r[e-2],n=r[e-1],i=[],o=0;o<t.length;)i[o++]=a,i[o++]=n;return i}function NN(r,t){for(var e,a,n,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,h=void 0;l?u?(e=ON(l,u),f=e[0],h=e[1],a=f,n=h):(h=Qm(n||l,l),f=l):(f=Qm(a||u,u),h=u),i.push(f),o.push(h)}return[i,o]}function Jm(r){for(var t=0,e=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;t+=h,e+=(s+u)*h,a+=(l+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function BN(r,t,e,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,d=r[v]-e[0],g=r[v+1]-e[1],p=t[c]-a[0],y=t[c+1]-a[1],m=p-d,_=y-g;h+=m*m+_*_}h<i&&(i=h,o=u)}return o}function FN(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function GN(r,t,e,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=Jm(s),f=Jm(l);i==null&&(i=u[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,g=[],p=s.length;i&&(s=FN(s));for(var y=BN(s,l,u,f)*6,m=p-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}h[0]=s[y]-u[0],h[1]=s[y+1]-u[1];for(var b=a/e,w=-a/2;w<=a/2;w+=b){for(var x=Math.sin(w),T=Math.cos(w),C=0,_=0;_<s.length;_+=2){var M=h[_],D=h[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*x,R=L*x+I*T;g[_]=P,g[_+1]=R;var E=P-M,N=R-D;C+=E*E+N*N}if(C<d){d=C,v=w;for(var k=0;k<g.length;k++)c[k]=g[k]}}n.push({from:h,to:c,fromCp:u,toCp:f,rotation:-v})}return n}function Ll(r){return r.__isCombineMorphing}var Eb="__mOriginal_";function Il(r,t,e){var a=Eb+t,n=r[a]||r[t];r[a]||(r[a]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function Ki(r,t){var e=Eb+t;r[e]&&(r[t]=r[e],r[e]=null)}function jm(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=t[0]*i+t[2]*o+t[4],a[n++]=t[1]*i+t[3]*o+t[5]}}function kb(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),n=NN(Sv(e),Sv(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&jm(i,s),l&&jm(o,l),Il(t,"updateTransform",{replace:u}),t.transform=null;var f=GN(i,o,10,Math.PI),h=[];Il(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,g=[],p=0;p<f.length;p++){var y=f[p],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,w=y.toCp,x=Math.sin(S),T=Math.cos(S);Gi(g,b,w,v);for(var C=0;C<m.length;C+=2){var M=m[C],D=m[C+1],L=_[C],I=_[C+1],P=M*d+L*v,R=D*d+I*v;h[C]=P*T-R*x+g[0],h[C+1]=P*x+R*T+g[1]}var E=h[0],N=h[1];c.moveTo(E,N);for(var C=2;C<m.length;){var L=h[C++],I=h[C++],k=h[C++],B=h[C++],G=h[C++],W=h[C++];E===L&&N===I&&k===G&&B===W?c.lineTo(G,W):c.bezierCurveTo(L,I,k,B,G,W),E=G,N=W}}}})}function nd(r,t,e){if(!r||!t)return t;var a=e.done,n=e.during;kb(r,t),t.__morphT=0;function i(){Ki(t,"buildPath"),Ki(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Z({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},e)),t}function zN(r,t,e,a,n,i){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=i===a?0:Math.round(32767*(t-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Pl(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=z(i,function(s,l){return{cp:s,z:zN(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ob(r){return kN(r.path,r.count)}function bv(){return{fromIndividuals:[],toIndividuals:[],count:0}}function VN(r,t,e){var a=[];function n(b){for(var w=0;w<b.length;w++){var x=b[w];Ll(x)?n(x.childrenRef()):x instanceof st&&a.push(x)}}n(r);var i=a.length;if(!i)return bv();var o=e.dividePath||Ob,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),bv();a=Pl(a),s=Pl(s);for(var l=e.done,u=e.during,f=e.individualDelay,h=new Cr,c=0;c<i;c++){var v=a[c],d=s[c];d.parent=t,d.copyTransform(h),f||kb(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(b){for(var w=0;w<s.length;w++)s[w].addSelfToZr(b)}Il(t,"addSelfToZr",{after:function(b){g(b)}}),Il(t,"removeSelfFromZr",{after:function(b){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(b)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Ki(t,"addSelfToZr"),Ki(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(p(),l&&l())},c=0;c<y;c++){var S=f?Z({delay:(e.delay||0)+f(c,y,a[c],s[c]),done:_},e):e;nd(a[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},Z({during:function(b){for(var w=0;w<y;w++){var x=s[w];x.__morphT=t.__morphT,x.dirtyShape()}u&&u(b)},done:function(){p();for(var b=0;b<r.length;b++)Ki(r[b],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function HN(r,t,e){var a=t.length,n=[],i=e.dividePath||Ob;function o(v){for(var d=0;d<v.length;d++){var g=v[d];Ll(g)?o(g.childrenRef()):g instanceof st&&n.push(g)}}if(Ll(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push($v(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),bv()}n=Pl(n),t=Pl(t);for(var h=e.individualDelay,u=0;u<a;u++){var c=h?Z({delay:(e.delay||0)+h(u,a,n[u],t[u])},e):e;nd(n[u],t[u],c)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function t0(r){return V(r[0])}function e0(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var WN={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=$v(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function jf(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=Yl("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;t0(r)&&(u=r,f=t),t0(t)&&(u=t,f=r);function h(y,m,_,S,b){var w=y.many,x=y.one;if(w.length===1&&!b){var T=m?w[0]:x,C=m?x:w[0];if(Ll(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?Z({delay:s(_,S)},l):l;nd(T,C,M),i(T,C,T,C,M)}}else for(var D=Z({dividePath:WN[e],individualDelay:s&&function(N,k,B,G){return s(N+_,S)}},l),L=m?VN(w,x,D):HN(x,w,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var M=s?Z({delay:s(E,R)},l):l;i(I[E],P[E],m?w[E]:y.one,m?y.one:w[E],M)}}for(var c=u?u===r:r.length>t.length,v=u?e0(f,u):e0(c?t:r,[c?r:t]),d=0,g=0;g<v.length;g++)d+=v[g].many.length;for(var p=0,g=0;g<v.length;g++)h(v[g],c,p,d),p+=v[g].many.length}function Ba(r){if(!r)return[];if(V(r)){for(var t=[],e=0;e<r.length;e++)t.push(Ba(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof st&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var Nb=1e4,UN=0,r0=1,a0=2,YN=wt();function ZN(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function XN(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function n0(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=ZN(r,n);if(i){var o=XN(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function i0(r){var t=[];return A(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>Nb))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:n0(a,o,n,!1),childGroupId:n0(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function th(r,t,e){r.traverse(function(a){a instanceof st&&Rt(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function eh(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Mn(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function $N(r,t,e){var a=Yl("update",e,t);a&&r.traverse(function(n){if(n instanceof na){var i=UA(n);i&&n.animateFrom({style:i},a)}})}function qN(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Bb(r,t,e){var a=i0(r),n=i0(t);function i(_,S,b,w,x){(b||_)&&S.animateFrom({style:b&&b!==_?F(F({},b.style),_.style):_.style},x)}var o=!1,s=UN,l=U(),u=U();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var h=n[f].groupId;if(u.get(h)){s=r0;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=a0;break}}function v(_,S){return function(b){var w=b.data,x=b.dataIndex;return S?w.getId(x):_?s===r0?b.childGroupId:b.groupId:s===a0?b.childGroupId:b.groupId}}var d=qN(a,n),g={};if(!d)for(var f=0;f<n.length;f++){var p=n[f],y=p.data.getItemGraphicEl(p.dataIndex);y&&(g[y.id]=!0)}function m(_,S){var b=a[S],w=n[_],x=w.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=w.data.getItemGraphicEl(w.dataIndex);if(T===C){C&&$N(C,w.dataIndex,x);return}T&&g[T.id]||C&&(Mn(C),T?(Mn(T),eh(T),o=!0,jf(Ba(T),Ba(C),w.divide,x,_,i)):th(C,x,_))}new vo(a,n,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var b=n[_],w=b.data,x=w.hostModel,T=w.getItemGraphicEl(b.dataIndex),C=Tt(z(S,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==T&&!g[M.id]});T&&(Mn(T),C.length?(A(C,function(M){Mn(M),eh(M)}),o=!0,jf(Ba(C),Ba(T),b.divide,x,_,i)):th(T,x,b.dataIndex))}).updateOneToMany(function(_,S){var b=a[S],w=b.data.getItemGraphicEl(b.dataIndex);if(!(w&&g[w.id])){var x=Tt(z(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==w}),T=n[_[0]].data.hostModel;x.length&&(A(x,function(C){return Mn(C)}),w?(Mn(w),eh(w),o=!0,jf(Ba(w),Ba(x),b.divide,T,_[0],i)):A(x,function(C){return th(C,T,_[0])}))}}).updateManyToMany(function(_,S){new vo(S,_,function(b){return a[b].data.getId(a[b].dataIndex)},function(b){return n[b].data.getId(n[b].dataIndex)}).update(function(b,w){m(_[b],S[w])}).execute()}).execute(),o&&A(t,function(_){var S=_.data,b=S.hostModel,w=b&&e.getViewOfSeriesModel(b),x=Yl("update",b,0);w&&b.isAnimationEnabled()&&x&&x.duration>0&&w.group.traverse(function(T){T instanceof st&&!T.animators.length&&T.animateFrom({style:{opacity:0}},x)})})}function o0(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function s0(r){return V(r)?r.sort().join(","):r}function Xr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function KN(r,t){var e=U(),a=U(),n=U();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=o0(i),f=s0(u);a.set(f,{dataGroupId:s,data:l}),V(u)&&A(u,function(h){n.set(h,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=o0(i),u=s0(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Xr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Xr(s),data:s}]});else if(V(l)){var h=[];A(l,function(d){var g=a.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Xr(g.data),data:g.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Xr(s)}]})}else{var c=n.get(l);if(c){var v=e.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Xr(c.data)}],newSeries:[]},e.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Xr(s)})}}}}),e}function l0(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function QN(r,t,e,a){var n=[],i=[];A(Mt(r.from),function(o){var s=l0(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Xr(t.oldData[s]),groupIdDim:o.dimension})}),A(Mt(r.to),function(o){var s=l0(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Xr(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&Bb(n,i,a)}function h5(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Mt(a.seriesTransition),function(n){A(Mt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Fs]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=YN(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Mt(i),function(v){QN(v,n,a,e)});else{var o=KN(n,a);A(o.keys(),function(v){var d=o.get(v);Bb(d.oldSeries,d.newSeries,e)})}A(a.updatedSeries,function(v){v[Fs]&&(v[Fs]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],h=0;h<s.length;h++){var c=s[h].getData();c.count()<Nb&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(c))}})}function u0(r,t,e){var a=Ir.createCanvas(),n=t.getWidth(),i=t.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*e,a.height=i*e,a}var rh=function(r){O(t,r);function t(e,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Ks,typeof e=="string"?o=u0(e,a,n):X(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(Lv(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}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=u0("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new et(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new et(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,w=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var C=new et(0,0,0,0);C.copy(T),C.union(m),o[x]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,D=T.width*T.height,L=u.width*u.height,I=L-M-D;I<b&&(b=I,w=x)}}if(l&&(o[w].union(m),S=!0),!S){var _=new et(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(n,i,!0,!0),d=c.__isRendered&&(c.__dirty&ge||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&ge||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=a[h],v=c&&c.shouldBePainted(n,i,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!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])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),i.width=e*n,i.height=a*n,s&&(s.width=e*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),a&&a!=="transparent"){var _=void 0;if(mo(a)){var S=a.global||a.__width===y&&a.__height===m;_=S&&a.__canvasGradient||Uh(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m}else p0(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,_=Yh(o,a,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||a,o.fillRect(g,p,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!n||u?d(0,0,s,l):n.length&&A(n,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Ee),f0=1e5,ka=314159,Cs=.01,JN=.001;function jN(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function tB(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 eB=function(){function r(t,e,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=F({},a||{}),this.dpr=a.devicePixelRatio||Ks,this._singleCanvas=i,this.root=t;var o=t.style;o&&(Lv(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=t,h=f.width,c=f.height;a.width!=null&&(h=a.width),a.height!=null&&(c=a.height),this.dpr=a.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new rh(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[ka]=v,v.zlevel=ka,s.push(ka),this._domRoot=t}else{this._width=as(t,0,a),this._height=as(t,1,a);var u=this._domRoot=tB(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),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,a,t,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===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,a=this._hoverlayer;if(a&&a.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(f0)),i||(i=a.ctx,i.save()),Wa(i,s,n,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(f0)},r.prototype.paintOne=function(t,e){iS(t,e)},r.prototype._paintList=function(t,e,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Ys(function(){l._paintList(t,e,a,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(ka).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,a)})},r.prototype._doPaintList=function(t,e,a){for(var n=this,i=[],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||a)&&i.push(u)}for(var f=!0,h=!1,c=function(g){var p=i[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=a?p.__startIndex:p.__drawIndex,S=!a&&p.incremental&&Date.now,b=S&&Date.now(),w=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,w,m);else if(_===p.__startIndex){var x=t[_];(!x.incremental||!x.notClear||a)&&p.clear(!1,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(T=_;T<p.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),n._doPaintEl(R,p,o,I,P,T===p.__endIndex-1),S){var E=Date.now()-b;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=v.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*M,L.y*M,L.width*M,L.height*M),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)c(d);return lt.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,a,n,i,o){var s=e.ctx;if(a){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Wa(s,t,i,o),t.setPrevPaintRect(l))}else Wa(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ka);var a=this._layers[t];return a||(a=new rh("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?nt(a,this._layerConfig[t],!0):this._layerConfig[t-Cs]&&nt(a,this._layerConfig[t-Cs],!0),e&&(a.virtual=e),this.insertLayer(t,a),a.initContext()),a},r.prototype.insertLayer=function(t,e){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[t]&&jN(e)){if(i>0&&t>n[0]){for(l=0;l<i-1&&!(n[l]<t&&n[l+1]>t);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[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 a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var n=t[a];if(n.zlevel!==t[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=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+JN,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Cs:0),this._needsManuallyCompositing),f.__builtin__||El("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&ge&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?nt(a[t],e,!0):a[t]=e;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===t||i===t+Cs){var o=this._layers[i];nt(o,a[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,a=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],a.splice(ut(a,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=as(i,0,n),e=as(i,1,n),a.style.display="",this._width!==t||e!==this._height){a.style.width=t+"px",a.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(ka).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[ka].dom;var e=new rh("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,n,i):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.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];Wa(a,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function v5(r){r.registerPainter("canvas",eB)}export{ut as $,at as A,Kv as B,Jn as C,Z as D,ia as E,Zv as F,ot as G,Vl as H,al as I,Re as J,F as K,Jv as L,qR as M,wt as N,mt as O,st as P,V as Q,Rw as R,ne as S,Xe as T,xc as U,Gw as V,bc as W,$ as X,H as Y,KC as Z,O as _,ap as a,ew as a$,Pt as a0,tE as a1,Zt as a2,RB as a3,Mt as a4,xM as a5,IB as a6,Er as a7,Ct as a8,fe as a9,wB as aA,dt as aB,On as aC,w0 as aD,Ol as aE,As as aF,on as aG,Iv as aH,Pv as aI,nx as aJ,S0 as aK,ix as aL,$s as aM,Gt as aN,Ua as aO,lw as aP,iE as aQ,de as aR,fu as aS,ru as aT,xw as aU,js as aV,OD as aW,qe as aX,io as aY,Rt as aZ,q as a_,$e as aa,ao as ab,vo as ac,Q as ad,et as ae,Un as af,kv as ag,Mp as ah,Ye as ai,Ph as aj,M_ as ak,hA as al,Dv as am,na as an,_t as ao,j as ap,X as aq,B0 as ar,ua as as,At as at,he as au,TB as av,Xx as aw,$x as ax,ta as ay,Tt as az,Xt as b,ch as b$,rw as b0,nl as b1,ww as b2,aa as b3,Qi as b4,nt as b5,ou as b6,ul as b7,zt as b8,ht as b9,Ao as bA,dw as bB,iu as bC,KA as bD,Dr as bE,rt as bF,su as bG,lu as bH,kc as bI,Ax as bJ,Ir as bK,Ec as bL,vr as bM,kT as bN,Pc as bO,Kl as bP,jh as bQ,UL as bR,WL as bS,XI as bT,dl as bU,Bi as bV,ve as bW,Mr as bX,tl as bY,_e as bZ,Js as b_,ha as ba,HS as bb,_l as bc,Qn as bd,Yn as be,Po as bf,Lt as bg,Nt as bh,Ei as bi,Ic as bj,_E as bk,me as bl,rc as bm,DE as bn,IE as bo,LE as bp,Tl as bq,ja as br,tn as bs,AB as bt,dL as bu,LM as bv,$l as bw,bB as bx,ae as by,ct as bz,Oc as c,ec as c$,re as c0,ur as c1,eo as c2,Ds as c3,$t as c4,Yl as c5,mp as c6,ZB as c7,t1 as c8,tc as c9,Fg as cA,jA as cB,bb as cC,He as cD,Ci as cE,xo as cF,uD as cG,el as cH,ra as cI,sa as cJ,FS as cK,Tc as cL,Xl as cM,lt as cN,rn as cO,Ar as cP,Bs as cQ,nA as cR,b_ as cS,h2 as cT,PL as cU,Mv as cV,Mo as cW,Wn as cX,Zl as cY,CB as cZ,En as c_,$A as ca,aR as cb,Io as cc,te as cd,oo as ce,We as cf,rR as cg,ob as ch,VE as ci,ub as cj,nb as ck,fb as cl,HE as cm,Xc as cn,Do as co,PB as cp,Zn as cq,MB as cr,pM as cs,fr as ct,GT as cu,TM as cv,Co as cw,bM as cx,f2 as cy,EB as cz,vt as d,q0 as d$,xB as d0,Hn as d1,sB as d2,oB as d3,rS as d4,v_ as d5,De as d6,U_ as d7,k0 as d8,dT as d9,mB as dA,v5 as dB,$B as dC,qB as dD,KB as dE,QB as dF,JB as dG,t5 as dH,e5 as dI,r5 as dJ,a5 as dK,n5 as dL,i5 as dM,o5 as dN,s5 as dO,l5 as dP,rN as dQ,hN as dR,u5 as dS,f5 as dT,h5 as dU,XB as dV,LL as dW,YB as dX,SB as dY,Z0 as dZ,IT as d_,yB as da,gB as db,Pr as dc,dh as dd,no as de,Jx as df,jx as dg,bd as dh,pB as di,Kx as dj,i_ as dk,Ka as dl,fB as dm,Bv as dn,uB as dp,$C as dq,XC as dr,Wb as ds,dB as dt,cB as du,MT as dv,lB as dw,hB as dx,vB as dy,as as dz,U as e,ET as e0,Fv as e1,$0 as e2,Ql as e3,Qv as e4,qv as e5,WA as e6,Z_ as e7,Ul as e8,Q_ as e9,iS as eA,nB as eB,yI as eC,dr as eD,lL as eE,uL as eF,CS as eG,o1 as eH,fL as eI,oL as eJ,sL as eK,xS as eL,TS as eM,bS as eN,hL as eO,Sc as eP,un as eQ,HB as eR,qb as eS,gc as eT,aB as eU,kB as eV,rB as eW,_B as eX,JA as ea,XA as eb,YA as ec,$_ as ed,Ke as ee,K_ as ef,p1 as eg,LB as eh,DB as ei,y1 as ej,wM as ek,g1 as el,hC as em,c0 as en,j2 as eo,iB as ep,BB as eq,UB as er,OB as es,FB as et,iL as eu,GB as ev,VB as ew,wS as ex,zB as ey,WB as ez,la as f,kr as g,A as h,NB as i,oa as j,ce as k,z as l,IM as m,jB as n,v2 as o,hr as p,Y as q,u_ as r,fa as s,kw as t,Se as u,wR as v,bR as w,Rc as x,bt as y,Ws as z};
