数据可视化大屏
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

40 wiersze
1.0MB

  1. import{a as kT,b as VT}from"./chunk-4YNSMQCN.js";import{A as tl,Aa as Qc,Ba as Tn,C as el,Fa as pl,Ha as hl,Ka as vl,Oa as dl,Ra as ml,Ta as gl,V as rl,W as ET,Wa as yl,X as PT,_ as il,_a as xl,ab as _l,b as qc,ba as zT,bb as RT,ca as wn,cb as Cn,e as Qs,eb as Sl,fb as NT,gb as bl,ib as wl,jb as OT,ka as al,oa as nl,qa as ol,sa as sl,ta as ll,u as $s,v as Js,va as ul,xa as fl,y as jc,za as Kc}from"./chunk-XXGLJ63T.js";import{$ as Ng,Ab as Bi,B as pT,Bb as Wa,Cb as Re,Db as bn,Ec as DT,Ee as Xs,Fa as xT,G as cT,Gb as CT,Hb as Ae,Hc as MT,Ia as wt,Ic as IT,Ja as $r,Jb as AT,Je as qs,Ka as Og,Kb as Gg,Ke as Wc,Le as Yc,Lf as cl,Na as _T,O as hT,Qb as Zs,Ra as qt,S as vT,Ta as mt,Ua as ST,Va as kg,Wa as bT,Z as dT,a as Fc,ac as df,ad as LT,bb as Vg,bc as va,cb as Ug,db as Bg,eb as Ft,f as sT,fb as Wt,ff as js,ga as mT,gb as Ce,gc as mf,hb as ca,ib as ha,ja as Ys,jb as wT,jf as Ks,k as lT,la as Te,lc as Hc,m as Rg,ma as gT,n as uT,na as yT,ob as TT,pa as vf,qb as Jt,rb as hi,s as hf,sb as ze,tf as Zc,u as fT,vd as gf,vf as Xc,wb as Fg,xb as Sn,yb as Gc,zb as Ui}from"./chunk-TV7RDLL7.js";var Hg=function(r,e){return Hg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Hg(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var nF=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),oF=function(){function r(){this.browser=new nF,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}(),Mo=new oF;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mo.wxa=!0,Mo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Mo.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Mo.node=!0,Mo.svgSupported=!0):sF(navigator.userAgent,Mo);function sF(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Tt=Mo;var $c=12,Wg="sans-serif",Jr=$c+"px "+Wg,lF=20,uF=100,fF="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pF(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),a=(r.charCodeAt(t)-lF)/uF;e[i]=a}return e}var cF=pF(fF),pr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,i){if(!r){var a=pr.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==i&&(e=r.font=i||Jr),r.measureText(t);t=t||"",i=i||Jr;var n=/(\d+)px/.exec(i),o=n&&+n[1]||$c,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=cF[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i}};var FT=$e(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),GT=$e(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Tl=Object.prototype.toString,th=Array.prototype,hF=th.forEach,vF=th.filter,Yg=th.slice,dF=th.map,UT=(function(){}).constructor,Jc=UT?UT.prototype:null,Zg="__proto__",mF=2311;function eh(){return mF++}function Io(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var e=r,t=Tl.call(r);if(t==="[object Array]"){if(!yf(r)){e=[];for(var i=0,a=r.length;i<a;i++)e[i]=$(r[i])}}else if(GT[t]){if(!yf(r)){var n=r.constructor;if(n.from)e=n.from(r);else{e=new n(r.length);for(var i=0,a=r.length;i<a;i++)e[i]=r[i]}}}else if(!FT[t]&&!yf(r)&&!An(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Zg&&(e[o]=$(r[o]))}return e}function lt(r,e,t){if(!j(e)||!j(r))return t?$(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==Zg){var a=r[i],n=e[i];j(n)&&j(a)&&!O(n)&&!O(a)&&!An(n)&&!An(a)&&!BT(n)&&!BT(a)&&!yf(n)&&!yf(a)?lt(a,n,t):(t||!(i in r))&&(r[i]=$(e[i]))}return r}function Cl(r,e){for(var t=r[0],i=1,a=r.length;i<a;i++)t=lt(t,r[i],e);return t}function N(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Zg&&(r[t]=e[t]);return r}function q(r,e,t){for(var i=ft(e),a=0;a<i.length;a++){var n=i[a];(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}return r}var xJ=pr.createCanvas;function nt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function HT(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function jt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}else q(r,e,t)}function me(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,e,t){if(r&&e)if(r.forEach&&r.forEach===hF)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&e.call(t,r[n],n,r)}function k(r,e,t){if(!r)return[];if(!e)return rh(r);if(r.map&&r.map===dF)return r.map(e,t);for(var i=[],a=0,n=r.length;a<n;a++)i.push(e.call(t,r[a],a,r));return i}function $e(r,e,t,i){if(r&&e){for(var a=0,n=r.length;a<n;a++)t=e.call(i,t,r[a],a,r);return t}}function Dt(r,e,t){if(!r)return[];if(!e)return rh(r);if(r.filter&&r.filter===vF)return r.filter(e,t);for(var i=[],a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r)&&i.push(r[a]);return i}function WT(r,e,t){if(r&&e){for(var i=0,a=r.length;i<a;i++)if(e.call(t,r[i],i,r))return r[i]}}function ft(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function gF(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(Yg.call(arguments)))}}var W=Jc&&X(Jc.bind)?Jc.call.bind(Jc.bind):gF;function et(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Yg.call(arguments)))}}function O(r){return Array.isArray?Array.isArray(r):Tl.call(r)==="[object Array]"}function X(r){return typeof r=="function"}function F(r){return typeof r=="string"}function xf(r){return Tl.call(r)==="[object String]"}function vt(r){return typeof r=="number"}function j(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function BT(r){return!!FT[Tl.call(r)]}function De(r){return!!GT[Tl.call(r)]}function An(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Dn(r){return r.colorStops!=null}function YT(r){return r.image!=null}function ZT(r){return Tl.call(r)==="[object RegExp]"}function Mn(r){return r!==r}function ae(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function at(r,e){return r??e}function Be(r,e,t){return r??e??t}function rh(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Yg.apply(r,e)}function Al(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function ne(r,e){if(!r)throw new Error(e)}function Fe(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var XT="__ec_primitive__";function Lo(r){r[XT]=!0}function yf(r){return r[XT]}var yF=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ft(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r}(),qT=typeof Map=="function";function xF(){return qT?new Map:new yF}var _F=function(){function r(e){var t=O(e);this.data=xF();var i=this;e instanceof r?e.each(a):e&&w(e,a);function a(n,o){t?i.set(n,o):i.set(o,n)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,a){e.call(t,i,a)})},r.prototype.keys=function(){var e=this.data.keys();return qT?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function Y(r){return new _F(r)}function Eo(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var a=r.length,i=0;i<e.length;i++)t[i+a]=e[i];return t}function In(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&N(t,e),t}function ih(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function te(){}var Dl=180/Math.PI;var Xg=function(r,e){return Xg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},Xg(r,e)};function Mt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function da(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ge(r,e){return r[0]=e[0],r[1]=e[1],r}function Lr(r){return[r[0],r[1]]}function jT(r,e,t){return r[0]=e,r[1]=t,r}function qg(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function _f(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function Fi(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function ah(r){return Math.sqrt(SF(r))}function SF(r){return r[0]*r[0]+r[1]*r[1]}function Ml(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function vi(r,e){var t=ah(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function nh(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var di=nh;function bF(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ya=bF;function Il(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function ge(r,e,t){var i=e[0],a=e[1];return r[0]=t[0]*i+t[2]*a+t[4],r[1]=t[1]*i+t[3]*a+t[5],r}function ti(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ei(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Ll=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),wF=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ll(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(n,o,e),this.handler.dispatchToElement(new Ll(t,e),"drag",e.event);var s=this.handler.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ll(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ll(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ll(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ll(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),KT=wF;var TF=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(a=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===i)return this;var l={h:i,query:t,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var a=[],n=0,o=i[e].length;n<o;n++)i[e][n].h!==t&&a.push(i[e][n]);i[e]=a}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r}(),Ne=TF;var CF=Math.log(2);function jg(r,e,t,i,a,n){var o=i+"-"+a,s=r.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/CF);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var p=0,c=0,h=0;c<s;c++){var v=1<<c;v&a||(p+=(h%2?-1:1)*r[t][c]*jg(r,e-1,f,u,a|v,n),h++)}return n[o]=p,p}function Kg(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},a=jg(t,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*jg(t,7,o===0?1:0,1<<o,1<<s,i)/a*e[o];return function(l,u,f){var p=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/p,l[1]=(u*n[3]+f*n[4]+n[5])/p}}}var QT="___zrEVENTSAVED",Qg=[];function $T(r,e,t,i,a){return oh(Qg,e,i,a,!0)&&oh(r,t,Qg[0],Qg[1])}function oh(r,e,t,i,a){if(e.getBoundingClientRect&&Tt.domSupported&&!$g(e)){var n=e[QT]||(e[QT]={}),o=AF(e,n),s=DF(o,n,a);if(s)return s(r,t,i),!0}return!1}function AF(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function DF(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&n&&c===n[p]&&h===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?Kg(s,o):Kg(o,s))}function $g(r){return r.nodeName.toUpperCase()==="CANVAS"}var MF=/([&<>"'])/g,IF={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Je(r){return r==null?"":(r+"").replace(MF,function(e,t){return IF[t]})}var LF=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jg=[],EF=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function sh(r,e,t,i){return t=t||{},i?JT(r,e,t):EF&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):JT(r,e,t),t}function JT(r,e,t){if(Tt.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if($g(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if(oh(Jg,r,i,a)){t.zrX=Jg[0],t.zrY=Jg[1];return}}t.zrX=t.zrY=0}function lh(r){return r||window.event}function Er(r,e,t){if(e=lh(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&sh(r,o,e,t)}else{sh(r,e,e,t);var n=PF(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&LF.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function PF(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Sf(r,e,t,i){r.addEventListener(e,t,i)}function tC(r,e,t,i){r.removeEventListener(e,t,i)}var Pr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ty(r){return r.which===2||r.which===3}var rC=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=sh(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(e){for(var t in ey)if(ey.hasOwnProperty(t)){var i=ey[t](this._track,e);if(i)return i}},r}();function eC(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function zF(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ey={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,a=(r[t-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=eC(i)/eC(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=zF(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Me(){return[1,0,0,1,0,0]}function Ln(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function bf(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function zr(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function tr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Rr(r,e,t,i){i===void 0&&(i=[0,0]);var a=e[0],n=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),p=Math.cos(t);return r[0]=a*p+s*f,r[1]=-a*f+s*p,r[2]=n*p+l*f,r[3]=-n*f+p*l,r[4]=p*(o-i[0])+f*(u-i[1])+i[0],r[5]=p*(u-i[1])-f*(o-i[0])+i[1],r}function Pl(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function mi(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function iC(r){var e=Me();return bf(e,r),e}var RF=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r}(),bt=RF;var uh=Math.min,fh=Math.max,Po=new bt,zo=new bt,Ro=new bt,No=new bt,wf=new bt,Tf=new bt,NF=function(){function r(e,t,i,a){i<0&&(e=e+i,i=-i),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=i,this.height=a}return r.prototype.union=function(e){var t=uh(e.x,this.x),i=uh(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fh(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fh(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,a=e.height/t.height,n=Me();return tr(n,n,[-t.x,-t.y]),Pl(n,n,[i,a]),tr(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,f=e.y,p=e.y+e.height,c=!(n<l||u<a||s<f||p<o);if(t){var h=1/0,v=0,d=Math.abs(n-l),m=Math.abs(u-a),g=Math.abs(s-f),y=Math.abs(p-o),x=Math.min(d,m),_=Math.min(g,y);n<l||u<a?x>v&&(v=x,d<m?bt.set(Tf,-d,0):bt.set(Tf,m,0)):x<h&&(h=x,d<m?bt.set(wf,d,0):bt.set(wf,-m,0)),s<f||p<o?_>v&&(v=_,g<y?bt.set(Tf,0,-g):bt.set(Tf,0,y)):x<h&&(h=x,g<y?bt.set(wf,0,g):bt.set(wf,0,-y))}return t&&bt.copy(t,c?wf:Tf),c},r.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,i){if(!i){e!==t&&r.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Po.x=Ro.x=t.x,Po.y=No.y=t.y,zo.x=No.x=t.x+t.width,zo.y=Ro.y=t.y+t.height,Po.transform(i),No.transform(i),zo.transform(i),Ro.transform(i),e.x=uh(Po.x,zo.x,Ro.x,No.x),e.y=uh(Po.y,zo.y,Ro.y,No.y);var l=fh(Po.x,zo.x,Ro.x,No.x),u=fh(Po.y,zo.y,Ro.y,No.y);e.width=l-e.x,e.height=u-e.y},r}(),rt=NF;var nC="silent";function OF(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:kF}}function kF(){Pr(this.event)}var VF=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ne),Cf=function(){function r(e,t){this.x=e,this.y=t}return r}(),UF=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ry=new rt(0,0,0,0),oC=function(r){Mt(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Cf(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new VF,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new KT(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(w(UF,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,a=t.zrY,n=sC(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Cf(i,a):this.findHover(i,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Cf(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];a&&a.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=OF(i,t,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,a){var n=this.storage.getDisplayList(),o=new Cf(t,i);if(aC(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new rt(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ry.copy(c.getBoundingRect()),c.transform&&ry.applyTransform(c.transform),ry.intersect(f)&&s.push(c))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<d;g+=v){var y=t+m*Math.cos(g),x=i+m*Math.sin(g);if(aC(s,o,y,x,a),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new rC);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;t.gestureEvent=o;var s=new Cf;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e}(Ne);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){oC.prototype[r]=function(e){var t=e.zrX,i=e.zrY,a=sC(this,t,i),n,o;if((r!=="mouseup"||!a)&&(n=this.findHover(t,i),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||di(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function BF(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s||i.parent}return a?nC:!0}return!1}function aC(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=BF(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==nC)){e.target=o;break}}}function sC(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var lC=oC;var pC=32,Af=7;function FF(r){for(var e=0;r>=pC;)e|=r&1,r>>=1;return r+e}function uC(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a<t&&i(r[a],r[a-1])<0;)a++;GF(r,e,a)}else for(;a<t&&i(r[a],r[a-1])>=0;)a++;return a-e}function GF(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function fC(r,e,t,i,a){for(i===e&&i++;i<t;i++){for(var n=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function iy(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l<s&&n(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function ay(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;l<s&&n(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function HF(r,e){var t=Af,i,a,n=0,o=[];i=[],a=[];function s(h,v){i[n]=h,a[n]=v,n+=1}function l(){for(;n>1;){var h=n-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;n>1;){var h=n-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=a[h],m=i[h+1],g=a[h+1];a[h]=d+g,h===n-3&&(i[h+1]=i[h+2],a[h+1]=a[h+2]),n--;var y=ay(r[m],r,v,d,0,e);v+=y,d-=y,d!==0&&(g=iy(r[v+d-1],r,m,g,g-1,e),g!==0&&(d<=g?p(v,d,m,g):c(v,d,m,g)))}function p(h,v,d,m){var g=0;for(g=0;g<v;g++)o[g]=r[h+g];var y=0,x=d,_=h;if(r[_++]=r[x++],--m===0){for(g=0;g<v;g++)r[_+g]=o[y+g];return}if(v===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y];return}for(var b=t,S,T,C;;){S=0,T=0,C=!1;do if(e(r[x],o[y])<0){if(r[_++]=r[x++],T++,S=0,--m===0){C=!0;break}}else if(r[_++]=o[y++],S++,T=0,--v===1){C=!0;break}while((S|T)<b);if(C)break;do{if(S=ay(r[x],o,y,v,0,e),S!==0){for(g=0;g<S;g++)r[_+g]=o[y+g];if(_+=S,y+=S,v-=S,v<=1){C=!0;break}}if(r[_++]=r[x++],--m===0){C=!0;break}if(T=iy(o[y],r,x,m,0,e),T!==0){for(g=0;g<T;g++)r[_+g]=r[x+g];if(_+=T,x+=T,m-=T,m===0){C=!0;break}}if(r[_++]=o[y++],--v===1){C=!0;break}b--}while(S>=Af||T>=Af);if(C)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),v===1){for(g=0;g<m;g++)r[_+g]=r[x+g];r[_+m]=o[y]}else{if(v===0)throw new Error;for(g=0;g<v;g++)r[_+g]=o[y+g]}}function c(h,v,d,m){var g=0;for(g=0;g<m;g++)o[g]=r[d+g];var y=h+v-1,x=m-1,_=d+m-1,b=0,S=0;if(r[_--]=r[y--],--v===0){for(b=_-(m-1),g=0;g<m;g++)r[b+g]=o[g];return}if(m===1){for(_-=v,y-=v,S=_+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x];return}for(var T=t;;){var C=0,A=0,D=!1;do if(e(o[x],r[y])<0){if(r[_--]=r[y--],C++,A=0,--v===0){D=!0;break}}else if(r[_--]=o[x--],A++,C=0,--m===1){D=!0;break}while((C|A)<T);if(D)break;do{if(C=v-ay(o[x],r,h,v,v-1,e),C!==0){for(_-=C,y-=C,v-=C,S=_+1,b=y+1,g=C-1;g>=0;g--)r[S+g]=r[b+g];if(v===0){D=!0;break}}if(r[_--]=o[x--],--m===1){D=!0;break}if(A=m-iy(r[y],o,0,m,m-1,e),A!==0){for(_-=A,x-=A,m-=A,S=_+1,b=x+1,g=0;g<A;g++)r[S+g]=o[b+g];if(m<=1){D=!0;break}}if(r[_--]=r[y--],--v===0){D=!0;break}T--}while(C>=Af||A>=Af);if(D)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(_-=v,y-=v,S=_+1,b=y+1,g=v-1;g>=0;g--)r[S+g]=r[b+g];r[_]=o[x]}else{if(m===0)throw new Error;for(b=_-(m-1),g=0;g<m;g++)r[b+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Oo(r,e,t,i){t||(t=0),i||(i=r.length);var a=i-t;if(!(a<2)){var n=0;if(a<pC){n=uC(r,t,i,e),fC(r,t,i,t+n,e);return}var o=HF(r,e),s=FF(a);do{if(n=uC(r,t,i,e),n<s){var l=a;l>s&&(l=s),fC(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var Ve=1,ko=2,En=4;var cC=!1;function ny(){cC||(cC=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hC(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var WF=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hC}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,a=0,n=t.length;a<n;a++)this._updateAndAddDisplayable(t[a],null,e);i.length=this._displayListLen,Oo(i,hC)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)t=null;else if(a){t?t=t.slice():t=[];for(var n=a,o=e;n;)n.parent=o,n.updateTransform(),t.push(n),o=n,n=n.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Ve),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(ny(),f.z=0),isNaN(f.z2)&&(ny(),f.z2=0),isNaN(f.zlevel)&&(ny(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,t,i);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,i);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var a=nt(this._roots,e);a>=0&&this._roots.splice(a,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}(),vC=WF;var dC;dC=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Df=dC;var ph={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 e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ph.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?ph.bounceIn(r*2)*.5:ph.bounceOut(r*2-1)*.5+.5}},ch=ph;var hh=Math.pow,zn=Math.sqrt,dh=1e-8,gC=1e-4,mC=zn(3),vh=1/3,ma=da(),gi=da(),zl=da();function Pn(r){return r>-dh&&r<dh}function yC(r){return r>dh||r<-dh}function ye(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function oy(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Vo(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,h=0;if(Pn(f)&&Pn(p))if(Pn(s))n[0]=0;else{var v=-l/s;v>=0&&v<=1&&(n[h++]=v)}else{var d=p*p-4*f*c;if(Pn(d)){var m=p/f,v=-s/o+m,g=-m/2;v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g)}else if(d>0){var y=zn(d),x=f*s+1.5*o*(-p+y),_=f*s+1.5*o*(-p-y);x<0?x=-hh(-x,vh):x=hh(x,vh),_<0?_=-hh(-_,vh):_=hh(_,vh);var v=(-s-(x+_))/(3*o);v>=0&&v<=1&&(n[h++]=v)}else{var b=(2*f*s-3*o*p)/(2*zn(f*f*f)),S=Math.acos(b)/3,T=zn(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),g=(-s+T*(C+mC*Math.sin(S)))/(3*o),A=(-s+T*(C-mC*Math.sin(S)))/(3*o);v>=0&&v<=1&&(n[h++]=v),g>=0&&g<=1&&(n[h++]=g),A>=0&&A<=1&&(n[h++]=A)}}return h}function mh(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Pn(o)){if(yC(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(Pn(f))a[0]=-n/(2*o);else if(f>0){var p=zn(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function yi(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function gh(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,h=1/0,v,d,m,g;ma[0]=l,ma[1]=u;for(var y=0;y<1;y+=.05)gi[0]=ye(r,t,a,o,y),gi[1]=ye(e,i,n,s,y),m=Ya(ma,gi),m<h&&(p=y,h=m);h=1/0;for(var x=0;x<32&&!(c<gC);x++)v=p-c,d=p+c,gi[0]=ye(r,t,a,o,v),gi[1]=ye(e,i,n,s,v),m=Ya(gi,ma),v>=0&&m<h?(p=v,h=m):(zl[0]=ye(r,t,a,o,d),zl[1]=ye(e,i,n,s,d),g=Ya(zl,ma),d<=1&&g<h?(p=d,h=g):c*=.5);return f&&(f[0]=ye(r,t,a,o,p),f[1]=ye(e,i,n,s,p)),zn(h)}function xC(r,e,t,i,a,n,o,s,l){for(var u=r,f=e,p=0,c=1/l,h=1;h<=l;h++){var v=h*c,d=ye(r,t,a,o,v),m=ye(e,i,n,s,v),g=d-u,y=m-f;p+=Math.sqrt(g*g+y*y),u=d,f=m}return p}function Se(r,e,t,i){var a=1-i;return a*(a*r+2*i*e)+i*i*t}function Mf(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function _C(r,e,t,i,a){var n=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Pn(n)){if(yC(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(Pn(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=zn(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function yh(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function Rn(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function xh(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;ma[0]=o,ma[1]=s;for(var c=0;c<1;c+=.05){gi[0]=Se(r,t,a,c),gi[1]=Se(e,i,n,c);var h=Ya(ma,gi);h<p&&(u=c,p=h)}p=1/0;for(var v=0;v<32&&!(f<gC);v++){var d=u-f,m=u+f;gi[0]=Se(r,t,a,d),gi[1]=Se(e,i,n,d);var h=Ya(gi,ma);if(d>=0&&h<p)u=d,p=h;else{zl[0]=Se(r,t,a,m),zl[1]=Se(e,i,n,m);var g=Ya(zl,ma);m<=1&&g<p?(u=m,p=g):f*=.5}}return l&&(l[0]=Se(r,t,a,u),l[1]=Se(e,i,n,u)),zn(p)}function SC(r,e,t,i,a,n,o){for(var s=r,l=e,u=0,f=1/o,p=1;p<=o;p++){var c=p*f,h=Se(r,t,a,c),v=Se(e,i,n,c),d=h-s,m=v-l;u+=Math.sqrt(d*d+m*m),s=h,l=v}return u}var YF=/cubic-bezier\(([0-9,\.e ]+)\)/;function Rl(r){var e=r&&YF.exec(r);if(e){var t=e[1].split(","),i=+Fe(t[0]),a=+Fe(t[1]),n=+Fe(t[2]),o=+Fe(t[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Vo(0,i,n,1,l,s)&&ye(0,a,o,1,s[0])}}}var ZF=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||te,this.ondestroy=e.ondestroy||te,this.onrestart=e.onrestart||te,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;this._startTime=e-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(e){this.easing=e,this.easingFunc=X(e)?e:ch[e]||Rl(e)},r}(),bC=ZF;var wC=function(){function r(e){this.value=e}return r}();var XF=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new wC(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}();var qF=function(){function r(e){this._list=new XF,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new wC(t),s.key=e,i.insertEntry(s),a[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Za=qF;var TC={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 Gi(r){return r=Math.round(r),r<0?0:r>255?255:r}function jF(r){return r=Math.round(r),r<0?0:r>360?360:r}function Lf(r){return r<0?0:r>1?1:r}function sy(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Gi(parseFloat(e)/100*255):Gi(parseInt(e,10))}function Uo(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Lf(parseFloat(e)/100):Lf(parseFloat(e))}function ly(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Nn(r,e,t){return r+(e-r)*t}function xi(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function uy(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var AC=new Za(20),_h=null;function Nl(r,e){_h&&uy(_h,e),_h=AC.put(r,_h||e.slice())}function qe(r,e){if(r){e=e||[];var t=AC.get(r);if(t)return uy(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in TC)return uy(e,TC[i]),Nl(r,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){xi(e,0,0,0,1);return}return xi(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),Nl(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){xi(e,0,0,0,1);return}return xi(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),Nl(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?xi(e,+u[0],+u[1],+u[2],1):xi(e,0,0,0,1);f=Uo(u.pop());case"rgb":if(u.length>=3)return xi(e,sy(u[0]),sy(u[1]),sy(u[2]),u.length===3?f:Uo(u[3])),Nl(r,e),e;xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){xi(e,0,0,0,1);return}return u[3]=Uo(u[3]),fy(u,e),Nl(r,e),e;case"hsl":if(u.length!==3){xi(e,0,0,0,1);return}return fy(u,e),Nl(r,e),e;default:return}}xi(e,0,0,0,1)}}function fy(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=Uo(r[1]),a=Uo(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],xi(e,Gi(ly(o,n,t+1/3)*255),Gi(ly(o,n,t)*255),Gi(ly(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function KF(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Sh(r,e){var t=qe(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return _i(t,t.length===4?"rgba":"rgb")}}function bh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Gi(Nn(o[0],s[0],l)),t[1]=Gi(Nn(o[1],s[1],l)),t[2]=Gi(Nn(o[2],s[2],l)),t[3]=Lf(Nn(o[3],s[3],l)),t}}function DC(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=qe(e[a]),s=qe(e[n]),l=i-a,u=_i([Gi(Nn(o[0],s[0],l)),Gi(Nn(o[1],s[1],l)),Gi(Nn(o[2],s[2],l)),Lf(Nn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}function Bo(r,e,t,i){var a=qe(r);if(r)return a=KF(a),e!=null&&(a[0]=jF(e)),t!=null&&(a[1]=Uo(t)),i!=null&&(a[2]=Uo(i)),_i(fy(a),"rgba")}function Fo(r,e){var t=qe(r);if(t&&e!=null)return t[3]=Lf(e),_i(t,"rgba")}function _i(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Ol(r,e){var t=qe(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var CC=new Za(100);function Ef(r){if(F(r)){var e=CC.get(r);return e||(e=Sh(r,-.1),CC.put(r,e)),e}else if(Dn(r)){var t=N({},r);return t.colorStops=k(r.colorStops,function(i){return{offset:i.offset,color:Sh(i.color,-.1)}}),t}return r}var Th=Math.round;function On(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=qe(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var MC=1e-4;function ga(r){return r<MC&&r>-MC}function wh(r){return Th(r*1e3)/1e3}function Ch(r){return Th(r*1e4)/1e4}function IC(r){return"matrix("+wh(r[0])+","+wh(r[1])+","+wh(r[2])+","+wh(r[3])+","+Ch(r[4])+","+Ch(r[5])+")"}var LC={left:"start",right:"end",center:"middle",middle:"middle"};function EC(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function PC(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function zC(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function cy(r){return r&&!!r.image}function QF(r){return r&&!!r.svgElement}function Pf(r){return cy(r)||QF(r)}function Ah(r){return r.type==="linear"}function Dh(r){return r.type==="radial"}function Mh(r){return r&&(r.type==="linear"||r.type==="radial")}function zf(r){return"url(#"+r+")"}function Ih(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Lh(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*Dl,a=at(r.scaleX,1),n=at(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+Th(o*Dl)+"deg, "+Th(s*Dl)+"deg)"),l.join(" ")}var RC=function(){return Tt.hasGlobalWindow&&X(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}();var vy=Array.prototype.slice;function Xa(r,e,t){return(e-r)*t+r}function hy(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=Xa(e[n],t[n],i);return r}function $F(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=Xa(e[o][s],t[o][s],i)}return r}function Eh(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=e[n]+t[n]*i;return r}function NC(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function JF(r,e){for(var t=r.length,i=e.length,a=t>i?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(t,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function t5(r,e,t){var i=r,a=e;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(t===1?a[l]:vy.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Go(r){if(me(r)){var e=r.length;if(me(r[0])){for(var t=[],i=0;i<e;i++)t.push(vy.call(r[i]));return t}return vy.call(r)}return r}function Rh(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 e5(r){return me(r&&r[0])?2:1}var Ph=0,Nh=1,VC=2,Nf=3,dy=4,my=5,OC=6;function kC(r){return r===dy||r===my}function zh(r){return r===Nh||r===VC}var Rf=[0,0,0,0],r5=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=OC,l=t;if(me(t)){var u=e5(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(o=!0)}else if(vt(t)&&!Mn(t))s=Ph;else if(F(t))if(!isNaN(+t))s=Ph;else{var f=qe(t);f&&(l=f,s=Nf)}else if(Dn(t)){var p=N({},l);p.colorStops=k(t.colorStops,function(h){return{offset:h.offset,color:qe(h.color)}}),Ah(t)?s=dy:Dh(t)&&(s=my),l=p}n===0?this.valType=s:(s!==this.valType||s===OC)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=X(i)?i:ch[i]||Rl(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=zh(a),u=kC(a),f=0;f<n;f++){var p=i[f],c=p.value,h=o.value;p.percent=p.time/e,s||(l&&f!==n-1?t5(c,h,a):u&&JF(c.colorStops,h.colorStops))}if(!s&&a!==my&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var v=i[0].value,f=0;f<n;f++)a===Ph?i[f].additiveValue=i[f].value-v:a===Nf?i[f].additiveValue=Eh([],i[f].value,v,-1):zh(a)&&(i[f].additiveValue=a===Nh?Eh([],i[f].value,v,-1):NC([],i[f].value,v,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Nf,f,p=this._lastFr,c=Math.min,h,v;if(s===1)h=v=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=c(p+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=t;var m=v.percent-h.percent,g=m===0?1:c((t-h.percent)/m,1);v.easingFunc&&(g=v.easingFunc(g));var y=i?this._additiveValue:u?Rf:e[l];if((zh(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?h.rawValue:v.rawValue;else if(zh(n))n===Nh?hy(y,h[a],v[a],g):$F(y,h[a],v[a],g);else if(kC(n)){var x=h[a],_=v[a],b=n===dy;e[l]={type:b?"linear":"radial",x:Xa(x.x,_.x,g),y:Xa(x.y,_.y,g),colorStops:k(x.colorStops,function(T,C){var A=_.colorStops[C];return{offset:Xa(T.offset,A.offset,g),color:Rh(hy([],T.color,A.color,g))}}),global:_.global},b?(e[l].x2=Xa(x.x2,_.x2,g),e[l].y2=Xa(x.y2,_.y2,g)):e[l].r=Xa(x.r,_.r,g)}else if(u)hy(y,h[a],v[a],g),i||(e[l]=Rh(y));else{var S=Xa(h[a],v[a],g);i?this._additiveValue=S:e[l]=S}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Ph?e[i]=e[i]+a:t===Nf?(qe(e[i],Rf),Eh(Rf,Rf,a,1),e[i]=Rh(Rf)):t===Nh?Eh(e[i],e[i],a,1):t===VC&&NC(e[i],e[i],a,1)},r}(),i5=function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Io("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ft(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new r5(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var p=f.keyframes,c=p[p.length-1];u=c&&c.value,f.valType===Nf&&u&&(u=Rh(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Go(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Go(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(t=n)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=u[f-1];p&&(t._target[s.propName]=p.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new bC({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var v=t._additiveAnimators;if(v){for(var d=!1,m=0;m<v.length;m++)if(v[m]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,h);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return k(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<e.length;n++){var o=i[e[n]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var n=t[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[n]=Go(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ft(e);for(var i=0;i<t.length;i++){var a=t[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),Of=i5;function Ho(){return new Date().getTime()}var a5=function(r){Mt(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,a=t.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Ho()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Df(i),!t._paused&&t.update())}Df(i)},e.prototype.start=function(){this._running||(this._time=Ho(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ho(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ho()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var a=new Of(t,i.loop);return this.addAnimator(a),a},e}(Ne),UC=a5;var n5=300,gy=Tt.domSupported,yy=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=k(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}}(),BC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},FC=!1;function Sy(r){var e=r.pointerType;return e==="pen"||e==="touch"}function o5(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 xy(r){r&&(r.zrByTouch=!0)}function s5(r,e){return Er(r.dom,new l5(r,e),!0)}function HC(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var l5=function(){function r(e,t){this.stopPropagation=te,this.stopImmediatePropagation=te,this.preventDefault=te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Hi={mousedown:function(r){r=Er(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Er(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Er(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Er(this.dom,r);var e=r.toElement||r.relatedTarget;HC(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){FC=!0,r=Er(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){FC||(r=Er(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Er(this.dom,r),xy(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Hi.mousemove.call(this,r),Hi.mousedown.call(this,r)},touchmove:function(r){r=Er(this.dom,r),xy(r),this.handler.processGesture(r,"change"),Hi.mousemove.call(this,r)},touchend:function(r){r=Er(this.dom,r),xy(r),this.handler.processGesture(r,"end"),Hi.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<n5&&Hi.click.call(this,r)},pointerdown:function(r){Hi.mousedown.call(this,r)},pointermove:function(r){Sy(r)||Hi.mousemove.call(this,r)},pointerup:function(r){Hi.mouseup.call(this,r)},pointerout:function(r){Sy(r)||Hi.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){Hi[r]=function(e){e=Er(this.dom,e),this.trigger(r,e)}});var by={pointermove:function(r){Sy(r)||by.mousemove.call(this,r)},pointerup:function(r){by.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function u5(r,e){var t=e.domHandlers;Tt.pointerEventsSupported?w(yy.pointer,function(i){Oh(e,i,function(a){t[i].call(r,a)})}):(Tt.touchEventsSupported&&w(yy.touch,function(i){Oh(e,i,function(a){t[i].call(r,a),o5(e)})}),w(yy.mouse,function(i){Oh(e,i,function(a){a=lh(a),e.touching||t[i].call(r,a)})}))}function f5(r,e){Tt.pointerEventsSupported?w(BC.pointer,t):Tt.touchEventsSupported||w(BC.mouse,t);function t(i){function a(n){n=lh(n),HC(r,n.target)||(n=s5(r,n),e.domHandlers[i].call(r,n))}Oh(e,i,a,{capture:!0})}}function Oh(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,Sf(r.domTarget,e,t,i)}function _y(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&tC(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var GC=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),p5=function(r){Mt(e,r);function e(t,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=i,a._localHandlerScope=new GC(t,Hi),gy&&(a._globalHandlerScope=new GC(document,by)),u5(a,a._localHandlerScope),a}return e.prototype.dispose=function(){_y(this._localHandlerScope),gy&&_y(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,gy&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?f5(this,i):_y(i)}},e}(Ne),WC=p5;var YC=1;Tt.hasGlobalWindow&&(YC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Wo=YC,kf=.4,Vf="#333",Uf="#ccc",ZC="#eee";var XC=Ln,qC=5e-5;function Yo(r){return r>qC||r<-qC}var Zo=[],kl=[],wy=Me(),Ty=Math.abs,c5=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Yo(this.rotation)||Yo(this.x)||Yo(this.y)||Yo(this.scaleX-1)||Yo(this.scaleY-1)||Yo(this.skewX)||Yo(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(XC(i),this.invTransform=null);return}i=i||Me(),t?this.getLocalTransform(i):XC(i),e&&(t?zr(i,e,i):bf(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Zo);var i=Zo[0]<0?-1:1,a=Zo[1]<0?-1:1,n=((Zo[0]-i)*t+i)/Zo[0]||0,o=((Zo[1]-a)*t+a)/Zo[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Me(),mi(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Me(),zr(kl,e.invTransform,t),t=kl);var i=this.originX,a=this.originY;(i||a)&&(wy[4]=i,wy[5]=a,zr(kl,t,wy),kl[4]-=i,kl[5]-=a,t=kl),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&ge(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&ge(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ty(e[0]-1)>1e-10&&Ty(e[3]-1)>1e-10?Math.sqrt(Ty(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Cy(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,p=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var v=i+s,d=a+l;t[4]=-v*n-c*d*o,t[5]=-d*o-h*v*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=h*n,t[2]=c*o,u&&Rr(t,t,u),t[4]+=i+f,t[5]+=a+p,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ii=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Cy(r,e){for(var t=0;t<ii.length;t++){var i=ii[t];r[i]=e[i]}}var Nr=c5;var jC={};function Or(r,e){e=e||Jr;var t=jC[e];t||(t=jC[e]=new Za(500));var i=t.get(r);return i==null&&(i=pr.measureText(r,e).width,t.put(r,i)),i}function KC(r,e,t,i){var a=Or(r,e),n=Ul(e),o=Vl(0,a,t),s=Xo(0,n,i),l=new rt(o,s,a,n);return l}function ya(r,e,t,i){var a=((r||"")+"").split(`
  2. `),n=a.length;if(n===1)return KC(a[0],e,t,i);for(var o=new rt(0,0,0,0),s=0;s<a.length;s++){var l=KC(a[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function Vl(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Xo(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Ul(r){return Or("\u56FD",r)}function er(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function qo(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=er(i[0],t.width),u+=er(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var Ay="__zr_normal__",Dy=ii.concat(["ignore"]),h5=$e(ii,function(r,e){return r[e]=!0,r},{ignore:!1}),Bl={},v5=new rt(0,0,0,0),Ly=function(){function r(e){this.id=eh(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(t),i.position!=null){var f=v5;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Bl,i,f):qo(Bl,i,f),n.x=Bl.x,n.y=Bl.y,o=Bl.align,s=Bl.verticalAlign;var p=i.origin;if(p&&i.rotation!=null){var c=void 0,h=void 0;p==="center"?(c=f.width*.5,h=f.height*.5):(c=er(p[0],f.width),h=er(p[1],f.height)),u=!0,n.originX=-n.x+c+(a?0:f.x),n.originY=-n.y+h+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var v=i.offset;v&&(n.x+=v[0],n.y+=v[1],u||(n.originX=-v[0],n.originY=-v[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,x=void 0;d&&this.canBeInsideText()?(g=i.insideFill,y=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),x=!0)):(g=i.outsideFill,y=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),x=!0)),g=g||"#000",(g!==m.fill||y!==m.stroke||x!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=y,m.autoStroke=x,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ve,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Uf:Vf},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&qe(t);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,_i(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var i=e,a=ft(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==Ay)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Dy)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var a=0;a<i.length;a++){var n=i[a];e[n]!=null&&!(n in t)&&(t[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Ay,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===Ay,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(nt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){Io("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,c=this._textGuide;return p&&p.useState(e,t,i,f),c&&c.useState(e,t,i,f),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ve),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var p=a[o-1],c=!!(p&&p.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&v&&v.duration>0,v);var d=this._textContent,m=this._textGuide;d&&d.useStates(e,t,c),m&&m.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ve)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=nt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=nt(a,e),o=nt(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a<e.length;a++){var n=e[a];N(t,n),n.textConfig&&(i=i||{},N(i,n.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,a,n,o){var s=!(t&&a);t&&t.textConfig?(this.textConfig=N({},a?this.textConfig:i.textConfig),N(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Dy.length;f++){var p=Dy[f],c=n&&h5[p];t&&t[p]!=null?c?(u=!0,l[p]=t[p]):this[p]=t[p]:s&&i[p]!=null&&(c?(u=!0,l[p]=i[p]):this[p]=i[p])}if(!n)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(t||i)[v]:t||i)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Nr,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Ve;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var a=e?this[e]:this,n=new Of(a,t,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},r.prototype.addAnimator=function(e,t){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var n=a.animators,o=nt(n,e);o>=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!e||e===s.scope?s.stop(t):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(e,t,i){My(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){My(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,a){for(var n=My(this,t,i,a),o=0;o<n.length;o++)n[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ve;var t={};function i(n,o,s){t[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(e,n,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,p){Object.defineProperty(p,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(p,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),r}();jt(Ly,Ne);jt(Ly,Nr);function My(r,e,t,i,a){t=t||{};var n=[];QC(r,"",r,e,t,i,n,a);var o=n.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},p=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(v,d){t.during(d)});for(var c=0;c<n.length;c++){var h=n[c];f&&h.done(f),p&&h.aborted(p),t.force&&h.duration(t.duration),h.start(t.easing)}return n}function Iy(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function d5(r){return me(r[0])}function m5(r,e,t){if(me(e[t]))if(me(r[t])||(r[t]=[]),De(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),Iy(r[t],e[t],i))}else{var a=e[t],n=r[t],o=a.length;if(d5(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?Iy(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else Iy(n,a,o);n.length=a.length}else r[t]=e[t]}function g5(r,e){return r===e||me(r)&&me(e)&&y5(r,e)}function y5(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function QC(r,e,t,i,a,n,o,s){for(var l=ft(i),u=a.duration,f=a.delay,p=a.additive,c=a.setToFinal,h=!j(n),v=r.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(h||n[g]))if(j(y)&&!me(y)&&!Dn(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}QC(r,g,t[g],y,a,n&&n[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var x=d.length;if(!p&&x)for(var _=0;_<v.length;_++){var b=v[_];if(b.targetName===e){var S=b.stopTracks(d);if(S){var T=nt(v,b);v.splice(T,1)}}}if(a.force||(d=Dt(d,function(M){return!g5(i[M],t[M])}),x=d.length),x>0||a.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},c&&(C={});for(var _=0;_<x;_++){var g=d[_];A[g]=t[g],c?C[g]=i[g]:t[g]=i[g]}}else if(c){D={};for(var _=0;_<x;_++){var g=d[_];D[g]=Go(t[g]),m5(t,i,g)}}var b=new Of(t,!1,!1,p?Dt(v,function(I){return I.targetName===e}):null);b.targetName=e,a.scope&&(b.scope=a.scope),c&&C&&b.whenWithKeys(0,C,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(u??500,s?A:i,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}var Vh=Ly;var $C=function(r){Mt(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===t)return i[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=nt(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,a=this._children,n=nt(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a<t.length;a++){var n=t[a];i&&n.removeSelfFromZr(i),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];t.call(i,o,n)}return this},e.prototype.traverse=function(t,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=t.call(i,n);n.isGroup&&!o&&n.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new rt(0,0,0,0),a=t||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(rt.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e}(Vh);$C.prototype.type="group";var K=$C;var Uh={},JC={};function x5(r){delete JC[r]}function _5(r){if(!r)return!1;if(typeof r=="string")return Ol(r,1)<kf;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,a=0;a<i;a++)t+=Ol(e[a].color,1);return t/=i,t<kf}return!1}var S5=function(){function r(e,t,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var n=new vC,o=i.renderer||"canvas";Uh[o]||(o=ft(Uh)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Uh[o](t,n,i,e),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!Tt.node&&!Tt.worker&&!l?new WC(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,p=f==null||f==="auto"?Tt.touchEventsSupported:!!f,c=44,h;p&&(h=at(i.pointerSize,c)),this.handler=new lC(n,s,u,s.root,h),this.animation=new UC({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=_5(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,i=Ho();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var a=Ho();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof K&&e[t].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,x5(this.id))},r}();function Py(r,e){var t=new S5(eh(),r,e);return JC[t.id]=t,t}function tA(r,e){Uh[r]=e}var Ey;function eA(r){if(typeof Ey=="function")return Ey(r)}function rA(r){Ey=r}var iA=1e-4,aA=20;function w5(r){return r.replace(/^\s+|\s+$/g,"")}function kt(r,e,t,i){var a=e[0],n=e[1],o=t[0],s=t[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return F(r)?w5(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Qt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),aA),r=(+r).toFixed(e),t?r:+r}function Ie(r){return r.sort(function(e,t){return e-t}),r}function rr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return zy(r)}function zy(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function Fl(r,e){var t=Math.log,i=Math.LN10,a=Math.floor(t(r[1]-r[0])/i),n=Math.round(t(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function nA(r,e,t){if(!r[e])return 0;var i=Ry(r,t);return i[e]||0}function Ry(r,e){var t=$e(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];for(var i=Math.pow(10,e),a=k(r,function(h){return(isNaN(h)?0:h)/t*i*100}),n=i*100,o=k(a,function(h){return Math.floor(h)}),s=$e(o,function(h,v){return h+v},0),l=k(a,function(h,v){return h-o[v]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,p=0,c=l.length;p<c;++p)l[p]>u&&(u=l[p],f=p);++o[f],l[f]=0,++s}return k(o,function(h){return h/i})}function oA(r,e){var t=Math.max(rr(r),rr(e)),i=r+e;return t>aA?i:Qt(i,t)}var Bf=9007199254740991;function Ff(r){var e=Math.PI*2;return(r%e+e)%e}function qa(r){return r>-iA&&r<iA}var T5=/^(?:(\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 ir(r){if(r instanceof Date)return r;if(F(r)){var e=T5.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Bh(r){return Math.pow(10,Gl(r))}function Gl(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function Hl(r,e){var t=Gl(r),i=Math.pow(10,t),a=r/i,n;return e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,t>=-20?+r.toFixed(t<0?-t:0):r}function Wl(r,e){var t=(r.length-1)*e+1,i=Math.floor(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function Gf(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<r.length;){for(var a=r[i].interval,n=r[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,n[o]=o?1:1-t),e=a[o],t=n[o];a[0]===a[1]&&n[0]*n[1]!==1?r.splice(i,1):i++}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 kr(r){var e=parseFloat(r);return e==r&&(e!==0||!F(r)||r.indexOf("x")<=0)?e:NaN}function jo(r){return!isNaN(kr(r))}function Fh(){return Math.round(Math.random()*9)}function sA(r,e){return e===0?r:sA(e,r%e)}function Ny(r,e){return r==null?e:e==null?r:r*e/sA(r,e)}var C5="[ECharts] ",lA={},A5=typeof console<"u"&&console.warn&&console.log;function D5(r,e,t){if(A5){if(t){if(lA[e])return;lA[e]=!0}console[r](C5+e)}}function uA(r,e){D5("warn",r,e)}function Gt(r){throw new Error(r)}function fA(r,e,t){return(e-r)*t+r}var pA="series\0",cA="\0_ec_\0";function Nt(r){return r instanceof Array?r:r==null?[]:[r]}function ai(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,a=t.length;i<a;i++){var n=t[i];!r.emphasis[e].hasOwnProperty(n)&&r[e].hasOwnProperty(n)&&(r.emphasis[e][n]=r[e][n])}}}var Oy=["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 Wi(r){return j(r)&&!O(r)&&!(r instanceof Date)?r.value:r}function hA(r){return j(r)&&!(r instanceof Array)}function Gh(r,e,t){var i=t==="normalMerge",a=t==="replaceMerge",n=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Y();w(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=M5(r,o,t);return(i||a)&&I5(s,r,o,e),i&&L5(s,e),i||a?E5(s,e,a):n&&P5(s,e),z5(s),s}function M5(r,e,t){var i=[];if(t==="replaceAll")return i;for(var a=0;a<r.length;a++){var n=r[a];n&&n.id!=null&&e.set(n.id,a),i.push({existing:t==="replaceMerge"||Yl(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function I5(r,e,t,i){w(i,function(a,n){if(!(!a||a.id==null)){var o=Hf(a.id),s=t.get(o);if(s!=null){var l=r[s];ne(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],i[n]=null}}})}function L5(r,e){w(e,function(t,i){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var n=r[a].existing;if(!r[a].newOption&&n&&(n.id==null||t.id==null)&&!Yl(t)&&!Yl(n)&&vA("name",n,t)){r[a].newOption=t,e[i]=null;return}}})}function E5(r,e,t){w(e,function(i){if(i){for(var a,n=0;(a=r[n])&&(a.newOption||Yl(a.existing)||a.existing&&i.id!=null&&!vA("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),n++}})}function P5(r,e){w(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function z5(r){var e=Y();w(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),w(r,function(t){var i=t.newOption;ne(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),w(r,function(t,i){var a=t.existing,n=t.newOption,o=t.keyInfo;if(j(n)){if(o.name=n.name!=null?Hf(n.name):a?a.name:pA+i,a)o.id=Hf(a.id);else if(n.id!=null)o.id=Hf(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function vA(r,e,t){var i=le(e[r],null),a=le(t[r],null);return i!=null&&a!=null&&i===a}function Hf(r){return le(r,"")}function le(r,e){return r==null?e:F(r)?r:vt(r)||xf(r)?r+"":e}function Zl(r){var e=r.name;return!!(e&&e.indexOf(pA))}function Yl(r){return r&&r.id!=null&&Hf(r.id).indexOf(cA)===0}function dA(r){return cA+r}function mA(r,e,t){w(r,function(i){var a=i.newOption;j(a)&&(i.keyInfo.mainType=e,i.keyInfo.subType=R5(e,a,i.existing,t))})}function R5(r,e,t,i){var a=e.type?e.type:t?t.subType:i.determineSubType(r,e);return a}function gA(r,e){var t={},i={};return a(r||[],t),a(e||[],i,t),[n(t),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var p=le(o[u].seriesId,null);if(p==null)return;for(var c=Nt(o[u].dataIndex),h=l&&l[p],v=0,d=c.length;v<d;v++){var m=c[v];h&&h[m]?h[m]=null:(s[p]||(s[p]={}))[m]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Si(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return O(e.dataIndex)?k(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return O(e.name)?k(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ot(){var r="__ec_inner_"+N5++;return function(e){return e[r]||(e[r]={})}}var N5=Fh();function kn(r,e,t){var i=Wf(e,t),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var p=Vn(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=p.models,s[f+"Model"]=p.models[0]}),s}function Wf(r,e){var t;if(F(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var a=Y(),n={},o=!1;return w(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],p=(u[2]||"").toLowerCase();if(!(!f||!p||e&&e.includeMainTypes&&nt(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[p]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var $t={useDefault:!0,enableAll:!1,enableNone:!1},yA={useDefault:!1,enableAll:!0,enableNone:!0};function Vn(r,e,t,i){i=i||$t;var a=t.index,n=t.id,o=t.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(ne(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ne(i.enableAll,'`"all"` is not a valid value on index option.'),a=n=o=null),s.models=r.queryComponents({mainType:e,index:a,id:n,name:o}),s)}function ky(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function xA(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function _A(r){return r==="auto"?Tt.domSupported?"html":"richText":r||"html"}function Yf(r,e){var t=Y(),i=[];return w(r,function(a){var n=e(a);(t.get(n)||(i.push(n),t.set(n,[]))).push(a)}),{keys:i,buckets:t}}function Hh(r,e,t,i,a){var n=e==null||e==="auto";if(i==null)return i;if(vt(i)){var o=fA(t||0,i,a);return Qt(o,n?Math.max(rr(t||0),rr(i)):e)}else{if(F(i))return a<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),p=0;p<f;++p){var c=r.getDimensionInfo(p);if(c&&c.type==="ordinal")s[p]=(a<1&&l?l:u)[p];else{var h=l&&l[p]?l[p]:0,v=u[p],o=fA(h,v,a);s[p]=Qt(o,n?Math.max(rr(h),rr(v)):e)}}return s}}var O5=".",Ko="___EC__COMPONENT__CONTAINER___",SA="___EC__EXTENDED_CLASS___";function Ur(r){var e={main:"",sub:""};if(r){var t=r.split(O5);e.main=t[0]||"",e.sub=t[1]||""}return e}function k5(r){ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function bA(r){return!!(r&&r[SA])}function Xl(r,e){r.$constructor=r,r.extend=function(t){var i=this,a;return V5(i)?a=function(n){E(o,n);function o(){return n.apply(this,arguments)||this}return o}(i):(a=function(){(t.$constructor||i).apply(this,arguments)},HT(a,this)),N(a.prototype,t),a[SA]=!0,a.extend=this.extend,a.superCall=B5,a.superApply=F5,a.superClass=i,a}}function V5(r){return X(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Wh(r,e){r.extend=e.extend}var U5=Math.round(Math.random()*10);function wA(r){var e=["__\0is_clz",U5++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function B5(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function F5(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Un(r){var e={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){k5(a),i.prototype.type=a;var n=Ur(a);if(!n.sub)e[n.main]=i;else if(n.sub!==Ko){var o=t(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=e[i];if(o&&o[Ko]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var a=Ur(i),n=[],o=e[a.main];return o&&o[Ko]?w(o,function(s,l){l!==Ko&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=Ur(i);return!!e[a.main]},r.getAllClassMainTypes=function(){var i=[];return w(e,function(a,n){i.push(n)}),i},r.hasSubTypes=function(i){var a=Ur(i),n=e[a.main];return n&&n[Ko]};function t(i){var a=e[i.main];return(!a||!a[Ko])&&(a=e[i.main]={},a[Ko]=!0),a}}function Br(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,a,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&nt(a,l)>=0||n&&nt(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var G5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],H5=Br(G5),TA=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return H5(this,e,t)},r}();var Uy=new Za(50);function AA(r){if(typeof r=="string"){var e=Uy.get(r);return e&&e.image}else return r}function Zf(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=Uy.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!ql(e)&&n.pending.push(o)):(e=pr.loadImage(r,CA,CA),e.__zrImageSrc=r,Uy.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function CA(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function ql(r){return r&&r.width&&r.height}var By=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Y5(r,e,t,i,a){if(!e)return"";var n=(r+"").split(`
  3. `);a=MA(e,t,i,a);for(var o=0,s=n.length;o<s;o++)n[o]=IA(n[o],a);return n.join(`
  4. `)}function MA(r,e,t,i){i=i||{};var a=N({},i);a.font=e,t=at(t,"..."),a.maxIterations=at(i.maxIterations,2);var n=a.minChar=at(i.minChar,0);a.cnCharWidth=Or("\u56FD",e);var o=a.ascCharWidth=Or("a",e);a.placeholder=at(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Or(t,e);return u>s&&(t="",u=0),s=r-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function IA(r,e){var t=e.containerWidth,i=e.font,a=e.contentWidth;if(!t)return"";var n=Or(r,i);if(n<=t)return r;for(var o=0;;o++){if(n<=a||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?Z5(r,a,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Or(r,i)}return r===""&&(r=e.placeholder),r}function Z5(r,e,t,i){for(var a=0,n=0,o=r.length;n<o&&a<e;n++){var s=r.charCodeAt(n);a+=0<=s&&s<=127?t:i}return n}function LA(r,e){r!=null&&(r+="");var t=e.overflow,i=e.padding,a=e.font,n=t==="truncate",o=Ul(a),s=at(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=e.width,p;f!=null&&(t==="break"||t==="breakAll")?p=r?PA(r,e.font,f,t==="breakAll",0).lines:[]:p=r?r.split(`
  5. `):[];var c=p.length*s,h=at(e.height,c);if(c>h&&u){var v=Math.floor(h/s);p=p.slice(0,v)}if(r&&n&&f!=null)for(var d=MA(f,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<p.length;m++)p[m]=IA(p[m],d);for(var g=h,y=0,m=0;m<p.length;m++)y=Math.max(Or(p[m],a),y);f==null&&(f=y);var x=y;return i&&(g+=i[0]+i[2],x+=i[1]+i[3],f+=i[1]+i[3]),l&&(x=f),{lines:p,height:h,outerWidth:x,outerHeight:g,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:c,width:f}}var X5=function(){function r(){}return r}(),DA=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),q5=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 EA(r,e){var t=new q5;if(r!=null&&(r+=""),!r)return t;for(var i=e.width,a=e.height,n=e.overflow,o=(n==="break"||n==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:n==="breakAll"}:null,s=By.lastIndex=0,l;(l=By.exec(r))!=null;){var u=l.index;u>s&&Fy(t,r.substring(s,u),e,o),Fy(t,l[2],e,o,l[1]),s=By.lastIndex}s<r.length&&Fy(t,r.substring(s,r.length),e,o);var f=[],p=0,c=0,h=e.padding,v=n==="truncate",d=e.lineOverflow==="truncate";function m(V,B,Z){V.width=B,V.lineHeight=Z,p+=Z,c=Math.max(c,B)}t:for(var g=0;g<t.lines.length;g++){for(var y=t.lines[g],x=0,_=0,b=0;b<y.tokens.length;b++){var S=y.tokens[b],T=S.styleName&&e.rich[S.styleName]||{},C=S.textPadding=T.padding,A=C?C[1]+C[3]:0,D=S.font=T.font||e.font;S.contentHeight=Ul(D);var M=at(T.height,S.contentHeight);if(S.innerHeight=M,C&&(M+=C[0]+C[2]),S.height=M,S.lineHeight=Be(T.lineHeight,e.lineHeight,M),S.align=T&&T.align||e.align,S.verticalAlign=T&&T.verticalAlign||"middle",d&&a!=null&&p+S.lineHeight>a){b>0?(y.tokens=y.tokens.slice(0,b),m(y,_,x),t.lines=t.lines.slice(0,g+1)):t.lines=t.lines.slice(0,g);break t}var I=T.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,f.push(S),S.contentWidth=Or(S.text,D);else{if(L){var P=T.backgroundColor,z=P&&P.image;z&&(z=AA(z),ql(z)&&(S.width=Math.max(S.width,z.width*M/z.height)))}var R=v&&i!=null?i-_:null;R!=null&&R<S.width?!L||R<A?(S.text="",S.width=S.contentWidth=0):(S.text=Y5(S.text,R-A,D,e.ellipsis,{minChar:e.truncateMinChar}),S.width=S.contentWidth=Or(S.text,D)):S.contentWidth=Or(S.text,D)}S.width+=A,_+=S.width,T&&(x=Math.max(x,S.lineHeight))}m(y,_,x)}t.outerWidth=t.width=at(i,c),t.outerHeight=t.height=at(a,p),t.contentHeight=p,t.contentWidth=c,h&&(t.outerWidth+=h[1]+h[3],t.outerHeight+=h[0]+h[2]);for(var g=0;g<f.length;g++){var S=f[g],U=S.percentWidth;S.width=parseInt(U,10)/100*t.width}return t}function Fy(r,e,t,i,a){var n=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,p;if(i){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var v=er(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
  6. `),u=!0),i.accumWidth=v}else{var d=PA(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,p=d.linesWidths,f=d.lines}}else f=e.split(`
  7. `);for(var m=0;m<f.length;m++){var g=f[m],y=new X5;if(y.styleName=a,y.text=g,y.isLineHolder=!g&&!n,typeof o.width=="number"?y.width=o.width:y.width=p?p[m]:Or(g,l),!m&&!u){var x=(s[s.length-1]||(s[0]=new DA)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=y:(g||!_||n)&&x.push(y)}else s.push(new DA([y]))}}function j5(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var K5=$e(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function Q5(r){return j5(r)?!!K5[r]:!0}function PA(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=0;p<r.length;p++){var c=r.charAt(p);if(c===`
  8. `){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Or(c,e),v=i?!1:!Q5(c);if(n.length?f+h>t:a+f+h>t){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=h)):v?(n.push(l),o.push(u),l=c,u=h):(n.push(c),o.push(h));continue}f+=h,v?(l+=c,u+=h):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var Wy="__zr_style_"+Math.round(Math.random()*10),xa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xa[Wy]=!0;var zA=["z","z2","invisible"],$5=["invisible"],J5=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ft(t),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(t[n]):r.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&tG(this,t,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new rt(0,0,0,0)),i?rt.applyTransform(t,a,i):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new rt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:N(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=ko,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ko)},e.prototype.styleUpdated=function(){this.__dirty&=~ko},e.prototype.createStyle=function(t){return In(xa,t)},e.prototype.useStyle=function(t){t[Wy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Wy]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,zA)},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.style?o?n?u=i.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(u,i.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var p=ft(f),c=0;c<p.length;c++){var h=p[c];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var v=ft(u),c=0;c<v.length;c++){var h=v[c];this.style[h]=this.style[h]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?$5:zA,c=0;c<d.length;c++){var h=d[c];i&&i[h]!=null?this[h]=i[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),a,n=0;n<t.length;n++){var o=t[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},e.prototype._mergeStyle=function(t,i){return N(t,i),t},e.prototype.getAnimationStyleProps=function(){return Qo},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Ve|ko}(),e}(Vh),Gy=new rt(0,0,0,0),Hy=new rt(0,0,0,0);function tG(r,e,t){return Gy.copy(r.getBoundingRect()),r.transform&&Gy.applyTransform(r.transform),Hy.width=e,Hy.height=t,!Gy.intersect(Hy)}var be=J5;var Fr=Math.min,Gr=Math.max,Yy=Math.sin,Zy=Math.cos,$o=Math.PI*2,Yh=da(),Zh=da(),Xh=da();function Jo(r,e,t){if(r.length!==0){for(var i=r[0],a=i[0],n=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],a=Fr(a,i[0]),n=Gr(n,i[0]),o=Fr(o,i[1]),s=Gr(s,i[1]);e[0]=a,e[1]=o,t[0]=n,t[1]=s}}function Xy(r,e,t,i,a,n){a[0]=Fr(r,t),a[1]=Fr(e,i),n[0]=Gr(r,t),n[1]=Gr(e,i)}var RA=[],NA=[];function OA(r,e,t,i,a,n,o,s,l,u){var f=mh,p=ye,c=f(r,t,a,o,RA);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var v=p(r,t,a,o,RA[h]);l[0]=Fr(v,l[0]),u[0]=Gr(v,u[0])}c=f(e,i,n,s,NA);for(var h=0;h<c;h++){var d=p(e,i,n,s,NA[h]);l[1]=Fr(d,l[1]),u[1]=Gr(d,u[1])}l[0]=Fr(r,l[0]),u[0]=Gr(r,u[0]),l[0]=Fr(o,l[0]),u[0]=Gr(o,u[0]),l[1]=Fr(e,l[1]),u[1]=Gr(e,u[1]),l[1]=Fr(s,l[1]),u[1]=Gr(s,u[1])}function kA(r,e,t,i,a,n,o,s){var l=yh,u=Se,f=Gr(Fr(l(r,t,a),1),0),p=Gr(Fr(l(e,i,n),1),0),c=u(r,t,a,f),h=u(e,i,n,p);o[0]=Fr(r,a,c),o[1]=Fr(e,n,h),s[0]=Gr(r,a,c),s[1]=Gr(e,n,h)}function VA(r,e,t,i,a,n,o,s,l){var u=ti,f=ei,p=Math.abs(a-n);if(p%$o<1e-4&&p>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(Yh[0]=Zy(a)*t+r,Yh[1]=Yy(a)*i+e,Zh[0]=Zy(n)*t+r,Zh[1]=Yy(n)*i+e,u(s,Yh,Zh),f(l,Yh,Zh),a=a%$o,a<0&&(a=a+$o),n=n%$o,n<0&&(n=n+$o),a>n&&!o?n+=$o:a<n&&o&&(a+=$o),o){var c=n;n=a,a=c}for(var h=0;h<n;h+=Math.PI/2)h>a&&(Xh[0]=Zy(h)*t+r,Xh[1]=Yy(h)*i+e,u(s,Xh,s),f(l,Xh,l))}var oe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ts=[],es=[],_a=[],Bn=[],Sa=[],ba=[],qy=Math.min,jy=Math.max,rs=Math.cos,is=Math.sin,ja=Math.abs,$y=Math.PI,Fn=$y*2,Ky=typeof Float32Array<"u",Xf=[];function Qy(r){var e=Math.round(r/$y*1e8)/1e8;return e%2*$y}function qf(r,e){var t=Qy(r[0]);t<0&&(t+=Fn);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=Fn?a=t+Fn:e&&t-a>=Fn?a=t-Fn:!e&&t>a?a=t+(Fn-Qy(t-a)):e&&t<a&&(a=t-(Fn-Qy(a-t))),r[0]=t,r[1]=a}var eG=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=ja(i/Wo/e)||0,this._uy=ja(i/Wo/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(oe.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=ja(e-this._xi),a=ja(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(oe.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(oe.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(oe.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),Xf[0]=a,Xf[1]=n,qf(Xf,o),a=Xf[0],n=Xf[1];var s=n-a;return this.addData(oe.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=rs(n)*i+e,this._yi=is(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(oe.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(oe.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Ky&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,a=this._len,n=0;n<t;n++)i+=e[n].len();Ky&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(var n=0;n<t;n++)for(var o=e[n].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(e,t,i,a,n,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var p=0;p<arguments.length;p++)f[this._len++]=arguments[p]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ky&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){_a[0]=_a[1]=Sa[0]=Sa[1]=Number.MAX_VALUE,Bn[0]=Bn[1]=ba[0]=ba[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],a=t,n=i),s){case oe.M:t=a=e[o++],i=n=e[o++],Sa[0]=a,Sa[1]=n,ba[0]=a,ba[1]=n;break;case oe.L:Xy(t,i,e[o],e[o+1],Sa,ba),t=e[o++],i=e[o++];break;case oe.C:OA(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Sa,ba),t=e[o++],i=e[o++];break;case oe.Q:kA(t,i,e[o++],e[o++],e[o],e[o+1],Sa,ba),t=e[o++],i=e[o++];break;case oe.A:var u=e[o++],f=e[o++],p=e[o++],c=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(a=rs(h)*p+u,n=is(h)*c+f),VA(u,f,p,c,h,v,d,Sa,ba),t=rs(v)*p+u,i=is(v)*c+f;break;case oe.R:a=t=e[o++],n=i=e[o++];var m=e[o++],g=e[o++];Xy(a,n,a+m,n+g,Sa,ba);break;case oe.Z:t=a,i=n;break}ti(_a,_a,Sa),ei(Bn,Bn,ba)}return o===0&&(_a[0]=_a[1]=Bn[0]=Bn[1]=0),new rt(_a[0],_a[1],Bn[0]-_a[0],Bn[1]-_a[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,p=0,c=0;c<t;){var h=e[c++],v=c===1;v&&(n=e[c],o=e[c+1],s=n,l=o);var d=-1;switch(h){case oe.M:n=s=e[c++],o=l=e[c++];break;case oe.L:{var m=e[c++],g=e[c++],y=m-n,x=g-o;(ja(y)>i||ja(x)>a||c===t-1)&&(d=Math.sqrt(y*y+x*x),n=m,o=g);break}case oe.C:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++],S=e[c++],T=e[c++];d=xC(n,o,_,b,m,g,S,T,10),n=S,o=T;break}case oe.Q:{var _=e[c++],b=e[c++],m=e[c++],g=e[c++];d=SC(n,o,_,b,m,g,10),n=m,o=g;break}case oe.A:var C=e[c++],A=e[c++],D=e[c++],M=e[c++],I=e[c++],L=e[c++],P=L+I;c+=1,v&&(s=rs(I)*D+C,l=is(I)*M+A),d=jy(D,M)*qy(Fn,Math.abs(L)),n=rs(P)*D+C,o=is(P)*M+A;break;case oe.R:{s=n=e[c++],l=o=e[c++];var z=e[c++],R=e[c++];d=z*2+R*2;break}case oe.Z:{var y=s-n,x=l-o;d=Math.sqrt(y*y+x*x),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,h=t<1,v,d,m=0,g=0,y,x=0,_,b;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=t*d,!y)))t:for(var S=0;S<o;){var T=i[S++],C=S===1;switch(C&&(u=i[S],f=i[S+1],s=u,l=f),T!==oe.L&&x>0&&(e.lineTo(_,b),x=0),T){case oe.M:s=u=i[S++],l=f=i[S++],e.moveTo(u,f);break;case oe.L:{p=i[S++],c=i[S++];var A=ja(p-u),D=ja(c-f);if(A>a||D>n){if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+p*I,f*(1-I)+c*I);break t}m+=M}e.lineTo(p,c),u=p,f=c,x=0}else{var L=A*A+D*D;L>x&&(_=p,b=c,x=L)}break}case oe.C:{var P=i[S++],z=i[S++],R=i[S++],U=i[S++],V=i[S++],B=i[S++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;yi(u,P,R,V,I,ts),yi(f,z,U,B,I,es),e.bezierCurveTo(ts[1],es[1],ts[2],es[2],ts[3],es[3]);break t}m+=M}e.bezierCurveTo(P,z,R,U,V,B),u=V,f=B;break}case oe.Q:{var P=i[S++],z=i[S++],R=i[S++],U=i[S++];if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;Rn(u,P,R,I,ts),Rn(f,z,U,I,es),e.quadraticCurveTo(ts[1],es[1],ts[2],es[2]);break t}m+=M}e.quadraticCurveTo(P,z,R,U),u=R,f=U;break}case oe.A:var Z=i[S++],Q=i[S++],st=i[S++],ct=i[S++],pt=i[S++],Lt=i[S++],Bt=i[S++],Et=!i[S++],gt=st>ct?st:ct,Pt=ja(st-ct)>.001,Ct=pt+Lt,ut=!1;if(h){var M=v[g++];m+M>y&&(Ct=pt+Lt*(y-m)/M,ut=!0),m+=M}if(Pt&&e.ellipse?e.ellipse(Z,Q,st,ct,Bt,pt,Ct,Et):e.arc(Z,Q,gt,pt,Ct,Et),ut)break t;C&&(s=rs(pt)*st+Z,l=is(pt)*ct+Q),u=rs(Ct)*st+Z,f=is(Ct)*ct+Q;break;case oe.R:s=u=i[S],l=f=i[S+1],p=i[S++],c=i[S++];var At=i[S++],ce=i[S++];if(h){var M=v[g++];if(m+M>y){var Yt=y-m;e.moveTo(p,c),e.lineTo(p+qy(Yt,At),c),Yt-=At,Yt>0&&e.lineTo(p+At,c+qy(Yt,ce)),Yt-=ce,Yt>0&&e.lineTo(p+jy(At-Yt,0),c+ce),Yt-=At,Yt>0&&e.lineTo(p,c+jy(ce-Yt,0));break t}m+=M}e.rect(p,c,At,ce);break;case oe.Z:if(h){var M=v[g++];if(m+M>y){var I=(y-m)/M;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}m+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=oe,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Ye=eG;function wa(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||n>r+s&&n>t+s||n<r-s&&n<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,p=f*f/(l*l+1);return p<=s/2*s/2}function FA(r,e,t,i,a,n,o,s,l,u,f){if(l===0)return!1;var p=l;if(f>e+p&&f>i+p&&f>n+p&&f>s+p||f<e-p&&f<i-p&&f<n-p&&f<s-p||u>r+p&&u>t+p&&u>a+p&&u>o+p||u<r-p&&u<t-p&&u<a-p&&u<o-p)return!1;var c=gh(r,e,t,i,a,n,o,s,u,f,null);return c<=p/2}function qh(r,e,t,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>n+u||l<e-u&&l<i-u&&l<n-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=xh(r,e,t,i,a,n,s,l,null);return f<=u/2}var HA=Math.PI*2;function ar(r){return r%=HA,r<0&&(r+=HA),r}var jf=Math.PI*2;function WA(r,e,t,i,a,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-a)%jf<1e-4)return!0;if(n){var p=i;i=ar(a),a=ar(p)}else i=ar(i),a=ar(a);i>a&&(a+=jf);var c=Math.atan2(l,s);return c<0&&(c+=jf),c>=i&&c<=a||c+jf>=i&&c+jf<=a}function bi(r,e,t,i,a,n){if(n>e&&n>i||n<e&&n<i||i===e)return 0;var o=(n-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var Gn=Ye.CMD,as=Math.PI*2,aG=1e-4;function nG(r,e){return Math.abs(r-e)<aG}var xr=[-1,-1,-1],wi=[-1,-1];function oG(){var r=wi[0];wi[0]=wi[1],wi[1]=r}function sG(r,e,t,i,a,n,o,s,l,u){if(u>e&&u>i&&u>n&&u>s||u<e&&u<i&&u<n&&u<s)return 0;var f=Vo(e,i,n,s,u,xr);if(f===0)return 0;for(var p=0,c=-1,h=void 0,v=void 0,d=0;d<f;d++){var m=xr[d],g=m===0||m===1?.5:1,y=ye(r,t,a,o,m);y<l||(c<0&&(c=mh(e,i,n,s,wi),wi[1]<wi[0]&&c>1&&oG(),h=ye(e,i,n,s,wi[0]),c>1&&(v=ye(e,i,n,s,wi[1]))),c===2?m<wi[0]?p+=h<e?g:-g:m<wi[1]?p+=v<h?g:-g:p+=s<v?g:-g:m<wi[0]?p+=h<e?g:-g:p+=s<h?g:-g)}return p}function lG(r,e,t,i,a,n,o,s){if(s>e&&s>i&&s>n||s<e&&s<i&&s<n)return 0;var l=_C(e,i,n,s,xr);if(l===0)return 0;var u=yh(e,i,n);if(u>=0&&u<=1){for(var f=0,p=Se(e,i,n,u),c=0;c<l;c++){var h=xr[c]===0||xr[c]===1?.5:1,v=Se(r,t,a,xr[c]);v<o||(xr[c]<u?f+=p<e?h:-h:f+=n<p?h:-h)}return f}else{var h=xr[0]===0||xr[0]===1?.5:1,v=Se(r,t,a,xr[0]);return v<o?0:n<e?h:-h}}function uG(r,e,t,i,a,n,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);xr[0]=-l,xr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=as-1e-4){i=0,a=as;var f=n?1:-1;return o>=xr[0]+r&&o<=xr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=as,a+=as);for(var c=0,h=0;h<2;h++){var v=xr[h];if(v+r>o){var d=Math.atan2(s,v),f=n?1:-1;d<0&&(d=as+d),(d>=i&&d<=a||d+as>=i&&d+as<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function YA(r,e,t,i,a){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,p=0,c,h,v=0;v<o;){var d=n[v++],m=v===1;switch(d===Gn.M&&v>1&&(t||(s+=bi(l,u,f,p,i,a))),m&&(l=n[v],u=n[v+1],f=l,p=u),d){case Gn.M:f=n[v++],p=n[v++],l=f,u=p;break;case Gn.L:if(t){if(wa(l,u,n[v],n[v+1],e,i,a))return!0}else s+=bi(l,u,n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.C:if(t){if(FA(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=sG(l,u,n[v++],n[v++],n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.Q:if(t){if(qh(l,u,n[v++],n[v++],n[v],n[v+1],e,i,a))return!0}else s+=lG(l,u,n[v++],n[v++],n[v],n[v+1],i,a)||0;l=n[v++],u=n[v++];break;case Gn.A:var g=n[v++],y=n[v++],x=n[v++],_=n[v++],b=n[v++],S=n[v++];v+=1;var T=!!(1-n[v++]);c=Math.cos(b)*x+g,h=Math.sin(b)*_+y,m?(f=c,p=h):s+=bi(l,u,c,h,i,a);var C=(i-g)*_/x+g;if(t){if(WA(g,y,_,b,b+S,T,e,C,a))return!0}else s+=uG(g,y,_,b,b+S,T,C,a);l=Math.cos(b+S)*x+g,u=Math.sin(b+S)*_+y;break;case Gn.R:f=l=n[v++],p=u=n[v++];var A=n[v++],D=n[v++];if(c=f+A,h=p+D,t){if(wa(f,p,c,p,e,i,a)||wa(c,p,c,h,e,i,a)||wa(c,h,f,h,e,i,a)||wa(f,h,f,p,e,i,a))return!0}else s+=bi(c,p,c,h,i,a),s+=bi(f,h,f,p,i,a);break;case Gn.Z:if(t){if(wa(l,u,f,p,e,i,a))return!0}else s+=bi(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!nG(u,p)&&(s+=bi(l,u,f,p,i,a)||0),s!==0}function ZA(r,e,t){return YA(r,0,!1,e,t)}function XA(r,e,t,i){return YA(r,e,!0,t,i)}var jl=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xa),pG={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qo.style)},Jy=ii.concat(["invisible","culling","z","z2","zlevel","parent"]),cG=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<Jy.length;++s)a[Jy[s]]=this[Jy[s]];a.__dirty|=Ve}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=ft(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=t[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(F(t)){var i=Ol(t,0);return i>.5?Vf:i>.2?ZC:Uf}else if(t)return Uf}return Vf},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(F(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Ol(t,0)<kf;if(n===o)return i}},e.prototype.buildPath=function(t,i,a){},e.prototype.pathUpdated=function(){this.__dirty&=~En},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Ye(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&En)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),XA(s,l/u,t,i)))return!0}if(this.hasFill())return ZA(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=En,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:N(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&En)},e.prototype.createStyle=function(t){return In(jl,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=N({},a.shape),N(u,i.shape)):(u=N({},n?this.shape:a.shape),N(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=N({},this.shape);for(var f={},p=ft(u),c=0;c<p.length;c++){var h=p[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),a,n=0;n<t.length;n++){var o=t[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},e.prototype.getAnimationStyleProps=function(){return pG},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(n){Mt(o,n);function o(s){var l=n.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(t.style)},o.prototype.getDefaultShape=function(){return $(t.shape)},o}(e);for(var a in t)typeof t[a]=="function"&&(i.prototype[a]=t[a]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Ve|ko|En}(),e}(be),it=cG;var hG=q({strokeFirst:!0,font:Jr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},jl),qA=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return In(hG,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var a=ya(i,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(be);qA.prototype.type="tspan";var Ka=qA;var vG=q({x:0,y:0},xa),dG={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qo.style)};function mG(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var jA=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return In(vG,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=mG(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return dG},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new rt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(be);jA.prototype.type="image";var re=jA;function KA(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),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 p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Kl=Math.round;function jh(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(Kl(i*2)===Kl(a*2)&&(r.x1=r.x2=Hn(i,s,!0)),Kl(n*2)===Kl(o*2)&&(r.y1=r.y2=Hn(n,s,!0))),r}}function Kh(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Hn(i,s,!0),r.y=Hn(a,s,!0),r.width=Math.max(Hn(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Hn(a+o,s,!1)-r.y,o===0?0:1)),r}}function Hn(r,e,t){if(!e)return r;var i=Kl(r*2);return(i+Kl(e))%2===0?i/2:(i+(t?1:-1))/2}var xG=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}();var _G={},QA=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xG},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Kh(_G,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?KA(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(it);QA.prototype.type="rect";var ht=QA;var $A={fill:"#000"},JA=2,SG={style:q({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},Qo.style)},sD=function(r){Mt(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$A,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,TG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new rt(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),n=n||t.clone(),n.union(t)):(n=n||l.clone(),n.union(l))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$A},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var a=i.rich,n=t.rich||a&&{};return N(t,i),a&&n?(this._mergeRich(n,a),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,i){for(var a=ft(i),n=0;n<a.length;n++){var o=a[n];t[o]=t[o]||{},N(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return SG},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||Jr,a=t.padding,n=oD(t),o=LA(n,t),s=t0(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,p=o.contentWidth,c=o.lines,h=o.lineHeight,v=this._defaultStyle,d=t.x||0,m=t.y||0,g=t.align||v.align||"left",y=t.verticalAlign||v.verticalAlign||"top",x=d,_=Xo(m,o.contentHeight,y);if(s||a){var b=Vl(d,f,g),S=Xo(m,u,y);s&&this._renderBackground(t,t,b,S,f,u)}_+=h/2,a&&(x=nD(d,g,a),y==="top"?_+=a[0]:y==="bottom"&&(_-=a[2]));for(var T=0,C=!1,A=aD("fill"in t?t.fill:(C=!0,v.fill)),D=iD("stroke"in t?t.stroke:!l&&(!v.autoStroke||C)?(T=JA,v.stroke):null),M=t.textShadowBlur>0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<c.length;P++){var z=this._getOrCreateChild(Ka),R=z.createStyle();z.useStyle(R),R.text=c[P],R.x=x,R.y=_,g&&(R.textAlign=g),R.textBaseline="middle",R.opacity=t.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=t.textShadowBlur||0,R.shadowColor=t.textShadowColor||"transparent",R.shadowOffsetX=t.textShadowOffsetX||0,R.shadowOffsetY=t.textShadowOffsetY||0),R.stroke=D,R.fill=A,D&&(R.lineWidth=t.lineWidth||T,R.lineDash=t.lineDash,R.lineDashOffset=t.lineDashOffset||0),R.font=i,eD(R,t),_+=h,I&&z.setBoundingRect(new rt(Vl(R.x,t.width,R.textAlign),Xo(R.y,L,R.textBaseline),p,L))}},e.prototype._updateRichTexts=function(){var t=this.style,i=oD(t),a=EA(i,t),n=a.width,o=a.outerWidth,s=a.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,p=this._defaultStyle,c=t.align||p.align,h=t.verticalAlign||p.verticalAlign,v=Vl(u,o,c),d=Xo(f,s,h),m=v,g=d;l&&(m+=l[3],g+=l[0]);var y=m+n;t0(t)&&this._renderBackground(t,t,v,d,o,s);for(var x=!!t.backgroundColor,_=0;_<a.lines.length;_++){for(var b=a.lines[_],S=b.tokens,T=S.length,C=b.lineHeight,A=b.width,D=0,M=m,I=y,L=T-1,P=void 0;D<T&&(P=S[D],!P.align||P.align==="left");)this._placeToken(P,t,C,g,M,"left",x),A-=P.width,M+=P.width,D++;for(;L>=0&&(P=S[L],P.align==="right");)this._placeToken(P,t,C,g,I,"right",x),A-=P.width,I-=P.width,L--;for(M+=(n-(M-m)-(y-I)-A)/2;D<=L;)P=S[D],this._placeToken(P,t,C,g,M+P.width/2,"center",x),M+=P.width,D++;g+=C}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&t0(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;v&&(o=nD(o,s,v),p-=t.height/2-v[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ka),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,x=0,_=aD("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=iD("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!g.autoStroke||y)?(x=JA,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,S&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Jr,m.opacity=Be(u.opacity,i.opacity,1),eD(m,u),b&&(m.lineWidth=Be(u.lineWidth,i.lineWidth,x),m.lineDash=at(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),_&&(m.fill=_);var T=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new rt(Vl(m.x,T,m.textAlign),Xo(m.y,C,m.textBaseline),T,C))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,h=t.borderRadius,v=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(ht),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=at(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(re),m.onload=function(){v.dirtyStyle()};var x=m.style;x.image=l.image,x.x=a,x.y=n,x.width=o,x.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=at(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(d||m).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Be(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return r0(t)&&(i=[t.fontStyle,t.fontWeight,e0(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Fe(i)||t.textFont||t.font},e}(be),bG={left:!0,right:1,center:1},wG={top:1,bottom:1,middle:1},tD=["fontStyle","fontWeight","fontSize","fontFamily"];function e0(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$c+"px":r+"px"}function eD(r,e){for(var t=0;t<tD.length;t++){var i=tD[t],a=e[i];a!=null&&(r[i]=a)}}function r0(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function TG(r){return rD(r),w(r.rich,rD),r}function rD(r){if(r){r.font=sD.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||bG[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||wG[t]?t:"top";var i=r.padding;i&&(r.padding=Al(r.padding))}}function iD(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function aD(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function nD(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function oD(r){var e=r.text;return e!=null&&(e+=""),e}function t0(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var yt=sD;var tt=ot(),Kf=function(r,e,t,i){if(i){var a=tt(i);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=tt(n);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var lD=1,uD={},vD=ot(),n0=ot(),o0=0,ns=1,Qf=2,Ue=["emphasis","blur","select"],Wn=["normal","emphasis","blur","select"],Qa=10,CG=9,Yn="highlight",$f="downplay",$l="select",Jf="unselect",Jl="toggleSelect";function Ql(r){return r!=null&&r!=="none"}function $h(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function dD(r){$h(r,"emphasis",Qf)}function mD(r){r.hoverState===Qf&&$h(r,"normal",o0)}function s0(r){$h(r,"blur",ns)}function gD(r){r.hoverState===ns&&$h(r,"normal",o0)}function AG(r){r.selected=!0}function DG(r){r.selected=!1}function fD(r,e,t){e(r,t)}function $a(r,e,t){fD(r,e,t),r.isGroup&&r.traverse(function(i){fD(i,e,t)})}function os(r,e){switch(e){case"emphasis":r.hoverState=Qf;break;case"normal":r.hoverState=o0;break;case"blur":r.hoverState=ns;break;case"select":r.selected=!0}}function MG(r,e,t,i){for(var a=r.style,n={},o=0;o<e.length;o++){var s=e[o],l=a[s];n[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(n,e)}return n}function IG(r,e,t,i){var a=t&&nt(t,"select")>=0,n=!1;if(r instanceof it){var o=vD(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ql(s)||Ql(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=N({},i),u=N({},u),u.fill=s):!Ql(u.fill)&&Ql(s)?(n=!0,i=N({},i),u=N({},u),u.fill=Ef(s)):!Ql(u.stroke)&&Ql(l)&&(n||(i=N({},i),u=N({},u)),u.stroke=Ef(l)),i.style=u}}if(i&&i.z2==null){n||(i=N({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??Qa)}return i}function LG(r,e,t){if(t&&t.z2==null){t=N({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??CG)}return t}function EG(r,e,t){var i=nt(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:MG(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:i?a:n.opacity*.1},o),t.style=o),t}function i0(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return IG(this,r,e,t);if(r==="blur")return EG(this,r,t);if(r==="select")return LG(this,r,t)}return t}function Yi(r){r.stateProxy=i0;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=i0),t&&(t.stateProxy=i0)}function pD(r,e){!yD(r,e)&&!r.__highByOuter&&$a(r,dD)}function cD(r,e){!yD(r,e)&&!r.__highByOuter&&$a(r,mD)}function cr(r,e){r.__highByOuter|=1<<(e||0),$a(r,dD)}function hr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&$a(r,mD)}function Jh(r){$a(r,s0)}function tp(r){$a(r,gD)}function l0(r){$a(r,AG)}function u0(r){$a(r,DG)}function yD(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function f0(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=n0(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){gD(u)}),s&&t.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function a0(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p<f.length;p++){var c=u.getItemGraphicEl(f[p]);c&&tp(c)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,p=u.coordinateSystem;p&&p.master&&(p=p.master);var c=p&&s?p===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||s0(m)}),me(e))n(u.getData(),e);else if(j(e))for(var v=ft(e),d=0;d<v.length;d++)n(u.getData(v[d]),e[v[d]]);l.push(u),n0(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var p=i.getViewOfComponentModel(f);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,a)}})}}function Qh(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){n0(i).isBlured=!0;var a=t.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){s0(n)})}}}function xD(r,e,t){var i=r.seriesIndex,a=r.getData(e.dataType);if(a){var n=Si(a,e);n=(O(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=tt(o);a0(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),p=r.get(["emphasis","blurScope"]);f!=null&&a0(i,f,p,t)}}}function tv(r,e,t,i){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var n=i.getModel().getComponent(r,e);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function _D(r,e,t){var i=tt(r),a=tv(i.componentMainType,i.componentIndex,i.componentHighDownName,t),n=a.dispatchers,o=a.focusSelf;n?(o&&Qh(i.componentMainType,i.componentIndex,t),w(n,function(s){return pD(s,e)})):(a0(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&Qh(i.componentMainType,i.componentIndex,t),pD(r,e))}function SD(r,e,t){f0(t);var i=tt(r),a=tv(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;a?w(a,function(n){return cD(n,e)}):cD(r,e)}function bD(r,e,t){if(rv(e)){var i=e.dataType,a=r.getData(i),n=Si(a,e);O(n)||(n=[n]),r[e.type===Jl?"toggleSelect":e.type===$l?"select":"unselect"](n,i)}}function p0(r){var e=r.getAllData();w(e,function(t){var i=t.data,a=t.type;i.eachItemGraphicEl(function(n,o){r.isSelected(o,a)?l0(n):u0(n)})})}function wD(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();w(i,function(a){var n=a.data,o=a.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Ta(r,e,t){Ja(r,!0),$a(r,Yi),ev(r,e,t)}function PG(r){Ja(r,!1)}function Vt(r,e,t,i){i?PG(r):Ta(r,e,t)}function ev(r,e,t){var i=tt(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var hD=["emphasis","blur","select"],zG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function se(r,e,t,i){t=t||"itemStyle";for(var a=0;a<hD.length;a++){var n=hD[a],o=e.getModel([n,t]),s=r.ensureState(n);s.style=i?i(o):o[zG[t]]()}}function Ja(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function Zn(r){return!!(r&&r.__highDownDispatcher)}function TD(r,e,t){var i=tt(r);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function CD(r){var e=uD[r];return e==null&&lD<=32&&(e=uD[r]=lD++),e}function rv(r){var e=r.type;return e===$l||e===Jf||e===Jl}function c0(r){var e=r.type;return e===Yn||e===$f}function AD(r){var e=vD(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var dt={};sT(dt,{Arc:()=>np,BezierCurve:()=>us,BoundingRect:()=>rt,Circle:()=>_r,CompoundPath:()=>iu,Ellipse:()=>rp,Group:()=>K,Image:()=>re,IncrementalDisplayable:()=>KD,Line:()=>fe,LinearGradient:()=>Aa,OrientedBoundingRect:()=>au,Path:()=>it,Point:()=>bt,Polygon:()=>he,Polyline:()=>pe,RadialGradient:()=>fv,Rect:()=>ht,Ring:()=>ls,Sector:()=>we,Text:()=>yt,applyTransform:()=>nr,clipPointsByRect:()=>S0,clipRectByRect:()=>c3,createIcon:()=>nn,extendPath:()=>u3,extendShape:()=>s3,getShapeClass:()=>op,getTransform:()=>qi,groupTransition:()=>an,initProps:()=>Ut,isElementRemoved:()=>tn,lineLineIntersect:()=>aM,linePolygonIntersect:()=>ou,makeImage:()=>_0,makePath:()=>nu,mergePath:()=>dr,registerShape:()=>Xi,removeElement:()=>Ti,removeElementWithFadeOut:()=>en,resizePath:()=>iM,setTooltipConfig:()=>ji,subPixelOptimize:()=>sp,subPixelOptimizeLine:()=>rn,subPixelOptimizeRect:()=>f3,transformDirection:()=>cs,traverseElements:()=>Sr,updateProps:()=>_t});var tu=Ye.CMD,RG=[[],[],[]],DD=Math.sqrt,NG=Math.atan2;function iv(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=tu.M,p=tu.C,c=tu.L,h=tu.R,v=tu.A,d=tu.Q;for(o=0,s=0;o<i;){switch(a=t[o++],s=o,n=0,a){case f:n=1;break;case c:n=1;break;case p:n=3;break;case d:n=2;break;case v:var m=e[4],g=e[5],y=DD(e[0]*e[0]+e[1]*e[1]),x=DD(e[2]*e[2]+e[3]*e[3]),_=NG(-e[1]/x,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=x,t[o++]+=g,t[o++]*=y,t[o++]*=x,t[o++]+=_,t[o++]+=_,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],ge(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ge(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<n;l++){var b=RG[l];b[0]=t[o++],b[1]=t[o++],ge(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var h0=Math.sqrt,av=Math.sin,nv=Math.cos,ep=Math.PI;function MD(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function v0(r,e){return(r[0]*e[0]+r[1]*e[1])/(MD(r)*MD(e))}function ID(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(v0(r,e))}function LD(r,e,t,i,a,n,o,s,l,u,f){var p=l*(ep/180),c=nv(p)*(r-t)/2+av(p)*(e-i)/2,h=-1*av(p)*(r-t)/2+nv(p)*(e-i)/2,v=c*c/(o*o)+h*h/(s*s);v>1&&(o*=h0(v),s*=h0(v));var d=(a===n?-1:1)*h0((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,m=d*o*h/s,g=d*-s*c/o,y=(r+t)/2+nv(p)*m-av(p)*g,x=(e+i)/2+av(p)*m+nv(p)*g,_=ID([1,0],[(c-m)/o,(h-g)/s]),b=[(c-m)/o,(h-g)/s],S=[(-1*c-m)/o,(-1*h-g)/s],T=ID(b,S);if(v0(b,S)<=-1&&(T=ep),v0(b,S)>=1&&(T=0),T<0){var C=Math.round(T/ep*1e6)/1e6;T=ep*2+C%2*ep}f.addData(u,y,x,o,s,_,T,p,n)}var OG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VG(r){var e=new Ye;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=Ye.CMD,l=r.match(OG);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],p=f.charAt(0),c=void 0,h=f.match(kG)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var m=0;m<v;){var g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,C=t,A=i,D=void 0,M=void 0;switch(p){case"l":t+=h[m++],i+=h[m++],c=s.L,e.addData(c,t,i);break;case"L":t=h[m++],i=h[m++],c=s.L,e.addData(c,t,i);break;case"m":t+=h[m++],i+=h[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="l";break;case"M":t=h[m++],i=h[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="L";break;case"h":t+=h[m++],c=s.L,e.addData(c,t,i);break;case"H":t=h[m++],c=s.L,e.addData(c,t,i);break;case"v":i+=h[m++],c=s.L,e.addData(c,t,i);break;case"V":i=h[m++],c=s.L,e.addData(c,t,i);break;case"C":c=s.C,e.addData(c,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),t=h[m-2],i=h[m-1];break;case"c":c=s.C,e.addData(c,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i,h[m++]+t,h[m++]+i),t+=h[m-2],i+=h[m-1];break;case"S":g=t,y=i,D=e.len(),M=e.data,o===s.C&&(g+=t-M[D-4],y+=i-M[D-3]),c=s.C,C=h[m++],A=h[m++],t=h[m++],i=h[m++],e.addData(c,g,y,C,A,t,i);break;case"s":g=t,y=i,D=e.len(),M=e.data,o===s.C&&(g+=t-M[D-4],y+=i-M[D-3]),c=s.C,C=t+h[m++],A=i+h[m++],t+=h[m++],i+=h[m++],e.addData(c,g,y,C,A,t,i);break;case"Q":C=h[m++],A=h[m++],t=h[m++],i=h[m++],c=s.Q,e.addData(c,C,A,t,i);break;case"q":C=h[m++]+t,A=h[m++]+i,t+=h[m++],i+=h[m++],c=s.Q,e.addData(c,C,A,t,i);break;case"T":g=t,y=i,D=e.len(),M=e.data,o===s.Q&&(g+=t-M[D-4],y+=i-M[D-3]),t=h[m++],i=h[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"t":g=t,y=i,D=e.len(),M=e.data,o===s.Q&&(g+=t-M[D-4],y+=i-M[D-3]),t+=h[m++],i+=h[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"A":x=h[m++],_=h[m++],b=h[m++],S=h[m++],T=h[m++],C=t,A=i,t=h[m++],i=h[m++],c=s.A,LD(C,A,t,i,S,T,x,_,b,c,e);break;case"a":x=h[m++],_=h[m++],b=h[m++],S=h[m++],T=h[m++],C=t,A=i,t+=h[m++],i+=h[m++],c=s.A,LD(C,A,t,i,S,T,x,_,b,c,e);break}}(p==="z"||p==="Z")&&(c=s.Z,e.addData(c),t=a,i=n),o=c}return e.toStatic(),e}var ED=function(r){Mt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(it);function PD(r){return r.setData!=null}function zD(r,e){var t=VG(r),i=N({},e);return i.buildPath=function(a){if(PD(a)){a.setData(t.data);var n=a.getContext();n&&a.rebuildPath(n,1)}else{var n=a;t.rebuildPath(n,1)}},i.applyTransform=function(a){iv(t,a),this.dirtyShape()},i}function ov(r,e){return new ED(zD(r,e))}function RD(r,e){var t=zD(r,e),i=function(a){Mt(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return n}(ED);return i}function ND(r,e){for(var t=[],i=r.length,a=0;a<i;a++){var n=r[a];t.push(n.getUpdatedPathProxy(!0))}var o=new it(e);return o.createPathProxy(),o.buildPath=function(s){if(PD(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function eu(r,e){e=e||{};var t=new it;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?iv(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var BG=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}();var OD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new BG},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(it);OD.prototype.type="circle";var _r=OD;var FG=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}();var kD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FG},e.prototype.buildPath=function(t,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;t.moveTo(n-s,o),t.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),t.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),t.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),t.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),t.closePath()},e}(it);kD.prototype.type="ellipse";var rp=kD;var UD=Math.PI,d0=UD*2,ss=Math.sin,ru=Math.cos,GG=Math.acos,vr=Math.atan2,VD=Math.abs,ap=Math.sqrt,ip=Math.max,Ca=Math.min,Zi=1e-4;function HG(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=p*l-f*u;if(!(c*c<Zi))return c=(f*(e-n)-p*(r-a))/c,[r+c*l,e+c*u]}function sv(r,e,t,i,a,n,o){var s=r-t,l=e-i,u=(o?n:-n)/ap(s*s+l*l),f=u*l,p=-u*s,c=r+f,h=e+p,v=t+f,d=i+p,m=(c+v)/2,g=(h+d)/2,y=v-c,x=d-h,_=y*y+x*x,b=a-n,S=c*d-v*h,T=(x<0?-1:1)*ap(ip(0,b*b*_-S*S)),C=(S*x-y*T)/_,A=(-S*y-x*T)/_,D=(S*x+y*T)/_,M=(-S*y+x*T)/_,I=C-m,L=A-g,P=D-m,z=M-g;return I*I+L*L>P*P+z*z&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-p,x1:C*(a/b-1),y1:A*(a/b-1)}}function WG(r){var e;if(O(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function BD(r,e){var t,i=ip(e.r,0),a=ip(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,p=e.cy,c=!!e.clockwise,h=VD(u-l),v=h>d0&&h%d0;if(v>Zi&&(h=v),!(i>Zi))r.moveTo(f,p);else if(h>d0-Zi)r.moveTo(f+i*ru(l),p+i*ss(l)),r.arc(f,p,i,l,u,!c),a>Zi&&(r.moveTo(f+a*ru(u),p+a*ss(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0,T=void 0,C=void 0,A=void 0,D=void 0,M=void 0,I=void 0,L=void 0,P=void 0,z=i*ru(l),R=i*ss(l),U=a*ru(u),V=a*ss(u),B=h>Zi;if(B){var Z=e.cornerRadius;Z&&(t=WG(Z),d=t[0],m=t[1],g=t[2],y=t[3]);var Q=VD(i-a)/2;if(x=Ca(Q,g),_=Ca(Q,y),b=Ca(Q,d),S=Ca(Q,m),A=T=ip(x,_),D=C=ip(b,S),(T>Zi||C>Zi)&&(M=i*ru(u),I=i*ss(u),L=a*ru(l),P=a*ss(l),h<UD)){var st=HG(z,R,L,P,M,I,U,V);if(st){var ct=z-st[0],pt=R-st[1],Lt=M-st[0],Bt=I-st[1],Et=1/ss(GG((ct*Lt+pt*Bt)/(ap(ct*ct+pt*pt)*ap(Lt*Lt+Bt*Bt)))/2),gt=ap(st[0]*st[0]+st[1]*st[1]);A=Ca(T,(i-gt)/(Et+1)),D=Ca(C,(a-gt)/(Et-1))}}}if(!B)r.moveTo(f+z,p+R);else if(A>Zi){var Pt=Ca(g,A),Ct=Ca(y,A),ut=sv(L,P,z,R,i,Pt,c),At=sv(M,I,U,V,i,Ct,c);r.moveTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),A<T&&Pt===Ct?r.arc(f+ut.cx,p+ut.cy,A,vr(ut.y0,ut.x0),vr(At.y0,At.x0),!c):(Pt>0&&r.arc(f+ut.cx,p+ut.cy,Pt,vr(ut.y0,ut.x0),vr(ut.y1,ut.x1),!c),r.arc(f,p,i,vr(ut.cy+ut.y1,ut.cx+ut.x1),vr(At.cy+At.y1,At.cx+At.x1),!c),Ct>0&&r.arc(f+At.cx,p+At.cy,Ct,vr(At.y1,At.x1),vr(At.y0,At.x0),!c))}else r.moveTo(f+z,p+R),r.arc(f,p,i,l,u,!c);if(!(a>Zi)||!B)r.lineTo(f+U,p+V);else if(D>Zi){var Pt=Ca(d,D),Ct=Ca(m,D),ut=sv(U,V,M,I,a,-Ct,c),At=sv(z,R,L,P,a,-Pt,c);r.lineTo(f+ut.cx+ut.x0,p+ut.cy+ut.y0),D<C&&Pt===Ct?r.arc(f+ut.cx,p+ut.cy,D,vr(ut.y0,ut.x0),vr(At.y0,At.x0),!c):(Ct>0&&r.arc(f+ut.cx,p+ut.cy,Ct,vr(ut.y0,ut.x0),vr(ut.y1,ut.x1),!c),r.arc(f,p,a,vr(ut.cy+ut.y1,ut.cx+ut.x1),vr(At.cy+At.y1,At.cx+At.x1),c),Pt>0&&r.arc(f+At.cx,p+At.cy,Pt,vr(At.y1,At.x1),vr(At.y0,At.x0),!c))}else r.lineTo(f+U,p+V),r.arc(f,p,a,u,l,c)}r.closePath()}}}var ZG=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}();var FD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZG},e.prototype.buildPath=function(t,i){BD(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(it);FD.prototype.type="sector";var we=FD;var XG=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}();var GD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XG},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e}(it);GD.prototype.type="ring";var ls=GD;function m0(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)ti(f,f,r[c]),ei(p,p,r[c]);ti(f,f,i[0]),ei(p,p,i[1])}for(var c=0,h=r.length;c<h;c++){var v=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){a.push(Lr(r[c]));continue}else l=r[c-1],u=r[c+1];Fi(n,u,l),Ml(n,n,e);var d=nh(v,l),m=nh(v,u),g=d+m;g!==0&&(d/=g,m/=g),Ml(o,n,-d),Ml(s,n,m);var y=qg([],v,o),x=qg([],v,s);i&&(ei(y,y,f),ti(y,y,p),ei(x,x,f),ti(x,x,p)),a.push(y),a.push(x)}return t&&a.push(a.shift()),a}function lv(r,e,t){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var n=m0(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;s<p;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var qG=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}();var WD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qG},e.prototype.buildPath=function(t,i){lv(t,i,!0)},e}(it);WD.prototype.type="polygon";var he=WD;var jG=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}();var YD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jG},e.prototype.buildPath=function(t,i){lv(t,i,!1)},e}(it);YD.prototype.type="polyline";var pe=YD;var KG={},QG=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();var ZD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QG},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=jh(KG,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(it);ZD.prototype.type="line";var fe=ZD;var Hr=[],$G=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 XD(r,e,t){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(t?oy:ye)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?oy:ye)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Mf:Se)(r.x1,r.cpx1,r.x2,e),(t?Mf:Se)(r.y1,r.cpy1,r.y2,e)]}var qD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $G},e.prototype.buildPath=function(t,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,p=i.cpy2,c=i.percent;c!==0&&(t.moveTo(a,n),f==null||p==null?(c<1&&(Rn(a,l,o,c,Hr),l=Hr[1],o=Hr[2],Rn(n,u,s,c,Hr),u=Hr[1],s=Hr[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(yi(a,l,f,o,c,Hr),l=Hr[1],f=Hr[2],o=Hr[3],yi(n,u,p,s,c,Hr),u=Hr[1],p=Hr[2],s=Hr[3]),t.bezierCurveTo(l,u,f,p,o,s)))},e.prototype.pointAt=function(t){return XD(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=XD(this.shape,t,!0);return vi(i,i)},e}(it);qD.prototype.type="bezier-curve";var us=qD;var JG=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}();var jD=function(r){Mt(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JG},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),p=Math.sin(s);t.moveTo(f*o+a,p*o+n),t.arc(a,n,o,s,l,!u)},e}(it);jD.prototype.type="arc";var np=jD;var t3=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),a=0;a<t.length;a++)i=i||t[a].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(i[0],i[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(t,a[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),it.prototype.getBoundingRect.call(this)},e}(it),iu=t3;var e3=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),uv=e3;var r3=function(r){Mt(e,r);function e(t,i,a,n,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return e}(uv),Aa=r3;var i3=function(r){Mt(e,r);function e(t,i,a,n,o){var s=r.call(this,n)||this;return s.x=t??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(uv),fv=i3;var fs=[0,0],ps=[0,0],pv=new bt,cv=new bt,a3=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new bt;for(var i=0;i<2;i++)this._axes[i]=new bt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,a=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),t)for(var u=0;u<4;u++)i[u].transform(t);bt.sub(a[0],i[1],i[0]),bt.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},r.prototype.intersect=function(e,t){var i=!0,a=!t;return pv.set(1/0,1/0),cv.set(0,0),!this._intersectCheckOneSide(this,e,pv,cv,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,pv,cv,a,-1)&&(i=!1,a)||a||bt.copy(t,i?pv:cv),i},r.prototype._intersectCheckOneSide=function(e,t,i,a,n,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,fs),this._getProjMinMaxOnAxis(l,t._corners,ps),fs[1]<ps[0]||fs[0]>ps[1]){if(s=!1,n)return s;var f=Math.abs(ps[0]-fs[1]),p=Math.abs(fs[0]-ps[1]);Math.min(f,p)>a.len()&&(f<p?bt.scale(a,u,-f*o):bt.scale(a,u,p*o))}else if(i){var f=Math.abs(ps[0]-fs[1]),p=Math.abs(fs[0]-ps[1]);Math.min(f,p)<i.len()&&(f<p?bt.scale(i,u,f*o):bt.scale(i,u,-p*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var a=this._axes[e],n=this._origin,o=t[0].dot(a)+n[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+n[e];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}(),au=a3;var n3=[],o3=function(r){Mt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new rt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(n3)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e}(be),KD=o3;var $D=ot();function Da(r,e,t,i,a){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,p=void 0;i?(u=at(i.duration,200),f=at(i.easing,"cubicOut"),p=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),p=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(p=n.delay)),X(p)&&(p=p(t,a)),X(u)&&(u=u(t));var c={duration:u||0,delay:p,easing:f};return c}else return null}function g0(r,e,t,i,a,n,o){var s=!1,l;X(a)?(o=n,n=a,a=null):j(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Da(r,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var p=f.duration,c=f.delay,h=f.easing,v={duration:p,delay:c||0,easing:h,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function _t(r,e,t,i,a,n){g0("update",r,e,t,i,a,n)}function Ut(r,e,t,i,a,n){g0("enter",r,e,t,i,a,n)}function tn(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Ti(r,e,t,i,a,n){tn(r)||g0("leave",r,e,t,i,a,n)}function QD(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),Ti(r,{style:{opacity:0}},e,t,i)}function en(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||QD(a,e,t,i)}):QD(r,e,t,i)}function Oe(r){$D(r).oldStyle=r.style}function JD(r){return $D(r).oldStyle}var hv=Math.max,vv=Math.min,x0={};function s3(r){return it.extend(r)}var l3=RD;function u3(r,e){return l3(r,e)}function Xi(r,e){x0[r]=e}function op(r){if(x0.hasOwnProperty(r))return x0[r]}function nu(r,e,t,i){var a=ov(r,e);return t&&(i==="center"&&(t=rM(t,a.getBoundingRect())),iM(a,t)),a}function _0(r,e,t){var i=new re({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var n={width:a.width,height:a.height};i.setStyle(rM(e,n))}}});return i}function rM(r,e){var t=e.width/e.height,i=r.height*t,a;i<=r.width?a=r.height:(i=r.width,a=i/t);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var dr=ND;function iM(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function rn(r,e){return jh(r,r,{lineWidth:e}),r}function f3(r){return Kh(r.shape,r.shape,r.style),r}var sp=Hn;function qi(r,e){for(var t=Ln([]);r&&r!==e;)zr(t,r.getLocalTransform(),t),r=r.parent;return t}function nr(r,e,t){return e&&!me(e)&&(e=Nr.getLocalTransform(e)),t&&(e=mi([],e)),ge([],r,e)}function cs(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),n=[r==="left"?-i:r==="right"?i:0,r==="top"?-a:r==="bottom"?a:0];return n=nr(n,e,t),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function tM(r){return!r.isGroup}function p3(r){return r.shape!=null}function an(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){tM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return p3(o)&&(s.shape=N({},o.shape)),s}var n=i(r);e.traverse(function(o){if(tM(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),_t(o,l,t,tt(o).dataIndex)}}})}function S0(r,e){return k(r,function(t){var i=t[0];i=hv(i,e.x),i=vv(i,e.x+e.width);var a=t[1];return a=hv(a,e.y),a=vv(a,e.y+e.height),[i,a]})}function c3(r,e){var t=hv(r.x,e.x),i=vv(r.x+r.width,e.x+e.width),a=hv(r.y,e.y),n=vv(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function nn(r,e,t){var i=N({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),q(a,t),new re(i)):nu(r.replace("path://",""),i,t,"center")}function ou(r,e,t,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(aM(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function aM(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=y0(f,p,l,u);if(h3(c))return!1;var h=r-a,v=e-n,d=y0(h,v,l,u)/c;if(d<0||d>1)return!1;var m=y0(h,v,f,p)/c;return!(m<0||m>1)}function y0(r,e,t,i){return r*i-t*e}function h3(r){return r<=1e-6&&r>=-1e-6}function ji(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=F(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&w(ft(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=tt(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:q({content:i,formatterParams:s},a)}}function eM(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Sr(r,e){if(r)if(O(r))for(var t=0;t<r.length;t++)eM(r[t],e);else eM(r,e)}Xi("circle",_r);Xi("ellipse",rp);Xi("sector",we);Xi("ring",ls);Xi("polygon",he);Xi("polyline",pe);Xi("rect",ht);Xi("line",fe);Xi("bezierCurve",us);Xi("arc",np);var dv={};function uM(r,e){for(var t=0;t<Ue.length;t++){var i=Ue[t],a=e[i],n=r.ensureState(i);n.style=n.style||{},n.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function b0(r,e,t){var i=r.labelFetcher,a=r.labelDataIndex,n=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=X(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ue.length;u++){var f=Ue[u],p=e[f];l[f]=at(i?i.getFormattedLabel(a,f,null,n,p&&p.get("formatter")):null,s)}return l}function ee(r,e,t,i){t=t||dv;for(var a=r instanceof yt,n=!1,o=0;o<Wn.length;o++){var s=e[Wn[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new yt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=b0(t,e),f=e.normal,p=!!f.getShallow("show"),c=Ht(f,i&&i.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(lp(f,t,!1));for(var o=0;o<Ue.length;o++){var h=Ue[o],s=e[h];if(s){var v=l.ensureState(h),d=!!at(s.getShallow("show"),p);if(d!==p&&(v.ignore=!d),v.style=Ht(s,i&&i[h],t,!0,!a),v.style.text=u[h],!a){var m=r.ensureState(h);m.textConfig=lp(s,t,!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=!p,l.useStyle(c),l.dirty(),t.enableTextSetter&&(on(l).setLabelText=function(g){var y=b0(t,e,g);uM(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Kt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<Ue.length;i++){var a=Ue[i];t[a]=r.getModel([a,e])}return t}function Ht(r,e,t,i,a){var n={};return v3(n,r,t,i,a),e&&N(n,e),n}function lp(r,e,t){e=e||{};var i={},a,n=r.getShallow("rotate"),o=at(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",i}function v3(r,e,t,i,a){t=t||dv;var n=e.ecModel,o=n&&n.option.textStyle,s=d3(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);lM(l[u]={},f,o,t,i,a,!1,!0)}}l&&(r.rich=l);var p=e.get("overflow");p&&(r.overflow=p);var c=e.get("minMargin");c!=null&&(r.margin=c),lM(r,e,o,t,i,a,!0,!1)}function d3(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||dv).rich;if(t){e=e||{};for(var i=ft(t),a=0;a<i.length;a++){var n=i[a];e[n]=1}}r=r.parentModel}return e}var nM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],oM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lM(r,e,t,i,a,n,o,s){t=!a&&t||dv;var l=i&&i.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),p=at(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),n||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=at(e.getShallow("textBorderWidth"),t.textBorderWidth);c!=null&&(r.lineWidth=c);var h=at(e.getShallow("textBorderType"),t.textBorderType);h!=null&&(r.lineDash=h);var v=at(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);v!=null&&(r.lineDashOffset=v),!a&&p==null&&!s&&(p=i&&i.defaultOpacity),p!=null&&(r.opacity=p),!a&&!n&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var d=0;d<nM.length;d++){var m=nM[d],g=at(e.getShallow(m),t[m]);g!=null&&(r[m]=g)}for(var d=0;d<oM.length;d++){var m=oM[d],g=e.getShallow(m);g!=null&&(r[m]=g)}if(r.verticalAlign==null){var y=e.getShallow("baseline");y!=null&&(r.verticalAlign=y)}if(!o||!i.disableBox){for(var d=0;d<sM.length;d++){var m=sM[d],g=e.getShallow(m);g!=null&&(r[m]=g)}var x=e.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function su(r,e){var t=e&&e.getModel("textStyle");return Fe([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var on=ot();function mv(r,e,t,i){if(r){var a=on(r);a.prevValue=a.value,a.value=t;var n=e.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=e)}}function gv(r,e,t,i,a){var n=on(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=at(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var p=Hh(t,n.precision,s,l,f);n.interpolatedValue=f===1?null:p;var c=b0({labelDataIndex:e,labelFetcher:a,defaultText:o?o(p):p+""},n.statesModels,p);uM(r,c)}r.percent=0,(n.prevValue==null?Ut:_t)(r,{percent:1},i,e,null,u)}var g3=["textStyle","color"],w0=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],T0=new yt,y3=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(g3):null)},r.prototype.getFont=function(){return su({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<w0.length;i++)t[w0[i]]=this.getShallow(w0[i]);return T0.useStyle(t),T0.update(),T0.getBoundingRect()},r}(),fM=y3;var C0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],x3=Br(C0),pM=function(){function r(){}return r.prototype.getLineStyle=function(e){return x3(this,e)},r}();var A0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_3=Br(A0),cM=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return _3(this,e,t)},r}();var hs=function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){for(var a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},r.prototype.mergeOption=function(e,t){lt(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,a=i==null?i:i[e];if(a==null&&!t){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},r.prototype.getModel=function(e,t){var i=e!=null,a=i?this.parsePath(e):null,n=i?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(n,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e($(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Tt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var a=0;a<e.length&&!(e[a]&&(i=i&&typeof i=="object"?i[e[a]]:null,i==null));a++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r}();Xl(hs);wA(hs);jt(hs,pM);jt(hs,cM);jt(hs,TA);jt(hs,fM);var zt=hs;var S3=Math.round(Math.random()*10);function Ci(r){return[r||"",S3++].join("_")}function hM(r){var e={};r.registerSubTypeDefaulter=function(t,i){var a=Ur(t);e[a.main]=i},r.determineSubType=function(t,i){var a=i.type;if(!a){var n=Ur(t).main;r.hasSubTypes(t)&&e[n]&&(a=e[n](i))}return a}}function vM(r,e){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=t(o),f=u.graph,p=u.noEntryList,c={};for(w(n,function(y){c[y]=!0});p.length;){var h=p.pop(),v=f[h],d=!!c[h];d&&(s.call(l,h,v.originalDeps.slice()),delete c[h]),w(v.successor,d?g:m)}w(c,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&p.push(y)}function g(y){c[y]=!0,m(y)}};function t(n){var o={},s=[];return w(n,function(l){var u=i(o,l),f=u.originalDeps=e(l),p=a(f,n);u.entryCount=p.length,u.entryCount===0&&s.push(l),w(p,function(c){nt(u.predecessor,c)<0&&u.predecessor.push(c);var h=i(o,c);nt(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return w(n,function(l){nt(o,l)>=0&&s.push(l)}),s}}function mr(r,e){return lt(lt({},r,!0),e,!0)}var dM={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:". "}}}};var mM={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var xv="ZH",M0="EN",lu=M0,yv={},I0={},_v=Tt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||lu).toUpperCase();return r.indexOf(xv)>-1?xv:lu}():lu;function gM(r,e){r=r.toUpperCase(),I0[r]=new zt(e),yv[r]=e}function yM(r){if(F(r)){var e=yv[r.toUpperCase()]||{};return r===xv||r===M0?$(e):lt($(e),$(yv[lu]),!1)}else return lt($(r),$(yv[lu]),!1)}function up(r){return I0[r]}function xM(){return I0[lu]}gM(M0,dM);gM(xv,mM);var bv=1e3,wv=bv*60,fu=wv*60,ni=fu*24,E0=ni*365,fp={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}"},Sv="{yyyy}-{MM}-{dd}",P0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Sv,hour:Sv+" "+fp.hour,minute:Sv+" "+fp.minute,second:Sv+" "+fp.second,millisecond:fp.none},L0=["year","month","day","hour","minute","second","millisecond"],z0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function sn(r,e){return r+="","0000".substr(0,e-r.length)+r}function ds(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 _M(r){return r===ds(r)}function SM(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ms(r,e,t,i){var a=ir(r),n=a[Tv(t)](),o=a[vs(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[pp(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[uu(t)](),p=(f-1)%12+1,c=a[cp(t)](),h=a[hp(t)](),v=a[vp(t)](),d=i instanceof zt?i:up(i||_v)||xM(),m=d.getModel("time"),g=m.get("month"),y=m.get("monthAbbr"),x=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,sn(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,sn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,sn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,sn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,sn(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,sn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,sn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,sn(v,3)).replace(/{S}/g,v+"")}function bM(r,e,t,i,a){var n=null;if(F(t))n=t;else if(X(t))n=t(r.value,e,{level:r.level});else{var o=N({},fp);if(r.level>0)for(var s=0;s<L0.length;++s)o[L0[s]]="{primary|"+o[L0[s]]+"}";var l=t?t.inherit===!1?t:q(t,o):o,u=wM(r.value,a);if(l[u])n=l[u];else if(l.inherit){for(var f=z0.indexOf(u),s=f-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(O(n)){var p=r.level==null?0:r.level>=0?r.level:n.length+r.level;p=Math.min(p,n.length-1),n=n[p]}}return ms(new Date(r.value),n,a,i)}function wM(r,e){var t=ir(r),i=t[vs(e)]()+1,a=t[pp(e)](),n=t[uu(e)](),o=t[cp(e)](),s=t[hp(e)](),l=t[vp(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,h=c&&a===1,v=h&&i===1;return v?"year":h?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function R0(r,e,t){var i=vt(r)?ir(r):r;switch(e=e||wM(r,t),e){case"year":return i[Tv(t)]();case"half-year":return i[vs(t)]()>=6?1:0;case"quarter":return Math.floor((i[vs(t)]()+1)/4);case"month":return i[vs(t)]();case"day":return i[pp(t)]();case"half-day":return i[uu(t)]()/24;case"hour":return i[uu(t)]();case"minute":return i[cp(t)]();case"second":return i[hp(t)]();case"millisecond":return i[vp(t)]()}}function Tv(r){return r?"getUTCFullYear":"getFullYear"}function vs(r){return r?"getUTCMonth":"getMonth"}function pp(r){return r?"getUTCDate":"getDate"}function uu(r){return r?"getUTCHours":"getHours"}function cp(r){return r?"getUTCMinutes":"getMinutes"}function hp(r){return r?"getUTCSeconds":"getSeconds"}function vp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function TM(r){return r?"setUTCFullYear":"setFullYear"}function N0(r){return r?"setUTCMonth":"setMonth"}function O0(r){return r?"setUTCDate":"setDate"}function k0(r){return r?"setUTCHours":"setHours"}function V0(r){return r?"setUTCMinutes":"setMinutes"}function U0(r){return r?"setUTCSeconds":"setSeconds"}function B0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function G0(r){if(!jo(r))return F(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Cv(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ki=Al;function Av(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Fe(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?ir(r):r;if(isNaN(+l)){if(s)return"-"}else return ms(l,i,t)}if(e==="ordinal")return xf(r)?a(r):vt(r)&&n(r)?r+"":"-";var u=kr(r);return n(u)?G0(u):xf(r)?a(r):typeof r=="boolean"?r+"":"-"}var CM=["a","b","c","d","e","f","g"],F0=function(r,e){return"{"+r+(e??"")+"}"};function Dv(r,e,t){O(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n<a.length;n++){var o=CM[n];r=r.replace(F0(o),F0(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(F0(CM[l],s),t?Je(u):u)}return r}function AM(r,e,t){return w(e,function(i,a){r=r.replace("{"+a+"}",t?Je(i):i)}),r}function DM(r,e){var t=F(r)?{color:r,extraCssText:e}:r||{},i=t.color,a=t.type;e=t.extraCssText;var n=t.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Je(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Je(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Qi(r,e){return e=e||"transparent",F(r)?r:j(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function gs(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Mv=w,H0=["left","right","top","bottom","width","height"],ys=[["width","left","right"],["height","top","bottom"]];function W0(r,e,t,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),h,v;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);h=n+d,h>i||l.newline?(n=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);v=o+m,v>a||l.newline?(n+=s+t,o=0,v=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=h+t:o=v+t)})}var $i=W0,Rat=et(W0,"vertical"),Nat=et(W0,"horizontal");function MM(r,e,t){var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),t=Ki(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Zt(r,e,t){t=Ki(t||0);var i=e.width,a=e.height,n=H(r.left,i),o=H(r.top,a),s=H(r.right,i),l=H(r.bottom,a),u=H(r.width,i),f=H(r.height,a),p=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(n)&&(n=i-s-u-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var v=new rt(n+t[3],o+t[0],u,f);return v.margin=t,v}function Xn(r,e,t,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new rt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=Zt(q({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,h=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=h):(n.x+=c,n.y+=h),n===r&&r.markRedraw(),!0}function IM(r,e){return r[ys[e][0]]!=null||r[ys[e][1]]!=null&&r[ys[e][2]]!=null}function qn(r){var e=r.layoutMode||r.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function Wr(r,e,t){var i=t&&t.ignoreSize;!O(i)&&(i=[i,i]);var a=o(ys[0],0),n=o(ys[1],1);u(ys[0],r,a),u(ys[1],r,n);function o(f,p){var c={},h=0,v={},d=0,m=2;if(Mv(f,function(x){v[x]=r[x]}),Mv(f,function(x){s(e,x)&&(c[x]=v[x]=e[x]),l(c,x)&&h++,l(v,x)&&d++}),i[p])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(d===m||!h)return v;if(h>=m)return c;for(var g=0;g<f.length;g++){var y=f[g];if(!s(c,y)&&s(r,y)){c[y]=r[y];break}}return c}function s(f,p){return f.hasOwnProperty(p)}function l(f,p){return f[p]!=null&&f[p]!=="auto"}function u(f,p,c){Mv(f,function(h){p[h]=c[h]})}}function Ai(r){return Y0({},r)}function Y0(r,e){return e&&r&&Mv(H0,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var b3=ot(),pu=function(r){E(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.uid=Ci("ec_cpt_model"),n}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=qn(this),n=a?Ai(t):{},o=i.getTheme();lt(t,o.get(this.mainType)),lt(t,this.getDefaultOption()),a&&Wr(t,n,a)},e.prototype.mergeOption=function(t,i){lt(this.option,t,!0);var a=qn(this);a&&Wr(this.option,t,a)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!bA(t))return t.defaultOption;var i=b3(this);if(!i.defaultOption){for(var a=[],n=t;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=lt(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return Vn(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(zt);Wh(pu,zt);Un(pu);hM(pu);vM(pu,w3);function w3(r){var e=[];return w(pu.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=k(e,function(t){return Ur(t).main}),r!=="dataset"&&nt(e,"dataset")<=0&&e.unshift("dataset"),e}var xt=pu;var LM="";typeof navigator<"u"&&(LM=navigator.platform||"");var cu="rgba(0, 0, 0, 0.2)",EM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LM.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 Iv=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),je="original",Le="arrayRows",sr="objectRows",oi="keyedColumns",si="typedArray",Z0="unknown",Yr="column",ln="row";var Ze={Must:1,Might:2,Not:3},PM=ot();function zM(r){PM(r).datasetMap=Y()}function Lv(r,e,t){var i={},a=Ev(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=PM(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),w(r,function(d,m){var g=j(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=v(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});w(r,function(d,m){var g=d.name,y=v(d);if(f==null){var x=c.valueWayDim;h(i[g],x,y),h(o,x,y),c.valueWayDim+=y}else if(f===m)h(i[g],0,y),h(n,0,y);else{var x=c.categoryWayDim;h(i[g],x,y),h(o,x,y),c.categoryWayDim+=y}});function h(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function v(d){var m=d.dimsDef;return m?m.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function hu(r,e,t){var i={},a=Ev(r);if(!a)return i;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===sr||n===oi)&&w(o,function(f,p){(j(f)?f.name:f)==="name"&&(s=p)});var l=function(){for(var f={},p={},c=[],h=0,v=Math.min(5,t);h<v;h++){var d=NM(e.data,n,e.seriesLayoutBy,o,e.startIndex,h);c.push(d);var m=d===Ze.Not;if(m&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!m&&c[f.n]===Ze.Not)&&(f.n=h),g(f)&&c[f.n]!==Ze.Not)return f;m||(d===Ze.Might&&p.v==null&&h!==s&&(p.v=h),(p.n==null||p.n===p.v)&&(p.n=h))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(p)?p:null}();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Ev(r){var e=r.get("data",!0);if(!e)return Vn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},$t).models[0]}function RM(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Vn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},$t).models}function Pv(r,e){return NM(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function NM(r,e,t,i,a,n){var o,s=5;if(De(r))return Ze.Not;var l,u;if(i){var f=i[n];j(f)?(l=f.name,u=f.type):F(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ze.Must:Ze.Not;if(e===Le){var p=r;if(t===ln){for(var c=p[n],h=0;h<(c||[]).length&&h<s;h++)if((o=_(c[a+h]))!=null)return o}else for(var h=0;h<p.length&&h<s;h++){var v=p[a+h];if(v&&(o=_(v[n]))!=null)return o}}else if(e===sr){var d=r;if(!l)return Ze.Not;for(var h=0;h<d.length&&h<s;h++){var m=d[h];if(m&&(o=_(m[l]))!=null)return o}}else if(e===oi){var g=r;if(!l)return Ze.Not;var c=g[l];if(!c||De(c))return Ze.Not;for(var h=0;h<c.length&&h<s;h++)if((o=_(c[h]))!=null)return o}else if(e===je)for(var y=r,h=0;h<y.length&&h<s;h++){var m=y[h],x=Wi(m);if(!O(x))return Ze.Not;if((o=_(x[n]))!=null)return o}function _(b){var S=F(b);if(b!=null&&isFinite(b)&&b!=="")return S?Ze.Might:Ze.Not;if(S&&b!=="-")return Ze.Must}return Ze.Not}var X0=Y();function OM(r,e){ne(X0.get(r)==null&&e),X0.set(r,e)}function kM(r,e,t){var i=X0.get(e);if(!i)return t;var a=i(r);if(!a)return t;if(0)for(var n;n<a.length;n++);return t.concat(a)}var VM=ot(),T3=ot(),mp=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var a=Nt(this.get("color",!0)),n=this.get("colorLayer",!0);return UM(this,VM,a,n,e,t,i)},r.prototype.clearColorPalette=function(){A3(this,VM)},r}();function gp(r,e,t,i){var a=Nt(r.get(["aria","decal","decals"]));return UM(r,T3,a,null,e,t,i)}function C3(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function UM(r,e,t,i,a,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?t:C3(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function A3(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var zv,yp,BM,FM="\0_ec_inner",D3=1;var YM=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new zt(n),this._locale=new zt(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=WM(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,WM(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?BM(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;zM(this),w(t,function(p,c){p!=null&&(xt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?$(p):lt(a[c],p,!0))}),u&&u.each(function(p,c){xt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),xt.topologicalTravel(s,xt.getAllClassMainTypes(),f,this);function f(p){var c=kM(this,p,Nt(t[p])),h=n.get(p),v=h?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=Gh(h,c,v);mA(d,p,xt),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,x,_;w(d,function(b,S){var T=b.existing,C=b.newOption;if(!C)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=p==="series",D=xt.getClass(p,b.keyInfo.subType,!A);if(!D){if(0)var M,I;return}if(p==="tooltip"){if(x)return;x=!0}if(T&&T.constructor===D)T.name=b.keyInfo.name,T.mergeOption(C,this),T.optionUpdated(C,!1);else{var L=N({componentIndex:S},b.keyInfo);T=new D(C,this,this,L),N(T,L),b.brandNew&&(T.__requireNewView=!0),T.init(C,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),g.push(T),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&zv(this)}this._seriesIndices||zv(this)},e.prototype.getOption=function(){var t=$(this.option);return w(t,function(i,a){if(xt.hasClass(a)){for(var n=Nt(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Yl(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[FM],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var a=t.index,n=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],w(Nt(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=GM("id",n,s):o!=null?l=GM("name",o,s):l=Dt(s,function(u){return!!u}),HM(l,t)},e.prototype.findComponents=function(t){var i=t.query,a=t.mainType,n=s(i),o=n?this.queryComponents(n):Dt(this._componentsMap.get(a),function(u){return!!u});return l(HM(o,t));function s(u){var f=a+"Index",p=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[p]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[p],name:u[c]}:null}function l(u){return t.filter?Dt(u,t.filter):u}},e.prototype.eachComponent=function(t,i,a){var n=this._componentsMap;if(X(t)){var o=i,s=t;n.each(function(p,c){for(var h=0;p&&h<p.length;h++){var v=p[h];v&&s.call(o,c,v,v.componentIndex)}})}else for(var l=F(t)?n.get(t):j(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=le(t,null);return Dt(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Dt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Dt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){yp(this),w(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];t.call(i,n,a)},this)},e.prototype.eachRawSeries=function(t,i){w(this._componentsMap.get("series"),function(a){a&&t.call(i,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,a){yp(this),w(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&i.call(a,o,n)},this)},e.prototype.eachRawSeriesByType=function(t,i,a){return w(this.getSeriesByType(t),i,a)},e.prototype.isSeriesFiltered=function(t){return yp(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){yp(this);var a=[];w(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=Y(a)},e.prototype.restoreData=function(t){zv(this);var i=this._componentsMap,a=[];i.each(function(n,o){xt.hasClass(o)&&a.push(o)}),xt.topologicalTravel(a,xt.getAllClassMainTypes(),function(n){w(i.get(n),function(o){o&&(n!=="series"||!M3(o,t))&&o.restoreData()})})},e.internalField=function(){zv=function(t){var i=t._seriesIndices=[];w(t._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),t._seriesIndicesMap=Y(i)},yp=function(t){},BM=function(t,i){t.option={},t.option[FM]=D3,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var a=i.aria;j(a)&&a.enabled==null&&(a.enabled=!0),I3(i,t._theme.option),lt(i,EM,!1),t._mergeOption(i,null)}}(),e}(zt);function M3(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||a!=null&&r.name!==a}}function I3(r,e){var t=r.color&&!r.colorLayer;w(e,function(i,a){a==="colorLayer"&&t||xt.hasClass(a)||(typeof i=="object"?r[a]=r[a]?lt(r[a],i,!1):$(i):r[a]==null&&(r[a]=i))})}function GM(r,e,t){if(O(e)){var i=Y();return w(e,function(n){if(n!=null){var o=le(n,null);o!=null&&i.set(n,!0)}}),Dt(t,function(n){return n&&i.get(n[r])})}else{var a=le(e,null);return Dt(t,function(n){return n&&a!=null&&n[r]===a})}}function HM(r,e){return e.hasOwnProperty("subType")?Dt(r,function(t){return t&&t.subType===e.subType}):r}function WM(r){var e=Y();return r&&w(Nt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}jt(YM,mp);var Rv=YM;var L3=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],E3=function(){function r(e){w(L3,function(t){this[t]=W(e[t],e)},this)}return r}(),Nv=E3;var q0={},P3=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var i=[];w(q0,function(a,n){var o=a.create(e,t);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(e,t){w(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){q0[e]=t},r.get=function(e){return q0[e]},r}(),un=P3;var z3=/^(min|max)?(.+)$/,R3=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(w(Nt(e.series),function(o){o&&o.data&&De(o.data)&&Lo(o.data)}),w(Nt(e.dataset),function(o){o&&o.source&&De(o.source)&&Lo(o.source)})),e=$(e);var a=this._optionBackup,n=N3(e,t,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],$(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(t=$(i[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)O3(a[l].query,t,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!V3(o,this._currentMediaIndices)&&(s=k(o,function(f){return $(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function N3(r,e,t){var i=[],a,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,p=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((p||f)&&(r.options=r.media=null),n=r),f&&O(u)&&w(u,function(h){h&&h.option&&(h.query?i.push(h):a||(a=h))}),c(n),w(l,function(h){return c(h)}),w(i,function(h){return c(h.option)});function c(h){w(e,function(v){v(h,t)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function O3(r,e,t){var i={width:e,height:t,aspectratio:e/t},a=!0;return w(r,function(n,o){var s=o.match(z3);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();k3(i[u],n,l)||(a=!1)}}),a}function k3(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function V3(r,e){return r.join(",")===e.join(",")}var ZM=R3;var Ji=w,_p=j,XM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function j0(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=XM.length;t<i;t++){var a=XM[t],n=e.normal,o=e.emphasis;n&&n[a]&&(r[a]=r[a]||{},r[a].normal?lt(r[a].normal,n[a]):r[a].normal=n[a],n[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?lt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function gr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,a=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,q(r[e],i)):r[e]=i),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function xp(r){gr(r,"itemStyle"),gr(r,"lineStyle"),gr(r,"areaStyle"),gr(r,"label"),gr(r,"labelLine"),gr(r,"upperLabel"),gr(r,"edgeLabel")}function ke(r,e){var t=_p(r)&&r[e],i=_p(t)&&t.textStyle;if(i)for(var a=0,n=Oy.length;a<n;a++){var o=Oy[a];i.hasOwnProperty(o)&&(t[o]=i[o])}}function Di(r){r&&(xp(r),ke(r,"label"),r.emphasis&&ke(r.emphasis,"label"))}function U3(r){if(_p(r)){j0(r),xp(r),ke(r,"label"),ke(r,"upperLabel"),ke(r,"edgeLabel"),r.emphasis&&(ke(r.emphasis,"label"),ke(r.emphasis,"upperLabel"),ke(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(j0(e),Di(e));var t=r.markLine;t&&(j0(t),Di(t));var i=r.markArea;i&&Di(i);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var n=r.links||r.edges;if(n&&!De(n))for(var o=0;o<n.length;o++)Di(n[o]);w(r.categories,function(u){xp(u)})}if(a&&!De(a))for(var o=0;o<a.length;o++)Di(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Di(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)O(l[o])?(Di(l[o][0]),Di(l[o][1])):Di(l[o]);r.type==="gauge"?(ke(r,"axisLabel"),ke(r,"title"),ke(r,"detail")):r.type==="treemap"?(gr(r.breadcrumb,"itemStyle"),w(r.levels,function(u){xp(u)})):r.type==="tree"&&xp(r.leaves)}}function fn(r){return O(r)?r:r?[r]:[]}function qM(r){return(O(r)?r[0]:r)||{}}function K0(r,e){Ji(fn(r.series),function(i){_p(i)&&U3(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ji(t,function(i){Ji(fn(r[i]),function(a){a&&(ke(a,"axisLabel"),ke(a.axisPointer,"label"))})}),Ji(fn(r.parallel),function(i){var a=i&&i.parallelAxisDefault;ke(a,"axisLabel"),ke(a&&a.axisPointer,"label")}),Ji(fn(r.calendar),function(i){gr(i,"itemStyle"),ke(i,"dayLabel"),ke(i,"monthLabel"),ke(i,"yearLabel")}),Ji(fn(r.radar),function(i){ke(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Ji(fn(r.geo),function(i){_p(i)&&(Di(i),Ji(fn(i.regions),function(a){Di(a)}))}),Ji(fn(r.timeline),function(i){Di(i),gr(i,"label"),gr(i,"itemStyle"),gr(i,"controlStyle",!0);var a=i.data;O(a)&&w(a,function(n){j(n)&&(gr(n,"label"),gr(n,"itemStyle"))})}),Ji(fn(r.toolbox),function(i){gr(i,"iconStyle"),Ji(i.feature,function(a){gr(a,"iconStyle")})}),ke(qM(r.axisPointer),"label"),ke(qM(r.tooltip).axisPointer,"label")}function B3(r,e){for(var t=e.split(","),i=r,a=0;a<t.length&&(i=i&&i[t[a]],i!=null);a++);return i}function F3(r,e,t,i){for(var a=e.split(","),n=r,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=t)}function jM(r){r&&w(G3,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var G3=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],H3=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Q0=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sp(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Q0.length;t++){var i=Q0[t][1],a=Q0[t][0];e[i]!=null&&(e[a]=e[i])}}function KM(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function QM(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function W3(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function $M(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&$M(r[t].children,e)}function Ov(r,e){K0(r,e),r.series=Nt(r.series),w(r.series,function(t){if(j(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),KM(t.label);var a=t.data;if(a&&!De(a))for(var n=0;n<a.length;n++)KM(a[n]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=B3(t,"pointer.color");o!=null&&F3(t,"itemStyle.color",o)}else if(i==="bar"){Sp(t),Sp(t.backgroundStyle),Sp(t.emphasis);var a=t.data;if(a&&!De(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(Sp(a[n]),Sp(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),QM(t),$M(t.data,QM)}else i==="graph"||i==="sankey"?W3(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&q(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),jM(t)}}),r.dataRange&&(r.visualMap=r.dataRange),w(H3,function(t){var i=r[t];i&&(O(i)||(i=[i]),w(i,function(a){jM(a)}))})}function $0(r){var e=Y();r.eachSeries(function(t){var i=t.get("stack");if(i){var a=e.get(i)||e.set(i,[]),n=t.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&n.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(Y3)}function Y3(r){w(r,function(e,t){var i=[],a=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,p){var c=o.get(e.stackedDimension,p);if(isNaN(c))return a;var h,v;s?v=o.getRawIndex(p):h=o.get(e.stackedByDimension,p);for(var d=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=oA(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var kv=function(){function r(e){this.data=e.data||(e.sourceFormat===oi?{}:[]),this.sourceFormat=e.sourceFormat||Z0,this.seriesLayoutBy=e.seriesLayoutBy||Yr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var a=t[i];a.type==null&&Pv(this,i)===Ze.Must&&(a.type="ordinal")}}return r}();function vu(r){return r instanceof kv}function bp(r,e,t){t=t||J0(r);var i=e.seriesLayoutBy,a=Z3(r,t,i,e.sourceHeader,e.dimensions),n=new kv({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:$(e)});return n}function du(r){return new kv({data:r,sourceFormat:De(r)?si:je})}function eI(r){return new kv({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function J0(r){var e=Z0;if(De(r))e=si;else if(O(r)){r.length===0&&(e=Le);for(var t=0,i=r.length;t<i;t++){var a=r[t];if(a!=null){if(O(a)||De(a)){e=Le;break}else if(j(a)){e=sr;break}}}}else if(j(r)){for(var n in r)if(J(r,n)&&me(r[n])){e=oi;break}}return e}function Z3(r,e,t,i,a){var n,o;if(!r)return{dimensionsDefine:JM(a),startIndex:o,dimensionsDetectedCount:n};if(e===Le){var s=r;i==="auto"||i==null?tI(function(u){u!=null&&u!=="-"&&(F(u)?o==null&&(o=1):o=0)},t,s,10):o=vt(i)?i:i?1:0,!a&&o===1&&(a=[],tI(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),n=a?a.length:t===ln?s.length:s[0]?s[0].length:null}else if(e===sr)a||(a=X3(r));else if(e===oi)a||(a=[],w(r,function(u,f){a.push(f)}));else if(e===je){var l=Wi(r[0]);n=O(l)&&l.length||1}return{startIndex:o,dimensionsDefine:JM(a),dimensionsDetectedCount:n}}function X3(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return ft(t)}function JM(r){if(r){var e=Y();return k(r,function(t,i){t=j(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=e.get(a.name);return n?a.name+="-"+n.count++:e.set(a.name,{count:1}),a})}}function tI(r,e,t,i){if(e===ln)for(var a=0;a<t.length&&a<i;a++)r(t[a]?t[a][0]:null,a);else for(var n=t[0]||[],a=0;a<n.length&&a<i;a++)r(n[a],a)}function Vv(r){var e=r.sourceFormat;return e===sr||e===oi}var xs,_s,Ss,rI,iI,Uv=function(){function r(e,t){var i=vu(e)?e:du(e);this._source=i;var a=this._data=i.data;i.sourceFormat===si&&(this._offset=0,this._dimSize=t,this._data=a),iI(this,a,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;iI=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,p=l.startIndex,c=l.dimensionsDefine,h=rI[ax(u,f)];if(N(o,h),u===si)o.getItem=t,o.count=a,o.fillStorage=i;else{var v=ex(u,f);o.getItem=W(v,null,s,p,c);var d=rx(u,f);o.count=W(d,null,s,p,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,p=0;p<u;p++)s[p]=l[f+p];return s},i=function(o,s,l,u){for(var f=this._data,p=this._dimSize,c=0;c<p;c++){for(var h=u[c],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],m=s-o,g=l[c],y=0;y<m;y++){var x=f[y*p+c];g[o+y]=x,x<v&&(v=x),x>d&&(d=x)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};rI=(e={},e[Le+"_"+Yr]={pure:!0,appendData:n},e[Le+"_"+ln]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[sr]={pure:!0,appendData:n},e[oi]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[je]={appendData:n},e[si]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}();var aI=function(r,e,t,i){return r[i]},q3=(xs={},xs[Le+"_"+Yr]=function(r,e,t,i){return r[i+e]},xs[Le+"_"+ln]=function(r,e,t,i,a){i+=e;for(var n=a||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},xs[sr]=aI,xs[oi]=function(r,e,t,i,a){for(var n=a||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];n[o]=l?l[i]:null}return n},xs[je]=aI,xs);function ex(r,e){var t=q3[ax(r,e)];return t}var nI=function(r,e,t){return r.length},j3=(_s={},_s[Le+"_"+Yr]=function(r,e,t){return Math.max(0,r.length-e)},_s[Le+"_"+ln]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},_s[sr]=nI,_s[oi]=function(r,e,t){var i=t[0].name,a=r[i];return a?a.length:0},_s[je]=nI,_s);function rx(r,e){var t=j3[ax(r,e)];return t}var tx=function(r,e,t){return r[e]},K3=(Ss={},Ss[Le]=tx,Ss[sr]=function(r,e,t){return r[t]},Ss[oi]=tx,Ss[je]=function(r,e,t){var i=Wi(r);return i instanceof Array?i[e]:i},Ss[si]=tx,Ss);function ix(r){var e=K3[r];return e}function ax(r,e){return r===Le?r+"_"+e:r}function pn(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var a=r.getStore(),n=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return ix(n)(i,o,s)}else{var l=i;return n===je&&(l=Wi(i)),l}}}}var Q3=/\{@(.+?)\}/g,mu=function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),a=this.getRawValue(e,t),n=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,p=this.mainType,c=p==="series",h=i.userOutput&&i.userOutput.get();return{componentType:p,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:n,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,a,n,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),a!=null&&O(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(e);n=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(X(n))return l.status=t,l.dimensionIndex=a,n(l);if(F(n)){var f=Dv(n,l);return f.replace(Q3,function(p,c){var h=c.length,v=c;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=pn(s,e,v);if(o&&O(o.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return pn(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r}();function nx(r){var e,t;return j(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function jn(r){return new $3(r)}var $3=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||h<v)){var d=this._progress;if(O(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var g=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=g}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(e,t,i,a,n){oI.reset(t,i,a,n),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:oI.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),O(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r}();var oI=function(){var r,e,t,i,a,n={reset:function(l,u,f,p){e=l,r=u,t=f,i=p,a=Math.ceil(i/t),n.next=t>1&&i>0?s:o}};return n;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<i?l:e;return e++,u}}();function Mi(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!vt(r)&&r!=null&&r!=="-"&&(r=+ir(r)),r==null||r===""?NaN:+r)}var J3=Y({number:function(r){return parseFloat(r)},time:function(r){return+ir(r)},trim:function(r){return F(r)?Fe(r):r}});function Bv(r){return J3.get(r)}var sI={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},tH=function(){function r(e,t){if(!vt(t)){var i="";Gt(i)}this._opFn=sI[e],this._rvalFloat=kr(t)}return r.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(kr(e),this._rvalFloat)},r}(),Fv=function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=vt(e)?e:kr(e),a=vt(t)?t:kr(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=F(e),l=F(t);s&&(i=l?e:0),l&&(a=s?t:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},r}();var eH=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=kr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=kr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function lI(r,e){return r==="eq"||r==="ne"?new eH(r==="eq",e):J(sI,r)?new tH(r,e):null}var rH=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Mi(e,t)},r}();function iH(r,e){var t=new rH,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Yr&&Gt(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var x="";J(l,g)&&Gt(x),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var p=ex(a,Yr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return p(i,n,s,d)},t.getRawData=W(aH,null,r)),t.cloneRawData=W(nH,null,r);var c=rx(a,Yr);t.count=W(c,null,i,n,s);var h=ix(a);t.retrieveValue=function(d,m){var g=p(i,n,s,d);return v(g,m)};var v=t.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return h(d,m,g.name)}};return t.getDimensionInfo=W(oH,null,s,l),t.cloneAllDimensionInfo=W(sH,null,s),t}function aH(r){var e=r.sourceFormat;if(!ox(e)){var t="";Gt(t)}return r.data}function nH(r){var e=r.sourceFormat,t=r.data;if(!ox(e)){var i="";Gt(i)}if(e===Le){for(var a=[],n=0,o=t.length;n<o;n++)a.push(t[n].slice());return a}else if(e===sr){for(var a=[],n=0,o=t.length;n<o;n++)a.push(N({},t[n]));return a}}function oH(r,e,t){if(t!=null){if(vt(t)||!isNaN(t)&&!J(e,t))return r[t];if(J(e,t))return e[t]}}function sH(r){return $(r)}var uI=Y();function fI(r){r=$(r);var e=r.type,t="";e||Gt(t);var i=e.split(":");i.length!==2&&Gt(t);var a=!1;i[0]==="echarts"&&(e=i[1],a=!0),r.__isBuiltIn=a,uI.set(e,r)}function pI(r,e,t){var i=Nt(r),a=i.length,n="";a||Gt(n);for(var o=0,s=a;o<s;o++){var l=i[o];e=lH(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function lH(r,e,t,i){var a="";e.length||Gt(a),j(r)||Gt(a);var n=r.type,o=uI.get(n);o||Gt(a);var s=k(e,function(f){return iH(f,o)}),l=Nt(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));if(0&&r.print)var u;return k(l,function(f,p){var c="";j(f)||Gt(c),f.data||Gt(c);var h=J0(f.data);ox(h)||Gt(c);var v,d=e[0];if(d&&p===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),v={seriesLayoutBy:Yr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Yr,sourceHeader:0,dimensions:f.dimensions};return bp(f.data,v,null)})}function ox(r){return r===Le||r===sr}var Gv="undefined",uH=typeof Uint32Array===Gv?Array:Uint32Array,fH=typeof Uint16Array===Gv?Array:Uint16Array,lx=typeof Int32Array===Gv?Array:Int32Array,cI=typeof Float64Array===Gv?Array:Float64Array,vI={float:cI,int:lx,ordinal:Array,number:Array,time:cI},sx;function wp(r){return r>65535?uH:fH}function gu(){return[1/0,-1/0]}function pH(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function hI(r,e,t,i,a){var n=vI[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new n(i)}var cH=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=sx[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=Vv(a);this._dimensions=k(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(e);if(n!=null){if(a[n].type===t)return n}else n=a.length;return a[n]={type:t},i.set(e,n),this._chunks[n]=new vI[t||"float"](this._rawCount),this._rawExtent[n]=gu(),n},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[e]=gu());for(var l=n[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<n;u++){var f=a[u];hI(i,u,f.type,l,!0)}for(var p=[],c=s;c<l;c++)for(var h=c-s,v=0;v<n;v++){var f=a[v],d=sx.arrayRows.call(this,e[h]||p,f.property,h,v);i[v][c]=d;var m=o[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=k(o,function(y){return y.property}),f=0;f<s;f++){var p=o[f];l[f]||(l[f]=gu()),hI(n,f,p.type,t,i)}if(a.fillStorage)a.fillStorage(e,t,n,l);else for(var c=[],h=e;h<t;h++){c=a.getItem(h,c);for(var v=0;v<s;v++){var d=n[v],m=this._dimValueGetter(c,u[v],h,v);d[h]=m;var g=l[v];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],a=[];if(t==null){t=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var a=0,n=this.count();a<n;a++){var o=this.get(e,a);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)});var i=t.sort(function(n,o){return n-o}),a=this.count();return a===0?0:a%2===1?i[(a-1)/2]:(i[a/2]+i[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,i){var a=this._chunks,n=a[e],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,p=this.count();f<p;f++){var c=this.getRawIndex(f),h=t-n[c],v=Math.abs(h);v<=i&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=t[n]}else e=new i(t.buffer,0,a)}else{var i=wp(this._rawCount);e=new i(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=wp(i._rawCount),o=new n(a),s=[],l=e.length,u=0,f=e[0],p=i._chunks,c=0;c<a;c++){var h=void 0,v=i.getRawIndex(c);if(l===0)h=t(c);else if(l===1){var d=p[f][v];h=t(d,c)}else{for(var m=0;m<l;m++)s[m]=p[e[m]][v];s[m]=c,h=t.apply(null,s)}h&&(o[u++]=v)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var a=ft(e),n=a.length;if(!n)return this;var o=t.count(),s=wp(t._rawCount),l=new s(o),u=0,f=a[0],p=e[f][0],c=e[f][1],h=t._chunks,v=!1;if(!t._indices){var d=0;if(n===1){for(var m=h[a[0]],g=0;g<i;g++){var y=m[g];(y>=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(n===2){for(var m=h[a[0]],x=h[a[1]],_=e[a[1]][0],b=e[a[1]][1],g=0;g<i;g++){var y=m[g],S=x[g];(y>=p&&y<=c||isNaN(y))&&(S>=_&&S<=b||isNaN(S))&&(l[u++]=d),d++}v=!0}}if(!v)if(n===1)for(var g=0;g<o;g++){var T=t.getRawIndex(g),y=h[a[0]][T];(y>=p&&y<=c||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var C=!0,T=t.getRawIndex(g),A=0;A<n;A++){var D=a[A],y=h[D][T];(y<e[D][0]||y>e[D][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var a=e._chunks,n=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=gu();for(var p=0;p<s;p++){for(var c=e.getRawIndex(p),h=0;h<o;h++)l[h]=a[t[h]][c];l[o]=p;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(n[0]=v,v=n);for(var f=0;f<v.length;f++){var d=t[f],m=v[f],g=u[d],y=a[d];y&&(y[c]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,h=new(wp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),m=Math.min(v+l*2,o),g=(m+d)/2,y=0,x=d;x<m;x++){var _=this.getRawIndex(x),b=n[_];isNaN(b)||(y+=b)}y/=m-d;var S=v,T=Math.min(v+l,o),C=v-1,A=n[u];f=-1,c=S;for(var D=-1,M=0,x=S;x<T;x++){var _=this.getRawIndex(x),b=n[_];if(isNaN(b)){M++,D<0&&(D=_);continue}p=Math.abs((C-g)*(b-A)-(C-x)*(y-A)),p>f&&(f=p,c=_)}M>0&&M<T-S&&(h[s++]=Math.min(D,c),c=Math.max(D,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(e,t,i,a){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),p=n._rawExtent[e]=gu(),c=new(wp(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(v+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(v+a(s,g)||0,f-1));u[y]=g,g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g),c[h++]=y}return n._count=h,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:t(n);break;case 1:t(a[e[0]][s],n);break;case 2:t(a[e[0]][s],a[e[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[e[l]][s];u[l]=n,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],i=gu();if(!t)return i;var a=this.count(),n=!this._indices,o;if(n)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),p=t[f];p<s&&(s=p),p>l&&(l=p)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][t]);return i},r.prototype.clone=function(e,t){var i=new r,a=this._chunks,n=e&&$e(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?pH(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=$(this._extent),e._rawExtent=$(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var a=0;a<i;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,a,n){return Mi(t[n],this._dimensions[n])}sx={arrayRows:e,objectRows:function(t,i,a,n){return Mi(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return Mi(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}}(),r}(),Tp=cH;var Wv=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,a,n;if(Hv(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=De(s)?si:je,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=at(p.seriesLayoutBy,c.seriesLayoutBy)||null,v=at(p.sourceHeader,c.sourceHeader),d=at(p.dimensions,c.dimensions),m=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=m?[bp(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var x=g.get("source",!0);a=[bp(x,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&dI(n)}var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&dI(p),s.push(f),l.push(u._getVersionSign())}),i?o=pI(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[eI(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Hv(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new Tp,s.initData(new Uv(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Hv(e)){var t=Ev(e);return t?[t.getSourceManager()]:[]}else return k(RM(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,a;if(Hv(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;t=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:a}},r}();function ux(r){var e=r.option.transform;e&&Lo(r.option.transform)}function Hv(r){return r.mainType==="series"}function dI(r){throw new Error(r)}var mI="line-height:1";function gI(r,e){var t=r.color||"#6e7079",i=r.fontSize||12,a=r.fontWeight||"400",n=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Je(i+"")+"px;color:"+Je(t)+";font-weight:"+Je(a+""),valueStyle:"font-size:"+Je(o+"")+"px;color:"+Je(n)+";font-weight:"+Je(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var hH=[0,10,20,30],vH=["",`
  9. `,`
  10. `,`
  11. `];function ie(r,e){return e.type=r,e}function fx(r){return r.type==="section"}function yI(r){return fx(r)?dH:mH}function xI(r){if(fx(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return w(r.blocks,function(a){var n=xI(a);n>=e&&(e=n+ +(i&&(!n||fx(a)&&!a.noHeader)))}),e}return 0}function dH(r,e,t,i){var a=e.noHeader,n=gH(xI(e)),o=[],s=e.blocks||[];ne(!s||O(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new Fv(u[l],null);s.sort(function(v,d){return f.evaluate(v.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(v,d){var m=e.valueFormatter,g=yI(v)(m?N(N({},r),{valueFormatter:m}):r,v,d>0?n.html:0,i);g!=null&&o.push(g)});var p=r.renderMode==="richText"?o.join(n.richText):px(o.join(""),a?t:n.html);if(a)return p;var c=Av(e.header,"ordinal",r.useUTC),h=gI(i,r.renderMode).nameStyle;return r.renderMode==="richText"?_I(r,c,h)+n.richText+p:px('<div style="'+h+";"+mI+';">'+Je(c)+"</div>"+p,t)}function mH(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(_){return _=O(_)?_:[_],k(_,function(b,S){return Av(b,O(h)?h[S]:h,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),c=n?"":Av(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.dataIndex),d=!s||!n,m=!s&&n,g=gI(i,a),y=g.nameStyle,x=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":_I(r,c,y))+(o?"":_H(r,v,d,m,x)):px((s?"":p)+(n?"":yH(c,!s,y))+(o?"":xH(v,d,m,x)),t)}}function cx(r,e,t,i,a,n){if(r){var o=yI(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function gH(r){return{html:hH[r],richText:vH[r]}}function px(r,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+mI+';">'+r+t+"</div>"}function yH(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Je(r)+"</span>"}function xH(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=O(r)?r:[r],'<span style="'+n+";"+i+'">'+k(r,function(o){return Je(o)}).join("&nbsp;&nbsp;")+"</span>"}function _I(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function _H(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(O(e)?e.join(" "):e,n)}function Yv(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Qi(i)}function Zv(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Xv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Fh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=DM({color:t,type:e,renderMode:i,markerId:a});return F(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};O(t)?w(t,function(n){return N(i,n)}):N(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r}();function qv(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=O(s),u=Yv(e,t),f,p,c,h;if(o>1||l&&!o){var v=SH(s,e,t,n,u);f=v.inlineValues,p=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);h=f=pn(a,t,n[0]),p=d.type}else h=f=l?s[0]:s;var m=Zl(e),g=m&&e.name||"",y=a.getName(t),x=i?g:y;return ie("section",{header:g,noHeader:i||!m,sortParam:h,blocks:[ie("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fe(x),value:f,valueType:p,dataIndex:t})].concat(c||[])})}function SH(r,e,t,i,a){var n=e.getData(),o=$e(r,function(p,c,h){var v=n.getDimensionInfo(h);return p=p||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(p){f(pn(n,t,p),p)}):w(r,f);function f(p,c){var h=n.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(ie("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:p,valueType:h.type})):(s.push(p),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kn=ot();function jv(r,e){return r.getName(e)||r.getId(e)}var Cp="__universalTransitionEnabled",Kv=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=jn({count:wH,reset:TH}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=Kn(this).sourceManager=new Wv(this);n.prepareSource();var o=this.getInitialData(t,a);bI(o,this),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,SI(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=qn(this),n=a?Ai(t):{},o=this.subType;xt.hasClass(o)&&(o+="Series"),lt(t,i.getTheme().get(this.subType)),lt(t,this.getDefaultOption()),ai(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Wr(t,n,a)},e.prototype.mergeOption=function(t,i){t=lt(this.option,t,!0),this.fillDataTextStyle(t.data);var a=qn(this);a&&Wr(this.option,t,a);var n=Kn(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);bI(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kn(this).dataBeforeProcessed=o,SI(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!De(t))for(var i=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&ai(t[a],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=hx(this);if(i){var a=i.context.data;return t==null?a:a.getLinkedData(t)}else return Kn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=hx(this);if(i){var a=i.context;a.outputData=t,i!==this.dataTask&&(a.data=t)}Kn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Y(t)},e.prototype.getSourceManager=function(){return Kn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Kn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,i,a){return qv({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Tt.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,a){var n=this.ecModel,o=mp.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=jv(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var a=[],n=0;n<t.length;n++)a[0]=t[n],this.isSelected(t[n],i)?this.unselect(a,i):this.select(a,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=ft(t),a=[],n=0;n<i.length;n++){var o=t[i[n]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[jv(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Cp])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){j(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var p=i[f],c=jv(t,p);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(p)}}else if(s==="single"||s===!0){var h=i[l-1],c=jv(t,h);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(n={},n[c]=t.getRawIndex(h),n)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(a){var n=t.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return xt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(xt);jt(Kv,mu);jt(Kv,mp);Wh(Kv,xt);function SI(r){var e=r.name;Zl(r)||(r.name=bH(r)||e)}function bH(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return w(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function wH(r){return r.model.getRawData().count()}function TH(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),CH}function CH(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bI(r,e){w(Eo(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,et(AH,e))})}function AH(r,e){var t=hx(r);return t&&t.setOutputEnd((e||this).count()),e}function hx(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var Rt=Kv;var vx=function(){function r(){this.group=new K,this.uid=Ci("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Xl(vx);Un(vx);var Ot=vx;function li(){var r=ot();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var CI=ot(),DH=li(),dx=function(){function r(){this.group=new K,this.uid=Ci("viewChart"),this.renderTask=jn({plan:MH,reset:IH}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&TI(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&TI(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateLayout=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){Sr(this.group,e)},r.markUpdateMethod=function(e,t){CI(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function wI(r,e,t){r&&Zn(r)&&(e==="emphasis"?cr:hr)(r,t)}function TI(r,e,t){var i=Si(r,e),a=e&&e.highlightKey!=null?CD(e.highlightKey):null;i!=null?w(Nt(i),function(n){wI(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){wI(n,t,a)})}Xl(dx,["dispose"]);Un(dx);function MH(r){return DH(r.model)}function IH(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&CI(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),LH[l]}var LH={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},It=dx;var Qv="\0__throttleOriginMethod",AI="\0__throttleRate",DI="\0__throttleType";function Ap(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,m=f||t;f=null,s=i-(m?a:n)-d,clearTimeout(o),m?o=setTimeout(p,d):s>=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Ii(r,e,t,i){var a=r[e];if(a){var n=a[Qv]||a,o=a[DI],s=a[AI];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=Ap(n,t,i==="debounce"),a[Qv]=n,a[DI]=i,a[AI]=t}return a}}function cn(r,e){var t=r[e];t&&t[Qv]&&(t.clear&&t.clear(),r[e]=t[Qv])}var MI=ot(),II={itemStyle:Br(A0,!0),lineStyle:Br(C0,!0)},EH={lineStyle:"stroke",itemStyle:"fill"};function LI(r,e){var t=r.visualStyleMapper||II[e];return t||(console.warn("Unknown style type '"+e+"'."),II.itemStyle)}function EI(r,e){var t=r.visualDrawType||EH[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var PI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=LI(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=EI(r,i),u=o[l],f=X(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||X(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||X(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),m=N({},o);m[l]=f(d),h.setItemVisual(v,"style",m)}}}},Dp=new zt,zI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=LI(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Dp.option=l[i];var u=a(Dp),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Dp.option.decal&&(o.setItemVisual(s,"decal",Dp.option.decal),Dp.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},RI={performRawSeries:!0,overallReset:function(r){var e=Y();r.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+i,n=e.get(a);n||(n={},e.set(a,n)),MI(t).scope=n}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var i=t.getRawData(),a={},n=t.getData(),o=MI(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=EI(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();c[l]=t.getColorFromPalette(h,o,v)}})}})}};var Jv=Math.PI;function mx(r,e){e=e||{},q(e,{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 t=new K,i=new ht({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new yt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new ht({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new np({shape:{startAngle:-Jv/2,endAngle:-Jv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Jv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Jv*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var PH=function(){function r(e,t,i,a){this._stageTaskMap=Y(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.getData(),n=a.count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&n>=i.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=Y();e.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;w(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";ne(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,o=this;w(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);v.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Y(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,h=s.set(c,o&&o.get(c)||jn({plan:kH,reset:VH,count:BH}));h.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,h)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||jn({reset:zH});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=e.seriesType,f=e.getTargetSeries,p=!0,c=!1,h="";ne(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,a).each(v):(p=!1,w(i.getSeries(),v));function v(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,jn({reset:RH,onDirty:OH})));g.context={model:d,overallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return X(e)&&(e={overallReset:e,seriesType:FH(e)}),e.uid=Ci("stageHandler"),t&&(e.visualType=t),e},r}();function zH(r){r.overallReset(r.ecModel,r.api,r.payload)}function RH(r){return r.overallProgress&&NH}function NH(){this.agent.dirty(),this.getDownstream().dirty()}function OH(){this.agent&&this.agent.dirty()}function kH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function VH(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?k(e,function(t,i){return NI(i)}):UH}var UH=NI(0);function NI(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n<e.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(e,i)}}function BH(r){return r.data.count()}function FH(r){td=null;try{r(Mp,OI)}catch{}return td}var Mp={},OI={},td;kI(Mp,Rv);kI(OI,Nv);Mp.eachSeriesByType=Mp.eachRawSeriesByType=function(r){td=r};Mp.eachComponent=function(r){r.mainType==="series"&&r.subType&&(td=r.subType)};function kI(r,e){for(var t in e.prototype)r[t]=te}var gx=PH;var VI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],UI={color:VI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],VI]};var br="#B9B8CE",BI="#100C2A",ed=function(){return{axisLine:{lineStyle:{color:br}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},FI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],GI={darkMode:!0,color:FI,backgroundColor:BI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:br}},textStyle:{color:br},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:br}},dataZoom:{borderColor:"#71708A",textStyle:{color:br},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:br}},timeline:{lineStyle:{color:br},label:{color:br},controlStyle:{color:br,borderColor:br}},calendar:{itemStyle:{color:BI},dayLabel:{color:br},monthLabel:{color:br},yearLabel:{color:br}},timeAxis:ed(),logAxis:ed(),valueAxis:ed(),categoryAxis:ed(),line:{symbol:"circle"},graph:{color:FI},gauge:{title:{color:br},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:br},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};GI.categoryAxis.splitLine.show=!1;var HI=GI;var WI=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},a={};if(F(e)){var n=Ur(e);t.mainType=n.main||null,t.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var f=!1,p=0;p<o.length;p++){var c=o[p],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var v=u.slice(0,h);v!=="data"&&(t.mainType=v,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.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,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,n));function f(p,c,h,v){return p[h]==null||c[v||h]===p[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}();var yx=["symbol","symbolSize","symbolRotate","symbolOffset"],YI=yx.concat(["symbolKeepAspect"]),ZI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o<yx.length;o++){var s=yx[o],l=r.get(s);X(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(N({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=ft(a);function f(p,c){for(var h=r.getRawValue(c),v=r.getDataParams(c),d=0;d<u.length;d++){var m=u[d];p.setItemVisual(c,m,a[m](h,v))}}return{dataEach:n?f:null}}},XI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<YI.length;s++){var l=YI[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Ip(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function Ma(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function xx(r,e,t,i){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break;default:}}function rd(r,e){function t(i,a){var n=[];return i.eachComponent({mainType:"series",subType:r,query:a},function(o){n.push(o.seriesIndex)}),n}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(a,n,o){a=N({},a),o.dispatchAction(N(a,{type:i[1],seriesIndex:t(n,a)}))})})}function yu(r,e,t,i,a){var n=r+e;t.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var p=o.getData(),c=Si(p,a.fromActionPayload);t.trigger(n,{type:n,seriesId:o.id,name:O(c)?p.getName(c[0]):p.getName(c),selected:F(l)?l:N({},l)})}})}function qI(r,e,t){r.on("selectchanged",function(i){var a=t.getModel();i.isFromClick?(yu("map","selectchanged",e,a,i),yu("pie","selectchanged",e,a,i)):i.fromAction==="select"?(yu("map","selected",e,a,i),yu("pie","selected",e,a,i)):i.fromAction==="unselect"&&(yu("map","unselected",e,a,i),yu("pie","unselected",e,a,i))})}function ta(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var GH=Math.round(Math.random()*9),HH=typeof Object.defineProperty=="function",WH=function(){function r(){this._id="__ec_inner_"+GH++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return HH?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),jI=WH;var YH=it.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i+n),r.lineTo(t-a,i+n),r.closePath()}}),ZH=it.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i),r.lineTo(t,i+n),r.lineTo(t-a,i),r.closePath()}}),XH=it.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,a=e.width/5*3,n=Math.max(a,e.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,p=Math.sin(u),c=Math.cos(u),h=o*.6,v=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-p*h,l+s+c*h,t,i-v,t,i),r.bezierCurveTo(t,i-v,t-f+p*h,l+s+c*h,t-f,l+s),r.closePath()}}),qH=it.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,a=e.x,n=e.y,o=i/3*2;r.moveTo(a,n),r.lineTo(a+o,n+t),r.lineTo(a,n+t/4*3),r.lineTo(a-o,n+t),r.lineTo(a,n),r.closePath()}}),jH={line:fe,rect:ht,roundRect:ht,square:ht,circle:_r,diamond:ZH,pin:XH,arrow:qH,triangle:YH},KH={line:function(r,e,t,i,a){a.x1=r,a.y1=e+i/2,a.x2=r+t,a.y2=e+i/2},rect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i},roundRect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i,a.r=Math.min(t,i)/4},square:function(r,e,t,i,a){var n=Math.min(t,i);a.x=r,a.y=e,a.width=n,a.height=n},circle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.r=Math.min(t,i)/2},diamond:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i},pin:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},arrow:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},triangle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i}},Lp={};w(jH,function(r,e){Lp[e]=new r});var QH=it.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=qo(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var a=Lp[i];a||(i="rect",a=Lp[i]),KH[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function $H(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Xt(r,e,t,i,a,n,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=_0(r.slice(8),new rt(e,t,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=nu(r.slice(7),{},new rt(e,t,i,a),o?"center":"cover"):l=new QH({shape:{symbolType:r,x:e,y:t,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=$H,n&&l.setColor(n),l}function ea(r){return O(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function ui(r,e){if(r!=null)return O(r)||(r=[r,r]),[H(r[0],e[0])||0,H(at(r[1],r[0]),e[1])||0]}function bs(r){return isFinite(r)}function JH(r,e,t){var i=e.x==null?0:e.x,a=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,a=a*t.width+t.x,n=n*t.height+t.y,o=o*t.height+t.y),i=bs(i)?i:0,a=bs(a)?a:1,n=bs(n)?n:0,o=bs(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function t4(r,e,t){var i=t.width,a=t.height,n=Math.min(i,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*a+t.y,l=l*n),o=bs(o)?o:.5,s=bs(s)?s:.5,l=l>=0&&bs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ep(r,e,t){for(var i=e.type==="radial"?t4(r,e,t):JH(r,e,t),a=e.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function QI(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function id(r){return parseInt(r,10)}function Qn(r,e,t){var i=["width","height"][e],a=["clientWidth","clientHeight"][e],n=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[a]||id(s[i])||id(r.style[i]))-(id(s[n])||0)-(id(s[o])||0)|0}function e4(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:vt(r)?[r]:O(r)?r:null}function Pp(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&e4(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=k(t,function(n){return n/a}),i/=a)}return[t,i]}var r4=new Ye(!0);function ad(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function $I(r){return typeof r=="string"&&r!=="none"}function nd(r){var e=r.fill;return e!=null&&e!=="none"}function JI(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function tL(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function od(r,e,t){var i=Zf(e.image,e.__image,t);if(ql(i)){var a=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Dl),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function i4(r,e,t,i){var a,n=ad(t),o=nd(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||r4,p=e.__dirty;if(!i){var c=t.fill,h=t.stroke,v=o&&!!c.colorStops,d=n&&!!h.colorStops,m=o&&!!c.image,g=n&&!!h.image,y=void 0,x=void 0,_=void 0,b=void 0,S=void 0;(v||d)&&(S=e.getBoundingRect()),v&&(y=p?Ep(r,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),d&&(x=p?Ep(r,h,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(_=p||!e.__canvasFillPattern?od(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(b=p||!e.__canvasStrokePattern?od(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),v?r.fillStyle=y:m&&(_?r.fillStyle=_:o=!1),d?r.strokeStyle=x:g&&(b?r.strokeStyle=b:n=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(a=Pp(e),C=a[0],A=a[1]);var D=!0;(u||p&En)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(t.strokeFirst?(n&&tL(r,t),o&&JI(r,t)):(o&&JI(r,t),n&&tL(r,t))),C&&r.setLineDash([])}function a4(r,e,t){var i=e.__image=Zf(t.image,e.__image,e,e.onload);if(!(!i||!ql(i))){var a=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function n4(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||Jr,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=Pp(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(ad(t)&&r.strokeText(a,t.x,t.y),nd(t)&&r.fillText(a,t.x,t.y)):(nd(t)&&r.fillText(a,t.x,t.y),ad(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var eL=["shadowBlur","shadowOffsetX","shadowOffsetY"],rL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lL(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Zr(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?xa.opacity:o}(i||e.blend!==t.blend)&&(n||(Zr(r,a),n=!0),r.globalCompositeOperation=e.blend||xa.blend);for(var s=0;s<eL.length;s++){var l=eL[s];(i||e[l]!==t[l])&&(n||(Zr(r,a),n=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(n||(Zr(r,a),n=!0),r.shadowColor=e.shadowColor||xa.shadowColor),n}function iL(r,e,t,i,a){var n=zp(e,a.inHover),o=i?null:t&&zp(t,a.inHover)||{};if(n===o)return!1;var s=lL(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(Zr(r,a),s=!0),$I(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(Zr(r,a),s=!0),$I(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(Zr(r,a),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Zr(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<rL.length;f++){var p=rL[f],c=p[0];(i||n[c]!==o[c])&&(s||(Zr(r,a),s=!0),r[c]=n[c]||p[1])}return s}function o4(r,e,t,i,a){return lL(r,zp(e,a.inHover),t&&zp(t,a.inHover),i,a)}function uL(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function s4(r,e,t){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),uL(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}t.allClipped=i}function l4(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var aL=1,nL=2,oL=3,sL=4;function u4(r){var e=nd(r),t=ad(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Zr(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function zp(r,e){return e&&r.__hoverStyle||r.style}function sd(r,e){$n(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function $n(r,e,t,i){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Ve,e.__isRendered=!1;return}var n=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||QI(n,o))&&(o&&o.length&&(Zr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(Zr(r,t),r.save(),s4(n,r,t),s=!0),t.prevElClipPaths=n),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof it&&e.autoBatch&&u4(e.style);s||l4(a,u.transform)?(Zr(r,t),uL(r,e)):f||Zr(r,t);var p=zp(e,t.inHover);e instanceof it?(t.lastDrawType!==aL&&(l=!0,t.lastDrawType=aL),iL(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),i4(r,e,p,f),f&&(t.batchFill=p.fill||"",t.batchStroke=p.stroke||"")):e instanceof Ka?(t.lastDrawType!==oL&&(l=!0,t.lastDrawType=oL),iL(r,e,u,l,t),n4(r,e,p)):e instanceof re?(t.lastDrawType!==nL&&(l=!0,t.lastDrawType=nL),o4(r,e,u,l,t),a4(r,e,p)):e.getTemporalDisplayables&&(t.lastDrawType!==sL&&(l=!0,t.lastDrawType=sL),f4(r,e,t)),f&&i&&Zr(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function f4(r,e,t){var i=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$n(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),$n(r,l,n,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var _x=new jI,fL=new Za(100),pL=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ra(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),a=i.painter.type==="svg";r.dirty&&_x.delete(r);var n=_x.get(r);if(n)return n;var o=q(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=a?1:1/t,_x.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],p=!0,c=0;c<pL.length;++c){var h=o[pL[c]];if(h!=null&&!O(h)&&!F(h)&&!vt(h)&&typeof h!="boolean"){p=!1;break}f.push(h)}var v;if(p){v=f.join(",")+(a?"-svg":"");var d=fL.get(v);d&&(a?u.svgElement=d:u.image=d)}var m=hL(o.dashArrayX),g=p4(o.dashArrayY),y=cL(o.symbol),x=c4(m),_=vL(g),b=!a&&pr.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;b&&(b.width=T.width*t,b.height=T.height*t,C=b.getContext("2d")),D(),p&&fL.put(v,b||S),u.image=b,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var M=1,I=0,L=x.length;I<L;++I)M=Ny(M,x[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Ny(P,y[I].length);M*=P;var z=_*x.length*y.length;if(0)var R;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var M=0,I=0;I<g.length;++I)M+=g[I];if(M<=0)return;for(var L=-_,P=0,z=0,R=0;L<T.height;){if(P%2===0){for(var U=z/2%y.length,V=0,B=0,Z=0;V<T.width*2;){for(var Q=0,I=0;I<m[R].length;++I)Q+=m[R][I];if(Q<=0)break;if(B%2===0){var st=(1-o.symbolSize)*.5,ct=V+m[R][B]*st,pt=L+g[P]*st,Lt=m[R][B]*o.symbolSize,Bt=g[P]*o.symbolSize,Et=Z/2%y[U].length;gt(ct,pt,Lt,Bt,y[U][Et])}V+=m[R][B],++Z,++B,B===m[R].length&&(B=0)}++R,R===m.length&&(R=0)}L+=g[P],++z,++P,P===g.length&&(P=0)}function gt(Pt,Ct,ut,At,ce){var Yt=a?1:t,_e=Xt(ce,Pt*Yt,Ct*Yt,ut*Yt,At*Yt,o.color,o.symbolKeepAspect);if(a){var de=i.painter.renderOneToVNode(_e);de&&S.children.push(de)}else sd(C,_e)}}}}function cL(r){if(!r||r.length===0)return[["rect"]];if(F(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!F(r[t])){e=!1;break}if(e)return cL([r]);for(var i=[],t=0;t<r.length;++t)F(r[t])?i.push([r[t]]):i.push(r[t]);return i}function hL(r){if(!r||r.length===0)return[[0,0]];if(vt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!vt(r[i])){t=!1;break}if(t)return hL([r]);for(var a=[],i=0;i<r.length;++i)if(vt(r[i])){var e=Math.ceil(r[i]);a.push([e,e])}else{var e=k(r[i],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function p4(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(vt(r)){var e=Math.ceil(r);return[e,e]}var t=k(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function c4(r){return k(r,function(e){return vL(e)})}function vL(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function Sx(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=ra(s,e)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=ra(a,e)}}})}var h4=new Ne,Li=h4;var dL={};function mL(r,e){dL[r]=e}function gL(r){return dL[r]}var v4=1,d4=800,m4=900,g4=1e3,y4=2e3,x4=5e3,DL=1e3,_4=1100,zx=2e3,ML=3e3,S4=4e3,cd=4500,b4=4600,w4=5e3,T4=6e3,IL=7e3,LL={PROCESSOR:{FILTER:g4,SERIES_FILTER:d4,STATISTIC:x4},VISUAL:{LAYOUT:DL,PROGRESSIVE_LAYOUT:_4,GLOBAL:zx,CHART:ML,POST_CHART_LAYOUT:b4,COMPONENT:S4,BRUSH:w4,CHART_ITEM:cd,ARIA:T4,DECAL:IL}},yr="__flagInMainProcess",Xr="__pendingUpdate",bx="__needsUpdateStatus",yL=/^[a-zA-Z0-9_]+$/,Tx="__connectUpdateStatus",xL=0,C4=1,A4=2;function EL(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return zL(this,r,e)}}function PL(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zL(this,r,e)}}function zL(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ne.prototype[e].apply(r,t)}var RL=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Ne),NL=RL.prototype;NL.on=PL("on");NL.off=PL("off");var xu,Cx,ld,Jn,Ax,Dx,Mx,Rp,Np,_L,SL,Ix,bL,ud,wL,OL,Ei,TL,kL=function(r){E(e,r);function e(t,i,a){var n=r.call(this,new WI)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},F(i)&&(i=VL[i]),n._dom=t;var o="canvas",s="auto",l=!1;if(0)var u;a.ssr&&rA(function(h){var v=tt(h),d=v.dataIndex;if(d!=null){var m=Y();return m.set("series_index",v.seriesIndex),m.set("data_index",d),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var f=n._zr=Py(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:at(a.useDirtyRect,l),useCoarsePointer:at(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=Ap(W(f.flush,f),17),i=$(i),i&&Ov(i,!0),n._theme=i,n._locale=yM(a.locale||_v),n._coordSysMgr=new un;var p=n._api=wL(n);function c(h,v){return h.__prio-v.__prio}return Oo(pd,c),Oo(Lx,c),n._scheduler=new gx(n,p,Lx,pd),n._messageCenter=new RL,n._initEvents(),n.resize=W(n.resize,n),f.animation.on("frame",n._onframe,n),_L(f,n),SL(f,n),Lo(n),n}return e.prototype._onframe=function(){if(!this._disposed){TL(this);var t=this._scheduler;if(this[Xr]){var i=this[Xr].silent;this[yr]=!0;try{xu(this),Jn.update.call(this,null,this[Xr].updateParams)}catch(l){throw this[yr]=!1,this[Xr]=null,l}this._zr.flush(),this[yr]=!1,this[Xr]=null,Rp.call(this,i),Np.call(this,i)}else if(t.unfinished){var a=v4,n=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),Dx(this,n),t.performVisualTasks(n),ud(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,a){if(!this[yr]){if(this._disposed){this.id;return}var n,o,s;if(j(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[yr]=!0,!this._model||i){var l=new ZM(this._api),u=this._theme,f=this._model=new Rv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Ex);var p={seriesTransition:s,optionChanged:!0};if(a)this[Xr]={silent:n,updateParams:p},this[yr]=!1,this.getZr().wakeUp();else{try{xu(this),Jn.update.call(this,null,p)}catch(c){throw this[Xr]=null,this[yr]=!1,c}this._ssr||this._zr.flush(),this[Xr]=null,this[yr]=!1,Rp.call(this,n),Np.call(this,n)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Tt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Tt.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return w(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;w(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return w(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(CL[a]){var l=s,u=s,f=-s,p=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();w(kp,function(x,_){if(x.group===a){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas($(t)),S=x.getDom().getBoundingClientRect();l=n(S.left,l),u=n(S.top,u),f=o(S.right,f),p=o(S.bottom,p),c.push({dom:b,left:S.left,top:S.top})}}),l*=h,u*=h,f*=h,p*=h;var v=f-l,d=p-u,m=pr.createCanvas(),g=Py(m,{renderer:i?"svg":"canvas"});if(g.resize({width:v,height:d}),i){var y="";return w(c,function(x){var _=x.left-l,b=x.top-u;y+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new ht({shape:{x:0,y:0,width:v,height:d},style:{fill:t.connectedBackgroundColor}})),w(c,function(x){var _=new re({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Ax(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Ax(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=kn(a,t);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=kn(a,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?Ip(s,l,i):Ma(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;w(D4,function(i){var a=function(n){var o=t.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&ta(s,function(v){var d=tt(v);if(d&&d.dataIndex!=null){var m=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=m&&m.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=N({},d.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var c=f&&p!=null&&o.getComponent(f,p),h=c&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:h},t.trigger(i,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(i,a,t)}),w(Op,function(i,a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),w(["selectchanged"],function(i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),qI(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ky(this.getDom(),Nx,"");var i=this,a=i._api,n=i._model;w(i._componentsViews,function(o){o.dispose(n,a)}),w(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete kp[i.id]},e.prototype.resize=function(t){if(!this[yr]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[Xr]&&(n==null&&(n=this[Xr].silent),a=!0,this[Xr]=null),this[yr]=!0;try{a&&xu(this),Jn.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[yr]=!1,o}this[yr]=!1,Rp.call(this,n),Np.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(j(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Px[t]){var a=Px[t](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=N({},t);return i.type=Op[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(j(i)||(i={silent:!!i}),!!fd[t.type]&&this._model){if(this[yr]){this._pendingActions.push(t);return}var a=i.silent;Mx.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&Tt.browser.weChat&&this._throttledZrFlush(),Rp.call(this,a),Np.call(this,a)}},e.prototype.updateLabelLayout=function(){Li.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){xu=function(p){var c=p._scheduler;c.restorePipelines(p._model),c.prepareStageTasks(),Cx(p,!0),Cx(p,!1),c.plan()},Cx=function(p,c){for(var h=p._model,v=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,x=0;x<d.length;x++)d[x].__alive=!1;c?h.eachComponent(function(S,T){S!=="series"&&_(T)}):h.eachSeries(_);function _(S){var T=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,A=!T&&m[C];if(!A){var D=Ur(S.type),M=c?Ot.getClass(D.main,D.sub):It.getClass(D.sub);A=new M,A.init(h,y),m[C]=A,d.push(A),g.add(A.group)}S.__viewId=A.__id=C,A.__alive=!0,A.__model=S,A.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&v.prepareView(A,S,h,y)}for(var x=0;x<d.length;){var b=d[x];b.__alive?x++:(!c&&b.renderTask.dispose(),g.remove(b.group),b.dispose(h,y),d.splice(x,1),m[b.__id]===b&&delete m[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ld=function(p,c,h,v,d){var m=p._model;if(m.setUpdatePayload(h),!v){w([].concat(p._componentsViews).concat(p._chartsViews),b);return}var g={};g[v+"Id"]=h[v+"Id"],g[v+"Index"]=h[v+"Index"],g[v+"Name"]=h[v+"Name"];var y={mainType:v,query:g};d&&(y.subType=d);var x=h.excludeSeriesId,_;x!=null&&(_=Y(),w(Nt(x),function(S){var T=le(S,null);T!=null&&_.set(T,!0)})),m&&m.eachComponent(y,function(S){var T=_&&_.get(S.id)!=null;if(!T)if(c0(h))if(S instanceof Rt)h.type===Yn&&!h.notBlur&&!S.get(["emphasis","disabled"])&&xD(S,h,p._api);else{var C=tv(S.mainType,S.componentIndex,h.name,p._api),A=C.focusSelf,D=C.dispatchers;h.type===Yn&&A&&!h.notBlur&&Qh(S.mainType,S.componentIndex,p._api),D&&w(D,function(M){h.type===Yn?cr(M):hr(M)})}else rv(h)&&S instanceof Rt&&(bD(S,h,p._api),p0(S),Ei(p))},p),m&&m.eachComponent(y,function(S){var T=_&&_.get(S.id)!=null;T||b(p[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},p);function b(S){S&&S.__alive&&S[c]&&S[c](S.__model,m,p._api,h)}},Jn={prepareAndUpdate:function(p){xu(this),Jn.update.call(this,p,{optionChanged:p.newOption!=null})},update:function(p,c){var h=this._model,v=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(p),g.restoreData(h,p),g.performSeriesTasks(h),m.create(h,v),g.performDataProcessorTasks(h,p),Dx(this,h),m.update(h,v),t(h),g.performVisualTasks(h,p),Ix(this,h,v,p,c);var y=h.get("backgroundColor")||"transparent",x=h.get("darkMode");d.setBackgroundColor(y),x!=null&&x!=="auto"&&d.setDarkMode(x),Li.trigger("afterupdate",h,v)}},updateTransform:function(p){var c=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(p);var d=[];h.eachComponent(function(g,y){if(g!=="series"){var x=c.getViewOfComponentModel(y);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(y,h,v,p);_&&_.update&&d.push(x)}else d.push(x)}});var m=Y();h.eachSeries(function(g){var y=c._chartsMap[g.__viewId];if(y.updateTransform){var x=y.updateTransform(g,h,v,p);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),t(h),this._scheduler.performVisualTasks(h,p,{setDirty:!0,dirtyMap:m}),ud(this,h,v,p,{},m),Li.trigger("afterupdate",h,v)}},updateView:function(p){var c=this._model;c&&(c.setUpdatePayload(p),It.markUpdateMethod(p,"updateView"),t(c),this._scheduler.performVisualTasks(c,p,{setDirty:!0}),Ix(this,c,this._api,p,{}),Li.trigger("afterupdate",c,this._api))},updateVisual:function(p){var c=this,h=this._model;h&&(h.setUpdatePayload(p),h.eachSeries(function(v){v.getData().clearAllVisual()}),It.markUpdateMethod(p,"updateVisual"),t(h),this._scheduler.performVisualTasks(h,p,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var m=c.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,h,c._api,p)}}),h.eachSeries(function(v){var d=c._chartsMap[v.__viewId];d.updateVisual(v,h,c._api,p)}),Li.trigger("afterupdate",h,this._api))},updateLayout:function(p){Jn.update.call(this,p)}},Ax=function(p,c,h,v){if(p._disposed){p.id;return}for(var d=p._model,m=p._coordSysMgr.getCoordinateSystems(),g,y=kn(d,h),x=0;x<m.length;x++){var _=m[x];if(_[c]&&(g=_[c](d,y,v))!=null)return g}},Dx=function(p,c){var h=p._chartsMap,v=p._scheduler;c.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Mx=function(p,c){var h=this,v=this.getModel(),d=p.type,m=p.escapeConnect,g=fd[d],y=g.actionInfo,x=(y.update||"update").split(":"),_=x.pop(),b=x[0]!=null&&Ur(x[0]);this[yr]=!0;var S=[p],T=!1;p.batch&&(T=!0,S=k(p.batch,function(P){return P=q(N({},P),p),P.batch=null,P}));var C=[],A,D=rv(p),M=c0(p);if(M&&f0(this._api),w(S,function(P){if(A=g.action(P,h._model,h._api),A=A||N({},P),A.type=y.event||A.type,C.push(A),M){var z=Wf(p),R=z.queryOptionMap,U=z.mainTypeSpecified,V=U?R.keys()[0]:"series";ld(h,_,P,V),Ei(h)}else D?(ld(h,_,P,"series"),Ei(h)):b&&ld(h,_,P,b.main,b.sub)}),_!=="none"&&!M&&!D&&!b)try{this[Xr]?(xu(this),Jn.update.call(this,p),this[Xr]=null):Jn[_].call(this,p)}catch(P){throw this[yr]=!1,P}if(T?A={type:y.event||d,escapeConnect:m,batch:C}:A=C[0],this[yr]=!1,!c){var I=this._messageCenter;if(I.trigger(A.type,A),D){var L={type:"selectchanged",escapeConnect:m,selected:wD(v),isFromClick:p.isFromClick||!1,fromAction:p.type,fromActionPayload:p};I.trigger(L.type,L)}}},Rp=function(p){for(var c=this._pendingActions;c.length;){var h=c.shift();Mx.call(this,h,p)}},Np=function(p){!p&&this.trigger("updated")},_L=function(p,c){p.on("rendered",function(h){c.trigger("rendered",h),p.animation.isFinished()&&!c[Xr]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},SL=function(p,c){p.on("mouseover",function(h){var v=h.target,d=ta(v,Zn);d&&(_D(d,h,c._api),Ei(c))}).on("mouseout",function(h){var v=h.target,d=ta(v,Zn);d&&(SD(d,h,c._api),Ei(c))}).on("click",function(h){var v=h.target,d=ta(v,function(y){return tt(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=tt(d);c._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function t(p){p.clearColorPalette(),p.eachSeries(function(c){c.clearColorPalette()})}function i(p){var c=[],h=[],v=!1;if(p.eachComponent(function(y,x){var _=x.get("zlevel")||0,b=x.get("z")||0,S=x.getZLevelKey();v=v||!!S,(y==="series"?h:c).push({zlevel:_,z:b,idx:x.componentIndex,type:y,key:S})}),v){var d=c.concat(h),m,g;Oo(d,function(y,x){return y.zlevel===x.zlevel?y.z-x.z:y.zlevel-x.zlevel}),w(d,function(y){var x=p.getComponent(y.type,y.idx),_=y.zlevel,b=y.key;m!=null&&(_=Math.max(m,_)),b?(_===m&&b!==g&&_++,g=b):g&&(_===m&&_++,g=""),m=_,x.setZLevel(_)})}}Ix=function(p,c,h,v,d){i(c),bL(p,c,h,v,d),w(p._chartsViews,function(m){m.__alive=!1}),ud(p,c,h,v,d),w(p._chartsViews,function(m){m.__alive||m.remove(c,h)})},bL=function(p,c,h,v,d,m){w(m||p._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,c,h,v),s(y,g),f(y,g)})},ud=function(p,c,h,v,d,m){var g=p._scheduler;d=N(d||{},{updatedSeries:c.getSeries()}),Li.trigger("series:beforeupdate",c,h,d);var y=!1;c.eachSeries(function(x){var _=p._chartsMap[x.__viewId];_.__alive=!0;var b=_.renderTask;g.updatePayload(b,v),u(x,_),m&&m.get(x.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(y=!0),_.group.silent=!!x.get("silent"),o(x,_),p0(x)}),g.unfinished=y||g.unfinished,Li.trigger("series:layoutlabels",c,h,d),Li.trigger("series:transition",c,h,d),c.eachSeries(function(x){var _=p._chartsMap[x.__viewId];s(x,_),f(x,_)}),n(p,c),Li.trigger("series:afterupdate",c,h,d)},Ei=function(p){p[bx]=!0,p.getZr().wakeUp()},TL=function(p){p[bx]&&(p.getZr().storage.traverse(function(c){tn(c)||a(c)}),p[bx]=!1)};function a(p){for(var c=[],h=p.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}p.selected&&p.states.select&&c.push("select"),p.hoverState===Qf&&p.states.emphasis?c.push("emphasis"):p.hoverState===ns&&p.states.blur&&c.push("blur"),p.useStates(c)}function n(p,c){var h=p._zr,v=h.storage,d=0;v.traverse(function(m){m.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!Tt.node&&!Tt.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=p._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(p,c){var h=p.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(p,c){if(!p.preventAutoZ){var h=p.get("z")||0,v=p.get("zlevel")||0;c.eachRendered(function(d){return l(d,h,v,-1/0),!0})}}function l(p,c,h,v){var d=p.getTextContent(),m=p.getTextGuideLine(),g=p.isGroup;if(g)for(var y=p.childrenRef(),x=0;x<y.length;x++)v=Math.max(l(y[x],c,h,v),v);else p.z=c,p.zlevel=h,v=Math.max(p.z2,v);if(d&&(d.z=c,d.zlevel=h,isFinite(v)&&(d.z2=v+2)),m){var _=p.textGuideLineConfig;m.z=c,m.zlevel=h,isFinite(v)&&(m.z2=v+(_&&_.showAbove?1:-1))}return v}function u(p,c){c.eachRendered(function(h){if(!tn(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(p,c){var h=p.getModel("stateAnimation"),v=p.isAnimationEnabled(),d=h.get("duration"),m=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(tn(g))return;if(g instanceof it&&AD(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=m;var x=g.getTextContent(),_=g.getTextGuideLine();x&&(x.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}wL=function(p){return new(function(c){E(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){cr(v,d),Ei(p)},h.prototype.leaveEmphasis=function(v,d){hr(v,d),Ei(p)},h.prototype.enterBlur=function(v){Jh(v),Ei(p)},h.prototype.leaveBlur=function(v){tp(v),Ei(p)},h.prototype.enterSelect=function(v){l0(v),Ei(p)},h.prototype.leaveSelect=function(v){u0(v),Ei(p)},h.prototype.getModel=function(){return p.getModel()},h.prototype.getViewOfComponentModel=function(v){return p.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return p.getViewOfSeriesModel(v)},h}(Nv))(p)},OL=function(p){function c(h,v){for(var d=0;d<h.length;d++){var m=h[d];m[Tx]=v}}w(Op,function(h,v){p._messageCenter.on(v,function(d){if(CL[p.group]&&p[Tx]!==xL){if(d&&d.escapeConnect)return;var m=p.makeActionFromEvent(d),g=[];w(kp,function(y){y!==p&&y.group===p.group&&g.push(y)}),c(g,xL),w(g,function(y){y[Tx]!==C4&&y.dispatchAction(m)}),c(g,A4)}})})}}(),e}(Ne),Rx=kL.prototype;Rx.on=EL("on");Rx.off=EL("off");Rx.one=function(r,e,t){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(r,a)}this.on.call(this,r,a,t)};var D4=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var fd={},Op={},Lx=[],Ex=[],pd=[],VL={},Px={},kp={},CL={},M4=+new Date-0,Nlt=+new Date-0,Nx="_echarts_instance_";function Ox(r,e,t){var i=!(t&&t.ssr);if(i){var a=I4(r);if(a)return a}var n=new kL(r,e,t);return n.id="ec_"+M4++,kp[n.id]=n,i&&ky(r,Nx,n.id),OL(n),Li.trigger("afterinit",n),n}function I4(r){return kp[xA(r,Nx)]}function UL(r,e){VL[r]=e}function kx(r){nt(Ex,r)<0&&Ex.push(r)}function Vx(r,e){Ux(Lx,r,e,y4)}function BL(r){hd("afterinit",r)}function FL(r){hd("afterupdate",r)}function hd(r,e){Li.on(r,e)}function wr(r,e,t){X(e)&&(t=e,e="");var i=j(r)?r.type:[r,r={event:e}][0];r.event=(r.event||i).toLowerCase(),e=r.event,!Op[e]&&(ne(yL.test(i)&&yL.test(e)),fd[i]||(fd[i]={action:t,actionInfo:r}),Op[e]=i)}function GL(r,e){un.register(r,e)}function HL(r,e){Ux(pd,r,e,DL,"layout")}function to(r,e){Ux(pd,r,e,ML,"visual")}var AL=[];function Ux(r,e,t,i,a){if((X(e)||j(e))&&(t=e,e=i),!(nt(AL,t)>=0)){AL.push(t);var n=gx.wrapStageHandler(t,a);n.__prio=e,n.__raw=t,r.push(n)}}function Bx(r,e){Px[r]=e}function WL(r,e,t){var i=gL("registerMap");i&&i(r,e,t)}var YL=fI;to(zx,PI);to(cd,zI);to(cd,RI);to(zx,ZI);to(cd,XI);to(IL,Sx);kx(Ov);Vx(m4,$0);Bx("default",mx);wr({type:Yn,event:Yn,update:Yn},te);wr({type:$f,event:$f,update:$f},te);wr({type:$l,event:$l,update:$l},te);wr({type:Jf,event:Jf,update:Jf},te);wr({type:Jl,event:Jl,update:Jl},te);UL("light",UI);UL("dark",HI);var ZL=[],L4={registerPreprocessor:kx,registerProcessor:Vx,registerPostInit:BL,registerPostUpdate:FL,registerUpdateLifecycle:hd,registerAction:wr,registerCoordinateSystem:GL,registerLayout:HL,registerVisual:to,registerTransform:YL,registerLoading:Bx,registerMap:WL,registerImpl:mL,PRIORITY:LL,ComponentModel:xt,ComponentView:Ot,SeriesModel:Rt,ChartView:It,registerComponentModel:function(r){xt.registerClass(r)},registerComponentView:function(r){Ot.registerClass(r)},registerSeriesModel:function(r){Rt.registerClass(r)},registerChartView:function(r){It.registerClass(r)},registerSubTypeDefaulter:function(r,e){xt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){tA(r,e)}};function St(r){if(O(r)){w(r,function(e){St(e)});return}nt(ZL,r)>=0||(ZL.push(r),X(r)&&(r={install:r}),r.install(L4))}function Vp(r){return r==null?0:r.length||1}function XL(r){return r}var E4=function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||XL,this._newKeyGetter=a||XL,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=i[s],u=Vp(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],p=Vp(u),c=Vp(f);if(p>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var h=0;h<p;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=t[a],o=Vp(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);t[a]=null}},r.prototype._initIndexMap=function(e,t,i,a){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(n||(i[o]=s),!!t){var l=t[s],u=Vp(l);u===0?(t[s]=o,n&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),lr=E4;var P4=function(){function r(e,t){this._encode=e,this._schema=t}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 qL(r,e){var t={},i=t.encode={},a=Y(),n=[],o=[],s={};w(r.dimensions,function(c){var h=r.getDimensionInfo(c),v=h.coordDim;if(v){var d=h.coordDimIndex;Fx(i,v)[d]=c,h.isExtraCoord||(a.set(v,1),z4(h.type)&&(n[0]=c),Fx(s,v)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}Iv.each(function(m,g){var y=Fx(i,g),x=h.otherDims[g];x!=null&&x!==!1&&(y[x]=h.name)})});var l=[],u={};a.each(function(c,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=k(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var p=i.tooltip;return p&&p.length?o=p.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,t.userOutput=new P4(s,e),t}function Fx(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function ws(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function z4(r){return!(r==="ordinal"||r==="time")}var R4=function(){function r(e){this.otherDims={},e!=null&&N(this,e)}return r}(),_u=R4;var N4=ot(),O4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gx=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Wx(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return at(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Vv(this.source),i=!Yx(e),a="",n=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===o)l=t?p.name:null,u=p.type,f=p.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}n.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!p||!p.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=O4[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:n,hash:v}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function dd(r){return r instanceof Gx}function Hx(r){for(var e=Y(),t=0;t<(r||[]).length;t++){var i=r[t],a=j(i)?i.name:i;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function Wx(r){var e=N4(r);return e.dimNameMap||(e.dimNameMap=Hx(r.dimensionsDefine))}function Yx(r){return r>30}var Up=j,eo=k,k4=typeof Int32Array>"u"?Array:Int32Array,V4="e\0\0",jL=-1,U4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],B4=["_approximateExtent"],KL,md,Bp,Fp,Zx,gd,Xx,F4=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;dd(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var p=i[f],c=F(p)?new _u({name:p}):p instanceof _u?p:new _u(p),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var v=c.otherDims=c.otherDims||{};o.push(h),n[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),a&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Y();w(o,function(m){d.set(n[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(vt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var a=i.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var a=this,n;if(e instanceof Tp&&(n=e),!n){var o=this.dimensions,s=vu(e)||me(e)?new Uv(e,o.length):e;n=new Tp;var l=eo(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=qL(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=t[l],o&&Xx(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var a=this._dimInfos[t[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==si&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===je;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var p=a.getItem(f,u);if(!this.hasItemOption&&hA(p)&&(this.hasItemOption=!0),p){var c=p.name;n[f]==null&&c!=null&&(n[f]=le(c,null));var h=p.id;o[f]==null&&h!=null&&(o[f]=le(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Xx(this,f);KL(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Up(e)?N(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Bp(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},r.prototype.getId=function(e){return md(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,a=this._store;return O(e)?a.getValues(eo(e,function(n){return i._getStoreDimIndex(n)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,a=t.length;i<a;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],a=i[t];return a==null||isNaN(a)?jL:a},r.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},r.prototype.each=function(e,t,i){"use strict";X(e)&&(i=t,t=e,e=[]);var a=i||this,n=eo(Fp(e),this._getStoreDimIndex,this);this._store.each(n,a?W(t,a):t)},r.prototype.filterSelf=function(e,t,i){"use strict";X(e)&&(i=t,t=e,e=[]);var a=i||this,n=eo(Fp(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?W(t,a):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},a=ft(e),n=[];return w(a,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],n.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";X(e)&&(i=t,t=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},i),a},r.prototype.map=function(e,t,i,a){"use strict";var n=i||a||this,o=eo(Fp(e),this._getStoreDimIndex,this),s=gd(this);return s._store=this._store.map(o,n?W(t,n):t),s},r.prototype.modify=function(e,t,i,a){var n=this,o=i||a||this,s=eo(Fp(e),this._getStoreDimIndex,this);this._store.modify(s,o?W(t,o):t)},r.prototype.downSample=function(e,t,i,a){var n=gd(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,i,a),n},r.prototype.lttbDownSample=function(e,t){var i=gd(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new zt(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new lr(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return md(e,i)},function(i){return md(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Up(e)?N(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],a=i&&i[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),O(n)?n=n.slice():Up(n)&&(n=N({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Up(t)?N(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Up(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;Kf(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:eo(this.dimensions,this._getDimInfo,this),this.hostModel)),Zx(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];X(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(rh(arguments)))})},r.internalField=function(){KL=function(e){var t=e._invertedIndicesMap;w(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new k4(o.categories.length);for(var l=0;l<i.length;l++)i[l]=jL;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Bp=function(e,t,i){return le(e._getCategory(t,i),null)},md=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Bp(e,e._idDimIdx,t)),i==null&&(i=V4+t),i},Fp=function(e){return O(e)||(e=e!=null?[e]:[]),e},gd=function(e){var t=new r(e._schema?e._schema:eo(e.dimensions,e._getDimInfo,e),e.hostModel);return Zx(t,e),t},Zx=function(e,t){w(U4.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,w(B4,function(i){e[i]=$(t[i])}),e._calculationInfo=N({},t._calculationInfo)},Xx=function(e,t){var i=e._nameList,a=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=a[t];if(s==null&&n!=null&&(i[t]=s=Bp(e,n,t)),l==null&&o!=null&&(a[t]=l=Bp(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}}(),r}(),ve=F4;function ia(r,e){vu(r)||(r=du(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=Y(),n=[],o=H4(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Yx(o),l=i===r.dimensionsDefine,u=l?Wx(r):Hx(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=Y(f),c=new lx(o),h=0;h<c.length;h++)c[h]=-1;function v(A){var D=c[A];if(D<0){var M=i[A],I=j(M)?M:{name:M},L=new _u,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var z=n.length;return c[A]=z,L.storeDimIndex=A,n.push(L),L}return n[D]}if(!s)for(var h=0;h<o;h++)v(h);p.each(function(A,D){var M=Nt(A).slice();if(M.length===1&&!F(M[0])&&M[0]<0){p.set(D,!1);return}var I=p.set(D,[]);w(M,function(L,P){var z=F(L)?u.get(L):L;z!=null&&z<o&&(I[P]=z,m(v(z),D,P))})});var d=0;w(t,function(A){var D,M,I,L;if(F(A))D=A,L={};else{L=A,D=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var z=p.get(D);if(z!==!1){if(z=Nt(z),!z.length)for(var R=0;R<(M&&M.length||1);R++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&z.push(d++)}w(z,function(U,V){var B=v(U);if(l&&L.type!=null&&(B.type=L.type),m(q(B,L),D,V),B.name==null&&M){var Z=M[V];!j(Z)&&(Z={name:Z}),B.name=B.displayName=Z.name,B.defaultTooltip=Z.defaultTooltip}I&&q(B.otherDims,I)})}});function m(A,D,M){Iv.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,a.set(D,!0))}var g=e.generateCoord,y=e.generateCoordCount,x=y!=null;y=g?y||1:0;var _=g||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)w(n,function(A){b(A)}),n.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),C=T.coordDim;C==null&&(T.coordDim=W4(_,a,x),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),b(T),T.type==null&&(Pv(r,S)===Ze.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return G4(n),new Gx({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function G4(r){for(var e=Y(),t=0;t<r.length;t++){var i=r[t],a=i.name,n=e.get(a)||0;n>0&&(i.name=a+(n-1)),n++,e.set(a,n)}}function H4(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return w(e,function(n){var o;j(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function W4(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var Y4=function(){function r(e){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=e}return r}();function QL(r){var e=r.get("coordinateSystem"),t=new Y4(e),i=Z4[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var Z4={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",$t).models[0],n=r.getReferringComponents("yAxis",$t).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),Su(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),Su(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",$t).models[0];e.coordSysDims=["single"],t.set("single",a),Su(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",$t).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Su(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),Su(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Su(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Su(r){return r.get("type")==="category"}function $L(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;X4(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c;if(w(n,function(y,x){F(y)&&(n[x]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(f=y))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,v=f.type,d=0;w(n,function(y){y.coordDim===h&&d++});var m={name:p,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,v),g.storeDimIndex=s.ensureCalculationDimension(p,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(n.push(m),n.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function X4(r){return!dd(r.schema)}function fi(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function yd(r,e){return fi(r,e)?r.getCalculationInfo("stackResultDimension"):e}function q4(r,e){var t=r.get("coordinateSystem"),i=un.get(t),a;return e&&e.coordSysDims&&(a=k(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=ws(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function j4(r,e,t){var i,a;return t&&w(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function K4(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=du(r)):(a=i.getSource(),n=a.sourceFormat===je);var o=QL(e),s=q4(e,o),l=t.useEncodeDefaulter,u=X(l)?l:l?et(Lv,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=ia(a,f),c=j4(p.dimensions,t.createInvertedIndices,o),h=n?null:i.getSharedDataStore(p),v=$L(e,{schema:p,store:h}),d=new ve(p,e);d.setCalculationInfo(v);var m=c!=null&&Q4(a)?function(g,y,x,_){return _===c?x:this.defaultDimValueGetter(g,y,x,_)}:null;return d.hasItemOption=!1,d.initData(n?a:h,null,m),d}function Q4(r){if(r.sourceFormat===je){var e=$4(r.data||[]);return!O(Wi(e))}}function $4(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Ke=K4;var JL=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Un(JL);var qr=JL;var J4=0,tW=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++J4}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&k(i,eW);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!F(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function eW(r){return j(r)&&r.value!=null?r.value:r+""}var Gp=tW;function Hp(r){return r.type==="interval"||r.type==="log"}function eE(r,e,t,i){var a={},n=r[1]-r[0],o=a.interval=Hl(n/e,!0);t!=null&&o<t&&(o=a.interval=t),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=qx(o),l=a.niceTickExtent=[Qt(Math.ceil(r[0]/o)*o,s),Qt(Math.floor(r[1]/o)*o,s)];return rW(l,r),a}function xd(r){var e=Math.pow(10,Gl(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Qt(t*e)}function qx(r){return rr(r)+2}function tE(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function rW(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),tE(r,0,e),tE(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ro(r,e){return r>=e[0]&&r<=e[1]}function io(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function ao(r,e){return r*(e[1]-e[0])+e[0]}var rE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Gp({})),O(a)&&(a=new Gp({categories:k(a,function(n){return j(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ro(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),io(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(ao(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,a=i[0];a<=i[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];a[o]=u,n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a.push(f),n[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(qr);qr.registerClass(rE);var Wp=rE;var Ts=Qt,iE=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ro(t,this._extent)},e.prototype.normalize=function(t){return io(t,this._extent)},e.prototype.scale=function(t){return ao(t,this._extent)},e.prototype.setExtent=function(t,i){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(i)||(a[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=qx(t)},e.prototype.getTicks=function(t){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]<n[0]&&(t?s.push({value:Ts(n[0]-i,o)}):s.push({value:a[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Ts(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(t?s.push({value:Ts(f+i,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],p=s.value-l.value,c=p/t;u<t-1;){var h=Ts(l.value+(u+1)*c);h>n[0]&&h<n[1]&&f.push(h),u++}a.push(f)}return a},e.prototype.getLabel=function(t,i){if(t==null)return"";var a=i&&i.precision;a==null?a=rr(t.value)||0:a==="auto"&&(a=this._intervalPrecision);var n=Ts(t.value,a,!0);return G0(n)},e.prototype.calcNiceTicks=function(t,i,a){t=t||5;var n=this._extent,o=n[1]-n[0];if(isFinite(o)){o<0&&(o=-o,n.reverse());var s=eE(n,t,i,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var a=Math.abs(i[0]);t.fixMax||(i[1]+=a/2),i[0]-=a/2}else i[1]=1;var n=i[1]-i[0];isFinite(n)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(i[0]=Ts(Math.floor(i[0]/o)*o)),t.fixMax||(i[1]=Ts(Math.ceil(i[1]/o)*o))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(qr);qr.registerClass(iE);var jr=iE;var aE=typeof Float32Array<"u",iW=aE?Float32Array:Array;function Tr(r){return O(r)?aE?new Float32Array(r):r:new iW(r)}var jx="__ec_stack_";function Kx(r){return r.get("stack")||jx+r.seriesIndex}function Qx(r){return r.dim+r.index}function nE(r){var e=[],t=r.axis,i="axis0";if(t.type==="category"){for(var a=t.getBandWidth(),n=0;n<r.count;n++)e.push(q({bandWidth:a,axisKey:i,stackId:jx+n},r));for(var o=oE(e),s=[],n=0;n<r.count;n++){var l=o[i][jx+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function $x(r,e){var t=[];return e.eachSeriesByType(r,function(i){lE(i)&&t.push(i)}),t}function aW(r){var e={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var p=l.getData(),c=f.dim+"_"+f.index,h=p.getDimensionIndex(p.mapDimension(f.dim)),v=p.getStore(),d=0,m=v.count();d<m;++d){var g=v.get(h,d);e[c]?e[c].push(g):e[c]=[g]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];if(a){a.sort(function(l,u){return l-u});for(var n=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(n=n===null?s:Math.min(n,s))}t[i]=n}}return t}function Jx(r){var e=aW(r),t=[];return w(r,function(i){var a=i.coordinateSystem,n=a.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],f=Math.abs(o[1]-o[0]),p=n.scale.getExtent(),c=Math.abs(p[1]-p[0]);s=u?f/c*u:f}else{var h=i.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=H(i.get("barWidth"),s),d=H(i.get("barMaxWidth"),s),m=H(i.get("barMinWidth")||(uE(i)?.5:1),s),g=i.get("barGap"),y=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:v,barMaxWidth:d,barMinWidth:m,barGap:g,barCategoryGap:y,axisKey:Qx(n),stackId:Kx(i)})}),oE(t)}function oE(r){var e={};w(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=i.barMaxWidth;p&&(l[u].maxWidth=p);var c=i.barMinWidth;c&&(l[u].minWidth=c);var h=i.barGap;h!=null&&(s.gap=h);var v=i.barCategoryGap;v!=null&&(s.categoryGap=v)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=ft(n).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(i.gap,1),p=i.remainedWidth,c=i.autoWidthCount,h=(p-u)/(c+(c-1)*f);h=Math.max(h,0),w(n,function(g){var y=g.maxWidth,x=g.minWidth;if(g.width){var _=g.width;y&&(_=Math.min(_,y)),x&&(_=Math.max(_,x)),g.width=_,p-=_+f*_,c--}else{var _=h;y&&y<_&&(_=Math.min(y,p)),x&&x>_&&(_=x),_!==h&&(g.width=_,p-=_+f*_,c--)}}),h=(p-u)/(c+(c-1)*f),h=Math.max(h,0);var v=0,d;w(n,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+f)}),d&&(v-=d.width*f);var m=-v/2;w(n,function(g,y){t[a][y]=t[a][y]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+f)})}),t}function sE(r,e,t){if(r&&e){var i=r[Qx(e)];return i!=null&&t!=null?i[Kx(t)]:i}}function Sd(r,e){var t=$x(r,e),i=Jx(t);w(t,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Kx(a),u=i[Qx(s)][l],f=u.offset,p=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:p})})}function bd(r){return{seriesType:r,plan:li(),reset:function(e){if(lE(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=fi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),h=nW(a,n),v=uE(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(x,_){for(var b=x.count,S=v&&Tr(b*3),T=v&&l&&Tr(b*3),C=v&&Tr(b),A=i.master.getRect(),D=c?A.width:A.height,M,I=_.getStore(),L=0;(M=x.next())!=null;){var P=I.get(p?m:o,M),z=I.get(s,M),R=h,U=void 0;p&&(U=+P-I.get(o,M));var V=void 0,B=void 0,Z=void 0,Q=void 0;if(c){var st=i.dataToPoint([P,z]);if(p){var ct=i.dataToPoint([U,z]);R=ct[0]}V=R,B=st[1]+y,Z=st[0]-R,Q=g,Math.abs(Z)<d&&(Z=(Z<0?-1:1)*d)}else{var st=i.dataToPoint([z,P]);if(p){var ct=i.dataToPoint([z,U]);R=ct[1]}V=st[0]+y,B=R,Z=g,Q=st[1]-R,Math.abs(Q)<d&&(Q=(Q<=0?-1:1)*d)}v?(S[L]=V,S[L+1]=B,S[L+2]=c?Z:Q,T&&(T[L]=c?A.x:V,T[L+1]=c?B:A.y,T[L+2]=D),C[M]=M):_.setItemLayout(M,{x:V,y:B,width:Z,height:Q}),L+=3}v&&_.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:c})}}}}}}function lE(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function uE(r){return r.pipelineContext&&r.pipelineContext.large}function nW(r,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var oW=function(r,e,t,i){for(;t<i;){var a=t+i>>>1;r[a][1]<e?t=a+1:i=a}return t},pE=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return ms(t.value,P0[SM(ds(this._minLevelUnit))]||P0.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,a){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return bM(t,i,a,o,n)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,a=[];if(!t)return a;a.push({value:i[0],level:0});var n=this.getSetting("useUTC"),o=hW(this._minLevelUnit,this._approxInterval,n,i);return a=a.concat(o),a.push({value:i[1],level:0}),a},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=ni,i[1]+=ni),i[1]===-1/0&&i[0]===1/0){var a=new Date;i[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),i[0]=i[1]-ni}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,a){t=t||10;var n=this._extent,o=n[1]-n[0];this._approxInterval=o/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=wd.length,l=Math.min(oW(wd,this._approxInterval,0,s),s-1);this._interval=wd[l][1],this._minLevelUnit=wd[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+ir(t)},e.prototype.contain=function(t){return ro(this.parse(t),this._extent)},e.prototype.normalize=function(t){return io(this.parse(t),this._extent)},e.prototype.scale=function(t){return ao(t,this._extent)},e.type="time",e}(jr),wd=[["second",bv],["minute",wv],["hour",fu],["quarter-day",fu*6],["half-day",fu*12],["day",ni*1.2],["half-week",ni*3.5],["week",ni*7],["month",ni*31],["quarter",ni*95],["half-year",E0/2],["year",E0]];function sW(r,e,t,i){var a=ir(e),n=ir(t),o=function(v){return R0(a,v,i)===R0(n,v,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},p=function(){return f()&&o("minute")},c=function(){return p()&&o("second")},h=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 p();case"second":return c();case"millisecond":return h()}}function lW(r,e){return r/=ni,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function uW(r){var e=30*ni;return r/=e,r>6?6:r>3?3:r>2?2:1}function fW(r){return r/=fu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function fE(r,e){return r/=e?wv:bv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function pW(r){return Hl(r,!0)}function cW(r,e,t){var i=new Date(r);switch(ds(e)){case"year":case"month":i[N0(t)](0);case"day":i[O0(t)](1);case"hour":i[k0(t)](0);case"minute":i[V0(t)](0);case"second":i[U0(t)](0),i[B0(t)](0)}return i.getTime()}function hW(r,e,t,i){var a=1e4,n=z0,o=0;function s(D,M,I,L,P,z,R){for(var U=new Date(M),V=M,B=U[L]();V<I&&V<=i[1];)R.push({value:V}),B+=D,U[P](B),V=U.getTime();R.push({value:V,notAdd:!0})}function l(D,M,I){var L=[],P=!M.length;if(!sW(ds(D),i[0],i[1],t)){P&&(M=[{value:cW(new Date(i[0]),D,t)},{value:i[1]}]);for(var z=0;z<M.length-1;z++){var R=M[z].value,U=M[z+1].value;if(R!==U){var V=void 0,B=void 0,Z=void 0,Q=!1;switch(D){case"year":V=Math.max(1,Math.round(e/ni/365)),B=Tv(t),Z=TM(t);break;case"half-year":case"quarter":case"month":V=uW(e),B=vs(t),Z=N0(t);break;case"week":case"half-week":case"day":V=lW(e,31),B=pp(t),Z=O0(t),Q=!0;break;case"half-day":case"quarter-day":case"hour":V=fW(e),B=uu(t),Z=k0(t);break;case"minute":V=fE(e,!0),B=cp(t),Z=V0(t);break;case"second":V=fE(e,!1),B=hp(t),Z=U0(t);break;case"millisecond":V=pW(e),B=vp(t),Z=B0(t);break}s(V,R,U,B,Z,Q,L),D==="year"&&I.length>1&&z===0&&I.unshift({value:I[0].value-V})}}for(var z=0;z<L.length;z++)I.push(L[z]);return L}}for(var u=[],f=[],p=0,c=0,h=0;h<n.length&&o++<a;++h){var v=ds(n[h]);if(_M(n[h])){l(n[h],u[u.length-1]||[],f);var d=n[h+1]?ds(n[h+1]):null;if(v!==d){if(f.length){c=p,f.sort(function(D,M){return D.value-M.value});for(var m=[],g=0;g<f.length;++g){var y=f[g].value;(g===0||f[g-1].value!==y)&&(m.push(f[g]),y>=i[0]&&y<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>x*1.5&&c>x/1.5||(u.push(m),p>x||r===n[h]))break}f=[]}}}for(var _=Dt(k(u,function(D){return Dt(D,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],S=_.length-1,h=0;h<_.length;++h)for(var T=_[h],C=0;C<T.length;++C)b.push({value:T[C].value,level:S-h});b.sort(function(D,M){return D.value-M.value});for(var A=[],h=0;h<b.length;++h)(h===0||b[h].value!==b[h-1].value)&&A.push(b[h]);return A}qr.registerClass(pE);var Td=pE;var cE=qr.prototype,Yp=jr.prototype,vW=Qt,dW=Math.floor,mW=Math.ceil,Cd=Math.pow,aa=Math.log,t_=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new jr,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,a=this._extent,n=i.getExtent(),o=Yp.getTicks.call(this,t);return k(o,function(s){var l=s.value,u=Qt(Cd(this.base,l));return u=l===a[0]&&this._fixMin?Ad(u,n[0]):u,u=l===a[1]&&this._fixMax?Ad(u,n[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var a=aa(this.base);t=aa(Math.max(0,t))/a,i=aa(Math.max(0,i))/a,Yp.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=cE.getExtent.call(this);i[0]=Cd(t,i[0]),i[1]=Cd(t,i[1]);var a=this._originalScale,n=a.getExtent();return this._fixMin&&(i[0]=Ad(i[0],n[0])),this._fixMax&&(i[1]=Ad(i[1],n[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=aa(t[0])/aa(i),t[1]=aa(t[1])/aa(i),cE.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,a=i[1]-i[0];if(!(a===1/0||a<=0)){var n=Bh(a),o=t/a*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[Qt(mW(i[0]/n)*n),Qt(dW(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Yp.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=aa(t)/aa(this.base),ro(t,this._extent)},e.prototype.normalize=function(t){return t=aa(t)/aa(this.base),io(t,this._extent)},e.prototype.scale=function(t){return t=ao(t,this._extent),Cd(this.base,t)},e.type="log",e}(qr),hE=t_.prototype;hE.getMinorTicks=Yp.getMinorTicks;hE.getLabel=Yp.getLabel;function Ad(r,e){return vW(r,rr(e))}qr.registerClass(t_);var vE=t_;var gW=function(){function r(e,t,i){this._prepareParams(e,t,i)}return r.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var n=this._modelMinRaw=t.get("min",!0);X(n)?this._modelMinNum=Dd(e,n({min:i[0],max:i[1]})):n!=="dataMin"&&(this._modelMinNum=Dd(e,n));var o=this._modelMaxRaw=t.get("max",!0);if(X(o)?this._modelMaxNum=Dd(e,o({min:i[0],max:i[1]})):o!=="dataMax"&&(this._modelMaxNum=Dd(e,o)),a)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=O(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[er(l[0],1),er(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,a=this._axisDataLen,n=this._boundaryGapInner,o=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?a?0:NaN:t-n[0]*o),l==null&&(l=e?a?a-1:NaN:i+n[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var p=Mn(s)||Mn(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:p}},r.prototype.modifyDataMinMax=function(e,t){this[xW[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var i=yW[e];this[i]=t},r.prototype.freeze=function(){this.frozen=!0},r}();var yW={min:"_determinedMin",max:"_determinedMax"},xW={min:"_dataMin",max:"_dataMax"};function Md(r,e,t){var i=r.rawExtentInfo;return i||(i=new gW(r,e,t),r.rawExtentInfo=i,i)}function Dd(r,e){return e==null?null:Mn(e)?NaN:r.parse(e)}function e_(r,e){var t=r.type,i=Md(r,e,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=e.ecModel;if(o&&t==="time"){var s=$x("bar",o),l=!1;if(w(s,function(p){l=l||p.getBaseAxis()===e.axis}),l){var u=Jx(s),f=_W(a,n,e,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function _W(r,e,t,i){var a=t.axis.getExtent(),n=a[1]-a[0],o=sE(i,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;w(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;w(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,p=1-(s+l)/n,c=f/p-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Ia(r,e){var t=e,i=e_(r,t),a=i.extent,n=t.get("splitNumber");r instanceof vE&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function no(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Wp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Td({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(qr.getClass(e)||jr)}}function dE(r){var e=r.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function bu(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}}(e):F(e)?function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n??"");return o}}(e):X(e)?function(i){return function(a,n){return t!=null&&(n=a.value-t),i(Zp(r,a),n,a.level!=null?{level:a.level}:null)}}(e):function(i){return r.scale.getLabel(i)}}function Zp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function mE(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,a,n=t.getExtent();t instanceof Wp?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=bu(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var p=i?i[f]:{value:n[0]+f},c=s(p,f),h=o.getTextRect(c),v=SW(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function SW(r,e){var t=e*Math.PI/180,i=r.width,a=r.height,n=i*Math.abs(Math.cos(t))+Math.abs(a*Math.sin(t)),o=i*Math.abs(Math.sin(t))+Math.abs(a*Math.cos(t)),s=new rt(r.x,r.y,n,o);return s}function Id(r){var e=r.get("interval");return e??"auto"}function Ld(r){return r.type==="category"&&Id(r.getLabelModel())===0}function wu(r,e){var t={};return w(r.mapDimensionsAll(e),function(i){t[yd(r,i)]=!0}),ft(t)}function gE(r,e,t){e&&w(wu(e,t),function(i){var a=e.getApproximateExtent(i);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var La=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();var bW=1e-8;function yE(r,e){return Math.abs(r-e)<bW}function hn(r,e,t){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var o=r[n];i+=bi(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!yE(a[0],s[0])||!yE(a[1],s[1]))&&(i+=bi(a[0],a[1],s[0],s[1],e,t)),i!==0}var wW=[];function r_(r,e){for(var t=0;t<r.length;t++)ge(r[t],r[t],e)}function _E(r,e,t,i){for(var a=0;a<r.length;a++){var n=r[a];i&&(n=i.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(ti(e,e,n),ei(t,t,n))}}function TW(r){for(var e=0,t=0,i=0,a=r.length,n=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;e+=f,t+=(n+l)*f,i+=(o+u)*f,n=l,o=u}return e?[t/e/3,i/e/3,e]:[r[0][0]||0,r[0][1]||0]}var SE=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}();var i_=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}();var a_=function(){function r(e){this.type="linestring",this.points=e}return r}();var Pd=function(r){E(e,r);function e(t,i,a){var n=r.call(this,t)||this;return n.type="geoJSON",n.geometries=i,n._center=a&&[a[0],a[1]],n}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,a=0,n=0;n<t.length;n++){var o=t[n],s=o.exterior,l=s&&s.length;l>a&&(i=o,a=l)}if(i)return TW(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?_E(s.exterior,a,n,t):w(s.points,function(l){_E(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var n=0,o=a.length;n<o;n++){var s=a[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(hn(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(hn(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,a,n){var o=this.getBoundingRect(),s=o.width/o.height;a?n||(n=a/s):a=s*n;for(var l=new rt(t,i,a,n),u=o.calculateTransform(l),f=this.geometries,p=0;p<f.length;p++){var c=f[p];c.type==="polygon"?(r_(c.exterior,u),w(c.interiors,function(h){r_(h,u)})):w(c.points,function(h){r_(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(SE);var bE=function(r){E(e,r);function e(t,i){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=i,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),a=[i.x+i.width/2,i.y+i.height/2],n=Ln(wW),o=t;o&&!o.isGeoSVGGraphicRoot;)zr(n,o.getLocalTransform(),n),o=o.parent;return mi(n,n),ge(a,a,n),a},e}(SE);function CW(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return w(i,function(a){var n=a.geometry,o=n.encodeOffsets,s=n.coordinates;if(o)switch(n.type){case"LineString":n.coordinates=wE(s,o,t);break;case"Polygon":n_(s,o,t);break;case"MultiLineString":n_(s,o,t);break;case"MultiPolygon":w(s,function(l,u){return n_(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function n_(r,e,t){for(var i=0;i<r.length;i++)r[i]=wE(r[i],e[i],t)}function wE(r,e,t){for(var i=[],a=e[0],n=e[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+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function o_(r,e){return r=CW(r),k(Dt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new i_(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new i_(l[0],l.slice(1)))});break;case"LineString":n.push(new a_([a.coordinates]));break;case"MultiLineString":n.push(new a_(a.coordinates))}var s=new Pd(i[e||"name"],n,i.cp);return s.properties=i,s})}var Tu={};sT(Tu,{MAX_SAFE_INTEGER:()=>Bf,asc:()=>Ie,getPercentWithPrecision:()=>nA,getPixelPrecision:()=>Fl,getPrecision:()=>rr,getPrecisionSafe:()=>zy,isNumeric:()=>jo,isRadianAroundZero:()=>qa,linearMap:()=>kt,nice:()=>Hl,numericToNumber:()=>kr,parseDate:()=>ir,quantile:()=>Wl,quantity:()=>Bh,quantityExponent:()=>Gl,reformIntervals:()=>Gf,remRadian:()=>Ff,round:()=>Qt});var Xp=ot();function TE(r){return r.type==="category"?AW(r):MW(r)}function CE(r,e){return r.type==="category"?DW(r,e):{ticks:k(r.scale.getTicks(),function(t){return t.value})}}function AW(r){var e=r.getLabelModel(),t=AE(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function AE(r,e){var t=DE(r,"labels"),i=Id(e),a=ME(t,i);if(a)return a;var n,o;return X(i)?n=PE(r,i):(o=i==="auto"?IW(r):i,n=EE(r,o)),IE(t,i,{labels:n,labelCategoryInterval:o})}function DW(r,e){var t=DE(r,"ticks"),i=Id(e),a=ME(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),X(i))n=PE(r,i,!0);else if(i==="auto"){var s=AE(r,r.getLabelModel());o=s.labelCategoryInterval,n=k(s.labels,function(l){return l.tickValue})}else o=i,n=EE(r,o,!0);return IE(t,i,{ticks:n,tickCategoryInterval:o})}function MW(r){var e=r.scale.getTicks(),t=bu(r);return{labels:k(e,function(i,a){return{level:i.level,formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function DE(r,e){return Xp(r)[e]||(Xp(r)[e]=[])}function ME(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function IE(r,e,t){return r.push({key:e,value:t}),t}function IW(r){var e=Xp(r).autoInterval;return e??(Xp(r).autoInterval=r.calculateCategoryInterval())}function LE(r){var e=LW(r),t=bu(r),i=(e.axisRotate-e.labelRotate)/180*Math.PI,a=r.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),p=Math.abs(u*Math.sin(i)),c=0,h=0;l<=n[1];l+=s){var v=0,d=0,m=ya(t({value:l}),e.font,"center","top");v=m.width*1.3,d=m.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/f,y=h/p;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(g,y))),_=Xp(r.model),b=r.getExtent(),S=_.lastAutoInterval,T=_.lastTickCount;return S!=null&&T!=null&&Math.abs(S-x)<=1&&Math.abs(T-o)<=1&&S>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=S:(_.lastTickCount=o,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function LW(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function EE(r,e,t){var i=bu(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=Ld(r),c=o.get("showMinLabel")||p,h=o.get("showMaxLabel")||p;c&&u!==n[0]&&d(n[0]);for(var v=u;v<=n[1];v+=l)d(v);h&&v-l!==n[1]&&d(n[1]);function d(m){var g={value:m};s.push(t?m:{formattedLabel:i(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function PE(r,e,t){var i=r.scale,a=bu(r),n=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var zE=[0,1],EW=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Fl(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(i=i.slice(),RE(i,a.count())),kt(e,zE,i,t)},r.prototype.coordToData=function(e,t){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),RE(i,a.count()));var n=kt(e,i,zE,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=CE(this,t),a=i.ticks,n=k(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return PW(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),a=k(i,function(n){return k(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return TE(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 e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return LE(this)},r}();function RE(r,e){var t=r[1]-r[0],i=e,a=t/i/2;r[0]+=a,r[1]-=a}function PW(r,e,t,i){var a=e.length;if(!r.onBand||t||!a)return;var n=r.getExtent(),o,s;if(a===1)e[0].coord=n[0],o=e[1]={coord:n[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;w(e,function(h){h.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var p=n[0]>n[1];c(e[0].coord,n[0])&&(i?e[0].coord=n[0]:e.shift()),i&&c(n[0],e[0].coord)&&e.unshift({coord:n[0]}),c(n[1],o.coord)&&(i?o.coord=n[1]:e.pop()),i&&c(o.coord,n[1])&&e.push({coord:n[1]});function c(h,v){return h=Qt(h),v=Qt(v),p?h>v:h<v}}var Qe=EW;var qp=Math.PI*2,Cs=Ye.CMD,zW=["top","right","bottom","left"];function RW(r,e,t,i,a){var n=t.width,o=t.height;switch(r){case"top":i.set(t.x+n/2,t.y-e),a.set(0,-1);break;case"bottom":i.set(t.x+n/2,t.y+o+e),a.set(0,1);break;case"left":i.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":i.set(t.x+n+e,t.y+o/2),a.set(1,0);break}}function NW(r,e,t,i,a,n,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,p=s*t+e;if(Math.abs(i-a)%qp<1e-4)return l[0]=f,l[1]=p,u-t;if(n){var c=i;i=ar(a),a=ar(c)}else i=ar(i),a=ar(a);i>a&&(a+=qp);var h=Math.atan2(s,o);if(h<0&&(h+=qp),h>=i&&h<=a||h+qp>=i&&h+qp<=a)return l[0]=f,l[1]=p,u-t;var v=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(v-o)*(v-o)+(d-s)*(d-s),x=(m-o)*(m-o)+(g-s)*(g-s);return y<x?(l[0]=v,l[1]=d,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(x))}function zd(r,e,t,i,a,n,o,s){var l=a-r,u=n-e,f=t-r,p=i-e,c=Math.sqrt(f*f+p*p);f/=c,p/=c;var h=l*f+u*p,v=h/c;s&&(v=Math.min(Math.max(v,0),1)),v*=c;var d=o[0]=r+v*f,m=o[1]=e+v*p;return Math.sqrt((d-a)*(d-a)+(m-n)*(m-n))}function NE(r,e,t,i,a,n,o){t<0&&(r=r+t,t=-t),i<0&&(e=e+i,i=-i);var s=r+t,l=e+i,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var na=[];function OW(r,e,t){var i=NE(e.x,e.y,e.width,e.height,r.x,r.y,na);return t.set(na[0],na[1]),i}function kW(r,e,t){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=e.data,p=r.x,c=r.y,h=0;h<f.length;){var v=f[h++];h===1&&(i=f[h],a=f[h+1],n=i,o=a);var d=u;switch(v){case Cs.M:n=f[h++],o=f[h++],i=n,a=o;break;case Cs.L:d=zd(i,a,f[h],f[h+1],p,c,na,!0),i=f[h++],a=f[h++];break;case Cs.C:d=gh(i,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],p,c,na),i=f[h++],a=f[h++];break;case Cs.Q:d=xh(i,a,f[h++],f[h++],f[h],f[h+1],p,c,na),i=f[h++],a=f[h++];break;case Cs.A:var m=f[h++],g=f[h++],y=f[h++],x=f[h++],_=f[h++],b=f[h++];h+=1;var S=!!(1-f[h++]);s=Math.cos(_)*y+m,l=Math.sin(_)*x+g,h<=1&&(n=s,o=l);var T=(p-m)*x/y+m;d=NW(m,g,x,_,_+b,S,T,c,na),i=Math.cos(_+b)*y+m,a=Math.sin(_+b)*x+g;break;case Cs.R:n=i=f[h++],o=a=f[h++];var C=f[h++],A=f[h++];d=NE(n,o,C,A,p,c,na);break;case Cs.Z:d=zd(i,a,n,o,p,c,na,!0),i=n,a=o;break}d<u&&(u=d,t.set(na[0],na[1]))}return u}var oa=new bt,ue=new bt,Ee=new bt,Pa=new bt,Ea=new bt;function l_(r,e){if(r){var t=r.getTextGuideLine(),i=r.getTextContent();if(i&&t){var a=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||zW,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),p=f&&mi([],f),c=e.get("length2")||0;u&&Ee.copy(u);for(var h=0;h<o.length;h++){var v=o[h];RW(v,0,s,oa,Pa),bt.scaleAndAdd(ue,oa,Pa,c),ue.transform(p);var d=r.getBoundingRect(),m=u?u.distance(ue):r instanceof it?kW(ue,r.path,Ee):OW(ue,d,Ee);m<l&&(l=m,ue.transform(f),Ee.transform(f),Ee.toArray(n[0]),ue.toArray(n[1]),oa.toArray(n[2]))}u_(n,e.get("minTurnAngle")),t.setShape({points:n})}}}var Rd=[],Cr=new bt;function u_(r,e){if(e<=180&&e>0){e=e/180*Math.PI,oa.fromArray(r[0]),ue.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Pa,oa,ue),bt.sub(Ea,Ee,ue);var t=Pa.len(),i=Ea.len();if(!(t<.001||i<.001)){Pa.scale(1/t),Ea.scale(1/i);var a=Pa.dot(Ea),n=Math.cos(e);if(n<a){var o=zd(ue.x,ue.y,Ee.x,Ee.y,oa.x,oa.y,Rd,!1);Cr.fromArray(Rd),Cr.scaleAndAdd(Ea,o/Math.tan(Math.PI-e));var s=Ee.x!==ue.x?(Cr.x-ue.x)/(Ee.x-ue.x):(Cr.y-ue.y)/(Ee.y-ue.y);if(isNaN(s))return;s<0?bt.copy(Cr,ue):s>1&&bt.copy(Cr,Ee),Cr.toArray(r[1])}}}}function OE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,oa.fromArray(r[0]),ue.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Pa,ue,oa),bt.sub(Ea,Ee,ue);var i=Pa.len(),a=Ea.len();if(!(i<.001||a<.001)){Pa.scale(1/i),Ea.scale(1/a);var n=Pa.dot(e),o=Math.cos(t);if(n<o){var s=zd(ue.x,ue.y,Ee.x,Ee.y,oa.x,oa.y,Rd,!1);Cr.fromArray(Rd);var l=Math.PI/2,u=Math.acos(Ea.dot(e)),f=l+u-t;if(f>=l)bt.copy(Cr,Ee);else{Cr.scaleAndAdd(Ea,s/Math.tan(Math.PI/2-f));var p=Ee.x!==ue.x?(Cr.x-ue.x)/(Ee.x-ue.x):(Cr.y-ue.y)/(Ee.y-ue.y);if(isNaN(p))return;p<0?bt.copy(Cr,ue):p>1&&bt.copy(Cr,Ee)}Cr.toArray(r[1])}}}}function s_(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function VW(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var a=di(i[0],i[1]),n=di(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=Il([],i[1],i[0],o/a),l=Il([],i[1],i[2],o/n),u=Il([],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],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function Cu(r,e,t){var i=r.getTextGuideLine(),a=r.getTextContent();if(!a){i&&r.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=a.ignore,l=0;l<Wn.length;l++){var u=Wn[l],f=e[u],p=u==="normal";if(f){var c=f.get("show"),h=p?s:at(a.states[u]&&a.states[u].ignore,s);if(h||!at(c,o)){var v=p?i:i&&i.states[u];v&&(v.ignore=!0),i&&s_(i,!0,u,f);continue}i||(i=new pe,r.setTextGuideLine(i),!p&&(s||!o)&&s_(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),s_(i,!1,u,f)}}if(i){q(i.style,t),i.style.fill=null;var d=n.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=VW}}function Au(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<Ue.length;i++){var a=Ue[i];t[a]=r.getModel([a,e])}return t}function Nd(r){for(var e=[],t=0;t<r.length;t++){var i=r[t];if(!i.defaultAttr.ignore){var a=i.label,n=a.getComputedTransform(),o=a.getBoundingRect(),s=!n||n[1]<1e-5&&n[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(n),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new au(o,n):null;e.push({label:a,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:n})}}return e}function kE(r,e,t,i,a,n){var o=r.length;if(o<2)return;r.sort(function(A,D){return A.rect[e]-D.rect[e]});for(var s=0,l,u=!1,f=[],p=0,c=0;c<o;c++){var h=r[c],v=h.rect;l=v[e]-s,l<0&&(v[e]-=l,h.label[e]-=l,u=!0);var d=Math.max(-l,0);f.push(d),p+=d,s=v[e]+v[t]}p>0&&n&&S(-p/o,0,o);var m=r[0],g=r[o-1],y,x;_(),y<0&&T(-y,.8),x<0&&T(x,.8),_(),b(y,x,1),b(x,y,-1),_(),y<0&&C(-y),x<0&&C(x);function _(){y=m.rect[e]-i,x=a-g.rect[e]-g.rect[t]}function b(A,D,M){if(A<0){var I=Math.min(D,-A);if(I>0){S(I*M,0,o);var L=I+A;L<0&&T(-L*M,1)}else T(-A*M,1)}}function S(A,D,M){A!==0&&(u=!0);for(var I=D;I<M;I++){var L=r[I],P=L.rect;P[e]+=A,L.label[e]+=A}}function T(A,D){for(var M=[],I=0,L=1;L<o;L++){var P=r[L-1].rect,z=Math.max(r[L].rect[e]-P[e]-P[t],0);M.push(z),I+=z}if(I){var R=Math.min(Math.abs(A)/I,D);if(A>0)for(var L=0;L<o-1;L++){var U=M[L]*R;S(U,0,L+1)}else for(var L=o-1;L>0;L--){var U=M[L-1]*R;S(-U,L,o)}}}function C(A){var D=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),I=0;I<o-1;I++)if(D>0?S(M,0,I+1):S(-M,o-I-1,o),A-=M,A<=0)return}return u}function VE(r,e,t,i){return kE(r,"x","width",e,t,i)}function Od(r,e,t,i){return kE(r,"y","height",e,t,i)}function kd(r){var e=[];r.sort(function(d,m){return m.priority-d.priority});var t=new rt(0,0,0,0);function i(d){if(!d.ignore){var m=d.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}d.ignore=!0}for(var a=0;a<r.length;a++){var n=r[a],o=n.axisAligned,s=n.localRect,l=n.transform,u=n.label,f=n.labelLine;t.copy(n.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var p=n.obb,c=!1,h=0;h<e.length;h++){var v=e[h];if(t.intersect(v.rect)){if(o&&v.axisAligned){c=!0;break}if(v.obb||(v.obb=new au(v.localRect,v.transform)),p||(p=new au(s,l)),p.intersect(v.obb)){c=!0;break}}}c?(i(u),f&&i(f)):(u.attr("ignore",n.defaultAttr.ignore),f&&f.attr("ignore",n.defaultAttr.labelGuideIgnore),e.push(n))}}function UW(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function BW(r,e){var t=r.label,i=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:UW(i&&i.shape.points)}}var UE=["align","verticalAlign","width","height","fontSize"],Ar=new Nr,f_=ot(),FW=ot();function Vd(r,e,t){for(var i=0;i<t.length;i++){var a=t[i];e[a]!=null&&(r[a]=e[a])}}var Ud=["x","y","rotation"],GW=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,i,a,n){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();rt.applyTransform(f,f,u),u?Ar.setLocalTransform(u):(Ar.x=Ar.y=Ar.rotation=Ar.originX=Ar.originY=0,Ar.scaleX=Ar.scaleY=1),Ar.rotation=ar(Ar.rotation);var p=a.__hostTarget,c;if(p){c=p.getBoundingRect().plain();var h=p.getComputedTransform();rt.applyTransform(c,c,h)}var v=c&&p.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:i,dataIndex:e,dataType:t,layoutOption:n,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:Ar.x,y:Ar.y,scaleX:Ar.scaleX,scaleY:Ar.scaleY,rotation:Ar.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,a=i.get("labelLayout");(X(a)||ft(a).length)&&e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=tt(n);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function a(x,_){return function(){l_(x,_)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;X(o.layoutOption)?f=o.layoutOption(BW(o,l)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*p:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=H(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=H(f.y,i),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}var v=f_(s);v.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*p:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<UE.length;d++){var m=UE[d];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),a=Nd(this._labelList),n=Dt(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Dt(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});VE(n,0,t),Od(o,0,i);var s=Dt(a,function(l){return l.layoutOption.hideOverlap});kd(s)},r.prototype.processLabelsOverall=function(){var e=this;w(this._chartViewList,function(t){var i=t.__model,a=t.ignoreLabelLineUpdate,n=i.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=f_(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),n&&e._animateLabels(o,i)})})},r.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),a=tt(e),n=a.dataIndex;if(i&&n!=null){var o=t.getData(a.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var p=s.getModel("labelLine");Cu(e,Au(s),l),l_(e,p)}},r.prototype._animateLabels=function(e,t){var i=e.getTextContent(),a=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!tn(e))){var n=f_(i),o=n.oldLayout,s=tt(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=t.getData(s.dataType);if(o){i.attr(o);var c=e.prevStates;c&&(nt(c,"select")>=0&&i.attr(n.oldLayoutSelect),nt(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),_t(i,u,t,l)}else if(i.attr(u),!on(i).valueAnimation){var p=at(i.style.opacity,1);i.style.opacity=0,Ut(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var h=n.oldLayoutSelect={};Vd(h,u,Ud),Vd(h,i.states.select,Ud)}if(i.states.emphasis){var v=n.oldLayoutEmphasis={};Vd(v,u,Ud),Vd(v,i.states.emphasis,Ud)}gv(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=FW(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),_t(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Ut(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}(),BE=GW;var p_=ot();function c_(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=p_(t).labelManager;a||(a=p_(t).labelManager=new BE),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=p_(t).labelManager;i.updatedSeries.forEach(function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var h_=Math.sin,v_=Math.cos,FE=Math.PI,As=Math.PI*2,HW=180/FE,WW=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=ga(p-As)||(f?u>=As:-u>=As),h=u>0?u%As:u%As+As,v=!1;c?v=!0:ga(p)?v=!1:v=h>=FE==!!f;var d=e+i*v_(o),m=t+a*h_(o);this._start&&this._add("M",d,m);var g=Math.round(n*HW);if(c){var y=1/this._p,x=(f?1:-1)*(As-y);this._add("A",i,a,g,1,+f,e+i*v_(o+x),t+a*h_(o+x)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var _=e+i*v_(s),b=t+a*h_(s);this._add("A",i,a,g,+v,+f,_,b)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*p)/p)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),Bd=WW;var jp="none",YW=Math.round;function ZW(r){var e=r.fill;return e!=null&&e!==jp}function XW(r){var e=r.stroke;return e!=null&&e!==jp}var d_=["lineCap","miterLimit","lineJoin"],qW=k(d_,function(r){return"stroke-"+r.toLowerCase()});function m_(r,e,t,i){var a=e.opacity==null?1:e.opacity;if(t instanceof re){r("opacity",a);return}if(ZW(e)){var n=On(e.fill);r("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&r("fill-opacity",o)}else r("fill",jp);if(XW(e)){var s=On(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,p=e.strokeFirst;if((i||u!==1)&&r("stroke-width",u),(i||p)&&r("paint-order",p?"stroke":"fill"),(i||f<1)&&r("stroke-opacity",f),e.lineDash){var c=Pp(t),h=c[0],v=c[1];h&&(v=YW(v||0),r("stroke-dasharray",h.join(",")),(v||i)&&r("stroke-dashoffset",v))}else i&&r("stroke-dasharray",jp);for(var d=0;d<d_.length;d++){var m=d_[d];if(i||e[m]!==jl[m]){var g=e[m]||jl[m];g&&r(qW[d],g)}}}else i&&r("stroke",jp)}var GE="http://www.w3.org/2000/svg",g_="http://www.w3.org/1999/xlink",HE="http://www.w3.org/2000/xmlns/",WE="http://www.w3.org/XML/1998/namespace",y_="ecmeta_";function Fd(r){return document.createElementNS(GE,r)}function Pe(r,e,t,i,a){return{tag:r,attrs:t||{},children:i,text:a,key:e}}function jW(r,e){var t=[];if(e)for(var i in e){var a=e[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),t.push(n))}return"<"+r+" "+t.join(" ")+">"}function KW(r){return"</"+r+">"}function Kp(r,e){e=e||{};var t=e.newline?`
  12. `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return jW(o,s)+(o!=="style"?Je(l):l||"")+(n?""+t+k(n,function(u){return i(u)}).join(t)+t:"")+KW(o)}return i(r)}function YE(r,e,t){t=t||{};var i=t.newline?`
  13. `:"",a=" {"+i,n=i+"}",o=k(ft(r),function(l){return l+a+k(ft(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=k(ft(e),function(l){return"@keyframes "+l+a+k(ft(e[l]),function(u){return u+a+k(ft(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Qp(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function x_(r,e,t,i){return Pe("svg","root",{width:r,height:e,xmlns:GE,"xmlns:xlink":g_,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var QW=0;function Gd(){return QW++}var ZE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ds="transform-origin";function $W(r,e,t){var i=N({},r.shape);N(i,e),r.buildPath(t,i);var a=new Bd;return a.reset(Ih(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function JW(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Ds]=t+"px "+i+"px")}var t6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qE(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function e6(r,e,t){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=Qp(t.zrId);u.animation=!0,$p(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=ft(f),h=c.length;if(h){o=c[h-1];var v=f[o];for(var d in v){var m=v[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=qE(a,t);return n.replace(o,s)}}function XE(r){return F(r)?ZE[r]?"cubic-bezier("+ZE[r]+")":Rl(r)?r:"":""}function $p(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof iu){var s=e6(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],p=[f.getMaxTime()/1e3+"s"],c=XE(f.getClip().easing),h=f.getDelay();c?p.push(c):p.push("linear"),h&&p.push(h/1e3+"s"),f.getLoop()&&p.push("infinite");var v=p.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(f)}function d(y){var x=y[1],_=x.length,b={},S={},T={},C="animation-timing-function";function A(gt,Pt,Ct){for(var ut=gt.getTracks(),At=gt.getMaxTime(),ce=0;ce<ut.length;ce++){var Yt=ut[ce];if(Yt.needsAnimate()){var _e=Yt.keyframes,de=Yt.propName;if(Ct&&(de=Ct(de)),de)for(var fr=0;fr<_e.length;fr++){var Ha=_e[fr],Ir=Math.round(Ha.time/At*100)+"%",Bc=XE(Ha.easing),_n=Ha.rawValue;(F(_n)||vt(_n))&&(Pt[Ir]=Pt[Ir]||{},Pt[Ir][de]=Ha.rawValue,Bc&&(Pt[Ir][C]=Bc))}}}}for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I?I==="shape"&&A(M,S):!i&&A(M,b)}for(var L in b){var P={};Cy(P,r),N(P,b[L]);var z=Lh(P),R=b[L][C];T[L]=z?{transform:z}:{},JW(T[L],P),R&&(T[L][C]=R)}var U,V=!0;for(var L in S){T[L]=T[L]||{};var B=!U,R=S[L][C];B&&(U=new Ye);var Z=U.len();U.reset(),T[L].d=$W(r,S[L],U);var Q=U.len();if(!B&&Z!==Q){V=!1;break}R&&(T[L][C]=R)}if(!V)for(var L in T)delete T[L].d;if(!i)for(var D=0;D<_;D++){var M=x[D],I=M.targetName;I==="style"&&A(M,T,function(ut){return t6[ut]})}for(var st=ft(T),ct=!0,pt,D=1;D<st.length;D++){var Lt=st[D-1],Bt=st[D];if(T[Lt][Ds]!==T[Bt][Ds]){ct=!1;break}pt=T[Lt][Ds]}if(ct&&pt){for(var L in T)T[L][Ds]&&delete T[L][Ds];e[Ds]=pt}if(Dt(st,function(gt){return ft(T[gt]).length>0}).length){var Et=qE(T,t);return Et+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+Gd();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function KE(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};jE(i,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=Ef(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),jE(i,e,t,!0)}}function jE(r,e,t,i){var a=JSON.stringify(r),n=t.cssStyleCache[a];n||(n=t.zrId+"-cls-"+Gd(),t.cssStyleCache[a]=n,t.cssNodes["."+n+(i?":hover":"")]=r),e.class=e.class?e.class+" "+n:n}var Jp=Math.round;function t2(r){return r&&F(r.src)}function e2(r){return r&&X(r.toDataURL)}function __(r,e,t,i){m_(function(a,n){var o=a==="fill"||a==="stroke";o&&Mh(n)?T_(e,r,a,i):o&&Pf(n)?C_(t,r,a,i):o&&n==="none"?r[a]="transparent":r[a]=n},e,t,!1),l6(t,r,i)}function S_(r,e){var t=eA(e);t&&(t.each(function(i,a){i!=null&&(r[(y_+a).toLowerCase()]=i+"")}),e.isSilent()&&(r[y_+"silent"]="true"))}function QE(r){return ga(r[0]-1)&&ga(r[1])&&ga(r[2])&&ga(r[3]-1)}function r6(r){return ga(r[4])&&ga(r[5])}function b_(r,e,t){if(e&&!(r6(e)&&QE(e))){var i=t?10:1e4;r.transform=QE(e)?"translate("+Jp(e[4]*i)/i+" "+Jp(e[5]*i)/i+")":IC(e)}}function $E(r,e,t){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(Jp(i[n][0]*t)/t),a.push(Jp(i[n][1]*t)/t);e.points=a.join(" ")}function JE(r){return!r.smooth}function i6(r){var e=k(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,a){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(i[o[1]]=Jp(s*a)/a)}}}var a6={circle:[i6(["cx","cy","r"])],polyline:[$E,JE],polygon:[$E,JE]};function n6(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function r2(r,e){var t=r.style,i=r.shape,a=a6[r.type],n={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Ih(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&n6(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](i,n,f)}else{var p=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;p&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==h||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new Bd),d.reset(u),c.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),n.d=d.getStr()}return b_(n,r.transform),__(n,t,r,e),S_(n,r),e.animation&&$p(r,n,e),e.emphasis&&KE(r,n,e),Pe(s,r.id+"",n)}function o6(r,e){var t=r.style,i=t.image;if(i&&!F(i)&&(t2(i)?i=i.src:e2(i)&&(i=i.toDataURL())),!!i){var a=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),b_(l,r.transform),__(l,t,r,e),S_(l,r),e.animation&&$p(r,l,e),Pe("image",r.id+"",l)}}function s6(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var a=t.font||Jr,n=t.x||0,o=EC(t.y||0,Ul(a),t.textBaseline),s=LC[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(r0(t)){var u="",f=t.fontStyle,p=e0(t.fontSize);if(!parseFloat(p))return;var c=t.fontFamily||Wg,h=t.fontWeight;u+="font-size:"+p+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),b_(l,r.transform),__(l,t,r,e),S_(l,r),e.animation&&$p(r,l,e),Pe("text",r.id+"",l,void 0,i)}}function w_(r,e){if(r instanceof it)return r2(r,e);if(r instanceof re)return o6(r,e);if(r instanceof Ka)return s6(r,e)}function l6(r,e,t){var i=r.style;if(PC(i)){var a=zC(r),n=t.shadowCache,o=n[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,p=i.shadowOffsetY||0,c=i.shadowBlur,h=On(i.shadowColor),v=h.opacity,d=h.color,m=c/2/l,g=c/2/u,y=m+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Pe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Pe("feDropShadow","",{dx:f/l,dy:p/u,stdDeviation:y,"flood-color":d,"flood-opacity":v})]),n[a]=o}e.filter=zf(o)}}function T_(r,e,t,i){var a=r[t],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Ah(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Dh(a))n="radialGradient",o.cx=at(a.x,.5),o.cy=at(a.y,.5),o.r=at(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var p=Ch(s[u].offset)*100+"%",c=s[u].color,h=On(c),v=h.color,d=h.opacity,m={offset:p};m["stop-color"]=v,d<1&&(m["stop-opacity"]=d),l.push(Pe("stop",u+"",m))}var g=Pe(n,"",o,l),y=Kp(g),x=i.gradientCache,_=x[y];_||(_=i.zrId+"-g"+i.gradientIdx++,x[y]=_,o.id=_,i.defs[_]=Pe(n,_,o,l)),e[t]=zf(_)}function C_(r,e,t,i){var a=r.style[t],n=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",p;if(cy(a)){var c=a.imageWidth,h=a.imageHeight,v=void 0,d=a.image;if(F(d)?v=d:t2(d)?v=d.src:e2(d)&&(v=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";ne(c,m),ne(h,m)}else if(c==null||h==null){var g=function(D,M){if(D){var I=D.elm,L=c||M.width,P=h||M.height;D.tag==="pattern"&&(u?(P=1,L/=n.width):f&&(L=1,P/=n.height)),D.attrs.width=L,D.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},y=Zf(v,null,r,function(D){l||g(S,D),g(p,D)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}p=Pe("image","img",{href:v,width:c,height:h}),o.width=c,o.height=h}else a.svgElement&&(p=$(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){var x,_;l?x=_=1:u?(_=1,x=o.width/n.width):f?(x=1,_=o.height/n.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),_!=null&&!isNaN(_)&&(o.height=_);var b=Lh(a);b&&(o.patternTransform=b);var S=Pe("pattern","",o,[p]),T=Kp(S),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,S=i.defs[A]=Pe("pattern",A,o,[p])),e[t]=zf(A)}}function i2(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=Pe("clipPath",n,o,[r2(r,t)])}e["clip-path"]=zf(n)}function A_(r){return document.createTextNode(r)}function oo(r,e,t){r.insertBefore(e,t)}function D_(r,e){r.removeChild(e)}function M_(r,e){r.appendChild(e)}function I_(r){return r.parentNode}function L_(r){return r.nextSibling}function Hd(r,e){r.textContent=e}var a2=58,f6=120,p6=Pe("","");function E_(r){return r===void 0}function za(r){return r!==void 0}function c6(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function tc(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function ec(r){var e,t=r.children,i=r.tag;if(za(i)){var a=r.elm=Fd(i);if(Yd(p6,r),O(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&M_(a,ec(n))}else za(r.text)&&!j(r.text)&&M_(a,A_(r.text))}else r.elm=A_(r.text);return r.elm}function n2(r,e,t,i,a){for(;i<=a;++i){var n=t[i];n!=null&&oo(r,ec(n),e)}}function Wd(r,e,t,i){for(;t<=i;++t){var a=e[t];if(a!=null)if(za(a.tag)){var n=I_(a.elm);D_(n,a.elm)}else D_(r,a.elm)}}function Yd(r,e){var t,i=e.elm,a=r&&r.attrs||{},n=e.attrs||{};if(a!==n){for(t in n){var o=n[t],s=a[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==f6?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(HE,t,o):t.charCodeAt(3)===a2?i.setAttributeNS(WE,t,o):t.charCodeAt(5)===a2?i.setAttributeNS(g_,t,o):i.setAttribute(t,o))}for(t in a)t in n||i.removeAttribute(t)}}function h6(r,e,t){for(var i=0,a=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],f=t[l],p,c,h,v;i<=n&&a<=l;)o==null?o=e[++i]:s==null?s=e[--n]:u==null?u=t[++a]:f==null?f=t[--l]:tc(o,u)?(Du(o,u),o=e[++i],u=t[++a]):tc(s,f)?(Du(s,f),s=e[--n],f=t[--l]):tc(o,f)?(Du(o,f),oo(r,o.elm,L_(s.elm)),o=e[++i],f=t[--l]):tc(s,u)?(Du(s,u),oo(r,s.elm,o.elm),s=e[--n],u=t[++a]):(E_(p)&&(p=c6(e,i,n)),c=p[u.key],E_(c)?oo(r,ec(u),o.elm):(h=e[c],h.tag!==u.tag?oo(r,ec(u),o.elm):(Du(h,u),e[c]=void 0,oo(r,h.elm,o.elm))),u=t[++a]);(i<=n||a<=l)&&(i>n?(v=t[l+1]==null?null:t[l+1].elm,n2(r,v,t,a,l)):Wd(r,e,i,n))}function Du(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Yd(r,e),E_(e.text)?za(i)&&za(a)?i!==a&&h6(t,i,a):za(a)?(za(r.text)&&Hd(t,""),n2(t,null,a,0,a.length-1)):za(i)?Wd(t,i,0,i.length-1):za(r.text)&&Hd(t,""):r.text!==e.text&&(za(i)&&Wd(t,i,0,i.length-1),Hd(t,e.text)))}function P_(r,e){if(tc(r,e))Du(r,e);else{var t=r.elm,i=I_(t);ec(e),i!==null&&(oo(i,e.elm,L_(t)),Wd(i,[r],0,0))}return e}var v6=0,d6=function(){function r(e,t,i){if(this.type="svg",this.refreshHover=o2("refreshHover"),this.configLayer=o2("configLayer"),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+v6++,this._oldVNode=x_(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Fd("svg");Yd(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",P_(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return w_(e,Qp(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=Qp(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis;var o=[],s=this._bgVNode=m6(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=Pe("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=k(ft(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(Pe("defs","defs",{},u)),e.animation){var f=YE(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=Pe("style","stl",{},[],f);o.push(p)}}return x_(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Kp(this.renderToVNode({animation:at(e.cssAnimation,!0),emphasis:at(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:at(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var p=e[f];if(!p.invisible){var c=p.__clipPaths,h=c&&c.length||0,v=l&&l.length||0,d=void 0;for(d=Math.max(h-1,v-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=v-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g<h;g++){var y={};i2(c[g],y,t);var x=Pe("g","clip-g-"+u++,y,[]);(s?s.children:i).push(x),n[o++]=x,s=x}l=c;var _=w_(p,t);_&&(s?s.children:i).push(_)}}},r.prototype.resize=function(e,t){var i=this._opts,a=this.root,n=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),a&&n&&(n.style.display="none",e=Qn(a,0,i),t=Qn(a,1,i),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}if(Pf(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=RC(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},r}();function o2(r){return function(){}}function m6(r,e,t,i){var a;if(t&&t!=="none")if(a=Pe("rect","bg",{width:r,height:e,x:"0",y:"0"}),Mh(t))T_({fill:t},a.attrs,"fill",i);else if(Pf(t))C_({style:{fill:t},dirty:te,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",i);else{var n=On(t),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var s2=d6;function z_(r){r.registerPainter("svg",s2)}function l2(r,e,t){var i=pr.createCanvas(),a=e.getWidth(),n=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=n+"px",i.setAttribute("data-zr-dom-id",r)),i.width=a*t,i.height=n*t,i}var g6=function(r){Mt(e,r);function e(t,i,a){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;a=a||Wo,typeof t=="string"?o=l2(t,i,a):j(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(ih(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=i,n.dpr=a,n}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=l2("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,a,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new rt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var x=new rt(0,0,0,0);x.copy(y),o.push(x)}else{for(var _=!1,b=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(y)){var A=new rt(0,0,0,0);A.copy(C),A.union(y),o[T]=A,_=!0;break}else if(l){u.copy(y),u.union(C);var D=y.width*y.height,M=C.width*C.height,I=u.width*u.height,L=I-D-M;L<b&&(b=L,S=T)}}if(l&&(o[S].union(y),_=!0),!_){var x=new rt(0,0,0,0);x.copy(y),o.push(x)}l||(l=o.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var c=t[p];if(c){var h=c.shouldBePainted(a,n,!0,!0),v=c.__isRendered&&(c.__dirty&Ve||!h)?c.getPrevPaintRect():null;v&&f(v);var d=h&&(c.__dirty&Ve||!c.__isRendered)?c.getPaintRect():null;d&&f(d)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var c=i[p],h=c&&c.shouldBePainted(a,n,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){var v=c.getPrevPaintRect();v&&f(v)}}var m;do{m=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var g=p+1;g<o.length;)o[p].intersect(o[g])?(m=!0,o[p].union(o[g]),o.splice(g,1)):g++;p++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var a=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),n.width=t*a,n.height=i*a,s&&(s.width=t*a,s.height=i*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,i,a){var n=this.dom,o=this.ctx,s=n.width,l=n.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,p=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/p,l/p));var h=this.domBack;function v(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var x=void 0;if(Dn(i)){var _=i.global||i.__width===g&&i.__height===y;x=_&&i.__canvasGradient||Ep(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=x,i.__width=g,i.__height=y}else YT(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,x=od(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=x||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,m,g,y),o.restore())}!a||u?v(0,0,s,l):a.length&&w(a,function(d){v(d.x*p,d.y*p,d.width*p,d.height*p)})},e}(Ne),Zd=g6;var u2=1e5,Ms=314159,Xd=.01,y6=.001;function x6(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function _6(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var S6=function(){function r(e,t,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Wo,this._singleCanvas=n,this.root=e;var o=e.style;o&&(ih(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(n){var f=e,p=f.width,c=f.height;i.width!=null&&(p=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=p*this.dpr,f.height=c*this.dpr,this._width=p,this._height=c;var h=new Zd(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Ms]=h,h.zlevel=Ms,s.push(Ms),this._domRoot=e}else{this._width=Qn(e,0,i),this._height=Qn(e,1,i);var u=this._domRoot=_6(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),i=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,i,e,this._redrawId);for(var n=0;n<a.length;n++){var o=a[n],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=n===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,i=this._hoverlayer;if(i&&i.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},n,o=0;o<t;o++){var s=e[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(u2)),n||(n=i.ctx,n.save()),$n(n,s,a,o===t-1))}n&&n.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(u2)},r.prototype.paintOne=function(e,t){sd(e,t)},r.prototype._paintList=function(e,t,i,a){if(this._redrawId===a){i=i||!1,this._updateLayerStatus(e);var n=this._doPaintList(e,t,i),o=n.finished,s=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Df(function(){l._paintList(e,t,i,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Ms).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,i)})},r.prototype._doPaintList=function(e,t,i){for(var a=this,n=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&n.push(u)}for(var f=!0,p=!1,c=function(d){var m=n[d],g=m.ctx,y=o&&m.createRepaintRects(e,t,h._width,h._height),x=i?m.__startIndex:m.__drawIndex,_=!i&&m.incremental&&Date.now,b=_&&Date.now(),S=m.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,S,y);else if(x===m.__startIndex){var T=e[x];(!T.incremental||!T.notClear||i)&&m.clear(!1,S,y)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=m.__startIndex);var C,A=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(C=x;C<m.__endIndex;C++){var z=e[C];if(z.__inHover&&(p=!0),a._doPaintEl(z,m,o,L,P,C===m.__endIndex-1),_){var R=Date.now()-b;if(R>15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)C=m.__endIndex;else for(var D=h.dpr,M=0;M<y.length;++M){var I=y[M];g.save(),g.beginPath(),g.rect(I.x*D,I.y*D,I.width*D,I.height*D),g.clip(),A(I),g.restore()}else g.save(),A(),g.restore();m.__drawIndex=C,m.__drawIndex<m.__endIndex&&(f=!1)},h=this,v=0;v<n.length;v++)c(v);return Tt.wxa&&w(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:f,needsRefreshHover:p}},r.prototype._doPaintEl=function(e,t,i,a,n,o){var s=t.ctx;if(i){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&($n(s,e,n,o),e.setPrevPaintRect(l))}else $n(s,e,n,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Ms);var i=this._layers[e];return i||(i=new Zd("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?lt(i,this._layerConfig[e],!0):this._layerConfig[e-Xd]&&lt(i,this._layerConfig[e-Xd],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},r.prototype.insertLayer=function(e,t){var i=this._layers,a=this._zlevelList,n=a.length,o=this._domRoot,s=null,l=-1;if(!i[e]&&x6(t)){if(n>0&&e>a[0]){for(l=0;l<n-1&&!(a[l]<e&&a[l+1]>e);l++);s=i[a[l]]}if(a.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a];e.call(t,this._layers[n],n)}},r.prototype.eachBuiltinLayer=function(e,t){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],o=this._layers[n];o.__builtin__&&e.call(t,o,n)}},r.prototype.eachOtherLayer=function(e,t){for(var i=this._zlevelList,a=0;a<i.length;a++){var n=i[a],o=this._layers[n];o.__builtin__||e.call(t,o,n)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(p,c){p.__dirty=p.__used=!1});function t(p){n&&(n.__endIndex!==p&&(n.__dirty=!0),n.__endIndex=p)}if(this._singleCanvas)for(var i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var n=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+y6,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Xd:0),this._needsManuallyCompositing),f.__builtin__||Io("ZLevel "+u+" has been used by unkown layer "+f.id),f!==n&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),n=f),a.__dirty&Ve&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(p,c){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,w(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?lt(i[e],t,!0):i[e]=t;for(var a=0;a<this._zlevelList.length;a++){var n=this._zlevelList[a];if(n===e||n===e+Xd){var o=this._layers[n];lt(o,i[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,i=this._zlevelList,a=t[e];a&&(a.dom.parentNode.removeChild(a.dom),delete t[e],i.splice(nt(i,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,n=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=Qn(n,0,a),t=Qn(n,1,a),i.style.display="",this._width!==e||t!==this._height){i.style.width=e+"px",i.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Ms).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ms].dom;var t=new Zd("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,n=t.dom.height;this.eachLayer(function(p){p.__builtin__?i.drawImage(p.dom,0,0,a,n):p.renderToCanvas&&(i.save(),p.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];$n(i,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}(),f2=S6;function R_(r){r.registerPainter("canvas",f2)}var b6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var i;return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new K,a=Xt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(a),a.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=Xt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(Rt),p2=b6;function sa(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=pn(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<t.length;o++)n.push(pn(r,e,t[o]));return n.join(" ")}}function qd(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!O(e))return e+"";for(var i=[],a=0;a<t.length;a++){var n=r.getDimensionIndex(t[a]);n>=0&&i.push(e[n])}return i.join(" ")}var w6=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o){this.removeAll();var s=Xt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=T6,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){cr(this.childAt(0))},e.prototype.downplay=function(){hr(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,p)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(h):_t(c,h,s,i),Oe(c)}if(this._updateCommon(t,i,l,a,n),u){var c=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Ut(c,h,s,i)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,h,v,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,h=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,v=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=x.get("focus"),h=x.get("blurScope"),v=x.get("disabled"),d=Kt(y),m=x.getShallow("scale"),g=y.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var b=ui(t.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(i,"style"),T=S.fill;if(s instanceof re){var C=s.style;s.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(N({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(i,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ee(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:T,defaultOpacity:S.opacity});function I(z){return M?t.getName(z):sa(t,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Vt(this,c,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=tt(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Ti(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Ti(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return ea(t.getItemVisual(i,"symbolSize"))},e}(K);function T6(r,e){this.parent.drift(r,e)}var vn=w6;function N_(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function c2(r){return r!=null&&!j(r)&&(r={isIgnore:r}),r||{}}function h2(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:Kt(e),cursorStyle:e.get("cursor")}}var C6=function(){function r(e){this.group=new K,this._SymbolCtor=e||vn}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=c2(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=h2(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);if(N_(e,c,p,t)){var h=new o(e,p,l,u);h.setPosition(c),e.setItemGraphicEl(p,h),i.add(h)}}).update(function(p,c){var h=n.getItemGraphicEl(c),v=f(p);if(!N_(e,v,p,t)){i.remove(h);return}var d=e.getItemVisual(p,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==d)i.remove(h),h=new o(e,p,l,u),h.setPosition(v);else{h.updateData(e,p,l,u);var g={x:v[0],y:v[1]};s?h.attr(g):_t(h,g,a)}i.add(h),e.setItemGraphicEl(p,h)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,a){var n=e._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=h2(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=c2(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(N_(t,o,n,i)){var s=new this._SymbolCtor(t,n,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Sr(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},i.hostModel)}):t.removeAll()},r}(),Ra=C6;function jd(r,e,t){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=A6(a,t),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,p=k(r.dimensions,function(v){return e.mapDimension(v)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return fi(e,p[0])&&(c=!0,p[0]=h),fi(e,p[1])&&(c=!0,p[1]=h),{dataDimsForPoint:p,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function A6(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:vt(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function Kd(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function D6(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function O_(r,e,t,i,a,n,o,s){for(var l=D6(r,e),u=[],f=[],p=[],c=[],h=[],v=[],d=[],m=jd(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,S=void 0,T=void 0;switch(_.cmd){case"=":S=_.idx*2,T=_.idx1*2;var C=g[S],A=g[S+1],D=y[T],M=y[T+1];(isNaN(C)||isNaN(A))&&(C=D,A=M),u.push(C,A),f.push(D,M),p.push(t[S],t[S+1]),c.push(i[T],i[T+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,L=m.dataDimsForPoint,P=a.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);T=I*2,u.push(P[0],P[1]),f.push(y[T],y[T+1]);var z=Kd(m,a,e,I);p.push(z[0],z[1]),c.push(i[T],i[T+1]),d.push(e.getRawIndex(I));break;case"-":b=!1}b&&(h.push(_),v.push(v.length))}v.sort(function(Lt,Bt){return d[Lt]-d[Bt]});for(var R=u.length,U=Tr(R),V=Tr(R),B=Tr(R),Z=Tr(R),Q=[],x=0;x<v.length;x++){var st=v[x],ct=x*2,pt=st*2;U[ct]=u[pt],U[ct+1]=u[pt+1],V[ct]=f[pt],V[ct+1]=f[pt+1],B[ct]=p[pt],B[ct+1]=p[pt+1],Z[ct]=c[pt],Z[ct+1]=c[pt+1],Q[x]=h[st]}return{current:U,next:V,stackedOnCurrent:B,stackedOnNext:Z,status:Q}}var so=Math.min,lo=Math.max;function Is(r,e){return isNaN(r)||isNaN(e)}function k_(r,e,t,i,a,n,o,s,l){for(var u,f,p,c,h,v,d=t,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=a||d<0)break;if(Is(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var x=g-u,_=y-f;if(x*x+_*_<.5){d+=n;continue}if(o>0){for(var b=d+n,S=e[b*2],T=e[b*2+1];S===g&&T===y&&m<i;)m++,b+=n,d+=n,S=e[b*2],T=e[b*2+1],g=e[d*2],y=e[d*2+1],x=g-u,_=y-f;var C=m+1;if(l)for(;Is(S,T)&&C<i;)C++,b+=n,S=e[b*2],T=e[b*2+1];var A=.5,D=0,M=0,I=void 0,L=void 0;if(C>=i||Is(S,T))h=g,v=y;else{D=S-u,M=T-f;var P=g-u,z=S-g,R=y-f,U=T-y,V=void 0,B=void 0;if(s==="x"){V=Math.abs(P),B=Math.abs(z);var Z=D>0?1:-1;h=g-Z*V*o,v=y,I=g+Z*B*o,L=y}else if(s==="y"){V=Math.abs(R),B=Math.abs(U);var Q=M>0?1:-1;h=g,v=y-Q*V*o,I=g,L=y+Q*B*o}else V=Math.sqrt(P*P+R*R),B=Math.sqrt(z*z+U*U),A=B/(B+V),h=g-D*o*(1-A),v=y-M*o*(1-A),I=g+D*o*A,L=y+M*o*A,I=so(I,lo(S,g)),L=so(L,lo(T,y)),I=lo(I,so(S,g)),L=lo(L,so(T,y)),D=I-g,M=L-y,h=g-D*V/B,v=y-M*V/B,h=so(h,lo(u,g)),v=so(v,lo(f,y)),h=lo(h,so(u,g)),v=lo(v,so(f,y)),D=g-h,M=y-v,I=g+D*B/V,L=y+M*B/V}r.bezierCurveTo(p,c,h,v,g,y),p=I,c=L}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var v2=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),d2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new v2},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Is(a[o*2-2],a[o*2-1]);o--);for(;n<o&&Is(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=k_(t,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=Ye.CMD,s,l,u=i==="x",f=[],p=0;p<n.length;){var c=n[p++],h=void 0,v=void 0,d=void 0,m=void 0,g=void 0,y=void 0,x=void 0;switch(c){case o.M:s=n[p++],l=n[p++];break;case o.L:if(h=n[p++],v=n[p++],x=u?(t-s)/(h-s):(t-l)/(v-l),x<=1&&x>=0){var _=u?(v-l)*x+l:(h-s)*x+s;return u?[t,_]:[_,t]}s=h,l=v;break;case o.C:h=n[p++],v=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var b=u?Vo(s,h,d,g,t,f):Vo(l,v,m,y,t,f);if(b>0)for(var S=0;S<b;S++){var T=f[S];if(T<=1&&T>=0){var _=u?ye(l,v,m,y,T):ye(s,h,d,g,T);return u?[t,_]:[_,t]}}s=g,l=y;break}}},e}(it);var M6=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(v2),Qd=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new M6},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Is(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Is(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=k_(t,a,o,s,s,1,i.smooth,l,i.connectNulls);k_(t,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e}(it);function V_(r,e,t,i,a){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=t.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 p=new ht({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),v=c.inverse;h?(v&&(p.shape.x+=l),p.shape.width=0):(v||(p.shape.y+=u),p.shape.height=0);var d=X(a)?function(m){a(m,p)}:null;Ut(p,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return p}function U_(r,e,t){var i=r.getArea(),a=Qt(i.r0,1),n=Qt(i.r,1),o=new we({shape:{cx:Qt(r.cx,1),cy:Qt(r.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Ut(o,{shape:{endAngle:i.endAngle,r:n}},t)}return o}function Na(r,e,t,i,a){if(r){if(r.type==="polar")return U_(r,e,t);if(r.type==="cartesian2d")return V_(r,e,t,i,a)}else return null;return null}function Pi(r,e){return r.type===e}function m2(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function g2(r){for(var e=1/0,t=1/0,i=-1/0,a=-1/0,n=0;n<r.length;){var o=r[n++],s=r[n++];isNaN(o)||(e=Math.min(o,e),i=Math.max(o,i)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[i,a]]}function y2(r,e){var t=g2(r),i=t[0],a=t[1],n=g2(e),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function x2(r){return vt(r)?r:r?.5:0}function I6(r,e,t){if(!t.valueDim)return[];for(var i=e.count(),a=Tr(i*2),n=0;n<i;n++){var o=Kd(t,r,e,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function uo(r,e,t,i){var a=e.getBaseAxis(),n=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],p=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&p.push(r[s],r[s+1]);r=p}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]),t){case"end":l[n]=f[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var c=(u[n]+f[n])/2,h=[];l[n]=h[n]=c,l[1-n]=u[1-n],h[1-n]=f[1-n],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[n]=u[n],l[1-n]=f[1-n],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function L6(r,e){var t=[],i=r.length,a,n;function o(f,p,c){var h=f.coord,v=(c-h)/(p.coord-h),d=DC(v,[f.color,p.color]);return{coord:c,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function E6(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=k(n.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=L6(u,a==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var v=10,d=c[0].coord-v,m=c[h-1].coord+v,g=m-d;if(g<.001)return"transparent";w(c,function(x){x.offset=(x.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:p[0]||"transparent"});var y=new Aa(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function P6(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&z6(n,e))){var o=e.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function z6(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(vn.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function R6(r,e){return isNaN(r)||isNaN(e)}function N6(r){for(var e=r.length/2;e>0&&R6(r[e*2-2],r[e*2-1]);e--);return e-1}function _2(r,e){return[r[e*2],r[e*2+1]]}function O6(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function S2(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ue.length;e++)if(r.get([Ue[e],"endLabel","show"]))return!0;return!1}function B_(r,e,t,i){if(Pi(e,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=S2(i)?function(h,v){r._endLabelOnDuring(h,v,o,s,n,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=V_(e,t,i,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var p=f.shape,c=Math.max(p.width,p.height);u?(p.y-=c,p.height+=c*2):(p.x-=c,p.width+=c*2)}return l&&l(1,f),f}else return U_(e,t,i)}function k6(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),a=t.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var V6=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new K,i=new Ra;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t},e.prototype.render=function(t,i,a){var n=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),p=l.getLayout("points")||[],c=o.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,m=this._polygon,g=this._lineGroup,y=!i.ssr&&t.get("animation"),x=!f.isEmpty(),_=f.get("origin"),b=jd(o,l,_),S=x&&I6(o,l,b),T=t.get("showSymbol"),C=t.get("connectNulls"),A=T&&!c&&P6(t,l,o),D=this._data;D&&D.eachItemGraphicEl(function(Bt,Et){Bt.__temp&&(s.remove(Bt),D.setItemGraphicEl(Et,null))}),T||v.remove(),s.add(g);var M=c?!1:t.get("step"),I;o&&o.getArea&&t.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=E6(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&h.type===o.type&&M===this._step))T&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Bt){return[p[Bt*2],p[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,I),M&&(p=uo(p,o,M,C),S&&(S=uo(S,o,M,C))),d=this._newPolyline(p),x?m=this._newPolygon(p,S):m&&(g.remove(m),m=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,Qi(L)),g.setClipPath(B_(this,o,!0,t));else{x&&!m?m=this._newPolygon(p,S):m&&!x&&(g.remove(m),m=this._polygon=null),c||this._initOrUpdateEndLabel(t,o,Qi(L));var P=g.getClipPath();if(P){var z=B_(this,o,!1,t);Ut(P,{shape:z.shape},t)}else g.setClipPath(B_(this,o,!0,t));T&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Bt){return[p[Bt*2],p[Bt*2+1]]}}),(!m2(this._stackedOnPoints,S)||!m2(this._points,p))&&(y?this._doUpdateAnimation(l,S,o,a,M,_,C):(M&&(p=uo(p,o,M,C),S&&(S=uo(S,o,M,C))),d.setShape({points:p}),m&&m.setShape({points:p,stackedOnPoints:S})))}var R=t.getModel("emphasis"),U=R.get("focus"),V=R.get("blurScope"),B=R.get("disabled");if(d.useStyle(q(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),se(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var Z=d.getState("emphasis").style;Z.lineWidth=+d.style.lineWidth+1}tt(d).seriesIndex=t.seriesIndex,Vt(d,U,V,B);var Q=x2(t.get("smooth")),st=t.get("smoothMonotone");if(d.setShape({smooth:Q,smoothMonotone:st,connectNulls:C}),m){var ct=l.getCalculationInfo("stackedOnSeries"),pt=0;m.useStyle(q(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ct&&(pt=x2(ct.get("smooth"))),m.setShape({smooth:Q,stackedOnSmooth:pt,smoothMonotone:st,connectNulls:C}),se(m,t,"areaStyle"),tt(m).seriesIndex=t.seriesIndex,Vt(m,U,V,B)}var Lt=function(Bt){n._changePolyState(Bt)};l.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=Lt)}),this._polyline.onHoverStateChange=Lt,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=p,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,i){tt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,a,n){var o=t.getData(),s=Si(o,n);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],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new vn(o,s),u.x=f,u.y=p,u.setZ(c,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else It.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=Si(o,n);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 It.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;os(this._polyline,t),i&&os(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new d2({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Qd({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");X(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=X(p)?p(null):p;t.eachItemGraphicEl(function(h,v){var d=h;if(d){var m=[h.x,h.y],g=void 0,y=void 0,x=void 0;if(a)if(o){var _=a,b=i.pointToCoord(m);n?(g=_.startAngle,y=_.endAngle,x=-b[1]/180*Math.PI):(g=_.r0,y=_.r,x=b[0])}else{var S=a;n?(g=S.x,y=S.x+S.width,x=h.x):(g=S.y+S.height,y=S.y,x=h.y)}var T=y===g?0:(x-g)/(y-g);l&&(T=1-T);var C=X(p)?p(v):f*T+c,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(S2(t)){var o=t.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 yt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=N6(l);f>=0&&(ee(s,Kt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,h){return h!=null?qd(o,h):sa(o,p)},enableTextSetter:!0},k6(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,x=i.shape,_=y?g?x.x:x.y+x.height:g?x.x+x.width:x.y,b=(g?d:0)*(y?-1:1),S=(g?0:-d)*(y?-1:1),T=g?"x":"y",C=O6(p,_,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!h){var I=_2(p,A[0]);u.attr({x:I[0]+b,y:I[1]+S}),o&&(M=c.getRawValue(A[0]))}else{var I=f.getPointOn(_,T);I&&u.attr({x:I[0]+b,y:I[1]+S});var L=c.getRawValue(A[0]),P=c.getRawValue(A[1]);o&&(M=Hh(a,v,L,P,C.t))}n.lastFrameIndex=A[0]}else{var z=t===1||n.lastFrameIndex>0?A[0]:0,I=_2(p,z);o&&(M=c.getRawValue(z)),u.attr({x:I[0]+b,y:I[1]+S})}if(o){var R=on(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=O_(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),h=c.current,v=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=uo(c.current,a,o,l),v=uo(c.stackedOnCurrent,a,o,l),d=uo(c.next,a,o,l),m=uo(c.stackedOnNext,a,o,l)),y2(h,d)>3e3||f&&y2(v,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),u.stopAnimation(),_t(u,g,p),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),_t(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],x=c.status,_=0;_<x.length;_++){var b=x[_].cmd;if(b==="="){var S=t.getItemGraphicEl(x[_].idx1);S&&y.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<y.length;C++){var A=y[C].el,D=y[C].ptIdx*2;A.x=T[D],A.y=T[D+1],A.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(It),b2=V6;function la(r,e){return{seriesType:r,plan:li(),reset:function(t){var i=t.getData(),a=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(a){var s=k(a.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");fi(i,s[0])&&(s[0]=u),fi(i,s[1])&&(s[1]=u);var f=i.getStore(),p=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,m=o&&Tr(d*l),g=[],y=[],x=h.start,_=0;x<h.end;x++){var b=void 0;if(l===1){var S=f.get(p,x);b=a.dataToPoint(S,null,y)}else g[0]=f.get(p,x),g[1]=f.get(c,x),b=a.dataToPoint(g,null,y);o?(m[_++]=b[0],m[_++]=b[1]):v.setItemLayout(x,b.slice())}o&&v.setLayout("points",m)}}}}}}var U6={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},minmax:function(r){for(var e=-1/0,t=-1/0,i=0;i<r.length;i++){var a=r[i],n=Math.abs(a);n>e&&(e=n,t=a)}return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},B6=function(r){return Math.round(r.length/2)};function rc(r){return{seriesType:r,reset:function(e,t,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),h=Math.round(s/c);if(isFinite(h)&&h>1){n==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;F(n)?v=U6[n]:X(n)&&(v=n),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,v,B6))}}}}}function F_(r){r.registerChartView(b2),r.registerSeriesModel(p2),r.registerLayout(la("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rc("line"))}var w2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)w(n.getAxes(),function(c,h){if(c.type==="category"&&i!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),m=o[h],g=i[h]==="x1"||i[h]==="y1";if(g&&!d&&(m+=1),v.length<2)return;if(v.length===2){s[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,x=void 0,_=1,b=0;b<v.length;b++){var S=v[b].coord,T=b===v.length-1?v[b-1].tickValue+_:v[b].tickValue;if(T===m){x=S;break}else if(T<m)y=S;else if(y!=null&&T>m){x=(S+y)/2;break}b===1&&(_=T-v[0].tickValue)}x==null&&(y?y&&(x=v[v.length-1].coord):x=v[0].coord),s[h]=c.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Rt);Rt.registerClass(w2);var Mu=w2;var F6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Ke(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mr(Mu.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}),e}(Mu),T2=F6;var G6=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}(),H6=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new G6},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,p=i.endAngle,c=i.clockwise,h=Math.PI*2,v=c?p-f<h:f-p<h;v||(f=p-(c?h:-h));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(p),y=Math.sin(p);v?(t.moveTo(d*o+a,m*o+n),t.arc(d*u+a,m*u+n,l,-Math.PI+f,f,!c)):t.moveTo(d*s+a,m*s+n),t.arc(a,n,s,f,p,!c),t.arc(g*u+a,y*u+n,l,p-Math.PI*2,p-Math.PI,!c),o!==0&&t.arc(a,n,o,p,f,c)},e}(it),Iu=H6;function C2(r,e){e=e||{};var t=e.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return qo(i,a,n);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,p=u.cy,c=u.r,h=u.r0,v=(c+h)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=t?Math.abs(c-h)/2:0,x=Math.cos,_=Math.sin,b=f+c*x(d),S=p+c*_(d),T="left",C="top";switch(s){case"startArc":b=f+(h-l)*x(g),S=p+(h-l)*_(g),T="center",C="top";break;case"insideStartArc":b=f+(h+l)*x(g),S=p+(h+l)*_(g),T="center",C="bottom";break;case"startAngle":b=f+v*x(d)+$d(d,l+y,!1),S=p+v*_(d)+Jd(d,l+y,!1),T="right",C="middle";break;case"insideStartAngle":b=f+v*x(d)+$d(d,-l+y,!1),S=p+v*_(d)+Jd(d,-l+y,!1),T="left",C="middle";break;case"middle":b=f+v*x(g),S=p+v*_(g),T="center",C="middle";break;case"endArc":b=f+(c+l)*x(g),S=p+(c+l)*_(g),T="center",C="bottom";break;case"insideEndArc":b=f+(c-l)*x(g),S=p+(c-l)*_(g),T="center",C="top";break;case"endAngle":b=f+v*x(m)+$d(m,l+y,!0),S=p+v*_(m)+Jd(m,l+y,!0),T="left",C="middle";break;case"insideEndAngle":b=f+v*x(m)+$d(m,-l+y,!0),S=p+v*_(m)+Jd(m,-l+y,!0),T="right",C="middle";break;default:return qo(i,a,n)}return i=i||{},i.x=b,i.y=S,i.align=T,i.verticalAlign=C,i}}function A2(r,e,t,i){if(vt(i)){r.setTextConfig({rotation:i});return}else if(O(e)){r.setTextConfig({rotation:0});return}var a=r.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;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 $d(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Jd(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Oa(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;O(i)||(i=[i,i,i,i]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:k(i,function(n){return er(n,a)})}}var G_=Math.max,H_=Math.min;function W6(r,e){var t=r.getArea&&r.getArea();if(Pi(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var a=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var Y6=function(r){E(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,a,n){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,a):this._renderNormal(t,i,a,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,a,n){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),p;u.type==="cartesian2d"?p=f.isHorizontal():u.type==="polar"&&(p=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,h=Z6(t,u);h&&this._enableRealtimeSort(h,s,a);var v=t.get("clip",!0)||h,d=W6(u,s);o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),x=y.get("borderRadius")||0,_=[],b=this._backgroundEls,S=n&&n.isInitSort,T=n&&n.type==="changeAxisOrder";function C(M){var I=tm[u.type](s,M),L=J6(u,p,I);return L.useStyle(y.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[M]=L,L}s.diff(l).add(function(M){var I=s.getItemModel(M),L=tm[u.type](s,M,I);if(g&&C(M),!(!s.hasValue(M)||!E2[u.type](L))){var P=!1;v&&(P=D2[u.type](d,L));var z=M2[u.type](t,s,M,L,p,c,f.model,!1,m);h&&(z.forceLabelAnimation=!0),P2(z,s,M,I,L,t,p,u.type==="polar"),S?z.attr({shape:L}):h?I2(h,c,z,L,M,p,!1,!1):Ut(z,{shape:L},t,M),s.setItemGraphicEl(M,z),o.add(z),z.ignore=P}}).update(function(M,I){var L=s.getItemModel(M),P=tm[u.type](s,M,L);if(g){var z=void 0;b.length===0?z=C(I):(z=b[I],z.useStyle(y.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",x):z.setShape("cornerRadius",x),_[M]=z);var R=tm[u.type](s,M),U=k2(p,R,u);_t(z,{shape:U},c,M)}var V=l.getItemGraphicEl(I);if(!s.hasValue(M)||!E2[u.type](P)){o.remove(V);return}var B=!1;if(v&&(B=D2[u.type](d,P),B&&o.remove(V)),V?Oe(V):V=M2[u.type](t,s,M,P,p,c,f.model,!!V,m),h&&(V.forceLabelAnimation=!0),T){var Z=V.getTextContent();if(Z){var Q=on(Z);Q.prevValue!=null&&(Q.prevValue=Q.value)}}else P2(V,s,M,L,P,t,p,u.type==="polar");S?V.attr({shape:P}):h?I2(h,c,V,P,M,p,!0,T):_t(V,{shape:P},t,M,null),s.setItemGraphicEl(M,V),V.ignore=B,o.add(V)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&en(I,t,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new K);A.removeAll();for(var D=0;D<_.length;++D)A.add(_[D]);o.add(A),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,i,a){this._clear(),R2(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),R2(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Na(t.coordinateSystem,!1,t),a=this.group;i?a.setClipPath(i):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,a){var n=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,a){var n=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:k(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,a){for(var n=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),p=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(p>s)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){en(n,t,tt(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(It),D2={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,n=r.y+r.height,o=G_(e.x,r.x),s=H_(e.x+e.width,a),l=G_(e.y,r.y),u=H_(e.y+e.height,n),f=s<o,p=u<l;return e.x=f&&o>a?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var a=H_(e.r,r.r),n=G_(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},M2={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new ht({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Iu:we,f=new u({shape:i,z2:1});f.name="item";var p=O2(a);if(f.calculateTextPosition=C2(p,{isRoundCap:u===Iu}),n){var c=f.shape,h=a?"r":"endAngle",v={};c[h]=a?i.r0:i.startAngle,v[h]=i[h],(s?_t:Ut)(f,{shape:v},n)}return f}};function Z6(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function I2(r,e,t,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?_t:Ut)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?_t:Ut)(t,{shape:u},f,a)}function L2(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var X6=["x","y","width","height"],q6=["cx","cy","r","startAngle","endAngle"],E2={cartesian2d:function(r){return!L2(r,X6)},polar:function(r){return!L2(r,q6)}},tm={cartesian2d:function(r,e,t){var i=r.getItemLayout(e),a=t?K6(t,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function j6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function O2(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function P2(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=Oa(i.getModel("itemStyle"),f,!0);N(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Kt(i);ee(r,v,{labelFetcher:n,labelDataIndex:t,defaultText:sa(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,A2(r,m==="outside"?h:m,O2(o),i.get(["label","rotate"]))}mv(d,v,n.getRawValue(t),function(y){return qd(e,y)});var g=i.getModel(["emphasis"]);Vt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),se(r,i),j6(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function K6(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var Q6=function(){function r(){}return r}(),z2=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Q6},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(it);function R2(r,e,t,i){var a=r.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new z2({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=n,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var p=new z2({shape:{points:a.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=n,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(a.getVisual("style")),tt(p).seriesIndex=r.seriesIndex,r.get("silent")||(p.on("mousedown",N2),p.on("mousemove",N2)),t&&t.push(p)}var N2=Ap(function(r){var e=this,t=$6(e,r.offsetX,r.offsetY);tt(e).dataIndex=t>=0?t:null},30,!1);function $6(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f<p;f++){var c=f*3;if(l[i]=u,l[a]=n[c+2],s[i]=n[c+i],s[a]=n[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function k2(r,e,t){if(Pi(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function J6(r,e,t){var i=r.type==="polar"?we:ht;return new i({shape:k2(e,t,r),silent:!0,z2:0})}var V2=Y6;function W_(r){r.registerChartView(V2),r.registerSeriesModel(T2),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(Sd,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bd("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rc("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var U2=Math.PI*2,em=Math.PI/180;function B2(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Y_(r,e){var t=B2(r,e),i=r.get("center"),a=r.get("radius");O(a)||(a=[0,a]);var n=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(n,o),l=H(a[0],s/2),u=H(a[1],s/2),f,p,c=r.coordinateSystem;if(c){var h=c.dataToPoint(i);f=h[0]||0,p=h[1]||0}else O(i)||(i=[i,i]),f=H(i[0],n)+t.x,p=H(i[1],o)+t.y;return{cx:f,cy:p,r0:l,r:u}}function Z_(r,e,t){e.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=B2(i,t),s=Y_(i,t),l=s.cx,u=s.cy,f=s.r,p=s.r0,c=-i.get("startAngle")*em,h=i.get("endAngle"),v=i.get("padAngle")*em;h=h==="auto"?c-U2:-h*em;var d=i.get("minAngle")*em,m=d+v,g=0;a.each(n,function(R){!isNaN(R)&&g++});var y=a.getSum(n),x=Math.PI/(y||g)*2,_=i.get("clockwise"),b=i.get("roseType"),S=i.get("stillShowZeroSum"),T=a.getDataExtent(n);T[0]=0;var C=_?1:-1,A=[c,h],D=C*v/2;qf(A,!_),c=A[0],h=A[1];var M=Math.abs(h-c),I=M,L=0,P=c;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(R,U){var V;if(isNaN(R)){a.setItemLayout(U,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:p,r:b?NaN:f});return}b!=="area"?V=y===0&&S?x:R*x:V=M/g,V<m?(V=m,I-=m):L+=R;var B=P+C*V,Z=0,Q=0;v>V?(Z=P+C*V/2,Q=Z):(Z=P+D,Q=B-D),a.setItemLayout(U,{angle:V,startAngle:Z,endAngle:Q,clockwise:_,cx:l,cy:u,r0:p,r:b?kt(R,T,[p,f]):f}),P=B}),I<U2&&g)if(I<=.001){var z=M/g;a.each(n,function(R,U){if(!isNaN(R)){var V=a.getItemLayout(U);V.angle=z;var B=0,Z=0;z<v?(B=c+C*(U+1/2)*z,Z=B):(B=c+C*U*z+D,Z=c+C*(U+1)*z-D),V.startAngle=B,V.endAngle=Z}})}else x=I/L,P=c,a.each(n,function(R,U){if(!isNaN(R)){var V=a.getItemLayout(U),B=V.angle===m?m:R*x,Z=0,Q=0;B<v?(Z=P+C*B/2,Q=Z):(Z=P+D,Q=P+C*B-D),V.startAngle=Z,V.endAngle=Q,P+=C*B}})})}function ua(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=e.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var t7=Math.PI/180;function F2(r,e,t,i,a,n,o,s,l,u){if(r.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var x=d.list[y],_=Math.abs(x.label.y-t),b=i+x.len,S=b*b,T=Math.sqrt((1-Math.abs(_*_/g))*S),C=e+(T+x.len2)*a,A=C-x.label.x,D=x.targetTextWidth-A*a;G2(x,D,!0),x.label.x=C}}function p(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var x=d[y],_=x.label.y>t?g:m,b=Math.abs(x.label.y-t);if(b>=_.maxY){var S=x.label.x-e-x.len2*a,T=i+x.len,C=Math.abs(S)<T?Math.sqrt(b*b/(1-S*S/T/T)):T;_.rB=C,_.maxY=b}_.list.push(x)}f(m),f(g)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-u;r[h].linePoints[1][0]+=v,r[h].label.x=u}Od(r,l,l+o)&&p(r)}function e7(r,e,t,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;X_(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(p=Math.max(p,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var v=r[c];if(!X_(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,d=v.linePoints,m=void 0;v.labelAlignTo==="edge"?h.x<e?m=d[2][0]-v.labelDistance-o-v.edgeDistance:m=o+a-v.edgeDistance-d[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?m=f-o-v.bleedMargin:m=o+a-p-v.bleedMargin:h.x<e?m=h.x-o-v.bleedMargin:m=o+a-h.x-v.bleedMargin,v.targetTextWidth=m,G2(v,m)}}F2(u,e,t,i,1,a,n,o,s,p),F2(l,e,t,i,-1,a,n,o,s,f);for(var c=0;c<r.length;c++){var v=r[c];if(!X_(v)&&v.linePoints){var h=v.label,d=v.linePoints,g=v.labelAlignTo==="edge",y=h.style.padding,x=y?y[1]+y[3]:0,_=h.style.backgroundColor?0:x,b=v.rect.width+_,S=d[1][0]-d[2][0];g?h.x<e?d[2][0]=o+v.edgeDistance+b+v.labelDistance:d[2][0]=o+a-v.edgeDistance-b-v.labelDistance:(h.x<e?d[2][0]=h.x+v.labelDistance:d[2][0]=h.x-v.labelDistance,d[1][0]=d[2][0]+S),d[1][1]=d[2][1]=h.y}}}function G2(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var i=r.label,a=i.style,n=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(e<f||t){var p=n.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var h=e-l,v=e<f?h:t?h>r.unconstrainedWidth?null:h:null;i.setStyle("width",v)}var d=i.getBoundingRect();n.width=d.width;var m=(i.style.margin||0)+2.1;n.height=d.height+m,n.y-=(n.height-p)/2}}}function X_(r){return r.position==="center"}function q_(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*t7,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),C=T.shape,A=T.getTextContent(),D=T.getTextGuideLine(),M=e.getItemModel(S),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),z=I.get("alignTo"),R=H(I.get("edgeDistance"),u),U=I.get("bleedMargin"),V=M.getModel("labelLine"),B=V.get("length");B=H(B,u);var Z=V.get("length2");if(Z=H(Z,u),Math.abs(C.endAngle-C.startAngle)<o){w(A.states,h),A.ignore=!0,D&&(w(D.states,h),D.ignore=!0);return}if(v(A)){var Q=(C.startAngle+C.endAngle)/2,st=Math.cos(Q),ct=Math.sin(Q),pt,Lt,Bt,Et;i=C.cx,a=C.cy;var gt=L==="inside"||L==="inner";if(L==="center")pt=C.cx,Lt=C.cy,Et="center";else{var Pt=(gt?(C.r+C.r0)/2*st:C.r*st)+i,Ct=(gt?(C.r+C.r0)/2*ct:C.r*ct)+a;if(pt=Pt+st*3,Lt=Ct+ct*3,!gt){var ut=Pt+st*(B+l-C.r),At=Ct+ct*(B+l-C.r),ce=ut+(st<0?-1:1)*Z,Yt=At;z==="edge"?pt=st<0?f+R:f+u-R:pt=ce+(st<0?-P:P),Lt=Yt,Bt=[[Pt,Ct],[ut,At],[ce,Yt]]}Et=gt?"center":z==="edge"?st>0?"right":"left":st>0?"left":"right"}var _e=Math.PI,de=0,fr=I.get("rotate");if(vt(fr))de=fr*(_e/180);else if(L==="center")de=0;else if(fr==="radial"||fr===!0){var Ha=st<0?-Q+_e:-Q;de=Ha}else if(fr==="tangential"&&L!=="outside"&&L!=="outer"){var Ir=Math.atan2(st,ct);Ir<0&&(Ir=_e*2+Ir);var Bc=ct>0;Bc&&(Ir=_e+Ir),de=Ir-_e}if(n=!!de,A.x=pt,A.y=Lt,A.rotation=de,A.setStyle({verticalAlign:"middle"}),gt){A.setStyle({align:Et});var zg=A.states.select;zg&&(zg.x+=A.x,zg.y+=A.y)}else{var _n=A.getBoundingRect().clone();_n.applyTransform(A.getComputedTransform());var oT=(A.style.margin||0)+2.1;_n.y-=oT/2,_n.height+=oT,t.push({label:A,labelLine:D,position:L,len:B,len2:Z,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new bt(st,ct),linePoints:Bt,textAlign:Et,labelDistance:P,labelAlignTo:z,edgeDistance:R,bleedMargin:U,rect:_n,unconstrainedWidth:_n.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:gt})}}),!n&&r.get("avoidLabelOverlap")&&e7(t,i,a,l,u,c,f,p);for(var d=0;d<t.length;d++){var m=t[d],g=m.label,y=m.labelLine,x=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),x&&(w(g.states,h),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(y){var b=m.linePoints;x||!b?(w(y.states,h),y.ignore=!0):(u_(b,m.minTurnAngle),OE(b,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new bt(b[0][0],b[0][1])})}}}var r7=function(r){E(e,r);function e(t,i,a){var n=r.call(this)||this;n.z2=2;var o=new yt;return n.setTextContent(o),n.updateData(t,i,a,!0),n}return e.prototype.updateData=function(t,i,a,n){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),p=N(Oa(l.getModel("itemStyle"),f,!0),f);if(isNaN(p.startAngle)){o.setShape(p);return}if(n){o.setShape(p);var c=s.getShallow("animationType");s.ecModel.ssr?(Ut(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=p.cx,o.originY=p.cy):c==="scale"?(o.shape.r=f.r0,Ut(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ut(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,_t(o,{shape:{endAngle:f.endAngle}},s,i))}else Oe(o),_t(o,{shape:p},s,i);o.useStyle(t.getItemVisual(i,"style")),se(o,l);var h=(f.startAngle+f.endAngle)/2,v=s.get("selectedOffset"),d=Math.cos(h)*v,m=Math.sin(h)*v,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Oa(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:d,y:m,shape:Oa(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Oa(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),x=o.getTextContent();y&&N(y.ensureState("select"),{x:d,y:m}),N(x.ensureState("select"),{x:d,y:m}),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ee(n,Kt(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||i.getName(a)});var p=n.getTextContent();n.setTextConfig({position:null,rotation:null}),p.attr({z2:10});var c=t.get(["label","position"]);if(c!=="outside"&&c!=="outer")n.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new pe,this.setTextGuideLine(h)),Cu(this,Au(o),{stroke:u,opacity:Be(s.get(["lineStyle","opacity"]),f,1)})}},e}(we),i7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a,n){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p<o.count();++p)f=o.getItemLayout(p);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=new we({shape:Y_(t,a)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(h){var v=new r7(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var d=s.getItemGraphicEl(v);d.updateData(o,h,u),d.off("click"),l.add(d),o.setItemGraphicEl(h,d)}).remove(function(h){var v=s.getItemGraphicEl(h);en(v,t,h)}).execute(),q_(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="pie",e}(It),H2=i7;function pi(r,e,t){e=O(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=ia(i,e).dimensions,n=new ve(a,r);return n.initData(i,t),n}var a7=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),ka=a7;var n7=ot(),o7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return pi(this,{coordDimensions:["value"],encodeDefaulter:et(hu,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=n7(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=Ry(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ai(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(Rt),W2=o7;function j_(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function K_(r){r.registerChartView(H2),r.registerSeriesModel(W2),rd("pie",r.registerAction),r.registerLayout(et(Z_,"pie")),r.registerProcessor(ua("pie")),r.registerProcessor(j_("pie"))}var s7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(Rt),Y2=s7;var Z2=4,l7=function(){function r(){}return r}(),u7=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new l7},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<Z2,f=this.softClipShape,p;if(u){this._ctx=l;return}for(this._ctx=null,p=this._off;p<a.length;){var c=a[p++],h=a[p++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-n[0]/2,s.y=h-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=p,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,a=t.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,p=-1/0,c=0;c<a.length;){var h=a[c++],v=a[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(v,u),p=Math.max(v,p)}t=this._rect=new rt(l-o/2,u-s/2,f-l+o,p-u+s)}return t},e}(it),f7=function(){function r(){this.group=new K}return r.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,n=i.startIndex*4*2;t=new Float32Array(t.buffer,n,a)}i.setShape("points",t),i.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i){var a=this._newAdded[0],n=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,t,i)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new u7({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;i=i||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=i.clipShape||null,e.symbolProxy=Xt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Z2;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=tt(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var p=e.hoverDataIdx;p>=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),X2=f7;var p7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=la("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new X2:new Ra,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(It),q2=p7;var c7=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(xt),j2=c7;var rm=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$t).models[0]},e.type="cartesian2dAxis",e}(xt);jt(rm,La);var K2={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)"]}}},h7=lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},K2),Q_=lt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},K2),v7=lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Q_),d7=q({logBase:10},Q_),im={category:h7,value:Q_,time:v7,log:d7};var Q2={value:1,category:1,time:1,log:1};function fa(r,e,t,i){w(Q2,function(a,n){var o=lt(lt({},im[n],!0),i,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,p){var c=qn(this),h=c?Ai(f):{},v=p.getTheme();lt(f,v.get(n+"Axis")),lt(f,this.getDefaultOption()),f.type=$2(f),c&&Wr(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Gp.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",$2)}function $2(r){return r.type||(r.data?"category":"value")}var m7=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return k(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Dt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),J2=m7;var am=["x","y"];function tP(r){return r.type==="interval"||r.type==="time"}var g7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=am,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!tP(t)||!tP(i))){var a=t.getExtent(),n=i.getExtent(),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,h=o[1]-n[0]*p,v=this._transform=[f,0,0,p,c,h];this._invTransform=mi([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new rt(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ge(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var a=[];if(this._invTransform)return ge(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-n+t,l=Math.max(a[0],a[1])-o+t;return new rt(n,o,s,l)},e}(J2),eP=g7;var y7=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Qe),rP=y7;function ic(r,e,t){t=t||{};var i=r.coordinateSystem,a=e.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,v=u==="x"?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}n.position=[u==="y"?v[c[l]]:p[0],u==="x"?v[c[l]]:p[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=m[s],n.labelOffset=o?v[c[s]]-v[c.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ae(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-g:g,n.z2=1,n}function $_(r){return r.get("coordinateSystem")==="cartesian2d"}function J_(r){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,$t).models[0];e[i]=n}),e}var tS=Math.log;function nm(r,e,t){var i=jr.prototype,a=i.getTicks.call(t),n=i.getTicks.call(t,!0),o=a.length-1,s=i.getInterval.call(t),l=e_(r,e),u=l.extent,f=l.fixMin,p=l.fixMax;if(r.type==="log"){var c=tS(r.base);u=[tS(u[0])/c,tS(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:p});var h=i.getExtent.call(r);f&&(u[0]=h[0]),p&&(u[1]=h[1]);var v=i.getInterval.call(r),d=u[0],m=u[1];if(f&&p)v=(m-d)/o;else if(f)for(m=u[0]+v*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=xd(v),m=u[0]+v*o;else if(p)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=xd(v),d=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=xd(v));var y=v*o;m=Math.ceil(u[1]/v)*v,d=Qt(m-y),d<0&&u[0]>=0?(d=0,m=Qt(y)):m>0&&u[1]<=0&&(m=0,d=-Qt(y))}var x=(a[0].value-n[0].value)/s,_=(a[o].value-n[o].value)/s;if(i.setExtent.call(r,d+v*x,m+v*_),i.setInterval.call(r,v),(x||_)&&i.setNiceExtent.call(r,d+v,m-v),0)var b}var x7=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=am,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=ft(o),u=l.length;if(u){for(var f=[],p=u-1;p>=0;p--){var c=+l[p],h=o[c],v=h.model,d=h.scale;Hp(d)&&v.get("alignTicks")&&v.get("interval")==null?f.push(h):(Ia(d,v),Hp(d)&&(s=h))}f.length&&(s||(s=f.pop(),Ia(s.scale,s.model)),w(f,function(m){nm(m.scale,m.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){aP(i,"y",o,n)}),w(i.y,function(o){aP(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=e.getBoxLayoutParams(),n=!i&&e.get("containLabel"),o=Zt(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=mE(u);if(f){var p=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[p]-=f[p]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),p=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(p[c],p[1-c]),_7(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===t)return n[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",$t).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",$t).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,nt(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var a=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,p){w(s.y,function(c,h){var v="x"+p+"y"+h,d=new eP(v);d.master=a,d.model=e,a._coordsMap[v]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(c)})});function u(f){return function(p,c){if(eS(p,e)){var h=p.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new rP(f,no(p),[0,0],p.get("type"),h),d=v.type==="category";v.onBand=d&&p.get("boundaryGap"),v.inverse=p.get("inverse"),p.axis=v,v.model=p,v.grid=n,v.index=c,n._axesList.push(v),s[f][c]=v,l[f]++}}}},r.prototype._updateScale=function(e,t){w(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var n=a.model.get("categorySortInfo");a.scale.setSortInfo(n)}}),e.eachSeries(function(a){if($_(a)){var n=J_(a),o=n.xAxisModel,s=n.yAxisModel;if(!eS(o,t)||!eS(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),p=l.getAxis("y");i(u,f),i(u,p)}},this);function i(a,n){w(wu(a,n.dim),function(o){n.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return w(this.getCartesians(),function(a){var n=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(n);nt(t,n)<0&&t.push(n),nt(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(a,n){var o=new r(a,e,t);o.name="grid_"+n,o.resize(a,t,!0),a.coordinateSystem=o,i.push(o)}),e.eachSeries(function(a){if($_(a)){var n=J_(a),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=am,r}();function eS(r,e){return r.getCoordSysModel()===e}function aP(r,e,t,i){t.getAxesOnZeroOf=function(){return n?[n]:[]};var a=r[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)nP(a[l])&&(n=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&nP(a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(p){return p.dim+"_"+p.index}}function nP(r){return r&&r.type!=="category"&&r.type!=="time"&&dE(r)}function _7(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return i-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}var oP=x7;var fo=Math.PI,Ls=function(){function r(e,t){this.group=new K,this.opt=t,this.axisModel=e,q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new K({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(e){return!!sP[e]},r.prototype.add=function(e){sP[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,i){var a=Ff(t-e),n,o;return qa(a)?(o=i>0?"top":"bottom",n="center"):qa(a-fo)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<fo?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),sP={axisLine:function(r,e,t,i){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=e.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0],u=s[0]>l[0];o&&(ge(s,s,o),ge(l,l,o));var f=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new fe({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});rn(p.shape,p.style.lineWidth),p.anid="line",t.add(p);var c=e.get(["axisLine","symbol"]);if(c!=null){var h=e.get(["axisLine","symbolSize"]);F(c)&&(c=[c,c]),(F(h)||vt(h))&&(h=[h,h]);var v=ui(e.get(["axisLine","symbolOffset"])||0,h),d=h[0],m=h[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var x=Xt(c[y],-d/2,-m/2,d,m,f.stroke,!0),_=g.r+g.offset,b=u?l:s;x.attr({rotation:g.rotate,x:b[0]+_*Math.cos(r.rotation),y:b[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(r,e,t,i){var a=w7(t,i,e,r),n=C7(t,i,e,r);if(b7(e,n,a),T7(t,i,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Nd(k(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));kd(o)}},axisName:function(r,e,t,i){var a=ae(r.axisName,e.get("name"));if(a){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,p=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,uP(n)?r.labelOffset+o*l:0],c,h=e.get("nameRotate");h!=null&&(h=h*fo/180);var v;uP(n)?c=Ls.innerTextLayout(r.rotation,h??r.rotation,o):(c=S7(r.rotation,n,h||0,u),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=s.getFont(),m=e.get("nameTruncate",!0)||{},g=m.ellipsis,y=ae(r.nameTruncateMaxWidth,m.maxWidth,v),x=new yt({x:p[0],y:p[1],rotation:c.rotation,silent:Ls.isLabelSilent(e),style:Ht(s,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(ji({el:x,componentModel:e,itemName:a}),x.__fullText=a,x.anid="name",e.get("triggerEvent")){var _=Ls.makeAxisEventDataBase(e);_.targetType="axisName",_.name=a,tt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function S7(r,e,t,i){var a=Ff(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return qa(a-fo/2)?(o=l?"bottom":"top",n="center"):qa(a-fo*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<fo*1.5&&a>fo/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function b7(r,e,t){if(!Ld(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],p=t[t.length-1],c=t[t.length-2];i===!1?(zi(n),zi(u)):lP(n,o)&&(i?(zi(o),zi(f)):(zi(n),zi(u))),a===!1?(zi(s),zi(p)):lP(l,s)&&(a?(zi(l),zi(c)):(zi(s),zi(p)))}}function zi(r){r&&(r.ignore=!0)}function lP(r,e){var t=r&&r.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var a=Ln([]);return Rr(a,a,-r.rotation),t.applyTransform(zr([],a,r.getLocalTransform())),i.applyTransform(zr([],a,e.getLocalTransform())),t.intersect(i)}}function uP(r){return r==="middle"||r==="center"}function fP(r,e,t,i,a){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ge(o,o,e),ge(s,s,e));var f=new fe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});rn(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,n.push(f)}return n}function w7(r,e,t,i){var a=t.axis,n=t.getModel("axisTick"),o=n.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=i.tickDirection*n.get("length"),u=a.getTicksCoords(),f=fP(u,e.transform,l,q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<f.length;p++)r.add(f[p]);return f}}function T7(r,e,t,i){var a=t.axis,n=t.getModel("minorTick");if(!(!n.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=n.getModel("lineStyle"),l=i*n.get("length"),u=q(s.getLineStyle(),q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var p=fP(o[f],e.transform,l,u,"minorticks_"+f),c=0;c<p.length;c++)r.add(p[c])}}function C7(r,e,t,i){var a=t.axis,n=ae(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!n||a.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(ae(i.labelRotate,o.get("rotate"))||0)*fo/180,f=Ls.innerTextLayout(i.rotation,u,i.labelDirection),p=t.getCategories&&t.getCategories(!0),c=[],h=Ls.isLabelSilent(t),v=t.get("triggerEvent");return w(l,function(d,m){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,y=d.formattedLabel,x=d.rawLabel,_=o;if(p&&p[g]){var b=p[g];j(b)&&b.textStyle&&(_=new zt(b.textStyle,o,t.ecModel))}var S=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(g),C=_.getShallow("align",!0)||f.textAlign,A=at(_.getShallow("alignMinLabel",!0),C),D=at(_.getShallow("alignMaxLabel",!0),C),M=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||f.textVerticalAlign,I=at(_.getShallow("verticalAlignMinLabel",!0),M),L=at(_.getShallow("verticalAlignMaxLabel",!0),M),P=new yt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(d.level||0),style:Ht(_,{text:y,align:m===0?A:m===l.length-1?D:C,verticalAlign:m===0?I:m===l.length-1?L:M,fill:X(S)?S(a.type==="category"?x:a.type==="value"?g+"":g,m):S})});if(P.anid="label_"+g,v){var z=Ls.makeAxisEventDataBase(t);z.targetType="axisLabel",z.value=x,z.tickIndex=m,a.type==="category"&&(z.dataIndex=g),tt(P).eventData=z}e.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}var ur=Ls;function pP(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return A7(t,r,e),t.seriesInvolved&&M7(t,r),t}function A7(r,e,t){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];w(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Lu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,p=f.getModel("tooltip",i);if(w(s.getAxes(),et(d,!1,null)),s.getTooltipAxes&&i&&p.get("show")){var c=p.get("trigger")==="axis",h=p.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(p.get(["axisPointer","axis"]));(c||h)&&w(v.baseAxes,et(d,h?"cross":!0,c)),h&&w(v.otherAxes,et(d,"cross",!1))}function d(m,g,y){var x=y.model.getModel("axisPointer",a),_=x.get("show");if(!(!_||_==="auto"&&!m&&!iS(x))){g==null&&(g=x.get("triggerTooltip")),x=m?D7(y,p,a,e,m,g):x;var b=x.get("snap"),S=x.get("triggerEmphasis"),T=Lu(y.model),C=g||b||y.type==="category",A=r.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:g,triggerEmphasis:S,involveSeries:C,snap:b,useHandle:iS(x),seriesModels:[],linkGroup:null};u[T]=A,r.seriesInvolved=r.seriesInvolved||C;var D=I7(n,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[T]=A,M.mapper=n[D].mapper,A.linkGroup=M}}}})}function D7(r,e,t,i,a,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(c){l[c]=$(o.get(c))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var p=l.lineStyle=o.get("crossStyle");p&&q(u,p.textStyle)}}return r.model.getModel("axisPointer",new zt(l,t,i))}function M7(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!i||a==="none"||a===!1||a==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Lu(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function I7(r,e){for(var t=e.model,i=e.dim,a=0;a<r.length;a++){var n=r[a]||{};if(rS(n[i+"AxisId"],t.id)||rS(n[i+"AxisIndex"],t.componentIndex)||rS(n[i+"AxisName"],t.name))return a}}function rS(r,e){return r==="all"||O(r)&&nt(r,e)>=0||r===e}function cP(r){var e=om(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=iS(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function om(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Lu(r)]}function hP(r){var e=om(r);return e&&e.axisPointerModel}function iS(r){return!!r.get(["handle","show"])}function Lu(r){return r.type+"||"+r.id}var vP={},L7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this.axisPointerClass&&cP(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,i,a,n){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,a){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=hP(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){vP[t]=i},e.getAxisPointerClass=function(t){return t&&vP[t]},e.type="axis",e}(Ot),Kr=L7;var nS=ot();function sm(r,e,t,i){var a=t.axis;if(!a.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,clamp:!0});if(u.length){var f=s.length,p=nS(r).splitAreaColors,c=Y(),h=0;if(p)for(var v=0;v<u.length;v++){var d=p.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=O(s)?s:[s];for(var v=1;v<u.length;v++){var y=a.toGlobalCoord(u[v].coord),x=void 0,_=void 0,b=void 0,S=void 0;a.isHorizontal()?(x=m,_=l.y,b=y-x,S=l.height,m=x+b):(x=l.x,_=m,b=l.width,S=y-_,m=_+S);var T=u[v-1].tickValue;T!=null&&c.set(T,h),e.add(new ht({anid:T!=null?"area_"+T:null,shape:{x,y:_,width:b,height:S},style:q({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%f}nS(r).splitAreaColors=c}}}function lm(r){nS(r).splitAreaColors=null}var E7=["axisLine","axisTickLabel","axisName"],P7=["splitArea","splitLine","minorSplitLine"],dP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new K,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=ic(s,t),u=new ur(t,N({handleAutoShown:function(p){for(var c=s.coordinateSystem.getCartesians(),h=0;h<c.length;h++)if(Hp(c[h].getOtherAxis(t.axis).scale))return!0;return!1}},l));w(E7,u.add,u),this._axisGroup.add(u.getGroup()),w(P7,function(p){t.get([p,"show"])&&z7[p](this,this._axisGroup,t,s)},this);var f=n&&n.type==="changeAxisOrder"&&n.isInitSort;f||an(o,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)}},e.prototype.remove=function(){lm(this)},e.type="cartesianAxis",e}(Kr),z7={splitLine:function(r,e,t,i){var a=t.axis;if(!a.scale.isBlank()){var n=t.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=O(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,p=a.getTicksCoords({tickModel:n}),c=[],h=[],v=o.getLineStyle(),d=0;d<p.length;d++){var m=a.toGlobalCoord(p[d].coord);u?(c[0]=m,c[1]=l.y,h[0]=m,h[1]=l.y+l.height):(c[0]=l.x,c[1]=m,h[0]=l.x+l.width,h[1]=m);var g=f++%s.length,y=p[d].tickValue,x=new fe({anid:y!=null?"line_"+p[d].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:q({stroke:s[g]},v),silent:!0});rn(x.shape,v.lineWidth),e.add(x)}}},minorSplitLine:function(r,e,t,i){var a=t.axis,n=t.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var f=[],p=[],c=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var d=a.toGlobalCoord(u[h][v].coord);l?(f[0]=d,f[1]=s.y,p[0]=d,p[1]=s.y+s.height):(f[0]=s.x,f[1]=d,p[0]=s.x+s.width,p[1]=d);var m=new fe({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:c,silent:!0});rn(m.shape,c.lineWidth),e.add(m)}},splitArea:function(r,e,t,i){sm(r,e,t,i)}},oS=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(dP);var mP=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=oS.type,t}return e.type="yAxis",e}(dP);var R7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new ht({shape:t.coordinateSystem.getRect(),style:q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Ot),gP={offset:0};function um(r){r.registerComponentView(R7),r.registerComponentModel(j2),r.registerCoordinateSystem("cartesian2d",oP),fa(r,"x",rm,gP),fa(r,"y",rm,gP),r.registerComponentView(oS),r.registerComponentView(mP),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function sS(r){St(um),r.registerSeriesModel(Y2),r.registerChartView(q2),r.registerLayout(la("scatter"))}function lS(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],a=e.coordinateSystem;if(a){var n=a.getIndicatorAxes();w(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=yP(f)?f:xP(a)})}),t.each(function(o){var s=WT(i[o],function(l){return yP(l)})||xP(a);i[o].push(s.slice()),t.setItemLayout(o,i[o])})}})}function yP(r){return!isNaN(r[0])&&!isNaN(r[1])}function xP(r){return[r.cx,r.cy]}function uS(r){var e=r.polar;if(e){O(e)||(e=[e]);var t=[];w(e,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],O(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):t.push(i)}),r.polar=t}w(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var N7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var v=c.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var d=ea(c.getItemVisual(h,"symbolSize")),m=Xt(v,-1,-1,2,2),g=c.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:g*Math.PI/180||0}),m}}function f(c,h,v,d,m,g){v.removeAll();for(var y=0;y<h.length-1;y++){var x=u(d,m);x&&(x.__dimIdx=y,c[y]?(x.setPosition(c[y]),dt[g?"initProps":"updateProps"](x,{x:h[y][0],y:h[y][1]},t,m)):x.setPosition(h[y]),v.add(x))}}function p(c){return k(c,function(h){return[n.cx,n.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var v=new he,d=new pe,m={shape:{points:h}};v.shape.points=p(h),d.shape.points=p(h),Ut(v,m,t,c),Ut(d,m,t,c);var g=new K,y=new K;g.add(d),g.add(v),g.add(y),f(d.shape.points,h,y,s,c,!0),s.setItemGraphicEl(c,g)}}).update(function(c,h){var v=l.getItemGraphicEl(h),d=v.childAt(0),m=v.childAt(1),g=v.childAt(2),y={shape:{points:s.getItemLayout(c)}};y.shape.points&&(f(d.shape.points,y.shape.points,g,s,c,!1),Oe(m),Oe(d),_t(d,y,t),_t(m,y,t),s.setItemGraphicEl(c,v))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var v=s.getItemModel(h),d=c.childAt(0),m=c.childAt(1),g=c.childAt(2),y=s.getItemVisual(h,"style"),x=y.fill;o.add(c),d.useStyle(q(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),se(d,v,"lineStyle"),se(m,v,"areaStyle");var _=v.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();m.ignore=b,w(["emphasis","select","blur"],function(C){var A=v.getModel([C,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState(C).ignore=D&&b}),m.useStyle(q(_.getAreaStyle(),{fill:x,opacity:.7,decal:y.decal}));var S=v.getModel("emphasis"),T=S.getModel("itemStyle").getItemStyle();g.eachChild(function(C){if(C instanceof re){var A=C.style;C.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else C.useStyle(y),C.setColor(x),C.style.strokeNoScale=!0;var D=C.ensureState("emphasis");D.style=$(T);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),h);(M==null||isNaN(M))&&(M=""),ee(C,Kt(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:x,defaultOpacity:y.opacity})}),Vt(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(It),_P=N7;var O7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return pi(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=Yv(this,t);return ie("section",{header:u,sortBlocks:!0,blocks:k(s,function(p){var c=n.get(n.mapDimension(p.dim),t);return ie("nameValue",{markerType:"subItem",markerColor:f,name:p.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(k(a.dimensions,function(u){return i.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Rt),SP=O7;var ac=im.value;function fm(r,e){return q({show:e},r)}var k7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),a=this.get("scale"),n=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"]),p=this.get("axisNameGap"),c=this.get("triggerEvent"),h=k(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=l;v.color!=null&&(d=q({color:v.color},l));var m=lt($(v),{boundaryGap:t,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:p,nameTextStyle:d,triggerEvent:c},!1);if(F(f)){var g=m.name;m.name=f.replace("{value}",g??"")}else X(f)&&(m.name=f(m.name,m));var y=new zt(m,null,this.ecModel);return jt(y,La.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:lt({lineStyle:{color:"#bbb"}},ac.axisLine),axisLabel:fm(ac.axisLabel,!1),axisTick:fm(ac.axisTick,!1),splitLine:fm(ac.splitLine,!0),splitArea:fm(ac.splitArea,!0),indicator:[]},e}(xt),bP=k7;var V7=["axisLine","axisTickLabel","axisName"],U7=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes(),n=k(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ur(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(n,function(o){w(V7,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),h=u.get("color"),v=O(c)?c:[c],d=O(h)?h:[h],m=[],g=[];function y(z,R,U){var V=U%R.length;return z[V]=z[V]||[],V}if(n==="circle")for(var x=a[0].getTicksCoords(),_=i.cx,b=i.cy,S=0;S<x.length;S++){if(f){var T=y(m,v,S);m[T].push(new _r({shape:{cx:_,cy:b,r:x[S].coord}}))}if(p&&S<x.length-1){var T=y(g,d,S);g[T].push(new ls({shape:{cx:_,cy:b,r0:x[S].coord,r:x[S+1].coord}}))}}else for(var C,A=k(a,function(z,R){var U=z.getTicksCoords();return C=C==null?U.length-1:Math.min(U.length-1,C),k(U,function(V){return i.coordToPoint(V.coord,R)})}),D=[],S=0;S<=C;S++){for(var M=[],I=0;I<a.length;I++)M.push(A[I][S]);if(M[0]&&M.push(M[0].slice()),f){var T=y(m,v,S);m[T].push(new pe({shape:{points:M}}))}if(p&&D){var T=y(g,d,S-1);g[T].push(new he({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();w(g,function(z,R){this.group.add(dr(z,{style:q({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),w(m,function(z,R){this.group.add(dr(z,{style:q({fill:"none",stroke:v[R%v.length]},L),silent:!0}))},this)},e.type="radar",e}(Ot),wP=U7;var B7=function(r){E(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return e}(Qe),TP=B7;var F7=function(){function r(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=k(e.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new TP(o,new jr);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],a=i.angle,n=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[n,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(t*t+i*i);t/=a,i/=a;for(var n=Math.atan2(-i,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],p=Math.abs(n-f.angle);p<o&&(s=f,l=u,o=p)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var i=e.get("center"),a=t.getWidth(),n=t.getHeight(),o=Math.min(a,n)/2;this.cx=H(i[0],a),this.cy=H(i[1],n),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(F(s)||vt(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),w(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(e,t){var i=this._indicatorAxes,a=this._model;w(i,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();w(i,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var n=a.get("splitNumber"),o=new jr;o.setExtent(0,n),o.setInterval(1),w(i,function(s,l){nm(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var i=[];return e.eachComponent("radar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=i[a.get("radarIndex")||0])}),i},r.dimensions=[],r}(),CP=F7;function AP(r){r.registerCoordinateSystem("radar",CP),r.registerComponentModel(bP),r.registerComponentView(wP),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function fS(r){St(AP),r.registerChartView(_P),r.registerSeriesModel(SP),r.registerLayout(lS),r.registerProcessor(ua("radar")),r.registerPreprocessor(uS)}var DP="\0_ec_interaction_mutex";function MP(r,e,t){var i=cS(r);i[e]=t}function IP(r,e,t){var i=cS(r),a=i[e];a===t&&(i[e]=null)}function pS(r,e){return!!cS(r)[e]}function cS(r){return r[DP]||(r[DP]={})}wr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},te);var G7=function(r){E(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var a=W(i._mousedownHandler,i),n=W(i._mousemoveHandler,i),o=W(i._mouseupHandler,i),s=W(i._mousewheelHandler,i),l=W(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=q($(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",a),t.on("mousemove",n),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",a),t.off("mousemove",n),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!ty(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!pm("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||pS(this._zr,"globalPan"))){var i=t.offsetX,a=t.offsetY,n=this._x,o=this._y,s=i-n,l=a-o;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&Pr(t.event),EP(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:i,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){ty(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=pm("zoomOnMouseWheel",t,this._opt),a=pm("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!i&&!a)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;hS(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);hS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!pS(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:1/1.1;hS(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ne);function hS(r,e,t,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Pr(i.event),EP(r,e,t,i,a))}function EP(r,e,t,i,a){a.isAvailableBehavior=W(pm,null,t,i),r.trigger(e,a)}function pm(r,e,t){var i=t[r];return!r||i&&(!F(i)||e.event[i+"Key"])}var Va=G7;function Eu(r,e,t){var i=r.target;i.x+=e,i.y+=t,i.dirty()}function Pu(r,e,t,i){var a=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(i-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var H7={axisPointer:1,tooltip:1,brush:1};function po(r,e,t){var i=e.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==t&&!H7.hasOwnProperty(i.mainType)&&a&&a.model!==t}function cm(r){if(F(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var dS,hm={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"},PP=ft(hm),vm={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zP=ft(vm),W7=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=cm(e);this._defsUsePending=[];var a=new K;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ci(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;X7(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=dm(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&&(p=gS(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new K,a.add(h),h.scaleX=h.scaleY=p.scale,h.x=p.x,h.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new ht({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=dS[s];if(f&&J(dS,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=RP[s];if(h&&J(RP,s)){var v=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new Ka({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),Y7(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){dS={g:function(e,t){var i=new K;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new ht;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new _r;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new fe;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new rp;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=kP(i));var n=new he({shape:{points:a||[]},silent:!0});return Ri(t,n),ci(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=kP(i));var n=new pe({shape:{points:a||[]},silent:!0});return Ri(t,n),ci(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new re;return Ri(t,i),ci(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new K;return Ri(t,s),ci(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new K;return Ri(t,s),ci(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=ov(i);return Ri(t,a),ci(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),RP={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new Aa(e,t,i,a);return NP(r,n),OP(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new fv(e,t,i);return NP(r,a),OP(r,a),a}};function NP(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function OP(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};BP(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ri(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function kP(r){for(var e=dm(r),t=[],i=0;i<e.length;i+=2){var a=parseFloat(e[i]),n=parseFloat(e[i+1]);t.push([a,n])}return t}function ci(r,e,t,i,a){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(K7(r,e),BP(r,o,s),i||Q7(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=VP(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=VP(n,"stroke",o.stroke,t)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),a&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=k(dm(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function Y7(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Z7=/^url\(\s*#(.*?)\)/;function VP(r,e,t,i){var a=t&&t.match(Z7);if(a){var n=Fe(a[1]);i.push([r,e,n]);return}return t==="none"&&(t=null),t}function X7(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}var q7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dm(r){return r.match(q7)||[]}var j7=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,mS=Math.PI/180;function K7(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],a=null;t.replace(j7,function(p,c,h){return i.push(c,h),""});for(var n=i.length-1;n>0;n-=2){var o=i[n],s=i[n-1],l=dm(o);switch(a=a||Me(),s){case"translate":tr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pl(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Rr(a,a,-parseFloat(l[0])*mS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*mS);zr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*mS);zr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var UP=/([^\s:;]+)\s*:\s*([^:;]+)/g;function BP(r,e,t){var i=r.getAttribute("style");if(i){UP.lastIndex=0;for(var a;(a=UP.exec(i))!=null;){var n=a[1],o=J(hm,n)?hm[n]:null;o&&(e[o]=a[2]);var s=J(vm,n)?vm[n]:null;s&&(t[s]=a[2])}}}function Q7(r,e,t){for(var i=0;i<PP.length;i++){var a=PP[i],n=r.getAttribute(a);n!=null&&(e[hm[a]]=n)}for(var i=0;i<zP.length;i++){var a=zP[i],n=r.getAttribute(a);n!=null&&(t[vm[a]]=n)}}function gS(r,e){var t=e.width/r.width,i=e.height/r.height,a=Math.min(t,i);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function FP(r,e){var t=new W7;return t.parse(r,e)}var $7=Y(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),GP=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Y(),this._freedGraphics=[],this._mapName=e,this._parsedXML=cm(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=t8(e.named),i=t.regions,a=t.regionsMap;this._regions=i,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&FP(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,ne(i!=null)}catch(m){throw new Error(`Invalid svg format
  14. `+m.message)}var a=new K;a.add(i),a.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,p=void 0,c=void 0;if(n!=null?(u=0,p=n):s&&(u=s.x,p=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=i.getBoundingRect();u==null&&(u=h.x,p=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new rt(u,f,p,c)}if(s){var v=gS(s,l);i.scaleX=i.scaleY=v.scale,i.x=v.x,i.y=v.y}a.setClipPath(new ht({shape:l.plain()}));var d=[];return w(t.named,function(m){$7.get(m.svgNodeTagLower)!=null&&(d.push(m),J7(m.el))}),{root:a,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r}();function J7(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function t8(r){var e=[],t=Y();return w(r,function(i){if(i.namedFrom==null){var a=new bE(i.name,i.el);e.push(a),t.set(i.name,a)}}),{regions:e,regionsMap:t}}var yS=[126,25],HP="\u5357\u6D77\u8BF8\u5C9B",Ps=[[[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(co=0;co<Ps.length;co++)for(Es=0;Es<Ps[co].length;Es++)Ps[co][Es][0]/=10.5,Ps[co][Es][1]/=-10.5/.75,Ps[co][Es][0]+=yS[0],Ps[co][Es][1]+=yS[1];var Es,co;function xS(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===HP)return;e.push(new Pd(HP,k(Ps,function(i){return{type:"polygon",exterior:i}}),yS))}}var e8={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function _S(r,e){if(r==="china"){var t=e8[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var r8=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function SS(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:r8[0]})}var i8="name",WP=function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=Y(),this._mapName=e,this._specialAreas=i,this._geoJSON=n8(t)}return r.prototype.load=function(e,t){t=t||i8;var i=this._parsedMap.get(t);if(!i){var a=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:a,boundingRect:a8(a)})}var n=Y(),o=[];return w(i.regions,function(s){var l=s.name;e&&J(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new rt(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,a;try{a=i?o_(i,e):[]}catch(n){throw new Error(`Invalid geoJson format
  15. `+n.message)}return xS(t,a),w(a,function(n){var o=n.name;_S(t,n),SS(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function a8(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function n8(r){return F(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var nc=Y(),Dr={registerMap:function(r,e,t){if(e.svg){var i=new GP(r,e.svg);nc.set(r,i)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var i=new WP(r,a,t);nc.set(r,i)}},getGeoResource:function(r){return nc.get(r)},getMapForUser:function(r){var e=nc.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=nc.get(r);if(i)return i.load(e,t)}};var bS=["rect","circle","line","ellipse","polygon","polyline","path"],o8=Y(bS),s8=Y(bS.concat(["g"])),l8=Y(bS.concat(["g"])),$P=ot();function mm(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function YP(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var u8=function(){function r(e){var t=new K;this.uid=Ci("ec_map_draw"),this._controller=new Va(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new K),t.add(this._svgGroup=new K)}return r.prototype.draw=function(e,t,i,a,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===e&&(s=g.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,p=l.getTransformInfo(),c=p.raw,h=p.roam,v=!u.childAt(0)||n;v?(f.x=h.x,f.y=h.y,f.scaleX=h.scaleX,f.scaleY=h.scaleY,f.dirty()):_t(f,h,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Y(),i=Y(),a=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,v){return v&&(h=v(h)),h&&[h[0]*n.scaleX+n.x,h[1]*n.scaleY+n.y]}function p(h){for(var v=[],d=!u&&l&&l.project,m=0;m<h.length;++m){var g=f(h[m],d);g&&v.push(g)}return v}function c(h){return{shape:{points:p(h)}}}a.removeAll(),w(e.geo.regions,function(h){var v=h.name,d=t.get(v),m=i.get(v)||{},g=m.dataIdx,y=m.regionModel;d||(d=t.set(v,new K),a.add(d),g=s?s.indexOfName(v):null,y=e.isGeo?o.getRegionModel(v):s?s.getItemModel(g):null,i.set(v,{dataIdx:g,regionModel:y}));var x=[],_=[];w(h.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=QP(C,u)),w(C,function(D){x.push(new he(c(D)))})}else{var A=T.points;u&&(A=QP(A,u,!0)),w(A,function(D){_.push(new pe(c(D)))})}});var b=f(h.getCenter(),l&&l.project);function S(T,C){if(T.length){var A=new iu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(A),ZP(e,A,g,y),XP(e,A,v,y,o,g,b),C&&(YP(A),w(A.states,YP))}}S(x),S(_,!0)}),t.each(function(h,v){var d=i.get(v),m=d.dataIdx,g=d.regionModel;qP(e,h,v,g,o,m),jP(e,h,v,g,o),KP(e,h,v,g,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=Y(),n=!1;w(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,p=o.el,c=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(o8.get(f)!=null&&p instanceof be&&ZP(e,p,c,h),p instanceof be&&(p.culling=!0),p.z2EmphasisLift=0,!o.namedFrom&&(l8.get(f)!=null&&XP(e,p,s,h,l,c,null),qP(e,p,s,h,l,c),jP(e,p,s,h,l),s8.get(f)!=null)){var v=KP(e,p,s,h,l);v==="self"&&(n=!0);var d=a.get(s)||a.set(s,[]);d.push(p)}},this),this._enableBlurEntireSVG(n,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=i.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Yi(n);var o=n.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),n.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(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var n=a.get(e);return n?[n]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Dr.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Dr.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,i){var a=e.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),n.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Eu(o,u.dx,u.dy),i.dispatchAction(N(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Pu(o,u.scale,u.originX,u.originY),i.dispatchAction(N(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,f,p){return a.containPoint([f,p])&&!po(u,i,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=$P(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,i,a){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){n._mouseDownFlag&&(n._mouseDownFlag=!1)}))},r}();function ZP(r,e,t,i){var a=i.getModel("itemStyle"),n=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=mm(a),u=mm(n),f=mm(s),p=mm(o),c=r.data;if(c){var h=c.getItemVisual(t,"style"),v=c.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=ra(v,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=p,Yi(e)}function XP(r,e,t,i,a,n,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),f=s&&s.getItemLayout(n);if(l||u||f&&f.showLabel){var p=l?t:n,c=void 0;(!s||n>=0)&&(c=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ee(e,Kt(i),{labelFetcher:c,labelDataIndex:p,defaultText:t},h);var v=e.getTextContent();if(v&&($P(v).ignore=v.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function qP(r,e,t,i,a,n){r.data?r.data.setItemGraphicEl(n,e):tt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:i&&i.option||{}}}function jP(r,e,t,i,a){r.data||ji({el:e,componentModel:a,itemName:t,itemTooltipOption:i.get("tooltip")})}function KP(r,e,t,i,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return Vt(e,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&TD(e,a,t),o}function QP(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}var gm=u8;var f8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new gm(a);o.add(s.group),s.draw(t,i,a,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,i,a){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,p=u.offset,c=new _r({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+p*9,cy:f[1],r:3},silent:!0,z2:8+(p?0:Qa+1)});if(!p){var h=t.mainSeries.getData(),v=n.getName(l),d=h.indexOfName(v),m=n.getItemModel(l),g=m.getModel("label"),y=h.getItemGraphicEl(d);ee(c,Kt(m),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(d,_)}},defaultText:v}),c.disableLabelAnimation=!0,g.get("position")||c.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(x){os(c,x)}}o.add(c)}}})},e.type="map",e}(It),JP=f8;var p8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var a=this.getData().getName(i),n=this.coordinateSystem,o=n.getRegion(a);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=pi(this,{coordDimensions:["value"],encodeDefaulter:et(hu,this)}),a=Y(),n=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);a.set(l,!0)}var u=Dr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w(u.regions,function(f){var p=f.name;a.get(p)||n.push(p)}),i.appendValues([],n),i},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var p=l[f].originalData.indexOfName(s),c=n.mapDimension("value");isNaN(l[f].originalData.get(c,p))||u.push(l[f].name)}return ie("section",{header:u.join(", "),noHeader:!u.length,blocks:[ie("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",a=Xt(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Rt),tz=p8;function c8(r,e){var t={};return w(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f<u;f++)s=Math.min(s,t[n][f]),l=Math.max(l,t[n][f]),o+=t[n][f];var p;return e==="min"?p=s:e==="max"?p=l:e==="average"?p=o/u:p=o,u===0?NaN:p})}function wS(r){var e={};r.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),a=i?"o"+i.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),w(e,function(t,i){for(var a=c8(k(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(var n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=n===0&&!t[n].getHostGeoModel(),t[n].setData(a.cloneShallow()),t[n].mainSeries=t[0]})}function TS(r){var e={};r.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var a={};w(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var p=l.getName(f),c=s.getRegion(p);if(!(!c||isNaN(u))){var h=a[p]||0,v=s.dataToPoint(c.getCenter());a[p]=h+1,l.setItemLayout(f,{point:v,offset:h})}})});var n=t.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!a[s],n.setItemLayout(o,l)}),e[i]=!0}})}var ez=ge,h8=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new Nr,i._rawTransformable=new Nr,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,a,n){return this._rect=new rt(t,i,a,n),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,a,n){this._transformTo(t,i,a,n),this._viewRect=new rt(t,i,a,n)},e.prototype._transformTo=function(t,i,a,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new rt(t,i,a,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[H(t[0],i.getWidth()),H(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,a=t.y+t.height/2;return[i,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,a=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=ge([],n,t),a=ge([],a,t),i.originX=n[0],i.originY=n[1],i.x=a[0]-n[0],i.y=a[1]-n[1],i.scaleX=i.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),bf(this.transform||(this.transform=[]),i.transform||Me()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],mi(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,a=new Nr;return a.transform=i.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,i,a){var n=i?this._rawTransform:this.transform;return a=a||[],n?ez(a,t,n):Ge(a,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?ez([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,a){var n=rz(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=rz(i);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Nr);function rz(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var dn=h8;var v8={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},CS=["lng","lat"],az=function(r){E(e,r);function e(t,i,a){var n=r.call(this,t)||this;n.dimensions=CS,n.type="geo",n._nameCoordMap=Y(),n.map=i;var o=a.projection,s=Dr.load(i,a.nameMap,a.nameProperty),l=Dr.getGeoResource(i),u=n.resourceType=l?l.type:null,f=n.regions=s.regions,p=v8[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var c;if(o)for(var h=0;h<f.length;h++){var v=f[h].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return n.setBoundingRect(c.x,c.y,c.width,c.height),n.aspectScale=o?1:at(a.aspectScale,p.aspectScale),n._invertLongitute=o?!1:p.invertLongitute,n}return e.prototype._transformTo=function(t,i,a,n){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 rt(t,i,a,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,a=0;a<i.length;a++){var n=i[a];if(n.type==="geoJSON"&&n.contain(t))return i[a]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,a){if(F(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.projectedToPoint(t,i,a)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,a){return r.prototype.dataToPoint.call(this,t,i,a)},e.prototype.convertToPixel=function(t,i,a){var n=iz(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=iz(i);return n===this?n.pointToData(a):null},e}(dn);jt(az,dn);function iz(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",$t).models[0]||{}).coordinateSystem:null}var AS=az;function nz(r,e){var t=r.get("boundingCoords");if(t!=null){var i=t[0],a=t[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var n=this.projection;if(n){var o=i[0],s=i[1],l=a[0],u=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var f=function(S,T,C,A){for(var D=C-S,M=A-T,I=0;I<=100;I++){var L=I/100,P=n.project([S+D*L,T+M*L]);ti(i,i,P),ei(a,a,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1])}}var p=this.getBoundingRect(),c=r.get("layoutCenter"),h=r.get("layoutSize"),v=e.getWidth(),d=e.getHeight(),m=p.width/p.height*this.aspectScale,g=!1,y,x;c&&h&&(y=[H(c[0],v),H(c[1],d)],x=H(h,Math.min(v,d)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(x)&&(g=!0));var _;if(g)_={},m>1?(_.width=x,_.height=x/m):(_.height=x,_.width=x*m),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var b=r.getBoxLayoutParams();b.aspect=m,_=Zt(b,{width:v,height:d})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function d8(r,e){w(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var m8=function(){function r(){this.dimensions=CS}return r.prototype.create=function(e,t){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new AS(l+s,l,N({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=nz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var n={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),w(n,function(o,s){var l=k(o,function(f){return f.get("nameMap")}),u=new AS(s,s,N({nameMap:Cl(l)},a(o[0])));u.zoomLimit=ae.apply(null,k(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=nz,u.resize(o[0],t),w(o,function(f){f.coordinateSystem=u,d8(u,f)})}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=Y(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=Dr.load(t,i,a);return w(l.regions,function(u){var f=u.name;!o.get(f)&&n.push({name:f})}),n},r}(),g8=new m8,ym=g8;var y8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Dr.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),ai(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=ym.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var a={};this._optionModelMap=$e(i.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new zt(o,t,t.ecModel)),o.selected&&(a[s]=!0)),n},Y()),i.selectedMap||(i.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new zt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var a=this.getRegionModel(t),n=i==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(X(n))return o.status=i,n(o);if(F(n))return n.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var i=this.option,a=i.selectedMode;if(a){a!=="multiple"&&(i.selectedMap=null);var n=i.selectedMap||(i.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(xt),oz=y8;function sz(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function zu(r,e,t,i){var a=r.getZoom(),n=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(sz(r,s),i)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),p=(e.originY-r.y)*(o-1);r.x-=f,r.y-=p,r.updateTransform(),r.setCenter(sz(r,s),i),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var x8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,a,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new gm(a));var o=this._mapDraw;o.draw(t,i,a,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,a)},e.prototype._handleRegionClick=function(t){var i;ta(t.target,function(a){return(i=tt(a).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,a){var n=this;this._mapDraw.group.traverse(function(o){var s=tt(o).eventData;if(s)return n._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Ot),lz=x8;function _8(r,e,t){Dr.registerMap(r,e,t)}function oc(r){r.registerCoordinateSystem("geo",ym),r.registerComponentModel(oz),r.registerComponentView(lz),r.registerImpl("registerMap",_8),r.registerImpl("getMap",function(t){return Dr.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(a,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;w(u.regions,function(p){o[p.name]=l.isSelected(p.name)||!1});var f=[];w(o,function(p,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,a){var n=t.componentType||"series";i.eachComponent({mainType:n,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=zu(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&w(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function DS(r){St(oc),r.registerChartView(JP),r.registerSeriesModel(tz),r.registerLayout(TS),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,wS),rd("map",r.registerAction)}function uz(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,a;i=t.pop();)if(a=i.children,i.isExpand&&a.length)for(var n=a.length,o=n-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function fz(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){S8(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=b8(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function pz(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function LS(r){return arguments.length?r:C8}function zs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function cz(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function S8(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function b8(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=MS(s),n=IS(n),s&&n;){a=MS(a),o=IS(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(T8(w8(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!MS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!IS(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function MS(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function IS(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function w8(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function T8(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function C8(r,e){return r.parentNode===e.parentNode?1:2}var A8=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),D8=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new A8},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=H(i.forkPosition,1),h=[];h[f]=o[f],h[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var v=1;v<n-1;v++){var d=a[v];t.moveTo(d[0],d[1]),h[f]=d[f],t.lineTo(h[0],h[1])}},e}(it),M8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new K,t}return e.prototype.init=function(t,i){this._controller=new Va(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,i,a){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),this._updateController(t,i,a);var u=this._data;n.diff(u).add(function(f){hz(n,f)&&vz(n,f,null,s,t)}).update(function(f,p){var c=u.getItemGraphicEl(p);if(!hz(n,f)){c&&mz(u,p,c,s,t);return}vz(n,f,c,s,t)}).remove(function(f){var p=u.getItemGraphicEl(f);p&&mz(u,f,p,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(f,p){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:p})})}),this._data=n},e.prototype._updateViewCoordSys=function(t,i){var a=t.getData(),n=[];a.each(function(p){var c=a.getItemLayout(p);c&&!isNaN(c.x)&&!isNaN(c.y)&&n.push([+c.x,+c.y])});var o=[],s=[];Jo(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new dn;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),i),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,i,a){var n=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,p){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,p)&&!po(u,a,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Eu(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Pu(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),a=this._getNodeGlobalScale(t);i.eachItemGraphicEl(function(n,o){n.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var i=t.coordinateSystem;if(i.type!=="view")return 1;var a=this._nodeScaleRatio,n=i.scaleX||1,o=i.getZoom(),s=(o-1)*a+1;return s/n},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(It);function hz(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function vz(r,e,t,i,a){var n=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,p=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(p.dataIndex),h=p.getLayout(),v=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,d=o.getLayout();n?(t=new vn(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=v.x,t.y=v.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,i.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,_t(t,{x:d.x,y:d.y},a);var m=t.getSymbolPath();if(a.get("layout")==="radial"){var g=f.children[0],y=g.getLayout(),x=g.children.length,_=void 0,b=void 0;if(d.x===y.x&&o.isExpand===!0&&g.children.length){var S={x:(g.children[0].getLayout().x+g.children[x-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-y.y,S.x-y.x),_<0&&(_=Math.PI*2+_),b=S.x<y.x,b&&(_=_-Math.PI)}else _=Math.atan2(d.y-y.y,d.x-y.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<y.x,b&&(_=_-Math.PI)):(b=d.x>y.x,b||(_=_-Math.PI));var T=b?"left":"right",C=s.getModel("label"),A=C.get("rotate"),D=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:C.get("position")||T,rotation:A==null?-_:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Eo(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(tt(t).focus=L),I8(a,o,f,t,v,h,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var z=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);z&&z.hoverState===ns||os(t.__edge,P)}})}function I8(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new us({shape:ES(f,p,c,a,a)})),_t(d,{shape:ES(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;y<m.length;y++){var x=m[y].getLayout();g.push([x.x,x.y])}d||(d=i.__edge=new D8({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:p,forkPosition:h}})),_t(d,{shape:{parentPoint:[o.x,o.y],childPoints:g}},r)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(q({strokeNoScale:!0,fill:null},v)),se(d,l,"lineStyle"),Yi(d),s.add(d))}function dz(r,e,t,i,a){var n=e.tree.root,o=gz(n,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),p=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?p:void 0),h=i.get("edgeShape"),v=i.get("layout"),d=i.get("orient"),m=i.get(["lineStyle","curveness"]);c&&(h==="curve"?Ti(c,{shape:ES(v,d,m,l,l),style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}):h==="polyline"&&i.get("layout")==="orthogonal"&&Ti(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}))}}function gz(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:i}}function mz(r,e,t,i,a){var n=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=gz(o,n).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Ti(t,{x:s.x+1,y:s.y+1},a,{cb:function(){i.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),n.children.forEach(function(u){dz(u,r,i,a,l)}),dz(n,r,i,a,l)}function ES(r,e,t,i,a){var n,o,s,l,u,f,p,c;if(r==="radial"){u=i.rawX,p=i.rawY,f=a.rawX,c=a.rawY;var h=zs(u,p),v=zs(u,p+(c-p)*t),d=zs(f,c+(p-c)*t),m=zs(f,c);return{x1:h.x||0,y1:h.y||0,x2:m.x||0,y2:m.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=i.x,p=i.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(n=u+(f-u)*t,o=p,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(n=u,o=p+(c-p)*t,s=f,l=c+(p-c)*t);return{x1:u,y1:p,x2:f,y2:c,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var yz=M8;var Ni=ot();function L8(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,xz(e,t,r),w(t,function(i){w(e.TRANSFERABLE_METHODS,function(a){i.wrapMethod(a,et(E8,r))})}),e.wrapMethod("cloneShallow",et(z8,r)),w(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,et(P8,r))}),ne(t[e.dataType]===e)}function E8(r,e){if(O8(this)){var t=N({},Ni(this).datas);t[this.dataType]=e,xz(e,t,r)}else PS(e,this.dataType,Ni(this).mainData,r);return e}function P8(r,e){return r.struct&&r.struct.update(),e}function z8(r,e){return w(Ni(e).datas,function(t,i){t!==e&&PS(t.cloneShallow(),i,e,r)}),e}function R8(r){var e=Ni(this).mainData;return r==null||e==null?e:Ni(e).datas[r]}function N8(){var r=Ni(this).mainData;return r==null?[{data:r}]:k(ft(Ni(r).datas),function(e){return{type:e,data:Ni(r).datas[e]}})}function O8(r){return Ni(r).mainData===r}function xz(r,e,t){Ni(r).datas={},w(e,function(i,a){PS(i,a,r,t)})}function PS(r,e,t,i){Ni(t).datas[e]=r,Ni(r).mainData=t,r.dataType=e,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=r),r.getLinkedData=R8,r.getLinkedDataAll=N8}var xm=L8;var k8=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,i){X(e)&&(i=t,t=e,e=null),e=e||{},F(e)&&(e={order:e});var a=e.order||"preorder",n=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(i,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,i);a==="postorder"&&t.call(i,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var a=this.children[i];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].getNodeById(e);if(n)return n}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].contains(e);if(n)return n}},r.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}();var V8=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,a=t.length;i<a;i++)t[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)t[e.getRawIndex(i)].dataIndex=i},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,i){var a=new r(t),n=[],o=1;s(e);function s(f,p){var c=f.value;o=Math.max(o,O(c)?c.length:1),n.push(f);var h=new k8(le(f.name,""),a);p?U8(h,p):a.root=h,a._nodes.push(h);var v=f.children;if(v)for(var d=0;d<v.length;d++)s(v[d],h)}a.root.updateDepthAndHeight(0);var l=ia(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ve(l,t);return u.initData(n),i&&i(u),xm({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function U8(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}var Ru=V8;function mn(r,e,t){if(r&&nt(e,r.type)>=0){var i=t.getData().tree.root,a=r.targetNode;if(F(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function zS(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Nu(r,e){var t=zS(r);return nt(t,e)>=0}function ho(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var B8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new zt(a,this,this.ecModel),o=Ru.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=ho(a,this),i.collapsed=!a.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Rt),_z=B8;function Sz(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;n=a.pop();)e(n,t)}function Ou(r,e){for(var t=[r],i;i=t.pop();)if(e(i),i.isExpand){var a=i.children;if(a.length)for(var n=a.length-1;n>=0;n--)t.push(a[n])}}function NS(r,e){r.eachSeriesByType("tree",function(t){F8(t,e)})}function F8(r,e){var t=cz(r,e);r.layoutInfo=t;var i=r.get("layout"),a=0,n=0,o=null;i==="radial"?(a=2*Math.PI,n=Math.min(t.height,t.width)/2,o=LS(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(a=t.width,n=t.height,o=LS());var s=r.getData().tree.root,l=s.children[0];if(l){uz(s),Sz(l,fz,o),s.hierNode.modifier=-l.hierNode.prelim,Ou(l,pz);var u=l,f=l,p=l;Ou(l,function(x){var _=x.getLayout().x;_<u.getLayout().x&&(u=x),_>f.getLayout().x&&(f=x),x.depth>p.depth&&(p=x)});var c=u===f?1:o(u,f)/2,h=c-u.getLayout().x,v=0,d=0,m=0,g=0;if(i==="radial")v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Ou(l,function(x){m=(x.getLayout().x+h)*v,g=(x.depth-1)*d;var _=zs(m,g);x.setLayout({x:_.x,y:_.y,rawX:m,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=n/(f.getLayout().x+c+h),v=a/(p.depth-1||1),Ou(l,function(x){g=(x.getLayout().x+h)*d,m=y==="LR"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:m,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(f.getLayout().x+c+h),d=n/(p.depth-1||1),Ou(l,function(x){m=(x.getLayout().x+h)*v,g=y==="TB"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:m,y:g},!0)}))}}}function OS(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");N(s,o)})})}function bz(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=a.coordinateSystem,o=zu(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function kS(r){r.registerChartView(yz),r.registerSeriesModel(_z),r.registerLayout(NS),r.registerVisual(OS),bz(r)}var wz=["treemapZoomToNode","treemapRender","treemapMove"];function Tz(r){for(var e=0;e<wz.length;e++)r.registerAction({type:wz[e],update:"updateView"},te);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=mn(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=Nu(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function sc(r){var e=r.getData(),t=e.tree,i={};t.eachNode(function(a){for(var n=a;n&&n.depth>1;)n=n.parentNode;var o=gp(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var G8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};Cz(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new zt({itemStyle:o},this,i);n=t.levels=H8(n,i);var l=k(n||[],function(p){return new zt(p,s,i)},this),u=Ru.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,h){var v=u.getNodeByDataIndex(h),d=v?l[v.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ie("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=ho(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},N(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=Y(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){sc(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Rt);function Cz(r){var e=0;w(r.children,function(i){Cz(i);var a=i.value;O(a)&&(a=a[0]),e+=a});var t=r.value;O(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),O(r.value)?r.value[0]=t:r.value=t}function H8(r,e){var t=Nt(e.get("color")),i=Nt(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;w(r,function(s){var l=new zt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var Az=G8;var W8=8,Dz=8,VS=5,Y8=function(){function r(e){this.group=new K,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,p,u),this._renderContent(e,p,s,l,u,f,a),Xn(o,p.pos,p.box)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=le(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+W8*2,t.emptyItemWidth);t.totalWidth+=s+Dz,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),p=MM(t.pos,t.box),c=t.totalWidth,h=t.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var m=h[d],g=m.node,y=m.width,x=m.text;c>p.width&&(c-=y-u,y=u,x=null);var _=new he({shape:{points:Z8(l,0,y,f,d===h.length-1,d===0)},style:q(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new yt({style:Ht(n,{text:x})}),textConfig:{position:"inside"},z2:Qa*1e4,onclick:et(s,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ht(o,{text:x}),_.ensureState("emphasis").style=v,Vt(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),X8(_,e,g),l+=y+Dz}},r.prototype.remove=function(){this.group.removeAll()},r}();function Z8(r,e,t,i,a,n){var o=[[a?r:r-VS,e],[r+t,e],[r+t,e+i],[a?r:r-VS,e+i]];return!n&&o.splice(2,0,[r+t+VS,e+i/2]),!a&&o.push([r,e+i/2]),o}function X8(r,e,t){tt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ho(t,e)}}var Mz=Y8;var q8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;a<n;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},r}();function Iz(){return new q8}var US=K,Lz=ht,Ez=3,Pz="label",zz="upperLabel",K8=Qa*10,Q8=Qa*2,$8=Qa*3,Rs=Br([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Rz=function(r){var e=Rs(r);return e.stroke=e.fill=e.lineWidth=null,e},_m=ot(),J8=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=lc(),t}return e.prototype.render=function(t,i,a,n){var o=i.findComponents({mainType:"series",subType:"treemap",query:n});if(!(nt(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=mn(n,s,t),u=n&&n.type,f=t.layoutInfo,p=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,v=this._giveContainerGroup(f),d=t.get("animation"),m=this._doRender(v,t,h);d&&!p&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,m,t,h):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new US,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,a){var n=i.getData().tree,o=this._oldTree,s=lc(),l=lc(),u=this._storage,f=[];function p(m,g,y,x){return tY(i,l,u,a,s,f,m,g,y,x)}h(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var c=v(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:d};function h(m,g,y,x,_){x?(g=m,w(m,function(T,C){!T.isRemoved()&&S(C,C)})):new lr(g,m,b,b).add(S).update(S).remove(et(S,null)).execute();function b(T){return T.getId()}function S(T,C){var A=T!=null?m[T]:null,D=C!=null?g[C]:null,M=p(A,D,y,_);M&&h(A&&A.viewChildren||[],D&&D.viewChildren||[],M,x,_+1)}}function v(m){var g=lc();return m&&w(m,function(y,x){var _=g[x];w(y,function(b){b&&(_.push(b),_m(b).willDelete=!0)})}),g}function d(){w(c,function(m){w(m,function(g){g.parent&&g.parent.remove(g)})}),w(f,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,i,a,n){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(X(o)?0:o)||0,u=(X(s)?null:s)||"cubicOut",f=Iz();w(i.willDeleteEls,function(p,c){w(p,function(h,v){if(!h.invisible){var d=h.parent,m,g=_m(d);if(n&&n.direction==="drillDown")m=d===n.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,x=0;g.willDelete||(y=g.nodeWidth/2,x=g.nodeHeight/2),m=c==="nodeGroup"?{x:y,y:x,style:{opacity:0}}:{shape:{x:y,y:x,width:0,height:0},style:{opacity:0}}}m&&f.add(h,m,l,0,u)}})}),w(this._storage,function(p,c){w(p,function(h,v){var d=i.lastsForAnimation[c][v],m={};d&&(h instanceof K?d.oldX!=null&&(m.x=h.x,m.y=h.y,h.x=d.oldX,h.y=d.oldY):(d.oldShape&&(m.shape=N({},h.shape),h.setShape(d.oldShape)),d.fadein?(h.setStyle("opacity",0),m.style={opacity:1}):h.style.opacity!==1&&(m.style={opacity:1})),f.add(h,m,l,0,u))})},this),this._state="animating",f.finished(W(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this._controller;i||(i=this._controller=new Va(t.getZr()),i.enable(this.seriesModel.get("roam")),i.on("pan",W(this._onPan,this)),i.on("zoom",W(this._onZoom,this)));var a=new rt(0,0,t.getWidth(),t.getHeight());i.setPointerChecker(function(n,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Ez||Math.abs(t.dy)>Ez)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;i-=l.x,a-=l.y;var u=Me();tr(u,u,[-i,-a]),Pl(u,u,[t.scale,t.scale]),tr(u,u,[i,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&gs(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mz(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(Nu(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=lc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(It);function lc(){return{nodeGroup:[],background:[],content:[]}}function tY(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,v=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,_=f.upperHeight,b=x&&x.length,S=c.getModel("itemStyle"),T=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),A=c.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,M=pt("nodeGroup",US);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),_m(M).nodeWidth=h,_m(M).nodeHeight=v,f.isAboveViewRoot)return M;var I=pt("background",Lz,u,Q8);I&&B(M,I,b&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),z=L.get("blurScope"),R=L.get("disabled"),U=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)Zn(M)&&Ja(M,!1),I&&(Ja(I,!R),p.setItemGraphicEl(o.dataIndex,I),ev(I,U,z));else{var V=pt("content",Lz,u,$8);V&&Z(M,V),I.disableMorphing=!0,I&&Zn(I)&&Ja(I,!1),Ja(M,!R),p.setItemGraphicEl(o.dataIndex,M),ev(M,U,z)}return M;function B(Et,gt,Pt){var Ct=tt(gt);if(Ct.dataIndex=o.dataIndex,Ct.seriesIndex=r.seriesIndex,gt.setShape({x:0,y:0,width:h,height:v,r:D}),m)Q(gt);else{gt.invisible=!1;var ut=o.getVisual("style"),At=ut.stroke,ce=Rz(S);ce.fill=At;var Yt=Rs(T);Yt.fill=T.get("borderColor");var _e=Rs(C);_e.fill=C.get("borderColor");var de=Rs(A);if(de.fill=A.get("borderColor"),Pt){var fr=h-2*d;st(gt,At,ut.opacity,{x:d,y:0,width:fr,height:_})}else gt.removeTextContent();gt.setStyle(ce),gt.ensureState("emphasis").style=Yt,gt.ensureState("blur").style=_e,gt.ensureState("select").style=de,Yi(gt)}Et.add(gt)}function Z(Et,gt){var Pt=tt(gt);Pt.dataIndex=o.dataIndex,Pt.seriesIndex=r.seriesIndex;var Ct=Math.max(h-2*d,0),ut=Math.max(v-2*d,0);if(gt.culling=!0,gt.setShape({x:d,y:d,width:Ct,height:ut,r:D}),m)Q(gt);else{gt.invisible=!1;var At=o.getVisual("style"),ce=At.fill,Yt=Rz(S);Yt.fill=ce,Yt.decal=At.decal;var _e=Rs(T),de=Rs(C),fr=Rs(A);st(gt,ce,At.opacity,null),gt.setStyle(Yt),gt.ensureState("emphasis").style=_e,gt.ensureState("blur").style=de,gt.ensureState("select").style=fr,Yi(gt)}Et.add(gt)}function Q(Et){!Et.invisible&&n.push(Et)}function st(Et,gt,Pt,Ct){var ut=c.getModel(Ct?zz:Pz),At=le(c.get("name"),null),ce=ut.getShallow("show");ee(Et,Kt(c,Ct?zz:Pz),{defaultText:ce?At:null,inheritColor:gt,defaultOpacity:Pt,labelFetcher:r,labelDataIndex:o.dataIndex});var Yt=Et.getTextContent();if(Yt){var _e=Yt.style,de=Al(_e.padding||0);Ct&&(Et.setTextConfig({layoutRect:Ct}),Yt.disableLabelLayout=!0),Yt.beforeUpdate=function(){var Ha=Math.max((Ct?Ct.width:Et.shape.width)-de[1]-de[3],0),Ir=Math.max((Ct?Ct.height:Et.shape.height)-de[0]-de[2],0);(_e.width!==Ha||_e.height!==Ir)&&Yt.setStyle({width:Ha,height:Ir})},_e.truncateMinChar=2,_e.lineOverflow="truncate",ct(_e,Ct,f);var fr=Yt.getState("emphasis");ct(fr?fr.style:null,Ct,f)}}function ct(Et,gt,Pt){var Ct=Et?Et.text:null;if(!gt&&Pt.isLeafRoot&&Ct!=null){var ut=r.get("drillDownIcon",!0);Et.text=ut?ut+" "+Ct:Ct}}function pt(Et,gt,Pt,Ct){var ut=y!=null&&t[Et][y],At=a[Et];return ut?(t[Et][y]=null,Lt(At,ut)):m||(ut=new gt,ut instanceof be&&(ut.z2=eY(Pt,Ct)),Bt(At,ut)),e[Et][g]=ut}function Lt(Et,gt){var Pt=Et[g]={};gt instanceof US?(Pt.oldX=gt.x,Pt.oldY=gt.y):Pt.oldShape=N({},gt.shape)}function Bt(Et,gt){var Pt=Et[g]={},Ct=o.parentNode,ut=gt instanceof K;if(Ct&&(!i||i.direction==="drillDown")){var At=0,ce=0,Yt=a.background[Ct.getRawIndex()];!i&&Yt&&Yt.oldShape&&(At=Yt.oldShape.width,ce=Yt.oldShape.height),ut?(Pt.oldX=0,Pt.oldY=ce):Pt.oldShape={x:At,y:ce,width:0,height:0}}Pt.fadein=!ut}}function eY(r,e){return r*K8+e}var Nz=J8;var pc=w,rY=j,wm=-1,HS=function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=$(e);this.type=i,this.mappingMethod=t,this._normalizeData=nY[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(BS(a),iY(a)):t==="category"?a.categories?aY(a):BS(a,!0):(ne(t!=="linear"||a.dataExtent),BS(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return ft(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){j(e)?w(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=O(e)?[]:j(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&pc(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(O(e))e=e.slice();else if(rY(e)){var t=[];pc(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||F(l)&&l===e+"")return o;i&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,p=u.close;if(f){if(f[0]===-1/0){if(bm(p[1],e,f[1]))return o}else if(f[1]===1/0){if(bm(p[0],f[0],e))return o}else if(bm(p[0],f[0],e)&&bm(p[1],e,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:a;function c(h,v){var d=Math.abs(h-e);d<n&&(n=d,a=v)}},r.visualHandlers={color:{applyVisual:uc("color"),getColorMapper:function(){var e=this.option;return W(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),fc.call(this,t)}:function(t,i,a){var n=!!a;return!i&&(t=this._normalizeData(t)),a=bh(t,e.parsedVisual,a),n?a:_i(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return _i(bh(e,this.option.parsedVisual),"rgba")},category:fc,piecewise:function(e,t){var i=GS.call(this,t);return i==null&&(i=_i(bh(e,this.option.parsedVisual),"rgba")),i},fixed:Ns}},colorHue:Sm(function(e,t){return Bo(e,t)}),colorSaturation:Sm(function(e,t){return Bo(e,null,t)}),colorLightness:Sm(function(e,t){return Bo(e,null,null,t)}),colorAlpha:Sm(function(e,t){return Fo(e,t)}),decal:{applyVisual:uc("decal"),_normalizedToVisual:{linear:null,category:fc,piecewise:null,fixed:null}},opacity:{applyVisual:uc("opacity"),_normalizedToVisual:FS([0,1])},liftZ:{applyVisual:uc("liftZ"),_normalizedToVisual:{linear:Ns,category:Ns,piecewise:Ns,fixed:Ns}},symbol:{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:Oz,category:fc,piecewise:function(e,t){var i=GS.call(this,t);return i==null&&(i=Oz.call(this,e)),i},fixed:Ns}},symbolSize:{applyVisual:uc("symbolSize"),_normalizedToVisual:FS([0,1])}},r}();function iY(r){var e=r.pieceList;r.hasSpecialVisual=!1,w(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function aY(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(pc(e,function(o,s){t[o]=s}),!O(i)){var a=[];j(i)?pc(i,function(o,s){var l=t[s];a[l??wm]=o}):a[wm]=i,i=kz(r,a)}for(var n=e.length-1;n>=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function BS(r,e){var t=r.visual,i=[];j(t)?pc(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),kz(r,i)}function Sm(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:FS([0,1])}}function Oz(r){var e=this.option.visual;return e[Math.round(kt(r,[0,1],[0,e.length-1],!0))]||{}}function uc(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function fc(r){var e=this.option.visual;return e[this.option.loop&&r!==wm?r%e.length:r]}function Ns(){return this.option.visual[0]}function FS(r){return{linear:function(e){return kt(e,r,this.option.visual,!0)},category:fc,piecewise:function(e,t){var i=GS.call(this,t);return i==null&&(i=kt(e,r,this.option.visual,!0)),i},fixed:Ns}}function GS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=HS.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function kz(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=k(e,function(t){var i=qe(t);return i||[0,0,0,1]})),e}var nY={linear:function(r){return kt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=HS.findPieceIndex(r,e,!0);if(t!=null)return kt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??wm},fixed:te};function bm(r,e,t){return r?e<=t:e<t}var xe=HS;var oY="itemStyle",Uz=ot(),Bz={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||Fz(t,{},r.getViewRoot().getAncestors(),r)}};function Fz(r,e,t,i){var a=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=a.getModel(oY),l=sY(s,e,i),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),p=s.get("borderColorSaturation"),c;p!=null&&(c=Vz(l),f=lY(p,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=Vz(l),u.fill=c;else{var v=uY(r,a,n,s,l,h);w(h,function(d,m){if(d.depth>=t.length||d===t[d.depth]){var g=fY(a,l,d,m,v,i);Fz(d,g,t,i)}})}}}function sY(r,e,t){var i=N({},e),a=t.designatedVisualItemStyle;return w(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function Vz(r){var e=WS(r,"color");if(e){var t=WS(r,"colorAlpha"),i=WS(r,"colorSaturation");return i&&(e=Bo(e,null,null,i)),t&&(e=Fo(e,t)),e}}function lY(r,e){return e!=null?Bo(e,null,null,r):null}function WS(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function uY(r,e,t,i,a,n){if(!(!n||!n.length)){var o=YS(e,"color")||a.color!=null&&a.color!=="none"&&(YS(e,"colorAlpha")||YS(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new xe(p);return Uz(c).drColorMappingBy=f,c}}}function YS(r,e){var t=r.get(e);return O(t)&&t.length?{name:e,range:t}:null}function fY(r,e,t,i,a,n){var o=N({},e);if(a){var s=a.type,l=s==="color"&&Uz(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var cc=Math.max,Tm=Math.min,Gz=ae,ZS=w,Wz=["itemStyle","borderWidth"],pY=["itemStyle","gapWidth"],cY=["upperLabel","show"],hY=["upperLabel","height"],Yz={seriesType:"treemap",reset:function(r,e,t,i){var a=t.getWidth(),n=t.getHeight(),o=r.option,s=Zt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(Gz(s.width,l[0]),a),f=H(Gz(s.height,l[1]),n),p=i&&i.type,c=["treemapZoomToNode","treemapRootToNode"],h=mn(i,c,r),v=p==="treemapRender"||p==="treemapMove"?i.rootRect:null,d=r.getViewRoot(),m=zS(d);if(p!=="treemapMove"){var g=p==="treemapZoomToNode"?xY(r,h,d,u,f):v?[v.width,v.height]:[u,f],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),Zz(d,x,!1,0),_=d.getLayout(),ZS(m,function(S,T){var C=(m[T+1]||d).getValue();S.setLayout(N({dataExtent:[C,C],borderWidth:0,upperHeight:0},_))})}var b=r.getData().tree.root;b.setLayout(_Y(s,v,h),!0),r.setLayoutInfo(s),Xz(b,new rt(-s.x,-s.y,a,n),m,d,0)}};function Zz(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(Wz),u=s.get(pY)/2,f=qz(s),p=Math.max(l,f),c=l-u,h=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=cc(a-2*c,0),n=cc(n-c-h,0);var v=a*n,d=vY(r,s,v,e,t,i);if(d.length){var m={x:c,y:h,width:a,height:n},g=Tm(a,n),y=1/0,x=[];x.area=0;for(var _=0,b=d.length;_<b;){var S=d[_];x.push(S),x.area+=S.getLayout().area;var T=yY(x,g,e.squareRatio);T<=y?(_++,y=T):(x.area-=x.pop().getLayout().area,Hz(x,g,m,u,!1),g=Tm(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Hz(x,g,m,u,!0),!t){var C=s.get("childrenVisibleMin");C!=null&&v<C&&(t=!0)}for(var _=0,b=d.length;_<b;_++)Zz(d[_],e,t,i+1)}}}function vY(r,e,t,i,a,n){var o=r.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=n;if(a&&!l)return r.viewChildren=[];o=Dt(o,function(h){return!h.isRemoved()}),mY(o,s);var u=gY(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=dY(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,p=o.length;f<p;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function dY(r,e,t,i,a){if(!i)return t;for(var n=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return i==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function mY(r,e){return e&&r.sort(function(t,i){var a=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:a}),r}function gY(r,e,t){for(var i=0,a=0,n=e.length;a<n;a++)i+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],ZS(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function yY(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<a&&(a=o),o>i&&(i=o));var l=r.area*r.area,u=e*e*t;return l?cc(u*i/l,l/(u*a)):1/0}function Hz(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;p<c;p++){var h=r[p],v={},d=f?h.getLayout().area/f:0,m=v[l[o]]=cc(f-2*i,0),g=t[s[n]]+t[l[n]]-u,y=p===c-1||g<d?g:d,x=v[l[n]]=cc(y-2*i,0);v[s[o]]=t[s[o]]+Tm(i,m/2),v[s[n]]=u+Tm(i,x/2),u+=y,h.setLayout(v,!0)}t[s[o]]+=f,t[l[o]]-=f}function xY(r,e,t,i,a){var n=(e||{}).node,o=[i,a];if(!n||n===t)return o;for(var s,l=i*a,u=l*r.option.zoomToNodeRatio;s=n.parentNode;){for(var f=0,p=s.children,c=0,h=p.length;c<h;c++)f+=p[c].getValue();var v=n.getValue();if(v===0)return o;u*=f/v;var d=s.getModel(),m=d.get(Wz),g=Math.max(m,qz(d));u+=4*m*m+(3*m+g)*Math.pow(u,.5),u>Bf&&(u=Bf),n=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[i*y,a*y]}function _Y(r,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var a=t.node,n=a.getLayout();if(!n)return i;for(var o=[n.width/2,n.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function Xz(r,e,t,i,a){var n=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==i)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new rt(e.x-n.x,e.y-n.y,e.width,e.height);ZS(r.viewChildren||[],function(u){Xz(u,l,t,i,a+1)})}}function qz(r){return r.get(cY)?r.get(hY):0}function XS(r){r.registerSeriesModel(Az),r.registerChartView(Nz),r.registerVisual(Bz),r.registerLayout(Yz),Tz(r)}function qS(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),a=t.getGraph(),n=a.data,o=i.mapArray(i.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){vt(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function jS(r){var e={};r.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),a=t.getData(),n={};i.each(function(o){var s=i.getName(o);n["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],p=0;p<f.length;p++){var c=l.getShallow(f[p],!0);c!=null&&i.setItemVisual(o,f[p],c)}}),i.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){F(l)&&(l=n["ec-"+l]);var u=i.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");N(f,u);for(var p=["symbol","symbolSize","symbolKeepAspect"],c=0;c<p.length;c++)a.setItemVisual(o,p[c],i.getItemVisual(l,p[c]))}})})}function Cm(r){return r instanceof Array||(r=[r,r]),r}function KS(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),i=e.getEdgeData(),a=Cm(e.get("edgeSymbol")),n=Cm(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",a&&a[0]),i.setVisual("toSymbol",a&&a[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=t.getEdgeByIndex(o),u=Cm(s.getShallow("symbol",!0)),f=Cm(s.getShallow("symbolSize",!0)),p=s.getModel("lineStyle").getLineStyle(),c=i.ensureUniqueItemVisual(o,"style");switch(N(c,p),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var QS="-->",Am=function(r){return r.get("autoCurveness")||null},jz=function(r,e){var t=Am(r),i=20,a=[];if(vt(t))i=t;else if(O(t)){r.__curvenessList=t;return}e>i&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o<n;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},hc=function(r,e,t){var i=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,i,a].join(QS)},Kz=function(r){var e=r.split(QS);return[e[0],e[2],e[1]].join(QS)},SY=function(r,e){var t=hc(r.node1,r.node2,e);return e.__edgeMap[t]},bY=function(r,e){var t=$S(hc(r.node1,r.node2,e),e),i=$S(hc(r.node2,r.node1,e),e);return t+i},$S=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function Qz(r){Am(r)&&(r.__curvenessList=[],r.__edgeMap={},jz(r))}function $z(r,e,t,i){if(Am(t)){var a=hc(r,e,t),n=t.__edgeMap,o=n[Kz(a)];n[a]&&!o?n[a].isForward=!0:o&&n[a]&&(o.isForward=!0,n[a].isForward=!1),n[a]=n[a]||[],n[a].push(i)}}function ku(r,e,t,i){var a=Am(e),n=O(a);if(!a)return null;var o=SY(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=bY(r,e);jz(e,u),r.lineStyle=r.lineStyle||{};var f=hc(r.node1,r.node2,e),p=e.__curvenessList,c=n||u%2?0:1;if(o.isForward)return p[c+s];var h=Kz(f),v=$S(h,e),d=p[s+v+c];return i?n?a&&a[0]===0?(v+c)%2?d:-d:((v%2?0:1)+c)%2?d:-d:(v+c)%2?d:-d:p[s+v+c]}function Dm(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(i){var a=i.getModel();i.setLayout([+a.get("x"),+a.get("y")])}),vc(t,r)}}function vc(r,e){r.eachEdge(function(t,i){var a=Be(t.getModel().get(["lineStyle","curveness"]),-ku(t,e,i,!0),0),n=Lr(t.node1.getLayout()),o=Lr(t.node2.getLayout()),s=[n,o];+a&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*a,(n[1]+o[1])/2-(o[0]-n[0])*a]),t.setLayout(s)})}function JS(r,e){r.eachSeriesByType("graph",function(t){var i=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var n=t.getData(),o=[];w(a.dimensions,function(c){o=o.concat(n.mapDimensionsAll(c))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var p=n.get(o[f],s);isNaN(p)||(u=!0),l.push(p)}u?n.setItemLayout(s,a.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}vc(n.graph,t)}else(!i||i==="none")&&Dm(t)})}function Os(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,i=e.scaleX,a=e.getZoom(),n=(a-1)*t+1;return n/i}function ks(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Jz=Math.PI,t1=[];function Vu(r,e,t,i){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var n=a.getBoundingRect(),o=r.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,f=Math.min(n.width,n.height)/2,p=o.count();if(o.setLayout({cx:l,cy:u}),!!p){if(t){var c=a.pointToData(i),h=c[0],v=c[1],d=[h-l,v-u];vi(d,d),Ml(d,d,f),t.setLayout([l+d[0],u+d[1]],!0);var m=r.get(["circular","rotateLabel"]);e1(t,m,l,u)}wY[e](r,s,o,f,l,u,p),s.eachEdge(function(g,y){var x=Be(g.getModel().get(["lineStyle","curveness"]),ku(g,r,y),0),_=Lr(g.node1.getLayout()),b=Lr(g.node2.getLayout()),S,T=(_[0]+b[0])/2,C=(_[1]+b[1])/2;+x&&(x*=3,S=[l*x+T*(1-x),u*x+C*(1-x)]),g.setLayout([_,b,S])})}}}var wY={value:function(r,e,t,i,a,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var p=f.getValue("value"),c=u*(l?p:1)/2;s+=c,f.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+n]),s+=c})},symbolSize:function(r,e,t,i,a,n,o){var s=0;t1.length=o;var l=Os(r);e.eachNode(function(p){var c=ks(p);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/i);isNaN(h)&&(h=Jz/2),t1[p.dataIndex]=h,s+=h*2});var u=(2*Jz-s)/o/2,f=0;e.eachNode(function(p){var c=u+t1[p.dataIndex];f+=c,(!p.getLayout()||!p.getLayout().fixed)&&p.setLayout([i*Math.cos(f)+a,i*Math.sin(f)+n]),f+=c})}};function e1(r,e,t,i){var a=r.getGraphicEl();if(a){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var p=f?"left":"right";s.setTextConfig({rotation:-u,position:p,origin:"center"});var c=s.ensureState("emphasis");N(c.textConfig||(c.textConfig={}),{position:p})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function r1(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Vu(e,"symbolSize")})}var Uu=_f;function tR(r,e,t){for(var i=r,a=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<i.length;f++){var p=i[f];p.p||(p.p=da(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),p.pp=Lr(p.p),p.edges=null}var c=t.friction==null?.6:t.friction,h=c,v,d;return{warmUp:function(){h=c*.8},setFixed:function(m){i[m].fixed=!0},setUnfixed:function(m){i[m].fixed=!1},beforeStep:function(m){v=m},afterStep:function(m){d=m},step:function(m){v&&v(i,a);for(var g=[],y=i.length,x=0;x<a.length;x++){var _=a[x];if(!_.ignoreForceLayout){var b=_.n1,S=_.n2;Fi(g,S.p,b.p);var T=ah(g)-_.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),vi(g,g),!b.fixed&&Uu(b.p,b.p,g,C*T*h),!S.fixed&&Uu(S.p,S.p,g,-(1-C)*T*h)}}for(var x=0;x<y;x++){var A=i[x];A.fixed||(Fi(g,l,A.p),Uu(A.p,A.p,g,u*h))}for(var x=0;x<y;x++)for(var b=i[x],D=x+1;D<y;D++){var S=i[D];Fi(g,S.p,b.p);var T=ah(g);T===0&&(jT(g,Math.random()-.5,Math.random()-.5),T=1);var M=(b.rep+S.rep)/T/T;!b.fixed&&Uu(b.pp,b.pp,g,M),!S.fixed&&Uu(S.pp,S.pp,g,-M)}for(var I=[],x=0;x<y;x++){var A=i[x];A.fixed||(Fi(I,A.p,A.pp),Uu(A.p,A.p,I,h),Ge(A.pp,A.p))}h=h*.992;var L=h<.01;d&&d(i,a,L),m&&m(L)}}}function i1(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},a=e.getGraph(),n=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(x){var _=n.getId(x);n.setItemLayout(x,i[_]||[NaN,NaN])}):!l||l==="none"?Dm(e):l==="circular"&&Vu(e,"value");var u=n.getDataExtent("value"),f=o.getDataExtent("value"),p=s.get("repulsion"),c=s.get("edgeLength"),h=O(p)?p:[p,p],v=O(c)?c:[c,c];v=[v[1],v[0]];var d=n.mapArray("value",function(x,_){var b=n.getItemLayout(_),S=kt(x,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:n.getItemModel(_).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),m=o.mapArray("value",function(x,_){var b=a.getEdgeByIndex(_),S=kt(x,f,v);isNaN(S)&&(S=(v[0]+v[1])/2);var T=b.getModel(),C=Be(b.getModel().get(["lineStyle","curveness"]),-ku(b,e,_,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),g=t.getBoundingRect(),y=tR(d,m,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(x,_){for(var b=0,S=x.length;b<S;b++)x[b].fixed&&Ge(x[b].p,a.getNodeByIndex(b).getLayout())}),y.afterStep(function(x,_,b){for(var S=0,T=x.length;S<T;S++)x[S].fixed||a.getNodeByIndex(S).setLayout(x[S].p),i[n.getId(S)]=x[S].p;for(var S=0,T=_.length;S<T;S++){var C=_[S],A=a.getEdgeByIndex(S),D=C.n1.p,M=C.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Ge(I[0],D),Ge(I[1],M),+C.curveness&&(I[2]=[(D[0]+M[0])/2-(D[1]-M[1])*C.curveness,(D[1]+M[1])/2-(M[0]-D[0])*C.curveness]),A.setLayout(I)}}),e.forceLayout=y,e.preservedPoints=i,y.step()}else e.forceLayout=null})}function TY(r,e,t){var i=N(r.getBoxLayoutParams(),{aspect:t});return Zt(i,{width:e.getWidth(),height:e.getHeight()})}function a1(r,e){var t=[];return r.eachSeriesByType("graph",function(i){var a=i.get("coordinateSystem");if(!a||a==="view"){var n=i.getData(),o=n.mapArray(function(m){var g=n.getItemModel(m);return[+g.get("x"),+g.get("y")]}),s=[],l=[];Jo(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=TY(i,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var p=l[0]-s[0],c=l[1]-s[1],h=f.width,v=f.height,d=i.coordinateSystem=new dn;d.zoomLimit=i.get("scaleLimit"),d.setBoundingRect(s[0],s[1],p,c),d.setViewRect(f.x,f.y,h,v),d.setCenter(i.get("center"),e),d.setZoom(i.get("zoom")),t.push(d)}}),t}var eR=fe.prototype,n1=us.prototype,rR=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),zSt=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(rR);function o1(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var CY=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rR},e.prototype.buildPath=function(t,i){o1(i)?eR.buildPath.call(this,t,i):n1.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return o1(this.shape)?eR.pointAt.call(this,t):n1.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,a=o1(i)?[i.x2-i.x1,i.y2-i.y1]:n1.tangentAt.call(this,t);return vi(a,a)},e}(it),iR=CY;var s1=["fromSymbol","toSymbol"];function aR(r){return"_"+r+"Type"}function nR(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=ea(a),u=ui(o||0,l);return i+l+u+(n||"")+(s||"")}function oR(r,e,t){var i=e.getItemVisual(t,r);if(!(!i||i==="none")){var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=ea(a),u=ui(o||0,l),f=Xt(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,f.name=r,f}}function AY(r){var e=new iR({name:"line",subPixelOptimize:!0});return l1(e.shape,r),e}function l1(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var DY=function(r){E(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createLine(t,i,a),n}return e.prototype._createLine=function(t,i,a){var n=t.hostModel,o=t.getItemLayout(i),s=AY(o);s.shape.percent=0,Ut(s,{shape:{percent:1}},n,i),this.add(s),w(s1,function(l){var u=oR(l,t,i);this.add(u),this[aR(l)]=nR(l,t,i)},this),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};l1(l.shape,s),_t(o,l,n,i),w(s1,function(u){var f=nR(u,t,i),p=aR(u);if(this[p]!==f){this.remove(this.childOfName(u));var c=oR(u,t,i);this.add(c)}this[p]=f},this),this._updateCommonStl(t,i,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,p=a&&a.emphasisDisabled,c=a&&a.focus,h=a&&a.blurScope;if(!a||t.hasItemOption){var v=t.getItemModel(i),d=v.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),p=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),f=Kt(v)}var m=t.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,w(s1,function(S){var T=this.childOfName(S);if(T){T.setColor(g),T.style.opacity=m.opacity;for(var C=0;C<Ue.length;C++){var A=Ue[C],D=o.getState(A);if(D){var M=D.style||{},I=T.ensureState(A),L=I.style||(I.style={});M.stroke!=null&&(L[T.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}T.markRedraw()}},this);var y=n.getRawValue(i);ee(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(S,T){return n.getFormattedLabel(S,T,t.dataType)}},inheritColor:g||"#000",defaultOpacity:m.opacity,defaultText:(y==null?t.getName(i):isFinite(y)?Qt(y):y)+""});var x=this.getTextContent();if(x){var _=f.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var b=_.get("distance");O(b)||(b=[b,b]),x.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Vt(this,c,h,p)},e.prototype.highlight=function(){cr(this)},e.prototype.downplay=function(){hr(this)},e.prototype.updateLayout=function(t,i){this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");l1(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),n=t.getTextContent();if(!i&&!a&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),p=l.pointAt(u),c=Fi([],p,f);vi(c,c);function h(D,M){var I=D.__specifiedRotation;if(I==null){var L=l.tangentAt(M);D.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else D.attr("rotation",I)}if(i&&(i.setPosition(f),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&(a.setPosition(p),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var v=void 0,d=void 0,m=n.__labelDistance,g=m[0]*o,y=m[1]*o,x=u/2,_=l.tangentAt(x),b=[_[1],-_[0]],S=l.pointAt(x);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var T=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var C=-Math.atan2(_[1],_[0]);p[0]<f[0]&&(C=Math.PI+C),n.rotation=C}var A=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=y,d="top";break;default:A=0,d="middle"}switch(n.__position){case"end":n.x=c[0]*g+p[0],n.y=c[1]*y+p[1],v=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*T+f[0],n.y=f[1]+A,v=_[0]<0?"right":"left",n.originX=-g*T,n.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=S[0],n.y=S[1]+A,v="center",n.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*T+p[0],n.y=p[1]+A,v=_[0]>=0?"right":"left",n.originX=g*T,n.originY=-A;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||v})}},e}(K),Bu=DY;var MY=function(){function r(e){this.group=new K,this._LineCtor=e||Bu}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=sR(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=sR(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!IY(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var n=t.getItemLayout(a);if(u1(n)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(i),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Sr(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var a=e.getItemLayout(t);if(u1(a)){var n=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,n),this.group.add(n)}},r.prototype._doUpdate=function(e,t,i,a,n){var o=e.getItemGraphicEl(i);if(!u1(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,n):o=new this._LineCtor(t,a,n),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function IY(r){return r.animators&&r.animators.length>0}function sR(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:Kt(e)}}function lR(r){return isNaN(r[0])||isNaN(r[1])}function u1(r){return r&&!lR(r[0])&&!lR(r[1])}var Fu=MY;var f1=[],p1=[],c1=[],Gu=Se,h1=Ya,uR=Math.abs;function fR(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){f1[0]=Gu(i[0],a[0],n[0],f),f1[1]=Gu(i[1],a[1],n[1],f);var p=uR(h1(f1,e)-l);p<o&&(o=p,s=f)}for(var c=0;c<32;c++){var h=s+u;p1[0]=Gu(i[0],a[0],n[0],s),p1[1]=Gu(i[1],a[1],n[1],s),c1[0]=Gu(i[0],a[0],n[0],h),c1[1]=Gu(i[1],a[1],n[1],h);var p=h1(p1,e)-l;if(uR(p)<.01)break;var v=h1(c1,e)-l;u/=2,p<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function dc(r,e){var t=[],i=Rn,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[Lr(u[0]),Lr(u[1])],u[2]&&u.__original.push(Lr(u[2])));var c=u.__original;if(u[2]!=null){if(Ge(a[0],c[0]),Ge(a[1],c[2]),Ge(a[2],c[1]),f&&f!=="none"){var h=ks(s.node1),v=fR(a,c[0],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],v,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var h=ks(s.node2),v=fR(a,c[1],h*e);i(a[0][0],a[1][0],a[2][0],v,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],v,t),a[1][1]=t[1],a[2][1]=t[2]}Ge(u[0],a[0]),Ge(u[1],a[2]),Ge(u[2],a[1])}else{if(Ge(n[0],c[0]),Ge(n[1],c[1]),Fi(o,n[1],n[0]),vi(o,o),f&&f!=="none"){var h=ks(s.node1);_f(n[0],n[0],o,h*e)}if(p&&p!=="none"){var h=ks(s.node2);_f(n[1],n[1],o,-h*e)}Ge(u[0],n[0]),Ge(u[1],n[1])}})}function pR(r){return r.type==="view"}var LY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var a=new Ra,n=new Fu,o=this.group;this._controller=new Va(i.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(n.group),this._symbolDraw=a,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(pR(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):_t(u,f,t)}dc(t.getGraph(),Os(t));var p=t.getData();s.updateData(p);var c=t.getEdgeData();l.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,i,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,v=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=t.get("layout");p.graph.eachNode(function(x){var _=x.dataIndex,b=x.getGraphicEl(),S=x.getModel();if(b){b.off("drag").off("dragend");var T=S.get("draggable");T&&b.on("drag",function(A){switch(d){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,v),h.setFixed(_),p.setItemLayout(_,[b.x,b.y]);break;case"circular":p.setItemLayout(_,[b.x,b.y]),x.setLayout({fixed:!0},!0),Vu(t,"symbolSize",x,[A.offsetX,A.offsetY]),n.updateLayout(t);break;case"none":default:p.setItemLayout(_,[b.x,b.y]),vc(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),b.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(tt(b).focus=x.getAdjacentDataIndices())}}),p.graph.eachEdge(function(x){var _=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);_&&b==="adjacency"&&(tt(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=p.getLayout("cx"),y=p.getLayout("cy");p.graph.eachNode(function(x){e1(x,m,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var a=this;(function n(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(i?a._layoutTimeout=setTimeout(n,16):n())})})()},e.prototype._updateController=function(t,i,a){var n=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,p){var c=l.getBoundingRect();return c.applyTransform(l.transform),c.contain(f,p)&&!po(u,a,t)}),!pR(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Eu(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Pu(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),n._updateNodeAndLinkScale(),dc(t.getGraph(),Os(t)),n._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=Os(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){dc(t.getGraph(),Os(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(It),cR=LY;function Hu(r){return"_EC_"+r}var EY=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Hu(e)]){var a=new Vs(e,t);return a.hostGraph=this,this.nodes.push(a),i[Hu(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Hu(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(vt(e)&&(e=this.nodes[e]),vt(t)&&(t=this.nodes[t]),e instanceof Vs||(e=a[Hu(e)]),t instanceof Vs||(t=a[Hu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new hR(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Vs&&(e=e.id),t instanceof Vs&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Vs||(t=this._nodesMap[Hu(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var f=u[o],p=f.node1===l?f.node2:f.node1;if(!p.__visited){if(e.call(a,p,l))return;s.push(p),p.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,a=this.edges,n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)i[e.getRawIndex(n)].dataIndex=n;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n<o;n++)a[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)a[t.getRawIndex(n)].dataIndex=n},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,i=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<i.length;a++){var n=i[a];e.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return e},r}(),Vs=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=Y(),t=Y(),i=0;i<this.edges.length;i++){var a=this.edges[i];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var n=[a.node1],o=[a.node2],s=0;s<n.length;){var l=n[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),n.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,t.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r}(),hR=function(){function r(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=Y(),t=Y();e.set(this.dataIndex,!0);for(var i=[this.node1],a=[this.node2],n=0;n<i.length;){var o=i[n];n++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),i.push(o.inEdges[s].node1)}for(n=0;n<a.length;){var l=a[n];n++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r}();function vR(r,e){return{getValue:function(t){var i=this[r][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}jt(Vs,vR("hostGraph","data"));jt(hR,vR("hostGraph","edgeData"));var dR=EY;function mc(r,e,t,i,a){for(var n=new dR(i),o=0;o<r.length;o++)n.addNode(ae(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],p=f.source,c=f.target;n.addEdge(p,c,u)&&(l.push(f),s.push(ae(le(f.id,null),p+" > "+c)),u++)}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=Ke(r,t);else{var d=un.get(h),m=d?d.dimensions||[]:[];nt(m,"value")<0&&m.concat(["value"]);var g=ia(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;v=new ve(g,t),v.initData(r)}var y=new ve(["value"],t);return y.initData(l,s),a&&a(v,y),xm({mainData:v,struct:n,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var PY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new ka(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ai(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){Qz(this);var s=mc(n,a,this,!0,l);return w(s.edges,function(u){$z(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var d=o._categoriesModels,m=v.getShallow("category"),g=d[m];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var p=zt.prototype.getModel;function c(v,d){var m=p.call(this,v,d);return m.resolveParentPath=h,m}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ie("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=qv({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=k(this.option.categories||[],function(a){return a.value!=null?a:N({value:0},a)}),i=new ve(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Rt),mR=PY;var zY={type:"graphRoam",event:"graphRoam",update:"none"};function v1(r){r.registerChartView(cR),r.registerSeriesModel(mR),r.registerProcessor(qS),r.registerVisual(jS),r.registerVisual(KS),r.registerLayout(JS),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,r1),r.registerLayout(i1),r.registerCoordinateSystem("graphView",{dimensions:dn.dimensions,create:a1}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},te),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},te),r.registerAction(zY,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(a){var n=a.coordinateSystem,o=zu(n,e,void 0,i);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var RY=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),NY=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new RY},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e}(it),gR=NY;function OY(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Mm(r,e){var t=r==null?"":r+"";return e&&(F(e)?t=e.replace("{value}",t):X(e)&&(t=e(r))),t}var kY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=OY(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),h=c?Iu:we,v=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];qf(g,!l),u=g[0],f=g[1];for(var y=f-u,x=u,_=[],b=0;v&&b<n.length;b++){var S=Math.min(Math.max(n[b][0],0),1);f=u+y*S;var T=new h({shape:{startAngle:x,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});T.setStyle({fill:n[b][1]}),T.setStyle(d.getLineStyle(["color","width"])),_.push(T),x=f}_.reverse(),w(_,function(A){return s.add(A)});var C=function(A){if(A<=0)return n[0][1];var D;for(D=0;D<n.length;D++)if(n[D][0]>=A&&(D===0?0:n[D-1][0])<A)return n[D][1];return n[D-1][1]};this._renderTicks(t,i,a,C,o,u,f,l,m),this._renderTitleAndDetail(t,i,a,C,o),this._renderAnchor(t,o),this._renderPointer(t,i,a,C,o,u,f,l,m)},e.prototype._renderTicks=function(t,i,a,n,o,s,l,u,f){for(var p=this.group,c=o.cx,h=o.cy,v=o.r,d=+t.get("min"),m=+t.get("max"),g=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=y.get("splitNumber"),S=H(g.get("length"),v),T=H(y.get("length"),v),C=s,A=(l-s)/_,D=A/b,M=g.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),L=g.get("distance"),P,z,R=0;R<=_;R++){if(P=Math.cos(C),z=Math.sin(C),g.get("show")){var U=L?L+f:f,V=new fe({shape:{x1:P*(v-U)+c,y1:z*(v-U)+h,x2:P*(v-S-U)+c,y2:z*(v-S-U)+h},style:M,silent:!0});M.stroke==="auto"&&V.setStyle({stroke:n(R/_)}),p.add(V)}if(x.get("show")){var U=x.get("distance")+L,B=Mm(Qt(R/_*(m-d)+d),x.get("formatter")),Z=n(R/_),Q=P*(v-S-U)+c,st=z*(v-S-U)+h,ct=x.get("rotate"),pt=0;ct==="radial"?(pt=-C+2*Math.PI,pt>Math.PI/2&&(pt+=Math.PI)):ct==="tangential"?pt=-C-Math.PI/2:vt(ct)&&(pt=ct*Math.PI/180),pt===0?p.add(new yt({style:Ht(x,{text:B,x:Q,y:st,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:Z}),silent:!0})):p.add(new yt({style:Ht(x,{text:B,x:Q,y:st,verticalAlign:"middle",align:"center"},{inheritColor:Z}),silent:!0,originX:Q,originY:st,rotation:pt}))}if(y.get("show")&&R!==_){var U=y.get("distance");U=U?U+f:f;for(var Lt=0;Lt<=b;Lt++){P=Math.cos(C),z=Math.sin(C);var Bt=new fe({shape:{x1:P*(v-U)+c,y1:z*(v-U)+h,x2:P*(v-T-U)+c,y2:z*(v-T-U)+h},silent:!0,style:I});I.stroke==="auto"&&Bt.setStyle({stroke:n((R+Lt/b)/_)}),p.add(Bt),C+=D}C-=D}else C+=A}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,h=this._progressEls,v=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),x=y.mapDimension("value"),_=+t.get("min"),b=+t.get("max"),S=[_,b],T=[s,l];function C(D,M){var I=y.getItemModel(D),L=I.getModel("pointer"),P=H(L.get("width"),o.r),z=H(L.get("length"),o.r),R=t.get(["pointer","icon"]),U=L.get("offsetCenter"),V=H(U[0],o.r),B=H(U[1],o.r),Z=L.get("keepAspect"),Q;return R?Q=Xt(R,V-P/2,B-z,P,z,null,Z):Q=new gR({shape:{angle:-Math.PI/2,width:P,r:z,x:V,y:B}}),Q.rotation=-(M+Math.PI/2),Q.x=o.cx,Q.y=o.cy,Q}function A(D,M){var I=m.get("roundCap"),L=I?Iu:we,P=m.get("overlap"),z=P?m.get("width"):f/y.count(),R=P?o.r-z:o.r-(D+1)*z,U=P?o.r:o.r-D*z,V=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:U}});return P&&(V.z2=b-y.get(x,D)%b),V}(g||d)&&(y.diff(c).add(function(D){var M=y.get(x,D);if(d){var I=C(D,s);Ut(I,{rotation:-((isNaN(+M)?T[0]:kt(M,S,T,!0))+Math.PI/2)},t),p.add(I),y.setItemGraphicEl(D,I)}if(g){var L=A(D,s),P=m.get("clip");Ut(L,{shape:{endAngle:kt(M,S,T,P)}},t),p.add(L),Kf(t.seriesIndex,y.dataType,D,L),v[D]=L}}).update(function(D,M){var I=y.get(x,D);if(d){var L=c.getItemGraphicEl(M),P=L?L.rotation:s,z=C(D,P);z.rotation=P,_t(z,{rotation:-((isNaN(+I)?T[0]:kt(I,S,T,!0))+Math.PI/2)},t),p.add(z),y.setItemGraphicEl(D,z)}if(g){var R=h[M],U=R?R.shape.endAngle:s,V=A(D,U),B=m.get("clip");_t(V,{shape:{endAngle:kt(I,S,T,B)}},t),p.add(V),Kf(t.seriesIndex,y.dataType,D,V),v[D]=V}}).execute(),y.each(function(D){var M=y.getItemModel(D),I=M.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),z=I.get("disabled");if(d){var R=y.getItemGraphicEl(D),U=y.getItemVisual(D,"style"),V=U.fill;if(R instanceof re){var B=R.style;R.useStyle(N({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},U))}else R.useStyle(U),R.type!=="pointer"&&R.setColor(V);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",n(kt(y.get(x,D),S,[0,1],!0))),R.z2EmphasisLift=0,se(R,M),Vt(R,L,P,z)}if(g){var Z=v[D];Z.useStyle(y.getItemVisual(D,"style")),Z.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),Z.z2EmphasisLift=0,se(Z,M),Vt(Z,L,P,z)}}),this._progressEls=v)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Xt(s,i.cx-o/2+H(l[0],i.r),i.cy-o/2+H(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new K,h=[],v=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new yt({silent:!0}),v[g]=new yt({silent:!0})}).update(function(g,y){h[g]=s._titleEls[y],v[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),x=l.get(u,g),_=new K,b=n(kt(x,[f,p],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+H(T[0],o.r),A=o.cy+H(T[1],o.r),D=h[g];D.attr({z2:m?0:2,style:Ht(S,{x:C,y:A,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(D)}var M=y.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),z=H(M.get("width"),o.r),R=H(M.get("height"),o.r),U=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:b,D=v[g],V=M.get("formatter");D.attr({z2:m?0:2,style:Ht(M,{x:L,y:P,text:Mm(x,V),width:isNaN(z)?null:z,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:U})}),mv(D,{normal:M},x,function(Z){return Mm(Z,V)}),d&&gv(D,g,l,t,{getFormattedLabel:function(Z,Q,st,ct,pt,Lt){return Mm(Lt?Lt.interpolatedValue:x,V)}}),_.add(D)}c.add(_)}),this.group.add(c),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(It),yR=kY;var VY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return pi(this,["value"])},e.type="series.gauge",e.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}},e}(Rt),xR=VY;function d1(r){r.registerChartView(yR),r.registerSeriesModel(xR)}var UY=["itemStyle","opacity"],BY=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new pe,s=new yt;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(UY);f=f??1,a||Oe(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Ut(n,{style:{opacity:f}},o,i)):_t(n,{style:{opacity:f},shape:{points:l.points}},o,i),se(n,s),this._updateLabel(t,i),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;ee(o,Kt(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:c,outsideFill:c});var h=f.linePoints;n.setShape({points:h}),a.textGuideLineConfig={anchor:h?new bt(h[0][0],h[0][1]):null},_t(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Cu(a,Au(l),{stroke:c})},e}(he),FY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new BY(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);en(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(It),_R=FY;var GY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return pi(this,{coordDimensions:["value"],encodeDefaulter:et(hu,this)})},e.prototype._defaultLabelLine=function(t){ai(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Rt),SR=GY;function HY(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function WY(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return X(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return n?i[l]-i[u]:i[u]-i[l]}),a}function YY(r){var e=r.hostModel,t=e.get("orient");r.each(function(i){var a=r.getItemModel(i),n=a.getModel("label"),o=n.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(i),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",p,c,h,v;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,p="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,p="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,p="center"),v=[[c,h],[c,h]];else{var d=void 0,m=void 0,g=void 0,y=void 0,x=s.get("length");o==="left"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=d-x,c=g-5,p="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=d+x,c=g+5,p="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-x,h=y-5,p="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+x,h=y+5,p="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],m=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(y=m-x,h=y-5,p="center"):(g=d+x,c=g+5,p="top")):o==="rightBottom"?(d=u[2][0],m=u[2][1],t==="horizontal"?(y=m+x,h=y+5,p="center"):(g=d+x,c=g+5,p="bottom")):o==="leftTop"?(d=u[0][0],m=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(y=m-x,h=y-5,p="center"):(g=d-x,c=g-5,p="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],m=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(y=m+x,h=y+5,p="center"):(g=d-x,c=g-5,p="right")):(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,t==="horizontal"?(y=m+x,h=y+5,p="center"):(g=d+x,c=g+5,p="left")),t==="horizontal"?(g=d,c=g):(y=m,h=y),v=[[d,m],[g,y]]}l.label={linePoints:v,x:c,y:h,verticalAlign:"middle",textAlign:p,inside:f}})}function m1(r,e){r.eachSeriesByType("funnel",function(t){var i=t.getData(),a=i.mapDimension("value"),n=t.get("sort"),o=HY(t,e),s=t.get("orient"),l=o.width,u=o.height,f=WY(i,n),p=o.x,c=o.y,h=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],v=i.getDataExtent(a),d=t.get("min"),m=t.get("max");d==null&&(d=Math.min(v[0],0)),m==null&&(m=v[1]);var g=t.get("funnelAlign"),y=t.get("gap"),x=s==="horizontal"?l:u,_=(x-y*(i.count()-1))/i.count(),b=function(P,z){if(s==="horizontal"){var R=i.get(a,P)||0,U=kt(R,[d,m],h,!0),V=void 0;switch(g){case"top":V=c;break;case"center":V=c+(u-U)/2;break;case"bottom":V=c+(u-U);break}return[[z,V],[z,V+U]]}var B=i.get(a,P)||0,Z=kt(B,[d,m],h,!0),Q;switch(g){case"left":Q=p;break;case"center":Q=p+(l-Z)/2;break;case"right":Q=p+l-Z;break}return[[Q,z],[Q+Z,z]]};n==="ascending"&&(_=-_,y=-y,s==="horizontal"?p+=l:c+=u,f=f.reverse());for(var S=0;S<f.length;S++){var T=f[S],C=f[S+1],A=i.getItemModel(T);if(s==="horizontal"){var D=A.get(["itemStyle","width"]);D==null?D=_:(D=H(D,l),n==="ascending"&&(D=-D));var M=b(T,p),I=b(C,p+D);p+=D+y,i.setItemLayout(T,{points:M.concat(I.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);L==null?L=_:(L=H(L,u),n==="ascending"&&(L=-L));var M=b(T,c),I=b(C,c+L);c+=L+y,i.setItemLayout(T,{points:M.concat(I.slice().reverse())})}}YY(i)})}function g1(r){r.registerChartView(_R),r.registerSeriesModel(SR),r.registerLayout(m1),r.registerProcessor(ua("funnel"))}var ZY=.3,XY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new K,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,a,n){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,p=wR(t);s.diff(l).add(c).update(h).remove(v).execute();function c(m){var g=bR(s,o,m,f,u);y1(g,s,m,p)}function h(m,g){var y=l.getItemGraphicEl(g),x=TR(s,m,f,u);s.setItemGraphicEl(m,y),_t(y,{shape:{points:x}},t,m),Oe(y),y1(y,s,m,p)}function v(m){var g=l.getItemGraphicEl(m);o.remove(g)}if(!this._initialized){this._initialized=!0;var d=qY(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,a){for(var n=i.getData(),o=i.coordinateSystem,s=o.dimensions,l=wR(i),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var p=bR(n,this._dataGroup,f,s,o);p.incremental=!0,y1(p,n,f,l),u.push(p)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(It);function qY(r,e,t){var i=r.model,a=r.getRect(),n=new ht({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=i.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),Ut(n,{shape:{width:a.width,height:a.height}},e,t),n}function TR(r,e,t,i){for(var a=[],n=0;n<t.length;n++){var o=t[n],s=r.get(r.mapDimension(o),e);jY(s,i.getAxis(o).type)||a.push(i.dataToPoint(s,o))}return a}function bR(r,e,t,i,a){var n=TR(r,t,i,a),o=new pe({shape:{points:n},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function wR(r){var e=r.get("smooth",!0);return e===!0&&(e=ZY),e=kr(e),Mn(e)&&(e=0),{smooth:e}}function y1(r,e,t,i){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",i.smooth);var a=e.getItemModel(t),n=a.getModel("emphasis");se(r,a,"lineStyle"),Vt(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function jY(r,e){return e==="category"?r==null:r==null||isNaN(r)}var CR=XY;var KY=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:W(QY,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,a=this.getData(),n=[];return i.eachActiveState(a,function(o,s){t===o&&n.push(a.getRawIndex(s))}),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Rt);function QY(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return w(e.dimensions,function(i){var a=$Y(i);t[i]=a}),t}}function $Y(r){return+r.replace("dim","")}var AR=KY;var JY=["lineStyle","opacity"],t9={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,i={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,n){t.eachActiveState(n,function(o,s){var l=i[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(JY,!0);u!=null&&(l=u)}var f=n.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}},DR=t9;function x1(r){e9(r),r9(r)}function e9(r){if(!r.parallel){var e=!1;w(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function r9(r){var e=Nt(r.parallelAxis);w(e,function(t){if(j(t)){var i=t.parallelIndex||0,a=Nt(r.parallel)[i];a&&a.parallelAxisDefault&&lt(t,a.parallelAxisDefault,!1)}})}var i9=5,a9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this._model=t,this._api=a,this._handlers||(this._handlers={},w(n9,function(n,o){a.getZr().on(o,this._handlers[o]=W(n,this))},this)),Ii(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){cn(this,"_throttledDispatchExpand"),w(this._handlers,function(a,n){i.getZr().off(n,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(N({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Ot),n9={mousedown:function(r){_1(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(_1(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>i9)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_1(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function _1(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var MR=a9;var o9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&lt(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=Dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);w(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(xt),IR=o9;var s9=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Qe),LR=s9;function Qr(r,e,t,i,a,n){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=Wu(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Wu(s,[0,o]),a=n=Wu(s,[a,n]),i=0}e[0]=Wu(e[0],t),e[1]=Wu(e[1],t);var l=S1(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[i]=Wu(e[i],f);var p;return p=S1(e,i),a!=null&&(p.sign!==l.sign||p.span<a)&&(e[1-i]=e[i]+l.sign*a),p=S1(e,i),n!=null&&p.span>n&&(e[1-i]=e[i]+p.sign*n),e}function S1(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Wu(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var b1=w,zR=Math.min,RR=Math.max,ER=Math.floor,l9=Math.ceil,PR=Qt,u9=Math.PI,f9=function(){function r(e,t,i){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;b1(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new LR(o,no(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var a=i.getData();b1(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(a,a.mapDimension(n)),Ia(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Zt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Im(e.get("axisExpandWidth"),l),p=Im(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=Im(h[1]-h[0],l),h[1]=h[0]+v;else{v=Im(f*(p-1),l);var d=e.get("axisExpandCenter")||ER(u/2);h=[f*d-v/2],h[1]=h[0]+v}var m=(s-v)/(u-p);m<3&&(m=0);var g=[ER(PR(h[0]/f,1))+1,l9(PR(h[1]/f,1))-1],y=m/f*h[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),b1(i,function(o,s){var l=(a.axisExpandable?c9:p9)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:u9/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],h=Me();Rr(h,h,c),tr(h,h,p),this._axesLayout[o]={position:p,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;f<a;f++){var p=void 0;if(!u)p="normal";else{p="active";for(var c=e.getValues(s,f),h=0,v=o.length;h<v;h++){var d=l[h].getActiveState(c[h]);if(d==="inactive"){p="inactive";break}}}t(p,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,a=0,n=e.length;a<n;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return nr([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return $(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,a=t.axisExpandWindow.slice(),n=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),c=p[0]!=null;if(f)c&&f&&s<n*p[0]?(u="jump",l=s-n*p[2]):c&&f&&s>n*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Qr(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[RR(0,v-h/2)],a[1]=zR(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r}();function Im(r,e){return zR(RR(r,e[0]),e[1])}function p9(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function c9(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(a-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}var NR=f9;function h9(r,e){var t=[];return r.eachComponent("parallel",function(i,a){var n=new NR(i,r,e);n.name="parallel_"+a,n.resize(i,e),i.coordinateSystem=n,n.model=i,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var a=i.getReferringComponents("parallel",$t).models[0];i.coordinateSystem=a.coordinateSystem}}),t}var v9={create:h9},OR=v9;var kR=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Br([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=$(t);if(i)for(var a=i.length-1;a>=0;a--)Ie(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;n<o;n++)if(i[n][0]<=t&&t<=i[n][1])return"active";return"inactive"},e}(xt);jt(kR,La);var w1=kR;var Us=!0,gc=Math.min,Yu=Math.max,d9=Math.pow,m9=1e4,g9=6,y9=6,VR="globalPan",x9={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_9={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},UR={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},S9=0,b9=function(r){E(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new K,i._uid="brushController_"+S9++,w(I9,function(a,n){this._handlers[n]=W(a,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||MP(i,VR,this._uid),w(this._handlers,function(a,n){i.on(n,a)}),this._brushType=t.brushType,this._brushOption=lt($(UR),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;IP(t,VR,this._uid),w(this._handlers,function(i,a){t.off(a,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};w(t,function(a){i[a.panelId]=$(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=k(t,function(c){return lt($(UR),c,!0)});var i="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new lr(a,t,u,l).add(f).update(f).remove(p).execute(),this;function l(c,h){return(c.id!=null?c.id:i+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var v=t[c];if(h!=null&&a[h]===s)n[c]=a[h];else{var d=n[c]=h!=null?(a[h].__brushOption=v,a[h]):YR(o,WR(o,v));I1(o,d)}}function p(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),T1(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ne);function WR(r,e){var t=Lm[e.brushType].createCover(r,e);return t.__brushOption=e,XR(t,e),r.group.add(t),t}function YR(r,e){var t=L1(e);return t.endCreating&&(t.endCreating(r,e),XR(e,e.__brushOption)),e}function ZR(r,e){var t=e.__brushOption;L1(e).updateCoverShape(r,e,t.range,t)}function XR(r,e){var t=e.z;t==null&&(t=m9),r.traverse(function(i){i.z=t,i.z2=t})}function I1(r,e){L1(e).updateCommon(r,e),ZR(r,e)}function L1(r){return Lm[r.__brushOption.brushType]}function E1(r,e,t){var i=r._panels;if(!i)return Us;var a,n=r._transform;return w(i,function(o){o.isTargetByCursor(e,t,n)&&(a=o)}),a}function qR(r,e){var t=r._panels;if(!t)return Us;var i=e.__brushOption.panelId;return i!=null?t[i]:Us}function T1(r){var e=r._covers,t=e.length;return w(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function Bs(r,e){var t=k(r._covers,function(i){var a=i.__brushOption,n=$(a.range);return{brushType:a.brushType,panelId:a.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function w9(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],a=t[0]-i[0],n=t[1]-i[1],o=d9(a*a+n*n,.5);return o>g9}function jR(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function KR(r,e,t,i){var a=new K;return a.add(new ht({name:"main",style:P1(t),silent:!0,draggable:!0,cursor:"move",drift:et(BR,r,e,a,["n","s","w","e"]),ondragend:et(Bs,e,{isEnd:!0})})),w(i,function(n){a.add(new ht({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:et(BR,r,e,a,n),ondragend:et(Bs,e,{isEnd:!0})}))}),a}function QR(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=Yu(a,y9),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,h=p-n+a/2,v=f-o,d=p-s,m=v+a,g=d+a;gn(r,e,"main",o,s,v,d),i.transformable&&(gn(r,e,"w",l,u,n,g),gn(r,e,"e",c,u,n,g),gn(r,e,"n",l,u,m,n),gn(r,e,"s",l,h,m,n),gn(r,e,"nw",l,u,n,n),gn(r,e,"ne",c,u,n,n),gn(r,e,"sw",l,h,n,n),gn(r,e,"se",c,h,n,n))}function C1(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(P1(t)),a.attr({silent:!i,cursor:i?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?A1(r,n[0]):C9(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?_9[s]+"-resize":null})})}function gn(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(D9(z1(r,e,[[i,a],[i+n,a+o]])))}function P1(r){return q({strokeNoScale:!0},r.brushStyle)}function $R(r,e,t,i){var a=[gc(r,t),gc(e,i)],n=[Yu(r,t),Yu(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function T9(r){return qi(r.group)}function A1(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=cs(t[e],T9(r));return i[a]}function C9(r,e){var t=[A1(r,e[0]),A1(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function BR(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=JR(e,a,n);w(i,function(u){var f=x9[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange($R(s[0][0],s[1][0],s[0][1],s[1][1])),I1(e,t),Bs(e,{isEnd:!1})}function A9(r,e,t,i){var a=e.__brushOption.range,n=JR(r,t,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),I1(r,e),Bs(r,{isEnd:!1})}function JR(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function z1(r,e,t){var i=qR(r,e);return i&&i!==Us?i.clipPath(t,r._transform):$(t)}function D9(r){var e=gc(r[0][0],r[1][0]),t=gc(r[0][1],r[1][1]),i=Yu(r[0][0],r[1][0]),a=Yu(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function M9(r,e,t){if(!(!r._brushType||L9(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=E1(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(n&&(n===Us||s.panelId===n.panelId)&&Lm[s.brushType].contain(a[o],t[0],t[1]))return}n&&i.setCursorStyle("crosshair")}}function D1(r){var e=r.event;e.preventDefault&&e.preventDefault()}function M1(r,e,t){return r.childOfName("main").contain(e,t)}function tN(r,e,t,i){var a=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),w9(r)||a){if(n&&!a){o.brushMode==="single"&&T1(r);var l=$(o);l.brushType=FR(l.brushType,n),l.panelId=n===Us?null:n.panelId,a=r._creatingCover=WR(r,l),r._covers.push(a)}if(a){var u=Lm[FR(r._brushType,n)],f=a.__brushOption;f.range=u.getCreatingRange(z1(r,a,r._track)),i&&(YR(r,a),u.updateCommon(r,a)),ZR(r,a),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&E1(r,e,t)&&T1(r)&&(s={isEnd:i,removeOnClick:!0});return s}function FR(r,e){return r==="auto"?e.defaultBrushType:r}var I9={mousedown:function(r){if(this._dragging)GR(this,r);else if(!r.target||!r.target.draggable){D1(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=E1(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,i=this.group.transformCoordToLocal(e,t);if(M9(this,r,i),this._dragging){D1(r);var a=tN(this,r,i,!1);a&&Bs(this,a)}},mouseup:function(r){GR(this,r)}};function GR(r,e){if(r._dragging){D1(e);var t=e.offsetX,i=e.offsetY,a=r.group.transformCoordToLocal(t,i),n=tN(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&Bs(r,n)}}function L9(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var Lm={lineX:HR(0),lineY:HR(1),rect:{createCover:function(r,e){function t(i){return i}return KR({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=jR(r);return $R(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){QR(r,e,t,i)},updateCommon:C1,contain:M1},polygon:{createCover:function(r,e){var t=new K;return t.add(new pe({name:"main",style:P1(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new he({name:"main",draggable:!0,drift:et(A9,r,e),ondragend:et(Bs,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:z1(r,e,t)})},updateCommon:C1,contain:M1}};function HR(r){return{createCover:function(e,t){return KR({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=jR(e),i=gc(t[0][r],t[1][r]),a=Yu(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=qR(e,t);if(o!==Us&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),QR(e,t,l,a)},updateCommon:C1,contain:M1}}var Zu=b9;function Em(r){return r=R1(r),function(e){return S0(e,r)}}function Pm(r,e){return r=R1(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function zm(r,e,t){var i=R1(r);return function(a,n){return i.contain(n[0],n[1])&&!po(a,e,t)}}function R1(r){return rt.create(r)}var E9=["axisLine","axisTickLabel","axisName"],P9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new Zu(i.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!z9(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new K,this.group.add(this._axisGroup),!!t.get("show")){var s=N9(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),h=N({strokeContainThreshold:f},c),v=new ur(t,h);w(E9,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,t,s,f,a),an(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=rt.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Em(p),isTargetByCursor:zm(p,s,n),getLinearBrushOtherExtent:Pm(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(R9(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=k(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Ot);function z9(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function R9(r){var e=r.axis;return k(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function N9(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var rN=P9;var O9={type:"axisAreaSelect",event:"axisAreaSelected"};function iN(r){r.registerAction(O9,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var k9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function yc(r){r.registerComponentView(MR),r.registerComponentModel(IR),r.registerCoordinateSystem("parallel",OR),r.registerPreprocessor(x1),r.registerComponentModel(w1),r.registerComponentView(rN),fa(r,"parallel",w1,k9),iN(r)}function N1(r){St(yc),r.registerChartView(CR),r.registerSeriesModel(AR),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,DR)}var V9=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),U9=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new V9},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){cr(this)},e.prototype.downplay=function(){hr(this)},e}(it),B9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,a){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,p=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var d=new U9,m=tt(d);m.dataIndex=v.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),x=y.get("curveness"),_=v.node1.getLayout(),b=v.node1.getModel(),S=b.get("localX"),T=b.get("localY"),C=v.node2.getLayout(),A=v.node2.getModel(),D=A.get("localX"),M=A.get("localY"),I=v.getLayout(),L,P,z,R,U,V,B,Z;d.shape.extent=Math.max(1,I.dy),d.shape.orient=h,h==="vertical"?(L=(S!=null?S*u:_.x)+I.sy,P=(T!=null?T*f:_.y)+_.dy,z=(D!=null?D*u:C.x)+I.ty,R=M!=null?M*f:C.y,U=L,V=P*(1-x)+R*x,B=z,Z=P*x+R*(1-x)):(L=(S!=null?S*u:_.x)+_.dx,P=(T!=null?T*f:_.y)+I.sy,z=D!=null?D*u:C.x,R=(M!=null?M*f:C.y)+I.ty,U=L*(1-x)+z*x,V=P,B=L*x+z*(1-x),Z=R),d.setShape({x1:L,y1:P,x2:z,y2:R,cpx1:U,cpy1:V,cpx2:B,cpy2:Z}),d.useStyle(y.getItemStyle()),aN(d.style,h,v);var Q=""+g.get("value"),st=Kt(g,"edgeLabel");ee(d,st,{labelFetcher:{getFormattedLabel:function(Lt,Bt,Et,gt,Pt,Ct){return t.getFormattedLabel(Lt,Bt,"edge",gt,Be(Pt,st.normal&&st.normal.get("formatter"),Q),Ct)}},labelDataIndex:v.dataIndex,defaultText:Q}),d.setTextConfig({position:"inside"});var ct=g.getModel("emphasis");se(d,g,"lineStyle",function(Lt){var Bt=Lt.getItemStyle();return aN(Bt,h,v),Bt}),s.add(d),c.setItemGraphicEl(v.dataIndex,d);var pt=ct.get("focus");Vt(d,pt==="adjacency"?v.getAdjacentDataIndices():pt==="trajectory"?v.getTrajectoryDataIndices():pt,ct.get("blurScope"),ct.get("disabled"))}),o.eachNode(function(v){var d=v.getLayout(),m=v.getModel(),g=m.get("localX"),y=m.get("localY"),x=m.getModel("emphasis"),_=new ht({shape:{x:g!=null?g*u:d.x,y:y!=null?y*f:d.y,width:d.dx,height:d.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});ee(_,Kt(m),{labelFetcher:{getFormattedLabel:function(S,T){return t.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),se(_,m),s.add(_),p.setItemGraphicEl(v.dataIndex,_),tt(_).dataType="node";var b=x.get("focus");Vt(_,b==="adjacency"?v.getAdjacentDataIndices():b==="trajectory"?v.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),p.eachItemGraphicEl(function(v,d){var m=p.getItemModel(d);m.get("draggable")&&(v.drift=function(g,y){n._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:p.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},v.ondragend=function(){n._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(F9(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(It);function aN(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");F(i)&&F(a)&&(r.fill=new Aa(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function F9(r,e,t){var i=new ht({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ut(i,{shape:{width:r.width+20}},e,t),i}var nN=B9;var G9=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var a=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new zt(o[l],this,i));if(n&&a){var u=mc(n,a,this,!0,f);return u.data}function f(p,c){p.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getData().getItemLayout(v);if(m){var g=m.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,m=d.getGraph().getEdgeByIndex(v),g=m.node1.getLayout();if(g){var y=g.depth,x=d.levelModels[y];x&&(h.parentModel=x)}return h})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ie("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return ie("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Rt),oN=G9;function k1(r,e){r.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=H9(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,f=l.edges;Y9(u);var p=Dt(u,function(d){return d.getLayout().value===0}),c=p.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),v=t.get("nodeAlign");W9(u,f,i,a,o,s,c,h,v)})}function H9(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function W9(r,e,t,i,a,n,o,s,l){Z9(r,e,t,a,n,s,l),K9(r,e,n,a,i,o,s),nZ(r,s)}function Y9(r){w(r,function(e){var t=vo(e.outEdges,Rm),i=vo(e.inEdges,Rm),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function Z9(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var d=u[v],m=d.hostGraph.data.getRawDataItem(d.dataIndex),g=m.depth!=null&&m.depth>=0;g&&m.depth>h&&(h=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;y<d.outEdges.length;y++){var x=d.outEdges[y],_=e.indexOf(x);s[_]=0;var b=x.node2,S=r.indexOf(b);--l[S]===0&&f.indexOf(b)<0&&f.push(b)}}++p,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var T=h>p-1?h:p-1;o&&o!=="left"&&X9(r,o,n,T);var C=n==="vertical"?(a-t)/T:(i-t)/T;j9(r,C,n)}function sN(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function X9(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];a.indexOf(f.node1)<0&&a.push(f.node1)}}n=a,a=[],++o}w(r,function(p){sN(p)||p.setLayout({depth:Math.max(0,i-p.getLayout().skNodeHeight)},!0)})}else e==="justify"&&q9(r,i)}function q9(r,e){w(r,function(t){!sN(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function j9(r,e,t){w(r,function(i){var a=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:a},!0):i.setLayout({x:a},!0)})}function K9(r,e,t,i,a,n,o){var s=Q9(r,o);$9(s,e,t,i,a,o),O1(s,a,t,i,o);for(var l=1;n>0;n--)l*=.99,J9(s,l,o),O1(s,a,t,i,o),aZ(s,l,o),O1(s,a,t,i,o)}function Q9(r,e){var t=[],i=e==="vertical"?"y":"x",a=Yf(r,function(n){return n.getLayout()[i]});return a.keys.sort(function(n,o){return n-o}),w(a.keys,function(n){t.push(a.buckets.get(n))}),t}function $9(r,e,t,i,a,n){var o=1/0;w(r,function(s){var l=s.length,u=0;w(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),w(r,function(s){w(s,function(l,u){var f=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),w(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function O1(r,e,t,i,a){var n=a==="vertical"?"x":"y";w(r,function(o){o.sort(function(d,m){return d.getLayout()[n]-m.getLayout()[n]});for(var s,l,u,f=0,p=o.length,c=a==="vertical"?"dx":"dy",h=0;h<p;h++)l=o[h],u=f-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var v=a==="vertical"?i:t;if(u=f-e-v,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=p-2;h>=0;--h)l=o[h],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function J9(r,e,t){w(r.slice().reverse(),function(i){w(i,function(a){if(a.outEdges.length){var n=vo(a.outEdges,tZ,t)/vo(a.outEdges,Rm);if(isNaN(n)){var o=a.outEdges.length;n=o?vo(a.outEdges,eZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-mo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-mo(a,t))*e;a.setLayout({y:l},!0)}}})})}function tZ(r,e){return mo(r.node2,e)*r.getValue()}function eZ(r,e){return mo(r.node2,e)}function rZ(r,e){return mo(r.node1,e)*r.getValue()}function iZ(r,e){return mo(r.node1,e)}function mo(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Rm(r){return r.getValue()}function vo(r,e,t){for(var i=0,a=r.length,n=-1;++n<a;){var o=+e(r[n],t);isNaN(o)||(i+=o)}return i}function aZ(r,e,t){w(r,function(i){w(i,function(a){if(a.inEdges.length){var n=vo(a.inEdges,rZ,t)/vo(a.inEdges,Rm);if(isNaN(n)){var o=a.inEdges.length;n=o?vo(a.inEdges,iZ,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-mo(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-mo(a,t))*e;a.setLayout({y:l},!0)}}})})}function nZ(r,e){var t=e==="vertical"?"x":"y";w(r,function(i){i.outEdges.sort(function(a,n){return a.node2.getLayout()[t]-n.node2.getLayout()[t]}),i.inEdges.sort(function(a,n){return a.node1.getLayout()[t]-n.node1.getLayout()[t]})}),w(r,function(i){var a=0,n=0;w(i.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),w(i.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}function V1(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),i=t.nodes,a=t.edges;if(i.length){var n=1/0,o=-1/0;w(i,function(s){var l=s.getLayout().value;l<n&&(n=l),l>o&&(o=l)}),w(i,function(s){var l=new xe({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&w(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function U1(r){r.registerChartView(nN),r.registerSeriesModel(oN),r.registerLayout(k1),r.registerVisual(V1),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Nm=function(){function r(){}return r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",i=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,p=this._baseAxisDim=u[f],c=u[1-f],h=[a,n],v=h[f].get("type"),d=h[1-f].get("type"),m=e.data;if(m&&l){var g=[];w(m,function(_,b){var S;O(_)?(S=_.slice(),_.unshift(b)):O(_.value)?(S=N({},_),S.value=S.value.slice(),_.value.unshift(b)):S=_,g.push(S)}),e.data=g}var y=this.defaultValueDimensions,x=[{name:p,type:ws(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ws(d),dimsDef:y.slice()}];return pi(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:et(Lv,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}();var lN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Rt);jt(lN,Nm,!0);var uN=lN;var oZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u),p=fN(f,n,u,l,!0);n.setItemGraphicEl(u,p),o.add(p)}}).update(function(u,f){var p=s.getItemGraphicEl(f);if(!n.hasValue(u)){o.remove(p);return}var c=n.getItemLayout(u);p?(Oe(p),pN(c,p,n,u)):p=fN(c,n,u,l),o.add(p),n.setItemGraphicEl(u,p)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type="boxplot",e}(It),sZ=function(){function r(){}return r}(),lZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new sZ},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();n<a.length;n++)t.moveTo(a[n][0],a[n][1]),n++,t.lineTo(a[n][0],a[n][1])},e}(it);function fN(r,e,t,i,a){var n=r.ends,o=new lZ({shape:{points:a?uZ(n,i,r):n}});return pN(r,o,e,t,a),o}function pN(r,e,t,i,a){var n=t.hostModel,o=dt[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},n,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");se(e,s),Vt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function uZ(r,e,t){return k(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}var cN=oZ;var xc=w;function B1(r){var e=fZ(r);xc(e,function(t){var i=t.seriesModels;i.length&&(pZ(t),xc(i,function(a,n){cZ(a,t.boxOffsetList[n],t.boxWidthList[n])}))})}function fZ(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(i){var a=i.getBaseAxis(),n=nt(t,a);n<0&&(n=t.length,t[n]=a,e[n]={axis:a,seriesModels:[]}),e[n].seriesModels.push(i)}),e}function pZ(r){var e=r.axis,t=r.seriesModels,i=t.length,a=r.boxWidthList=[],n=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;xc(t,function(v){l=Math.max(l,v.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}xc(t,function(v){var d=v.get("boxWidth");O(d)||(d=[d,d]),o.push([H(d[0],s)||0,H(d[1],s)||0])});var f=s*.8-2,p=f/i*.3,c=(f-p*(i-1))/i,h=c/2-f/2;xc(t,function(v,d){n.push(h),h+=p+c,a.push(Math.min(Math.max(c,o[d][0]),o[d][1]))})}function cZ(r,e,t){var i=r.coordinateSystem,a=r.getData(),n=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var p=0;p<a.count();p++){var c=a.get(u,p),h=x(c,f[2],p),v=x(c,f[0],p),d=x(c,f[1],p),m=x(c,f[3],p),g=x(c,f[4],p),y=[];_(y,d,!1),_(y,m,!0),y.push(v,d,g,m),b(y,v),b(y,g),b(y,h),a.setItemLayout(p,{initBaseline:h[s],ends:y})}function x(S,T,C){var A=a.get(T,C),D=[];D[o]=S,D[s]=A;var M;return isNaN(S)||isNaN(A)?M=[NaN,NaN]:(M=i.dataToPoint(D),M[o]+=e),M}function _(S,T,C){var A=T.slice(),D=T.slice();A[o]+=n,D[o]-=n,C?S.push(A,D):S.push(D,A)}function b(S,T){var C=T.slice(),A=T.slice();C[o]-=n,A[o]+=n,S.push(C,A)}}function F1(r,e){e=e||{};for(var t=[],i=[],a=e.boundIQR,n=a==="none"||a===0,o=0;o<r.length;o++){var s=Ie(r[o].slice()),l=Wl(s,.25),u=Wl(s,.5),f=Wl(s,.75),p=s[0],c=s[s.length-1],h=(a??1.5)*(f-l),v=n?p:Math.max(p,l-h),d=n?c:Math.min(c,f+h),m=e.itemNameFormatter,g=X(m)?m({value:o}):F(m)?m.replace("{value}",o+""):o+"";t.push([g,v,l,u,f,d]);for(var y=0;y<s.length;y++){var x=s[y];if(x<v||x>d){var _=[g,x];i.push(_)}}}return{boxData:t,outliers:i}}var hN={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Le){var i="";Gt(i)}var a=F1(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function G1(r){r.registerSeriesModel(uN),r.registerChartView(cN),r.registerLayout(B1),r.registerTransform(hN)}var hZ=["color","borderColor"],vZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),i.diff(a).add(function(f){if(i.hasValue(f)){var p=i.getItemLayout(f);if(s&&vN(u,p))return;var c=H1(p,f,!0);Ut(c,{shape:{points:p.ends}},t,f),W1(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}}).update(function(f,p){var c=a.getItemGraphicEl(p);if(!i.hasValue(f)){n.remove(c);return}var h=i.getItemLayout(f);if(s&&vN(u,h)){n.remove(c);return}c?(_t(c,{shape:{points:h.ends}},t,f),Oe(c)):c=H1(h,f),W1(c,i,f,o),n.add(c),i.setItemGraphicEl(f,c)}).remove(function(f){var p=a.getItemGraphicEl(f);p&&n.remove(p)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),dN(t,this.group);var i=t.get("clip",!0)?Na(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=H1(s,o);W1(l,a,o,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){dN(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(It),dZ=function(){function r(){}return r}(),mZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new dZ},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(it);function H1(r,e,t){var i=r.ends;return new mZ({shape:{points:t?gZ(i,r):i},z2:100})}function vN(r,e){for(var t=!0,i=0;i<e.ends.length;i++)if(r.contain(e.ends[i][0],e.ends[i][1])){t=!1;break}return t}function W1(r,e,t,i){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=i,se(r,a)}function gZ(r,e){return k(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var yZ=function(){function r(){}return r}(),Y1=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new yZ},e.prototype.buildPath=function(t,i){for(var a=i.points,n=0;n<a.length;)if(this.__sign===a[n++]){var o=a[n++];t.moveTo(o,a[n++]),t.lineTo(o,a[n++])}else n+=3},e}(it);function dN(r,e,t,i){var a=r.getData(),n=a.getLayout("largePoints"),o=new Y1({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Y1({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Y1({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});e.add(l),Z1(1,o,r,a),Z1(-1,s,r,a),Z1(0,l,r,a),i&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Z1(r,e,t,i){var a=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var n=t.getModel("itemStyle").getItemStyle(hZ);e.useStyle(n),e.style.fill=null,e.style.stroke=a}var mN=vZ;var gN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Rt);jt(gN,Nm,!0);var yN=gN;function X1(r){!r||!O(r.series)||w(r.series,function(e){j(e)&&e.type==="k"&&(e.type="candlestick")})}var xZ=["itemStyle","borderColor"],_Z=["itemStyle","borderColor0"],SZ=["itemStyle","borderColorDoji"],bZ=["itemStyle","color"],wZ=["itemStyle","color0"],TZ={seriesType:"candlestick",plan:li(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?bZ:wZ)}function i(n,o){return o.get(n===0?SZ:n>0?xZ:_Z)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=i(u,l)||f.fill;var p=o.ensureUniqueItemVisual(s,"style");N(p,f)}}}}}},xN=TZ;var CZ={seriesType:"candlestick",plan:li(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=AZ(r,t),a=0,n=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=k(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var x=y.get(s,g),_=y.get(u,g),b=y.get(f,g),S=y.get(p,g),T=y.get(c,g),C=Math.min(_,b),A=Math.max(_,b),D=U(C,x),M=U(A,x),I=U(S,x),L=U(T,x),P=[];V(P,M,0),V(P,D,1),P.push(Z(L),Z(M),Z(I),Z(D));var z=m.getItemModel(g),R=!!z.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:_N(y,g,_,b,f,R),initBaseline:_>b?M[n]:D[n],ends:P,brushRect:B(S,T,x)})}function U(Q,st){var ct=[];return ct[a]=st,ct[n]=Q,isNaN(st)||isNaN(Q)?[NaN,NaN]:e.dataToPoint(ct)}function V(Q,st,ct){var pt=st.slice(),Lt=st.slice();pt[a]=sp(pt[a]+i/2,1,!1),Lt[a]=sp(Lt[a]-i/2,1,!0),ct?Q.push(pt,Lt):Q.push(Lt,pt)}function B(Q,st,ct){var pt=U(Q,ct),Lt=U(st,ct);return pt[a]-=i/2,Lt[a]-=i/2,{x:pt[0],y:pt[1],width:n?i:Lt[0]-pt[0],height:n?Lt[1]-pt[1]:i}}function Z(Q){return Q[a]=sp(Q[a],1),Q}}function v(d,m){for(var g=Tr(d.count*4),y=0,x,_=[],b=[],S,T=m.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(S=d.next())!=null;){var A=T.get(s,S),D=T.get(u,S),M=T.get(f,S),I=T.get(p,S),L=T.get(c,S);if(isNaN(A)||isNaN(I)||isNaN(L)){g[y++]=NaN,y+=3;continue}g[y++]=_N(T,S,D,M,f,C),_[a]=A,_[n]=I,x=e.dataToPoint(_,null,b),g[y++]=x?x[0]:NaN,g[y++]=x?x[1]:NaN,_[n]=L,x=e.dataToPoint(_,null,b),g[y++]=x?x[1]:NaN}m.setLayout("largePoints",g)}}};function _N(r,e,t,i,a,n){var o;return t>i?o=-1:t<i?o=1:o=n?0:e>0?r.get(a,e-1)<=i?1:-1:1,o}function AZ(r,e){var t=r.getBaseAxis(),i,a=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),n=H(at(r.get("barMaxWidth"),a),a),o=H(at(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?H(s,a):Math.max(Math.min(a/2,n),o)}var SN=CZ;function q1(r){r.registerChartView(mN),r.registerSeriesModel(yN),r.registerPreprocessor(X1),r.registerVisual(xN),r.registerLayout(SN)}function bN(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var DZ=function(r){E(e,r);function e(t,i){var a=r.call(this)||this,n=new vn(t,i),o=new K;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=Xt(i,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}bN(o,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,a=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}bN(a,t)},e.prototype.highlight=function(){cr(this)},e.prototype.downplay=function(){hr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var a=this,n=t.hostModel;this.childAt(0).updateData(t,i);var o=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=ea(t.getItemVisual(i,"symbolSize")),f=t.getItemVisual(i,"style"),p=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",p)});var h=ui(t.getItemVisual(i,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=t.getItemVisual(i,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var d={};d.showEffectOn=n.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=i/t.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=l,d.color=p,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):m==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,Vt(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(K),wN=DZ;var MZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Ra(wN)},e.prototype.render=function(t,i,a){var n=t.getData(),o=this._symbolDraw;o.updateData(n,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,a=i&&i.getArea&&i.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,i,a){var n=t.getData();this.group.dirty();var o=la("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=iC(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(It),TN=MZ;var IZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Rt),CN=IZ;function j1(r){r.registerChartView(TN),r.registerSeriesModel(CN),r.registerLayout(la("effectScatter"))}var LZ=function(r){E(e,r);function e(t,i,a){var n=r.call(this)||this;return n.add(n.createLine(t,i,a)),n._updateEffectSymbol(t,i),n}return e.prototype.createLine=function(t,i,a){return new Bu(t,i,a)},e.prototype._updateEffectSymbol=function(t,i){var a=t.getItemModel(i),n=a.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");O(o)||(o=[o,o]);var l=t.getItemVisual(i,"style"),u=n.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Xt(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(n.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,i))},e.prototype._updateEffectAnimation=function(t,i,a){var n=this.childAt(1);if(n){var o=t.getItemLayout(a),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),f=i.get("constantSpeed"),p=ae(i.get("delay"),function(h){return h/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),f>0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;X(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return di(t.__p1,t.__cp1)+di(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Se,f=Mf;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=di(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*di(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var a=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,a,i)},e}(K),Om=LZ;var EZ=function(r){E(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createPolyline(t,i,a),n}return e.prototype._createPolyline=function(t,i,a){var n=t.getItemLayout(i),o=new pe({shape:{points:n}});this.add(o),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};_t(o,s,n,i),this._updateCommonStl(t,i,a)},e.prototype._updateCommonStl=function(t,i,a){var n=this.childAt(0),o=t.getItemModel(i),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var p=o.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),f=p.get("disabled"),l=p.get("focus"),u=p.get("blurScope")}n.useStyle(t.getItemVisual(i,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var c=n.ensureState("emphasis");c.style=s,Vt(this,l,u,f)},e.prototype.updateLayout=function(t,i){var a=this.childAt(0);a.setShape("points",t.getItemLayout(i))},e}(K),km=EZ;var PZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,a){return new km(t,i,a)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var a=[0],n=0,o=1;o<i.length;o++){var s=i[o-1],l=i[o];n+=di(s,l),a.push(n)}if(n===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=n;this._offsets=a,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<1?t.__t:2-t.__t,a=this._points,n=this._offsets,o=a.length;if(n){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>i);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var h=t.__t<1?c[0]-p[0]:p[0]-c[0],v=t.__t<1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(Om),AN=PZ;var zZ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),RZ=function(r){E(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zZ},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],p=a[o++],c=a[o++];if(t.moveTo(u,f),n>0){var h=(u+p)/2-(f-c)*n,v=(f+c)/2-(p-u)*n;t.quadraticCurveTo(h,v,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<n.length;){var f=n[u++];if(f>0)for(var p=n[u++],c=n[u++],h=1;h<f;h++){var v=n[u++],d=n[u++];if(wa(p,c,v,d,s,t,i))return l}l++}else for(var l=0,u=0;u<n.length;){var p=n[u++],c=n[u++],v=n[u++],d=n[u++];if(o>0){var m=(p+v)/2-(c-d)*o,g=(c+d)/2-(v-p)*o;if(qh(p,c,m,g,v,d,s,t,i))return l}else if(wa(p,c,v,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],p=a[u++];n=Math.min(f,n),s=Math.max(f,s),o=Math.min(p,o),l=Math.max(p,l)}t=this._rect=new rt(n,o,s,l)}return t},e}(it),NZ=function(){function r(){this.group=new K}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var i=this._newAdded[0],a=t.getLayout("linesPoints"),n=i&&i.shape.segs;if(n&&n.length<2e4){var o=n.length,s=new Float32Array(o+a.length);s.set(n),s.set(a,o),i.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new RZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=tt(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),DN=NZ;var OZ={seriesType:"lines",plan:li(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var p=0,c=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);t&&(s[p++]=h);for(var v=0;v<h;v++)c=e.dataToPoint(o[v],!1,c),s[p++]=c[0],s[p++]=c[1]}n.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=n.getItemModel(f),h=r.getLineCoords(f,o),m=[];if(t)for(var g=0;g<h;g++)m.push(e.dataToPoint(o[g]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var y=d.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}n.setItemLayout(f,m)}}}}}},Vm=OZ;var kZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.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(t)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(n);var p=t.get("clip",!0)&&Na(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Vm.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new DN:new Fu(o?n?AN:km:n?Om:Bu),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),a=i.painter.getType()==="svg";!a&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(It),MN=kZ;var VZ=typeof Uint32Array>"u"?Array:Uint32Array,UZ=typeof Float64Array>"u"?Array:Float64Array;function IN(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=k(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Cl([a,t[0],t[1]])}))}var BZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],IN(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(IN(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Eo(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Eo(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)i[o]=i[o]||[],i[o][0]=this._flatCoords[a+o*2],i[o][1]=this._flatCoords[a+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)i[o]=i[o]||[],i[o][0]=s[o][0],i[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),vt(t[0])){for(var a=t.length,n=new VZ(a),o=new UZ(a),s=0,l=0,u=0,f=0;f<a;){u++;var p=t[f++];n[l++]=s+i,n[l++]=p;for(var c=0;c<p;c++){var h=t[f++],v=t[f++];o[s++]=h,o[s++]=v,f>a}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new ve(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getItemModel(t),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),ie("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(Rt),LN=BZ;function Um(r){return r instanceof Array||(r=[r,r]),r}var FZ={seriesType:"lines",reset:function(r){var e=Um(r.get("symbol")),t=Um(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=Um(s.getShallow("symbol",!0)),u=Um(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?a:null}}},EN=FZ;function K1(r){r.registerChartView(MN),r.registerSeriesModel(LN),r.registerLayout(Vm),r.registerVisual(EN)}var GZ=256,HZ=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=pr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),h=e.length;p.width=t,p.height=i;for(var v=0;v<h;++v){var d=e[v],m=d[0],g=d[1],y=d[2],x=a(y);c.globalAlpha=x,c.drawImage(s,m-f,g-f)}if(!p.width||!p.height)return p;for(var _=c.getImageData(0,0,p.width,p.height),b=_.data,S=0,T=b.length,C=this.minOpacity,A=this.maxOpacity,D=A-C;S<T;){var x=b[S+3]/256,M=Math.floor(x*(GZ-1))*4;if(x>0){var I=o(x)?l:u;x>0&&(x=x*D+C),b[S++]=I[M],b[S++]=I[M+1],b[S++]=I[M+2],b[S++]=I[M+3]*x*256}else S+=4}return c.putImageData(_,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=pr.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r}(),PN=HZ;function WZ(r,e,t){var i=r[1]-r[0];e=k(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&t[s]}}function YZ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(i){return i>=e[0]&&i<=e[1]}}function zN(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var ZZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):zN(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(zN(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,a,n,o){var s=t.coordinateSystem,l=Pi(s,"cartesian2d"),u,f,p,c;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,f=v.getBandWidth()+.5,p=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,m=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),b=Kt(t),S=t.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),A=S.get("disabled"),D=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=a;M<n;M++){var I=void 0,L=m.getItemVisual(M,"style");if(l){var P=m.get(D[0],M),z=m.get(D[1],M);if(isNaN(m.get(D[2],M))||isNaN(P)||isNaN(z)||P<p[0]||P>p[1]||z<c[0]||z>c[1])continue;var R=s.dataToPoint([P,z]);I=new ht({shape:{x:R[0]-u/2,y:R[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(m.get(D[1],M)))continue;I=new ht({z2:1,shape:s.dataToRect([m.get(D[0],M)]).contentShape,style:L})}if(m.hasItemOption){var U=m.getItemModel(M),V=U.getModel("emphasis");g=V.getModel("itemStyle").getItemStyle(),y=U.getModel(["blur","itemStyle"]).getItemStyle(),x=U.getModel(["select","itemStyle"]).getItemStyle(),_=U.get(["itemStyle","borderRadius"]),T=V.get("focus"),C=V.get("blurScope"),A=V.get("disabled"),b=Kt(U)}I.shape.r=_;var B=t.getRawValue(M),Z="-";B&&B[2]!=null&&(Z=B[2]+""),ee(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:L.opacity,defaultText:Z}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=x,Vt(I,T,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),d.add(I),m.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new PN;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),h=Math.max(f.y,0),v=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=v-c,g=d-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(T,C,A){var D=t.dataToPoint([T,C]);return D[0]-=c,D[1]-=h,D.push(A),D}),_=a.getExtent(),b=a.type==="visualMap.continuous"?YZ(_,a.option.range):WZ(_,a.getPieceList(),a.option.selected);u.update(x,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var S=new re({style:{width:m,height:g,x:c,y:h,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(It),RN=ZZ;var XZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Ke(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=un.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Rt),NN=XZ;function Q1(r){r.registerChartView(RN),r.registerSeriesModel(NN)}var qZ=["itemStyle","borderWidth"],ON=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$1=new _r,jZ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:ON[+f],categoryDim:ON[1-+f]};o.diff(s).add(function(v){if(o.hasValue(v)){var d=VN(o,v),m=kN(o,v,d,c),g=UN(o,c,m);o.setItemGraphicEl(v,g),n.add(g),FN(g,c,m)}}).update(function(v,d){var m=s.getItemGraphicEl(d);if(!o.hasValue(v)){n.remove(m);return}var g=VN(o,v),y=kN(o,v,g,c),x=qN(o,y);m&&x!==m.__pictorialShapeStr&&(n.remove(m),o.setItemGraphicEl(v,null),m=null),m?rX(m,c,y):m=UN(o,c,y,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=y,n.add(m),FN(m,c,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&BN(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?Na(t.coordinateSystem,!1,t):null;return h?n.setClipPath(h):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){BN(n,tt(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(It);function kN(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};KZ(t,n,a,i,c),QZ(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),$Z(t,c.symbolScale,u,i,c);var h=c.symbolSize,v=ui(t.get("symbolOffset"),h);return JZ(t,h,a,n,o,v,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function KZ(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(O(o)){var p=[J1(s,o[0])-l,J1(s,o[1])-l];p[1]<p[0]&&p.reverse(),f=p[u]}else o!=null?f=J1(s,o)-l:e?f=i.coordSysExtent[n.index][u]-l:f=t[n.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[n.wh]),a.pxSign=f>0?1:-1}function J1(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function QZ(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),h=r.getItemVisual(e,"symbolSize"),v;O(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[p.index]=H(v[p.index],c),v[f.index]=H(v[f.index],i?c:Math.abs(n)),u.symbolSize=v;var d=u.symbolScale=[v[0]/s,v[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function $Z(r,e,t,i,a){var n=r.get(qZ)||0;n&&($1.attr({scaleX:e[0],scaleY:e[1],rotation:t}),$1.updateTransform(),n/=$1.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function JZ(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,h=f.valueDim,v=p.pxSign,d=Math.max(e[h.index]+s,0),m=d;if(i){var g=Math.abs(l),y=ae(r.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var _=H(y,e[h.index]),b=Math.max(d+_*2,0),S=x?0:_*2,T=jo(i),C=T?i:GN((g+S)/b),A=g-C*d;_=A/2/(x?C:Math.max(C-1,1)),b=d+_*2,S=x?0:_*2,!T&&i!=="fixed"&&(C=u?GN((Math.abs(u)+S)/b):0),m=C*b-S,p.repeatTimes=C,p.symbolMargin=_}var D=v*(m/2),M=p.pathPosition=[];M[c.index]=t[c.wh]/2,M[h.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var I=p.bundlePosition=[];I[c.index]=t[c.xy],I[h.index]=t[h.xy];var L=p.barRectShape=N({},t);L[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(M[h.index]+D)),L[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function HN(r){var e=r.symbolPatternSize,t=Xt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function WN(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(tb(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?Xu(d,null,v(f),t,i):Xu(d,null,{scaleX:0,scaleY:0},t,i,function(){a.remove(d)}),f++});f<u;f++){var c=HN(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var h=v(f);Xu(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,i)}function v(d){var m=s.slice(),g=t.pxSign,y=d;return(t.symbolRepeatDirection==="start"?g>0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function YN(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?Xu(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=HN(t),a.add(n),Xu(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function ZN(r,e,t){var i=N({},e.barRectShape),a=r.__pictorialBarRect;a?Xu(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new ht({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function XN(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=N({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)_t(a,{shape:n},s,l);else{n[o.wh]=0,a=new ht({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],dt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function VN(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=tX,t.isAnimationEnabled=eX,t}function tX(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function eX(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function UN(r,e,t,i){var a=new K,n=new K;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?WN(a,e,t):YN(a,e,t),ZN(a,t,i),XN(a,e,t,i),a.__pictorialShapeStr=qN(r,t),a.__pictorialSymbolMeta=t,a}function rX(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;_t(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?WN(r,e,t,!0):YN(r,e,t,!0),ZN(r,t,!0),XN(r,e,t,!0)}function BN(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];tb(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),w(n,function(o){Ti(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function qN(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tb(r,e,t){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function Xu(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&dt[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function FN(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");tb(r,function(d){if(d instanceof re){var m=d.style;d.useStyle(N({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,ee(v,Kt(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:sa(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Vt(r,f,p,n.get("disabled"))}function GN(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var jN=jZ;var iX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=mr(Mu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Mu),KN=iX;function eb(r){r.registerChartView(jN),r.registerSeriesModel(KN),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,et(Sd,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bd("pictorialBar"))}var aX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var h=new lr(this._layersSeries||[],l,c,c),v=[];h.add(W(d,this,"add")).update(W(d,this,"update")).remove(W(d,this,"remove")).execute();function d(m,g,y){var x=o._layers;if(m==="remove"){s.remove(x[g]);return}for(var _=[],b=[],S,T=l[g].indices,C=0;C<T.length;C++){var A=n.getItemLayout(T[C]),D=A.x,M=A.y0,I=A.y;_.push(D,M),b.push(D,M+I),S=n.getItemVisual(T[C],"style")}var L,P=n.getItemLayout(T[0]),z=t.getModel("label"),R=z.get("margin"),U=t.getModel("emphasis");if(m==="add"){var V=v[g]=new K;L=new Qd({shape:{points:_,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(L),s.add(V),t.isAnimationEnabled()&&L.setClipPath(nX(L.getBoundingRect(),t,function(){L.removeClipPath()}))}else{var V=x[y];L=V.childAt(0),s.add(V),v[g]=V,_t(L,{shape:{points:_,stackedOnPoints:b}},t),Oe(L)}ee(L,Kt(t),{labelDataIndex:T[C-1],defaultText:n.getName(T[C-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var B=L.getTextContent();B&&(B.x=P.x-R,B.y=P.y0+P.y/2),L.useStyle(S),n.setItemGraphicEl(g,L),se(L,t),Vt(L,U.get("focus"),U.get("blurScope"),U.get("disabled"))}this._layersSeries=l,this._layers=v},e.type="themeRiver",e}(It);function nX(r,e,t){var i=new ht({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ut(i,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),i}var QN=aX;var rb=2,oX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ka(W(this.getData,this),W(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,a={},n=Yf(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];n.buckets.each(function(c,h){o.push({name:h,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var p=o[l].dataList[f][0]+"";a[p]=l}for(var p in a)a.hasOwnProperty(p)&&a[p]!==l&&(a[p]=l,t[i]=[p,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var a=this.getReferringComponents("singleAxis",$t).models[0],n=a.get("type"),o=Dt(t.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Y(),f=0,p=0;p<s.length;++p)l.push(s[p][rb]),u.get(s[p][rb])||(u.set(s[p][rb],f),f++);var c=ia(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ws(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ve(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),a=[],n=0;n<i;++n)a[n]=n;var o=t.mapDimension("single"),s=Yf(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(p,c){return t.get(o,p)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,a){O(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var p=Number.MAX_VALUE,c=-1,h=o[f].indices.length,v=0;v<h;++v){var d=n.get(t[0],o[f].indices[v]),m=Math.abs(d-i);m<=p&&(u=d,p=m,c=o[f].indices[v])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return ie("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Rt),$N=oX;function ib(r,e){r.eachSeriesByType("themeRiver",function(t){var i=t.getData(),a=t.coordinateSystem,n={},o=a.getRect();n.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],o.height),s[1]=H(s[1],o.height);var u=o.height-s[0]-s[1];JN(i,t,u)}else{s[0]=H(s[0],o.width),s[1]=H(s[1],o.width);var f=o.width-s[0]-s[1];JN(i,t,f)}i.setLayout("layoutInfo",n)})}function JN(r,e,t){if(r.count())for(var i=e.coordinateSystem,a=e.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=k(a,function(m){return k(m.indices,function(g){var y=i.dataToPoint(r.get(n,g));return y[1]=r.get(o,g),y})}),l=sX(s),u=l.y0,f=t/l.max,p=a.length,c=a[0].indices.length,h,v=0;v<c;++v){h=u[v]*f,r.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*f});for(var d=1;d<p;++d)h+=s[d-1][v][1]*f,r.setItemLayout(a[d].indices[v],{layerIndex:d,x:s[d][v][0],y0:h,y:s[d][v][1]*f})}}function sX(r){for(var e=r.length,t=r[0].length,i=[],a=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>n&&(n=s),i.push(s)}for(var u=0;u<t;++u)a[u]=(n-i[u])/2;n=0;for(var f=0;f<t;++f){var p=i[f]+a[f];p>n&&(n=p)}return{y0:a,max:n}}function ab(r){r.registerChartView(QN),r.registerSeriesModel($N),r.registerLayout(ib),r.registerProcessor(ua("themeRiver"))}var lX=2,uX=4,fX=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=lX,o.textConfig={inside:!0},tt(o).seriesIndex=i.seriesIndex;var s=new yt({z2:uX,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;tt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=N({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var h=i.getVisual("decal");h&&(c.decal=ra(h,o));var v=Oa(l.getModel("itemStyle"),p,!0);N(p,v),w(Ue,function(y){var x=s.ensureState(y),_=l.getModel([y,"itemStyle"]);x.style=_.getItemStyle();var b=Oa(_,p);b&&(x.shape=b)}),t?(s.setShape(p),s.shape.r=f.r0,Ut(s,{shape:{r:f.r}},a,i.dataIndex)):(_t(s,{shape:p},a),Oe(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;Vt(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),h=this.node.dataIndex,v=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(v!=null&&Math.abs(s)<v);c.ignore=!d,w(Wn,function(g){var y=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),x=g==="normal",_=x?c:c.ensureState(g),b=t.getFormattedLabel(h,g);x&&(b=b||i.node.name),_.style=Ht(y,{},null,g!=="normal",!0),b&&(_.style.text=b);var S=y.get("show");S!=null&&!x&&(_.ignore=!S);var T=m(y,"position"),C=x?p:p.states[g],A=C.style.fill;C.textConfig={outsideFill:y.get("color")==="inherit"?A:null,inside:T!=="outside"};var D,M=m(y,"distance")||0,I=m(y,"align"),L=m(y,"rotate"),P=Math.PI*.5,z=Math.PI*1.5,R=ar(L==="tangential"?Math.PI/2-l:l),U=R>P&&!qa(R-P)&&R<z;T==="outside"?(D=o.r+M,I=U?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+M,I=U?"right":"left"):I==="right"&&(D=o.r-M,I=U?"left":"right"),_.style.align=I,_.style.verticalAlign=m(y,"verticalAlign")||"middle",_.x=D*u+o.cx,_.y=D*f+o.cy;var V=0;L==="radial"?V=ar(-l)+(U?Math.PI:0):L==="tangential"?V=ar(Math.PI/2-l)+(U?Math.PI:0):vt(L)&&(V=L*Math.PI/180),_.rotation=ar(V)});function m(g,y){var x=g.get(y);return x??n.get(y)}c.dirtyStyle()},e}(we),nb=fX;var Bm="sunburstRootToNode",tO="sunburstHighlight",pX="sunburstUnhighlight";function eO(r){r.registerAction({type:Bm,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a,n){var o=mn(e,[Bm],a);if(o){var s=a.getViewRoot();s&&(e.direction=Nu(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:tO,update:"none"},function(e,t,i){e=N({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n){var o=mn(e,[tO],n);o&&(e.dataIndex=o.node.dataIndex)}i.dispatchAction(N(e,{type:"highlight"}))}),r.registerAction({type:pX,update:"updateView"},function(e,t,i){e=N({},e),i.dispatchAction(N(e,{type:"downplay"}))})}var cX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){var o=this;this.seriesModel=t,this.api=a,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,p=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(y){c.push(y)});var h=this._oldChildren||[];v(c,h),g(l,u),this._initEvents(),this._oldChildren=c;function v(y,x){if(y.length===0&&x.length===0)return;new lr(x,y,_,_).add(b).update(b).remove(et(b,null)).execute();function _(S){return S.getId()}function b(S,T){var C=S==null?null:y[S],A=T==null?null:x[T];d(C,A)}}function d(y,x){if(!p&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,t,i,a),s.setItemGraphicEl(y.dataIndex,x.piece)):m(x);else if(y){var _=new nb(y,t,i,a);f.add(_),s.setItemGraphicEl(y.dataIndex,_)}}}function m(y){y&&y.piece&&(f.remove(y.piece),y.piece=null)}function g(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new nb(y,t,i,a),f.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(x.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";gs(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bm,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(It),rO=cX;var hX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};iO(a);var n=this._levelModels=k(t.levels||[],function(l){return new zt(l,this,i)},this),o=Ru.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=ho(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){sc(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Rt);function iO(r){var e=0;w(r.children,function(i){iO(i);var a=i.value;O(a)&&(a=a[0]),e+=a});var t=r.value;O(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),O(r.value)?r.value[0]=t:r.value=t}var aO=hX;var nO=Math.PI/180;function ob(r,e,t){e.eachSeriesByType(r,function(i){var a=i.get("center"),n=i.get("radius");O(n)||(n=[0,n]),O(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(a[0],o),f=H(a[1],s),p=H(n[0],l/2),c=H(n[1],l/2),h=-i.get("startAngle")*nO,v=i.get("minAngle")*nO,d=i.getData().tree.root,m=i.getViewRoot(),g=m.depth,y=i.get("sort");y!=null&&oO(m,y);var x=0;w(m.children,function(R){!isNaN(R.getValue())&&x++});var _=m.getValue(),b=Math.PI/(_||x)*2,S=m.depth>0,T=m.height-(S?-1:1),C=(c-p)/(T||1),A=i.get("clockwise"),D=i.get("stillShowZeroSum"),M=A?1:-1,I=function(R,U){if(R){var V=U;if(R!==d){var B=R.getValue(),Z=_===0&&D?b:B*b;Z<v&&(Z=v),V=U+M*Z;var Q=R.depth-g-(S?-1:1),st=p+C*Q,ct=p+C*(Q+1),pt=i.getLevelModel(R);if(pt){var Lt=pt.get("r0",!0),Bt=pt.get("r",!0),Et=pt.get("radius",!0);Et!=null&&(Lt=Et[0],Bt=Et[1]),Lt!=null&&(st=H(Lt,l/2)),Bt!=null&&(ct=H(Bt,l/2))}R.setLayout({angle:Z,startAngle:U,endAngle:V,clockwise:A,cx:u,cy:f,r0:st,r:ct})}if(R.children&&R.children.length){var gt=0;w(R.children,function(Pt){gt+=I(Pt,U+gt)})}return V-U}};if(S){var L=p,P=p+C,z=Math.PI*2;d.setLayout({angle:z,startAngle:h,endAngle:h+z,clockwise:A,cx:u,cy:f,r0:L,r:P})}I(m,h)})}function oO(r,e){var t=r.children||[];r.children=vX(t,e),t.length&&w(r.children,function(i){oO(i,e)})}function vX(r,e){if(X(e)){var t=k(r,function(a,n){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(a,n){return e(a.params,n.params)}),k(t,function(a){return r[a.index]})}else{var i=e==="asc";return r.sort(function(a,n){var o=(a.getValue()-n.getValue())*(i?1:-1);return o===0?(a.dataIndex-n.dataIndex)*(i?-1:1):o})}}function sb(r){var e={};function t(i,a,n){for(var o=i;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&F(s)&&(s=Sh(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");N(u,l)})})}function lb(r){r.registerChartView(rO),r.registerSeriesModel(aO),r.registerLayout(et(ob,"sunburst")),r.registerProcessor(et(ua,"sunburst")),r.registerVisual(sb),eO(r)}var ub={color:"fill",borderColor:"stroke"},sO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ua=ot(),dX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return Ke(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=Ua(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Rt),lO=dX;function mX(r,e){return e=e||[0,0],k(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function fb(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(mX,r)}}}function gX(r,e){return e=e||[0,0],k([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function pb(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:W(gX,r)}}}function yX(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function cb(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:W(yX,r)}}}function xX(r,e){return e=e||[0,0],k(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function hb(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:W(xX,r)}}}function vb(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)}}}}function Fm(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||J(r,"text")))}function Gm(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},J(i,"text")&&(o.text=i.text),J(i,"rich")&&(o.rich=i.rich),J(i,"textFill")&&(o.fill=i.textFill),J(i,"textStroke")&&(o.stroke=i.textStroke),J(i,"fontFamily")&&(o.fontFamily=i.fontFamily),J(i,"fontSize")&&(o.fontSize=i.fontSize),J(i,"fontStyle")&&(o.fontStyle=i.fontStyle),J(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=J(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),J(i,"textPosition")&&(a.position=i.textPosition),J(i,"textOffset")&&(a.offset=i.textOffset),J(i,"textRotation")&&(a.rotation=i.textRotation),J(i,"textDistance")&&(a.distance=i.textDistance)}return uO(o,r),w(o.rich,function(l){uO(l,l)}),{textConfig:a,textContent:n}}function uO(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function db(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||"#000";fO(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,w(e.rich,function(s){fO(s,s)}),i}function fO(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var vO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pO=ft(vO),zMt=$e(ii,function(r,e){return r[e]=1,r},{}),RMt=ii.join(", "),_c=["","style","shape","extra"],qu=ot();function mb(r,e,t,i,a){var n=r+"Animation",o=Da(r,i,a)||{},s=qu(e).userDuring;return o.duration>0&&(o.during=s?W(TX,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),N(o,t[n]),o}function ju(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=qu(r),u=e.style;l.userDuring=e.during;var f={},p={};if(AX(r,e,p),hO("shape",e,p),hO("extra",e,p),!n&&s&&(CX(r,e,f),cO("shape",r,e,f),cO("extra",r,e,f),DX(r,e,u,f)),p.style=u,_X(r,p,o),bX(r,e),s)if(n){var c={};w(_c,function(v){var d=v?e[v]:e;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),N(v?c[v]:c,d.enterFrom))});var h=mb("enter",r,e,t,a);h.duration>0&&r.animateFrom(c,h)}else SX(r,e,a||0,t,f);gb(r,e),u?r.dirty():r.markRedraw()}function gb(r,e){for(var t=qu(r).leaveToProps,i=0;i<_c.length;i++){var a=_c[i],n=a?e[a]:e;n&&n.leaveTo&&(t||(t=qu(r).leaveToProps={}),a&&(t[a]=t[a]||{}),N(a?t[a]:t,n.leaveTo))}}function Ku(r,e,t,i){if(r){var a=r.parent,n=qu(r).leaveToProps;if(n){var o=mb("update",r,e,t,0);o.done=function(){a.remove(r),i&&i()},r.animateTo(n,o)}else a.remove(r),i&&i()}}function go(r){return r==="all"}function _X(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var a=r.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}e&&(e.style=null,e&&r.attr(e),e.style=i)}function SX(r,e,t,i,a){if(a){var n=mb("update",r,e,i,t);n.duration>0&&r.animateFrom(a,n)}}function bX(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"ignore")&&(r.ignore=e.ignore),r instanceof be&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof it&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var Ba={},wX={setTransform:function(r,e){return Ba.el[r]=e,this},getTransform:function(r){return Ba.el[r]},setShape:function(r,e){var t=Ba.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Ba.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Ba.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Ba.el.style;if(e)return e[r]},setExtra:function(r,e){var t=Ba.el.extra||(Ba.el.extra={});return t[r]=e,this},getExtra:function(r){var e=Ba.el.extra;if(e)return e[r]}};function TX(){var r=this,e=r.el;if(e){var t=qu(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}Ba.el=e,i(wX)}}function cO(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),go(l))N(o,n);else for(var u=Nt(l),f=0;f<u.length;f++){var p=u[f],c=n[p];o[p]=c}else if(go(s)||nt(s,r)>=0){!o&&(o=i[r]={});for(var h=ft(n),f=0;f<h.length;f++){var p=h[f],c=n[p];MX(a[p],c)&&(o[p]=c)}}}}}function hO(r,e,t){var i=e[r];if(i)for(var a=t[r]={},n=ft(i),o=0;o<n.length;o++){var s=n[o];a[s]=Go(i[s])}}function CX(r,e,t){for(var i=e.transition,a=go(i)?ii:Nt(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function AX(r,e,t){for(var i=0;i<pO.length;i++){var a=pO[i],n=vO[a],o=e[a];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var i=0;i<ii.length;i++){var s=ii[i];e[s]!=null&&(t[s]=e[s])}}function DX(r,e,t,i){if(t){var a=r.style,n;if(a){var o=t.transition,s=e.transition;if(o&&!go(o)){var l=Nt(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],p=a[f];n[f]=p}}else if(r.getAnimationStyleProps&&(go(s)||go(o)||nt(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!n&&(n=i.style={});for(var v=ft(t),u=0;u<v.length;u++){var f=v[u];if(h[f]){var p=a[f];n[f]=p}}}}}}}function MX(r,e){return me(r)?r!==e:r!=null&&isFinite(r)}var dO=ot(),IX=["percent","easing","shape","style","extra"];function Hm(r){r.stopAnimation("keyframe"),r.attr(dO(r))}function Qu(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(O(e)){w(e,function(s){Qu(r,s,t)});return}var i=e.keyframes,a=e.duration;if(t&&a==null){var n=Da("enter",t,0);a=n&&n.duration}if(!(!i||!a)){var o=dO(r);w(_c,function(s){if(!(s&&!r[s])){var l,u=!1;i.sort(function(f,p){return f.percent-p.percent}),w(i,function(f){var p=r.animators,c=s?f[s]:f;if(c){var h=ft(c);if(s||(h=Dt(h,function(m){return nt(IX,m)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<p.length;v++)p[v]!==l&&p[v].targetName===l.targetName&&p[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(h,function(m){d[m]=((s?r[s]:r)||{})[m]}),l.whenWithKeys(a*f.percent,c,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var yn="emphasis",yo="normal",wb="blur",Tb="select",xo=[yo,yn,wb,Tb],yb={normal:["itemStyle"],emphasis:[yn,"itemStyle"],blur:[wb,"itemStyle"],select:[Tb,"itemStyle"]},xb={normal:["label"],emphasis:[yn,"label"],blur:[wb,"label"],select:[Tb,"label"]},LX=["x","y"],EX="e\0\0",Oi={normal:{},emphasis:{},blur:{},select:{}},PX={cartesian2d:fb,geo:pb,single:cb,polar:hb,calendar:vb};function Sb(r){return r instanceof it}function bb(r){return r instanceof be}function zX(r,e){e.copyTransform(r),bb(e)&&bb(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Sb(e)&&Sb(r)&&e.setShape(r.shape))}var RX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=mO(t,s,i,a);o||l.removeAll(),s.diff(o).add(function(p){_b(a,null,p,u(p,n),t,l,s)}).remove(function(p){var c=o.getItemGraphicEl(p);c&&Ku(c,Ua(c).option,t)}).update(function(p,c){var h=o.getItemGraphicEl(c);_b(a,h,p,u(p,n),t,l,s)}).execute();var f=t.get("clip",!0)?Na(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,a,n,o){var s=i.getData(),l=mO(i,s,a,n),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var p=t.start;p<t.end;p++){var c=_b(null,null,p,l(p,o),i,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){Sr(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,a,n){var o=i.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(It),_O=RX;function Cb(r){var e=r.type,t;if(e==="path"){var i=r.shape,a=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,n=wO(i);t=nu(n,null,a,i.layout||"center"),Ua(t).customPathData=n}else if(e==="image")t=new re({}),Ua(t).customImagePath=r.style.image;else if(e==="text")t=new yt({});else if(e==="group")t=new K;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=op(e);if(!o){var s="";Gt(s)}t=new o}return Ua(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function Ab(r,e,t,i,a,n,o){Hm(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=LX);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,p=Sb(e)?l.decal:null;r&&p&&(p.dirty=!0,f=ra(p,r)),l.__decalPattern=f}if(bb(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}ju(e,i,n,{dataIndex:t,isInit:o,clearStyle:!0}),Qu(e,i.keyframeAnimation,n)}function SO(r,e,t,i,a){var n=e.isGroup?null:e,o=a&&a[r].cfg;if(n){var s=n.ensureState(r);if(i===!1){var l=n.getState(r);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Yi(n)}}function NX(r,e,t){if(!r.isGroup){var i=r,a=t.currentZ,n=t.currentZLevel;i.z=a,i.zlevel=n;var o=e.z2;o!=null&&(i.z2=o||0);for(var s=0;s<xo.length;s++)OX(i,e,xo[s])}}function OX(r,e,t){var i=t===yo,a=i?e:Wm(e,t),n=a?a.z2:null,o;n!=null&&(o=i?r:r.ensureState(t),o.z2=n||0)}function mO(r,e,t,i){var a=r.get("renderItem"),n=r.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):PX[n.type](n));for(var s=q({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:S,ordinalRawValue:b,styleEmphasis:T,visual:D,barLayout:M,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:kX(r.getData())},u,f,p={},c={},h={},v={},d=0;d<xo.length;d++){var m=xo[d];h[m]=r.getModel(yb[m]),v[m]=r.getModel(xb[m])}function g(P){return P===u?f||(f=e.getItemModel(P)):e.getItemModel(P)}function y(P,z){return e.hasItemOption?P===u?p[z]||(p[z]=g(P).getModel(yb[z])):g(P).getModel(yb[z]):h[z]}function x(P,z){return e.hasItemOption?P===u?c[z]||(c[z]=g(P).getModel(xb[z])):g(P).getModel(xb[z]):v[z]}return function(P,z){return u=P,f=null,p={},c={},a&&a(q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:z?z.type:null},l),s)};function _(P,z){return z==null&&(z=u),e.getStore().get(e.getDimensionIndex(P||0),z)}function b(P,z){z==null&&(z=u),P=P||0;var R=e.getDimensionInfo(P);if(!R){var U=e.getDimensionIndex(P);return U>=0?e.getStore().get(U,z):void 0}var V=e.get(R.name,z),B=R&&R.ordinalMeta;return B?B.categories[V]:V}function S(P,z){z==null&&(z=u);var R=e.getItemVisual(z,"style"),U=R&&R.fill,V=R&&R.opacity,B=y(z,yo).getItemStyle();U!=null&&(B.fill=U),V!=null&&(B.opacity=V);var Z={inheritColor:F(U)?U:"#000"},Q=x(z,yo),st=Ht(Q,null,Z,!1,!0);st.text=Q.getShallow("show")?at(r.getFormattedLabel(z,yo),sa(e,z)):null;var ct=lp(Q,Z,!1);return A(P,B),B=db(B,st,ct),P&&C(B,P),B.legacy=!0,B}function T(P,z){z==null&&(z=u);var R=y(z,yn).getItemStyle(),U=x(z,yn),V=Ht(U,null,null,!0,!0);V.text=U.getShallow("show")?Be(r.getFormattedLabel(z,yn),r.getFormattedLabel(z,yo),sa(e,z)):null;var B=lp(U,null,!0);return A(P,R),R=db(R,V,B),P&&C(R,P),R.legacy=!0,R}function C(P,z){for(var R in z)J(z,R)&&(P[R]=z[R])}function A(P,z){P&&(P.textFill&&(z.textFill=P.textFill),P.textPosition&&(z.textPosition=P.textPosition))}function D(P,z){if(z==null&&(z=u),J(ub,P)){var R=e.getItemVisual(z,"style");return R?R[ub[P]]:null}if(J(sO,P))return e.getItemVisual(z,P)}function M(P){if(n.type==="cartesian2d"){var z=n.getBaseAxis();return nE(q({axis:z},P))}}function I(){return t.getCurrentSeriesIndices()}function L(P){return su(P,t)}}function kX(r){var e={};return w(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function _b(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=Db(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&Vt(s,i.focus,i.blurScope,i.emphasisDisabled),s}function Db(r,e,t,i,a,n){var o=-1,s=e;e&&bO(e,i,a)&&(o=nt(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Cb(i),s&&zX(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Oi.normal.cfg=Oi.normal.conOpt=Oi.emphasis.cfg=Oi.emphasis.conOpt=Oi.blur.cfg=Oi.blur.conOpt=Oi.select.cfg=Oi.select.conOpt=null,Oi.isLegacy=!1,UX(u,t,i,a,l,Oi),VX(u,t,i,a,l),Ab(r,u,t,i,Oi,a,l),J(i,"info")&&(Ua(u).info=i.info);for(var f=0;f<xo.length;f++){var p=xo[f];if(p!==yo){var c=Wm(i,p),h=Mb(i,c,p);SO(p,u,c,h,Oi)}}return NX(u,i,a),i.type==="group"&&BX(r,u,t,i,a),o>=0?n.replaceAt(u,o):n.add(u),u}function bO(r,e,t){var i=Ua(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&WX(n)&&wO(n)!==i.customPathData||a==="image"&&J(o,"image")&&o.image!==i.customImagePath}function VX(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&bO(o,n,i)&&(o=null),o||(o=Cb(n),r.setClipPath(o)),Ab(null,o,e,n,null,i,a)}}function UX(r,e,t,i,a,n){if(!r.isGroup){gO(t,null,n),gO(t,yn,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Cb(o),r.setTextContent(f)),Ab(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c<xo.length;c++){var h=xo[c];if(h!==yo){var v=n[h].conOpt;SO(h,f,v,Mb(o,v,h),null)}}p?f.dirty():f.markRedraw()}}}}function gO(r,e,t){var i=e?Wm(r,e):r,a=e?Mb(r,i,yn):r.style,n=r.type,o=i?i.textConfig:null,s=r.textContent,l=s?e?Wm(s,e):s:null;if(a&&(t.isLegacy||Fm(a,n,!!o,!!l))){t.isLegacy=!0;var u=Gm(a,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var p=e?t[e]:t.normal;p.cfg=o,p.conOpt=l}function Wm(r,e){return e?r?r[e]:null:r}function Mb(r,e,t){var i=e&&e.style;return i==null&&t===yn&&r&&(i=r.styleEmphasis),i}function BX(r,e,t,i,a){var n=i.children,o=n?n.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){GX({api:r,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var p=n[f],c=e.childAt(f);p?(p.ignore==null&&(p.ignore=!1),Db(r,c,t,p,a,e)):c.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var v=e.childAt(h);FX(e,v,a)}}}function FX(r,e,t){e&&Ku(e,Ua(r).option,t)}function GX(r){new lr(r.oldChildren,r.newChildren,yO,yO,r).add(xO).update(xO).remove(HX).execute()}function yO(r,e){var t=r&&r.name;return t??EX+e}function xO(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;Db(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function HX(r){var e=this.context,t=e.oldChildren[r];t&&Ku(t,Ua(t).option,e.seriesModel)}function wO(r){return r&&(r.pathData||r.d)}function WX(r){return r&&(J(r,"pathData")||J(r,"d"))}function Ib(r){r.registerChartView(_O),r.registerSeriesModel(lO)}var Fs=ot(),TO=$,Lb=W,YX=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,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,n,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new K,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=et(CO,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}DO(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=om(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Fs(e).pointerEl=new dt[n.type](TO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Fs(e).labelEl=new yt(TO(t.label));e.add(n),AO(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Fs(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Fs(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),AO(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=nn(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Pr(u.event)},onmousedown:Lb(this._onHandleDragMove,this,0,0),drift:Lb(this._onHandleDragMove,this),ondragend:Lb(this._onHandleDragEnd,this)}),i.add(a)),DO(a,t,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");O(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ii(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){CO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Eb(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(Eb(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(Eb(a)),Fs(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),cn(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();function CO(r,e,t,i){MO(Fs(t).lastProp,i)||(Fs(t).lastProp=i,e?_t(t,i,r):(t.stopAnimation(),t.attr(i)))}function MO(r,e){if(j(r)&&j(e)){var t=!0;return w(e,function(i,a){t=t&&MO(r[a],i)}),!!t}else return r===e}function AO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Eb(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function DO(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var $u=YX;function Ju(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function Pb(r,e,t,i,a){var n=t.get("value"),o=zb(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ki(s.get("padding")||0),u=s.getFont(),f=ya(o,u),p=a.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=a.align;v==="right"&&(p[0]-=c),v==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=h),d==="middle"&&(p[1]-=h/2),ZX(p,c,h,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:Ht(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function ZX(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function zb(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Zp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),F(o)?n=o.replace("{value}",n):X(o)&&(n=o(s))}return n}function Sc(r,e,t){var i=Me();return Rr(i,i,t.rotation),tr(i,i,t.position),nr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function Ym(r,e,t,i,a,n){var o=ur.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),Pb(e,i,a,n,{position:Sc(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function tf(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Zm(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function Rb(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}var XX=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=IO(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=Ju(n),h=qX[u](s,p,f);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=ic(l.model,a);Ym(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=ic(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Sc(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=IO(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=p[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[f]}},e}($u);function IO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var qX={line:function(r,e,t){var i=tf([e,t[0]],[e,t[1]],LO(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:Zm([e-i/2,t[0]],[i,a],LO(r))}}};function LO(r){return r.dim==="x"?0:1}var EO=XX;var jX=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(xt),PO=jX;var xn=ot(),KX=w;function qm(r,e,t){if(!Tt.node){var i=e.getZr();xn(i).records||(xn(i).records={}),QX(i,e);var a=xn(i).records[r]||(xn(i).records[r]={});a.handler=t}}function QX(r,e){if(xn(r).initialized)return;xn(r).initialized=!0,t("click",et(zO,"click")),t("mousemove",et(zO,"mousemove")),t("globalout",JX);function t(i,a){r.on(i,function(n){var o=tq(e);KX(xn(r).records,function(s){s&&a(s,n,o.dispatchAction)}),$X(o.pendings,e)})}}function $X(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function JX(r,e,t){r.handler("leave",null,t)}function zO(r,e,t,i){e.handler(r,t,i)}function tq(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function bc(r,e){if(!Tt.node){var t=e.getZr(),i=(xn(t).records||{})[r];i&&(xn(t).records[r]=null)}}var eq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";qm("axisPointer",a,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})})},e.prototype.remove=function(t,i){bc("axisPointer",i)},e.prototype.dispose=function(t,i){bc("axisPointer",i)},e.type="axisPointer",e}(Ot),NO=eq;function wc(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Si(n,r);if(o==null||o<0||O(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,h=p==="x"||p==="radius"?1:0,v=n.mapDimension(c),d=[];d[h]=n.get(v,o),d[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(k(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var OO=ot();function Nb(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){jm(a)&&(a=wc({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=jm(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||jm(a),c={},h={},v={list:[],map:{}},d={showPointer:et(iq,h),showTooltip:et(aq,v)};w(s.coordSysMap,function(g,y){var x=l||g.containPoint(a);w(s.coordSysAxesInfo[y],function(_,b){var S=_.axis,T=lq(u,_);if(!p&&x&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&kO(_,C,d,!1,c)}})});var m={};return w(f,function(g,y){var x=g.linkGroup;x&&!h[y]&&w(x.axesInfo,function(_,b){var S=h[b];if(_!==g&&S){var T=S.value;x.mapper&&(T=g.axis.scale.parse(x.mapper(T,VO(_),VO(g)))),m[g.key]=T}})}),w(m,function(g,y){kO(f[y],g,d,!0,c)}),nq(h,f,c),oq(v,a,r,o),sq(f,o,t),c}}function kO(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=rq(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&N(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function rq(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,p=h.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(!(p==null||!isFinite(p))){var v=r-p,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,a=p,n.length=0),w(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function iq(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function aq(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Lu(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:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function nq(r,e,t){var i=t.axesInfo=[];w(e,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function oq(r,e,t,i){if(jm(e)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function sq(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=OO(i)[a]||{},o=OO(i)[a]={};w(r,function(u,f){var p=u.axisPointerModel.option;p.status==="show"&&u.triggerEmphasis&&w(p.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];w(n,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!n[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function lq(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function VO(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function jm(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function pa(r){Kr.registerAxisPointerClass("CartesianAxisPointer",EO),r.registerComponentModel(PO),r.registerComponentView(NO),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!O(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=pP(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Nb)}function Ob(r){St(um),St(pa)}var uq=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var h=Ju(n),v=pq[c](s,l,p,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var d=n.get(["label","margin"]),m=fq(i,a,n,l,d);Pb(t,a,n,o,m)},e}($u);function fq(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=Me();Rr(c,c,s),tr(c,c,[i.cx,i.cy]),u=nr([o,-a],c);var h=e.getModel("axisLabel").get("rotate")||0,v=ur.innerTextLayout(s,h*Math.PI/180,-1);f=v.textAlign,p=v.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var pq={line:function(r,e,t,i){return r.dim==="angle"?{type:"Line",shape:tf(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i){var a=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:Rb(e.cx,e.cy,i[0],i[1],(-t-a/2)*n,(-t+a/2)*n)}:{type:"Sector",shape:Rb(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}},UO=uq;var cq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(xt),BO=cq;var kb=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$t).models[0]},e.type="polarAxis",e}(xt);jt(kb,La);var FO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(kb);var GO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(kb);var Vb=function(r){E(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(Qe);Vb.prototype.dataToRadius=Qe.prototype.dataToCoord;Vb.prototype.radiusToData=Qe.prototype.coordToData;var HO=Vb;var hq=ot(),Ub=function(r){E(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ya(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=hq(t.model),d=v.lastAutoInterval,m=v.lastTickCount;return d!=null&&m!=null&&Math.abs(d-h)<=1&&Math.abs(m-o)<=1&&d>h?h=d:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(Qe);Ub.prototype.dataToAngle=Qe.prototype.dataToCoord;Ub.prototype.angleToData=Qe.prototype.coordToData;var WO=Ub;var Bb=["radius","angle"],vq=function(){function r(e){this.dimensions=Bb,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new HO,this._angleAxis=new WO,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,a=Math.cos(i)*t+this.cx,n=-Math.sin(i)*t+this.cy;return[a,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,p=this.r,c=this.r0;return f<=p*p&&f>=c*c}}},r.prototype.convertToPixel=function(e,t,i){var a=YO(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=YO(t);return a===this?this.pointToData(i):null},r}();function YO(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var ZO=vq;function dq(r,e,t){var i=e.get("center"),a=t.getWidth(),n=t.getHeight();r.cx=H(i[0],a),r.cy=H(i[1],n);var o=r.getRadiusAxis(),s=Math.min(a,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:O(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function mq(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();w(wu(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(wu(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Ia(i.scale,i.model),Ia(a.scale,a.model),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function gq(r){return r.mainType==="angleAxis"}function XO(r,e){var t;if(r.type=e.get("type"),r.scale=no(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),gq(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,a)}e.axis=r,r.model=e}var yq={dimensions:Bb,create:function(r,e){var t=[];return r.eachComponent("polar",function(i,a){var n=new ZO(a+"");n.update=mq;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");XO(o,l),XO(s,u),dq(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var a=i.getReferringComponents("polar",$t).models[0];i.coordinateSystem=a.coordinateSystem}}),t}},qO=yq;var xq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Km(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Qm(r){var e=r.getRadiusAxis();return e.inverse?0:1}function jO(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var _q=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=k(a.getViewLabels(),function(f){f=$(f);var p=a.scale,c=p.type==="ordinal"?p.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(c),f});jO(u),jO(s),w(xq,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Sq[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Kr),Sq={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Qm(t),p=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[p]===0?c=new dt[h]({shape:{cx:t.cx,cy:t.cy,r:n[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new ls({shape:{cx:t.cx,cy:t.cy,r:n[f],r0:n[p]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Qm(t)],u=k(i,function(f){return new fe({shape:Km(t,[l,l+s],f.coord)})});r.add(dr(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Qm(t)],f=[],p=0;p<a.length;p++)for(var c=0;c<a[p].length;c++)f.push(new fe({shape:Km(t,[u,u+l],a[p][c].coord)}));r.add(dr(f,{style:q(s.getModel("lineStyle").getLineStyle(),q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,i,a,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");w(o,function(p,c){var h=l,v=p.tickValue,d=n[Qm(t)],m=t.coordToPoint([d+u,p.coord]),g=t.cx,y=t.cy,x=Math.abs(m[0]-g)/d<.3?"center":m[0]>g?"left":"right",_=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[v]){var b=s[v];j(b)&&b.textStyle&&(h=new zt(b.textStyle,l,l.ecModel))}var S=new yt({silent:ur.isLabelSilent(e),style:Ht(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:x,verticalAlign:_})});if(r.add(S),f){var T=ur.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=p.rawLabel,tt(S).eventData=T}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p<i.length;p++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new fe({shape:Km(t,n,i[p].coord)}))}for(var p=0;p<f.length;p++)r.add(dr(f[p],{style:q({stroke:l[p%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new fe({shape:Km(t,n,a[u][f].coord)}));r.add(dr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,i,a,n){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=Math.PI/180,c=-i[0].coord*p,h=Math.min(n[0],n[1]),v=Math.max(n[0],n[1]),d=e.get("clockwise"),m=1,g=i.length;m<=g;m++){var y=m===g?i[0].coord:i[m].coord,x=u++%l.length;f[x]=f[x]||[],f[x].push(new we({shape:{cx:t.cx,cy:t.cy,r0:h,r:v,startAngle:c,endAngle:-y*p,clockwise:d},silent:!0})),c=-y*p}for(var m=0;m<f.length;m++)r.add(dr(f[m],{style:q({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},KO=_q;var bq=["axisLine","axisTickLabel","axisName"],wq=["splitLine","splitArea","minorSplitLine"],Tq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=this._axisGroup,n=this._axisGroup=new K;this.group.add(n);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),p=l.getExtent()[0],c=o.getExtent(),h=Aq(s,t,p),v=new ur(t,h);w(bq,v.add,v),n.add(v.getGroup()),an(a,n,t),w(wq,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&Cq[d](this.group,t,s,p,c,u,f)},this)}},e.type="radiusAxis",e}(Kr),Cq={splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),p=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],d=0;d<n.length;d++){var m=u++%l.length;v[m]=v[m]||[],v[m].push(new dt[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[d].coord,0),startAngle:-c[0]*p,endAngle:-c[1]*p,clockwise:f.inverse}}))}for(var d=0;d<v.length;d++)r.add(dr(v[d],{style:q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,i,a,n,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var p=0;p<o[f].length;p++)u.push(new _r({shape:{cx:t.cx,cy:t.cy,r:o[f][p].coord}}));r.add(dr(u,{style:q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,i,a,n){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=n[0].coord,c=1;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new we({shape:{cx:t.cx,cy:t.cy,r0:p,r:n[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),p=n[c].coord}for(var c=0;c<f.length;c++)r.add(dr(f[c],{style:q({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function Aq(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var QO=Tq;function $O(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function JO(r,e){return e.dim+r.model.componentIndex}function Dq(r,e,t){var i={},a=Mq(Dt(e.getSeriesByType(r),function(n){return!e.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=JO(s,l),f=$O(n),p=a[u][f],c=p.offset,h=p.width,v=s.getOtherAxis(l),d=n.coordinateSystem.cx,m=n.coordinateSystem.cy,g=n.get("barMinHeight")||0,y=n.get("barMinAngle")||0;i[f]=i[f]||[];for(var x=o.mapDimension(v.dim),_=o.mapDimension(l.dim),b=fi(o,x),S=l.dim!=="radius"||!n.get("roundCap",!0),T=v.dataToCoord(0),C=0,A=o.count();C<A;C++){var D=o.get(x,C),M=o.get(_,C),I=D>=0?"p":"n",L=T;b&&(i[f][M]||(i[f][M]={p:T,n:T}),L=i[f][M][I]);var P=void 0,z=void 0,R=void 0,U=void 0;if(v.dim==="radius"){var V=v.dataToCoord(D)-T,B=l.dataToCoord(M);Math.abs(V)<g&&(V=(V<0?-1:1)*g),P=L,z=L+V,R=B-c,U=R-h,b&&(i[f][M][I]=z)}else{var Z=v.dataToCoord(D,S)-T,Q=l.dataToCoord(M);Math.abs(Z)<y&&(Z=(Z<0?-1:1)*y),P=Q+c,z=P+h,R=L,U=L+Z,b&&(i[f][M][I]=U)}o.setItemLayout(C,{cx:d,cy:m,r0:P,r:z,startAngle:-R*Math.PI/180,endAngle:-U*Math.PI/180,clockwise:R>=U})}}})}function Mq(r){var e={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=JO(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),p=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=p.stacks;e[l]=p;var h=$O(i);c[h]||p.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=H(i.get("barWidth"),f),d=H(i.get("barMaxWidth"),f),m=i.get("barGap"),g=i.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(p.remainedWidth,v),c[h].width=v,p.remainedWidth-=v),d&&(c[h].maxWidth=d),m!=null&&(p.gap=m),g!=null&&(p.categoryGap=g)});var t={};return w(e,function(i,a){t[a]={};var n=i.stacks,o=i.bandWidth,s=H(i.categoryGap,o),l=H(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,p=(u-s)/(f+(f-1)*l);p=Math.max(p,0),w(n,function(d,m){var g=d.maxWidth;g&&g<p&&(g=Math.min(g,u),d.width&&(g=Math.min(g,d.width)),u-=g,d.width=g,f--)}),p=(u-s)/(f+(f-1)*l),p=Math.max(p,0);var c=0,h;w(n,function(d,m){d.width||(d.width=p),h=d,c+=d.width*(1+l)}),h&&(c-=h.width*l);var v=-c/2;w(n,function(d,m){t[a][m]=t[a][m]||{offset:v,width:d.width},v+=d.width*(1+l)})}),t}var tk=Dq;var Iq={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Lq={splitNumber:5},Eq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Ot);function Fb(r){St(pa),Kr.registerAxisPointerClass("PolarAxisPointer",UO),r.registerCoordinateSystem("polar",qO),r.registerComponentModel(BO),r.registerComponentView(Eq),fa(r,"angle",FO,Iq),fa(r,"radius",GO,Lq),r.registerComponentView(KO),r.registerComponentView(QO),r.registerLayout(et(tk,"bar"))}function Tc(r,e){e=e||{};var t=r.coordinateSystem,i=r.axis,a={},n=i.position,o=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var p={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=p[n],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ae(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=e.rotate;return c==null&&(c=r.get(["axisLabel","rotate"])),a.labelRotation=n==="top"?-c:c,a.z2=1,a}var Pq=["axisLine","axisTickLabel","axisName"],zq=["splitArea","splitLine"],Rq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,a,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new K;var l=Tc(t),u=new ur(t,l);w(Pq,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),w(zq,function(f){t.get([f,"show"])&&Nq[f](this,this.group,this._axisGroup,t)},this),an(s,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)},e.prototype.remove=function(){lm(this)},e.type="singleAxis",e}(Kr),Nq={splitLine:function(r,e,t,i){var a=i.axis;if(!a.scale.isBlank()){var n=i.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=i.coordinateSystem.getRect(),f=a.isHorizontal(),p=[],c=0,h=a.getTicksCoords({tickModel:n}),v=[],d=[],m=0;m<h.length;++m){var g=a.toGlobalCoord(h[m].coord);f?(v[0]=g,v[1]=u.y,d[0]=g,d[1]=u.y+u.height):(v[0]=u.x,v[1]=g,d[0]=u.x+u.width,d[1]=g);var y=new fe({shape:{x1:v[0],y1:v[1],x2:d[0],y2:d[1]},silent:!0});rn(y.shape,l);var x=c++%s.length;p[x]=p[x]||[],p[x].push(y)}for(var _=o.getLineStyle(["color"]),m=0;m<p.length;++m)e.add(dr(p[m],{style:q({stroke:s[m%s.length]},_),silent:!0}))}},splitArea:function(r,e,t,i){sm(r,t,i,i)}},rk=Rq;var ik=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(xt);jt(ik,La.prototype);var $m=ik;var Oq=function(r){E(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e}(Qe),ak=Oq;var Gb=["single"],kq=function(){function r(e,t,i){this.type="single",this.dimension="single",this.dimensions=Gb,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=this.dimension,n=new ak(a,no(e),[0,0],e.get("type"),e.get("position")),o=n.type==="category";n.onBand=o&&e.get("boundaryGap"),n.inverse=e.get("inverse"),n.orient=e.get("orient"),e.axis=n,n.model=e,n.coordinateSystem=this,this._axis=n},r.prototype.update=function(e,t){e.eachSeries(function(i){if(i.coordinateSystem===this){var a=i.getData();w(a.mapDimensionsAll(this.dimension),function(n){this._axis.scale.unionExtentFromData(a,n)},this),Ia(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Zt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),a=i?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),this._updateAxisTransform(t,i?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),a=i[0]+i[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),a=i.orient;return a==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),a=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[n]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-n]=n===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,i){var a=nk(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=nk(t);return a===this?this.pointToData(i):null},r}();function nk(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var ok=kq;function Vq(r,e){var t=[];return r.eachComponent("singleAxis",function(i,a){var n=new ok(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var a=i.getReferringComponents("singleAxis",$t).models[0];i.coordinateSystem=a&&a.coordinateSystem}}),t}var Uq={create:Vq,dimensions:Gb},sk=Uq;var lk=["x","y"],Bq=["width","height"],Fq=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=Hb(l,1-Jm(s)),f=l.dataToPoint(i)[0],p=n.get("type");if(p&&p!=="none"){var c=Ju(n),h=Gq[p](s,f,u);h.style=c,t.graphicKey=h.type,t.pointer=h}var v=Tc(a);Ym(i,t,v,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Tc(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=Sc(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=Jm(o),u=Hb(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=Hb(s,1-l),c=(p[1]+p[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}($u),Gq={line:function(r,e,t){var i=tf([e,t[0]],[e,t[1]],Jm(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,e,t){var i=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:Zm([e-i/2,t[0]],[i,a],Jm(r))}}};function Jm(r){return r.isHorizontal()?0:1}function Hb(r,e){var t=r.getRect();return[t[lk[e]],t[lk[e]]+t[Bq[e]]]}var uk=Fq;var Hq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Ot);function Wb(r){St(pa),Kr.registerAxisPointerClass("SingleAxisPointer",uk),r.registerComponentView(Hq),r.registerComponentView(rk),r.registerComponentModel($m),fa(r,"single",$m,$m.defaultOption),r.registerCoordinateSystem("single",sk)}var Wq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Ai(t);r.prototype.init.apply(this,arguments),fk(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),fk(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(xt);function fk(r,e){var t=r.cellSize,i;O(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=k([0,1],function(n){return IM(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});Wr(r,e,{type:"box",ignoreSize:a})}var pk=Wq;var Yq=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,p=new ht({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){v(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var h=p.date;h.setMonth(h.getMonth()+1),p=s.getDateInfo(h)}v(s.getNextNDay(i.end.time,1).formatedDate);function v(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new pe({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return F(t)&&t?AM(t,i):X(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},v=i.start.y;+i.end.y>+i.start.y&&(v=v+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:v},g=this._formatterLabel(d,m),y=new yt({z2:30,style:Ht(o,{text:g})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||F(s))&&(s&&(i=up(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=f==="center",d=0;d<p[c].length-1;d++){var m=p[c][d].slice(),g=this._firstDayOfMonth[d];if(v){var y=this._firstDayPoints[d];m[h]=(y[h]+p[0][d+1][h])/2}var x=o.get("formatter"),_=s[+g.m-1],b={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:_},S=this._formatterLabel(x,b),T=new yt({z2:30,style:N(Ht(o,{text:S}),this._monthTextPositionControl(m,v,a,u,l))});n.add(T)}}},e.prototype._weekTextPositionControl=function(t,i,a,n,o){var s="center",l="middle",u=t[0],f=t[1],p=a==="start";return i==="horizontal"?(u=u+n+(p?1:-1)*o[0]/2,s=p?"right":"left"):(f=f+n+(p?1:-1)*o[1]/2,l=p?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,a,n,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),p=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||F(f)){f&&(i=up(f)||i);var h=i.get(["time","dayOfWeekShort"]);f=h||k(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];p=H(p,Math.min(d[1],d[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,p=-p);for(var m=0;m<7;m++){var g=l.getNextNDay(v,m),y=l.dataToRect([g.time],!1).center,x=m;x=Math.abs((m+c)%7);var _=new yt({z2:30,style:N(Ht(s,{text:f[x]}),this._weekTextPositionControl(y,n,u,p,d))});o.add(_)}}},e.type="calendar",e}(Ot),ck=Yq;var Yb=864e5,Zq=function(){function r(e,t,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=ir(e);var t=e.getFullYear(),i=e.getMonth()+1,a=i<10?"0"+i:""+i,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,a=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];w([0,1],function(p){f(n,p)&&(o[a[p]]=n[p]*s[p])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Zt(o,l);w([0,1],function(p){f(n,p)||(n[p]=u[a[p]]/s[p])});function f(p,c){return p[c]!=null&&p[c]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(e,t){O(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),a=this._rangeInfo,n=i.formatedDate;if(t&&!(i.time>=a.start.time&&i.time<a.end.time+Yb))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([a.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,a):this._getDateByWeeksAndDay(t,i-1,a)},r.prototype.convertToPixel=function(e,t,i){var a=hk(t);return a===this?a.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=hk(t);return a===this?a.pointToData(i):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(O(e)&&e.length===1&&(e=e[0]),O(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var a=this.getDateInfo(i),n=a.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/Yb)-Math.floor(t[0].time/Yb)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=i[a.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function hk(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var vk=Zq;function Zb(r){r.registerComponentModel(pk),r.registerComponentView(ck),r.registerCoordinateSystem("calendar",vk)}function Xq(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function dk(r,e){var t;return w(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function qq(r,e,t){var i=N({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;lt(a,i,!0),Wr(a,i,{ignoreSize:!0}),Y0(t,a),tg(t,a),tg(t,a,"shape"),tg(t,a,"style"),tg(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var mk=["transition","enterFrom","leaveTo"],jq=mk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function tg(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?mk:jq,a=0;a<i.length;a++){var n=i[a];r[n]==null&&e[n]!=null&&(r[n]=e[n])}}function Kq(r,e){if(r&&(r.hv=e.hv=[dk(e,["left","right"]),dk(e,["top","bottom"])],r.type==="group")){var t=r,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var gk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,i),this.option.elements=a},e.prototype.optionUpdated=function(t,i){var a=this.option,n=(i?a:t).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=Gh(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(f,p){var c=f.newOption;c&&(u.push(c),Xq(f,c),qq(o,p,c),Kq(o[p],c))},this),a.elements=Dt(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,i,a){w(t,function(n){if(n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(xt);var yk={path:null,compoundPath:null,group:K,image:re,text:yt},ki=ot(),Sk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Y()},e.prototype.render=function(t,i,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var a=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");w(i,function(l){var u=le(l.id,null),f=u!=null?a.get(u):null,p=le(l.parentId,null),c=p!=null?a.get(p):n,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var d=l.textContent,m=l.textConfig;if(v&&Fm(v,h,!!m,!!d)){var g=Gm(v,h,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var y=Qq(l),x=l.$action||"merge",_=x==="merge",b=x==="replace";if(_){var S=!f,T=f;S?T=xk(u,c,l.type,a):(T&&(ki(T).isNew=!1),Hm(T)),T&&(ju(T,y,t,{isInit:S}),_k(T,l,o,s))}else if(b){eg(f,l,a,t);var C=xk(u,c,l.type,a);C&&(ju(C,y,t,{isInit:!0}),_k(C,l,o,s))}else x==="remove"&&(gb(f,l),eg(f,l,a,t));var A=a.get(u);if(A&&d)if(_){var D=A.getTextContent();D?D.attr(d):A.setTextContent(new yt(d))}else b&&A.setTextContent(new yt(d));if(A){var M=l.clipPath;if(M){var I=M.type,L=void 0,S=!1;if(_){var P=A.getClipPath();S=!P||ki(P).type!==I,L=S?Xb(I):P}else b&&(S=!0,L=Xb(I));A.setClipPath(L),ju(L,M,t,{isInit:S}),Qu(L,M.keyframeAnimation,t)}var z=ki(A);A.setTextConfig(m),z.option=l,$q(A,t,l),ji({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),Qu(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var a=t.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var p=a[f],c=le(p.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var v=h.parent,d=v===n,m=ki(h),g=ki(v);m.width=H(m.option.width,d?s:g.width)||0,m.height=H(m.option.height,d?l:g.height)||0}}for(var f=a.length-1;f>=0;f--){var p=a[f],c=le(p.id,null),h=c!=null?o.get(c):null;if(h){var v=h.parent,g=ki(v),y=v===n?{width:s,height:l}:{width:g.width,height:g.height},x={},_=Xn(h,p,y,null,{hv:p.hv,boundingMode:p.bounding},x);if(!ki(h).isNew&&_){for(var b=p.transition,S={},T=0;T<u.length;T++){var C=u[T],A=x[C];b&&(go(b)||nt(b,C)>=0)?S[C]=A:h[C]=A}_t(h,S,t,0)}else h.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){eg(a,ki(a).option,i,t._lastGraphicModel)}),this._elMap=Y()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Ot);function Xb(r){var e=J(yk,r)?yk[r]:op(r),t=new e({});return ki(t).type=r,t}function xk(r,e,t,i){var a=Xb(t);return e.add(a),i.set(r,a),ki(a).id=r,ki(a).isNew=!0,a}function eg(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){eg(n,e,t,i)}),Ku(r,e,i),t.removeKey(ki(r).id))}function _k(r,e,t,i){r.isGroup||w([["cursor",be.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];J(e,n)?r[n]=at(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),w(ft(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=X(n)?n:null}}),J(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Qq(r){return r=N({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(H0),function(e){delete r[e]}),r}function $q(r,e,t){var i=tt(r).eventData;!r.silent&&!r.ignore&&!i&&(i=tt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function qb(r){r.registerComponentModel(gk),r.registerComponentView(Sk),r.registerPreprocessor(function(e){var t=e.graphic;O(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var jb=["x","y","radius","angle","single"],Jq=["cartesian2d","polar","singleAxis"];function bk(r){var e=r.get("coordinateSystem");return nt(Jq,e)>=0}function Vi(r){return r+"Axis"}function wk(r,e){var t=Y(),i=[],a=Y();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,h){var v=t.get(c);v&&v[h]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function rg(r){var e=r.ecModel,t={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(Vi(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Kb=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),tj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,a){var n=Tk(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=Tk(t);lt(this.option,t,!0),lt(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return w(jb,function(a){var n=this.getReferringComponents(Vi(a),yA);if(n.specified){i=!0;var o=new Kb;w(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new Kb;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var h=p.getReferringComponents("grid",$t).models[0];h&&w(u,function(v){p.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",$t).models[0]&&c.add(v.componentIndex)})}}}n&&w(jb,function(u){if(n){var f=a.findComponents({mainType:Vi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new Kb;p.add(f[0].componentIndex),t.set(u,p),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(Vi(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){w(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){var a=this.getAxisModel(t,i);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(Vi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;w(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var o=a[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(xt);function Tk(r){var e={};return w(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var _o=tj;var ej=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(_o),Ck=ej;var rj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this.dataZoomModel=t,this.ecModel=i,this.api=a},e.type="dataZoom",e}(Ot),ef=rj;var ij=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(ef),Ak=ij;var rf=w,Dk=Ie,aj=function(){function r(e,t,i,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(bk(t)){var i=Vi(this._dimName),a=t.getReferringComponents(i,$t).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;rf(["start","end"],function(c,h){var v=e[c],d=e[c+"Value"];n[h]==="percent"?(v==null&&(v=o[h]),d=a.parse(kt(v,o,t))):(u=!0,d=d==null?t[h]:a.parse(d),v=kt(d,t,o)),l[h]=d==null||isNaN(d)?t[h]:d,s[h]=v==null||isNaN(v)?o[h]:v}),Dk(l),Dk(s);var f=this._minMaxSpan;u?p(l,s,t,o,!1):p(s,l,o,t,!0);function p(c,h,v,d,m){var g=m?"Span":"ValueSpan";Qr(0,c,v,"all",f["min"+g],f["max"+g]);for(var y=0;y<2;y++)h[y]=kt(c[y],v,d,!0),m&&(h[y]=a.parse(h[y]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=nj(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,a=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._valueWindow;if(n==="none")return;rf(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(n==="weakFilter"){var p=u.getStore(),c=k(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,d,m,g=0;g<f.length;g++){var y=p.get(c[g],h),x=!isNaN(y),_=y<o[0],b=y>o[1];if(x&&!_&&!b)return!0;x&&(m=!0),_&&(v=!0),b&&(d=!0)}return m&&v&&d})}else rf(f,function(h){if(n==="empty")l.setData(u=u.map(h,function(d){return s(d)?d:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});rf(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;rf(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=kt(i[0]+o,i,[0,100],!0):n!=null&&(o=kt(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var a=Fl(i,[0,500]);a=Math.min(a,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),t[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r}();function nj(r,e,t){var i=[1/0,-1/0];rf(t,function(o){gE(i,o.getData(),e)});var a=r.getAxisModel(),n=Md(a.axis.scale,a,i).calculate();return[n.min,n.max]}var Mk=aj;var oj={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Vi(o),s);a(o,s,l,n)})})}e(function(a,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Mk(a,n,s,r),t.push(o.__dzAxisProxy))});var i=Y();return w(t,function(a){w(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).reset(t)}),t.eachTargetAxis(function(i,a){t.getAxisProxy(i,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},Ik=oj;function Qb(r){r.registerAction("dataZoom",function(e,t){var i=wk(t,e);w(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Lk=!1;function Gs(r){Lk||(Lk=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Ik),Qb(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ek(r){r.registerComponentModel(Ck),r.registerComponentView(Ak),Gs(r)}var Xe=function(){function r(){}return r}();var Pk={};function So(r,e){Pk[r]=e}function ig(r){return Pk[r]}var lj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;w(this.option.feature,function(i,a){var n=ig(a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),lt(i,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(xt),zk=lj;function Rk(r,e,t){var i=e.getBoxLayoutParams(),a=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=Zt(i,n,a);$i(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Xn(r,i,n,a)}function ag(r,e){var t=Ki(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),r=new ht({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var fj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),p=[];w(u,function(v,d){p.push(d)}),new lr(this._featureNames||[],p).add(c).update(c).remove(et(c,null)).execute(),this._featureNames=p;function c(v,d){var m=p[v],g=p[d],y=u[m],x=new zt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===m&&(y.title=n.newTitle),m&&!g){if(pj(m))_={onclick:x.option.onclick,featureName:m};else{var b=ig(m);if(!b)return;_=new b}f[m]=_}else if(_=f[g],!_)return;_.uid=Ci("toolbox-feature"),_.model=x,_.ecModel=i,_.api=a;var S=_ instanceof Xe;if(!m&&g){S&&_.dispose&&_.dispose(i,a);return}if(!x.get("show")||S&&_.unusable){S&&_.remove&&_.remove(i,a);return}h(x,_,m),x.setIconStatus=function(T,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,D[T]&&(C==="emphasis"?cr:hr)(D[T])},_ instanceof Xe&&_.render&&_.render(x,i,a,n)}function h(v,d,m){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),x=d instanceof Xe&&d.getIcons?d.getIcons():v.get("icon"),_=v.get("title")||{},b,S;F(x)?(b={},b[m]=x):b=x,F(_)?(S={},S[m]=_):S=_;var T=v.iconPaths={};w(b,function(C,A){var D=nn(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(g.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new yt({style:{text:S[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:su({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},i)},ignore:!0});D.setTextContent(I),ji({el:D,componentModel:t,itemName:A,formatterParamsExtra:{title:S[A]}}),D.__title=S[A],D.on("mouseover",function(){var L=y.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.get("textPosition")||P}),I.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(v.get(["iconStatus",A])==="emphasis"?cr:hr)(D),o.add(D),D.on("click",W(d.onclick,d,i,a,A)),T[A]=D})}Rk(o,t,a),o.add(ag(o.getBoundingRect(),t)),l||o.eachChild(function(v){var d=v.__title,m=v.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),y=v.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!X(x)&&d){var _=x.style||(x.style={}),b=ya(d,yt.makeFont(_)),S=v.x+o.x,T=v.y+o.y+s,C=!1;T+b.height>a.getHeight()&&(g.position="top",C=!0);var A=C?-5-b.height:s+10;S+b.width/2>a.getWidth()?(g.position=["100%",A],_.align="right"):S-b.width/2<0&&(g.position=[0,A],_.align="left")}})},e.prototype.updateView=function(t,i,a,n){w(this._features,function(o){o instanceof Xe&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.remove=function(t,i){w(this._features,function(a){a instanceof Xe&&a.remove&&a.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){w(this._features,function(a){a instanceof Xe&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e}(Ot);function pj(r){return r.indexOf("my")===0}var Nk=fj;var cj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Tt.browser;if(X(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,v=o?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,g=new Uint8Array(m);m--;)g[m]=v.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(v),b.close(),_.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(x)}}else{var S=a.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',C=window.open();C.document.write(T),C.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(Xe),Ok=cj;var kk="__ec_magicType_stack__";var hj=[["line","bar"],["stack"]],vj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return w(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(Vk[a]){var s={series:[]},l=function(p){var c=p.subType,h=p.id,v=Vk[a](c,h,p,n);v&&(q(v,p.option),s.series.push(v));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",x=p.getReferringComponents(y,$t).models[0],_=x.componentIndex;s[y]=s[y]||[];for(var b=0;b<=_;b++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=a==="bar"}}};w(hj,function(p){nt(p,a)>=0&&w(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=lt({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Xe),Vk={line:function(r,e,t,i){if(r==="bar")return lt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return lt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===kk;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),lt({id:e,stack:a?"":kk},i.get(["option","stack"])||{},!0)}};wr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var Uk=vj;var og=new Array(60).join("-"),af=" ";function dj(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function mj(r){var e=[];return w(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(k(t.series,function(h){return h.name})),l=[a.model.getCategories()];w(t.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(d){return d}))});for(var u=[s.join(af)],f=0;f<l[0].length;f++){for(var p=[],c=0;c<l.length;c++)p.push(l[c][f]);u.push(p.join(af))}e.push(u.join(`
  16. `))}),e.join(`
  17. `+og+`
  18. `)}function gj(r){return k(r,function(e){var t=e.getRawData(),i=[e.name],a=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)a[l]=arguments[l];i.push((s?s+af:"")+a.join(af))}),i.join(`
  19. `)}).join(`
  20. `+og+`
  21. `)}function yj(r){var e=dj(r);return{value:Dt([mj(e.seriesGroupByCategoryAxis),gj(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
  22. `+og+`
  23. `),meta:e.meta}}function ng(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xj(r){var e=r.slice(0,r.indexOf(`
  24. `));if(e.indexOf(af)>=0)return!0}var $b=new RegExp("["+af+"]+","g");function _j(r){for(var e=r.split(/\n+/g),t=ng(e.shift()).split($b),i=[],a=k(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=ng(e[n]).split($b);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[n]=o[s])}return{series:a,categories:i}}function Sj(r){for(var e=r.split(/\n+/g),t=ng(e.shift()),i=[],a=0;a<e.length;a++){var n=ng(e[a]);if(n){var o=n.split($b),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[a].value=l[0]:i[a]=l[0])}}return{name:t,data:i}}function bj(r,e){var t=r.split(new RegExp(`
  25. *`+og+`
  26. *`,"g")),i={series:[]};return w(t,function(a,n){if(xj(a)){var o=_j(a),s=e[n],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=Sj(a);i.series.push(o)}}),i}var wj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var a=i.getDom(),n=this.model;this._dom&&a.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=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var p=n.get("optionToContent"),c=n.get("contentToOption"),h=yj(t);if(X(p)){var v=p(i.getOption());F(v)?u.innerHTML=v:An(v)&&u.appendChild(v)}else{f.readOnly=n.get("readOnly");var d=f.style;d.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",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.backgroundColor=n.get("textareaColor"),f.value=h.value,u.appendChild(f)}var m=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var b=this;function S(){a.removeChild(o),b._dom=null}Sf(x,"click",S),Sf(_,"click",function(){if(c==null&&p!=null||c!=null&&p==null){S();return}var T;try{X(c)?T=c(u,i.getOption()):T=bj(f.value,m)}catch(C){throw S(),new Error("Data view format error "+C)}T&&i.dispatchAction({type:"changeDataView",newOption:T}),S()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=y,!n.get("readOnly")&&g.appendChild(_),g.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(Xe);function Tj(r,e){return k(r,function(t,i){var a=e&&e[i];if(j(a)&&!O(a)){var n=j(t)&&!O(t);n||(t={value:t});var o=a.name!=null&&t.name==null;return t=q(t,a),o&&delete t.name,t}else return t})}wr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];w(r.newOption.series,function(i){var a=e.getSeriesByName(i.name)[0];if(!a)t.push(N({type:"scatter"},i));else{var n=a.get("data");t.push({name:i.name,data:Tj(i.data,n)})}}),e.mergeOption(q({series:t},r.newOption))});var Bk=wj;var Fk=w,Gk=ot();function Hk(r,e){var t=Jb(r);Fk(e,function(i,a){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Wk(r){var e=Jb(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return Fk(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function Yk(r){Gk(r).snapshots=null}function Zk(r){return Jb(r).length}function Jb(r){var e=Gk(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Cj=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){Yk(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(Xe);wr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var qk=Cj;var Aj=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Dj=function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=jk(t,e);w(Mj,function(o,s){(!i||!i.include||nt(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=tw[i.brushType](0,n,a);i.__rangeOffset={offset:Jk[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){w(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&w(n.coordSyses,function(o){var s=tw[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){w(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=tw[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Jk[i.brushType](n.values,o.offset,Ij(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return k(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:Em(a),isTargetByCursor:zm(a,e,i.coordSysModel),getLinearBrushOtherExtent:Pm(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&nt(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=jk(t,e),n=0;n<i.length;n++){var o=i[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Kk.length;l++)if(Kk[l](a,o))return o}return!0},r}();function ew(r){return r[0]>r[1]&&r.reverse(),r}function jk(r,e){return kn(r,e,{includeMainTypes:Aj})}var Mj={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=Y(),o={},s={};!t&&!i&&!a||(w(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),w(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),w(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(p,c){(nt(t,p.getAxis("x").model)>=0||nt(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Qk.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){w(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:Qk.geo})})}},Kk=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],Qk={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(qi(r)),e}},tw={lineX:et($k,0),lineY:et($k,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[ew([a[0],n[0]]),ew([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[[1/0,-1/0],[1/0,-1/0]],n=k(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function $k(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=ew(k([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var Jk={lineX:et(tV,0),lineY:et(tV,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return k(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function tV(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function Ij(r,e){var t=eV(r),i=eV(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function eV(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Cc=Dj;var rw=w,Lj=dA("toolbox-dataZoom_");var Ej=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new Zu(a.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),Rj(t,i,this,n,a),zj(t,i)},e.prototype.onclick=function(t,i,a){Pj[a].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Cc(iw(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",p,f[0]),s("y",p,f[1])):s({lineX:"x",lineY:"y"}[c],p,f)}}),Hk(n,a),this._dispatchZoomAction(a);function s(u,f,p){var c=f.getAxis(u),h=c.model,v=l(u,h,n),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(p=Qr(0,p.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:p[0],endValue:p[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,f.componentIndex);v&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];rw(t,function(a,n){i.push($(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(Xe),Pj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Wk(this.ecModel))}};function iw(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function zj(r,e){r.setIconStatus("back",Zk(e)>1?"emphasis":"normal")}function Rj(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Cc(iw(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}OM("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=iw(i),o=kn(r,n);rw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),rw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Lj+u+p};c[f]=p,a.push(c)}return a});var rV=Ej;function aw(r){r.registerComponentModel(zk),r.registerComponentView(Nk),So("saveAsImage",Ok),So("magicType",Uk),So("dataView",Bk),So("dataZoom",rV),So("restore",qk),St(Ek)}var Nj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(xt),iV=Nj;function sg(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function aV(r){if(Tt.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var nw=aV(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nV=aV(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ow(r,e){if(!r)return e;e=Cv(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function oV(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var Oj=ow(nV,"transition"),sw=ow(nw,"transform"),kj="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Tt.transform3dSupported?"will-change:transform;":"");function Vj(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Uj(r,e,t){if(!F(t)||t==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");e=Qi(e);var n=Vj(t),o=Math.max(Math.round(a)*1.5,6),s="",l=sw+":",u;nt(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+h+"px";var v=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Bj(r,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+t,a="opacity"+i+",visibility"+i;return e||(i=" "+r+"s "+t,a+=Tt.transformSupported?","+sw+i:",left"+i+",top"+i),Oj+":"+a}function sV(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Tt.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=Tt.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+sw+":"+o+";":[["top",0],["left",0],[nw,o]]}function Fj(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Gj(r,e,t){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),p=Zv(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),e&&a&&i.push(Bj(a,t)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(h){var v="border-"+h,d=Cv(v),m=r.get(d);m!=null&&i.push(v+":"+m+(h==="color"?"":"px"))}),i.push(Fj(f)),p!=null&&i.push("padding:"+Ki(p).join("px ")+"px"),i.join(";")+";"}function lV(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&$T(r,o,t,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Hj=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,o=n&&(F(n)?document.querySelector(n):An(n)?n:X(n)&&n(e.getDom()));lV(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Er(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=oV(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=kj+Gj(e,!this._firstShow,this._longHide)+sV(n[0],n[1],!0)+("border-color:"+Qi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(F(n)&&i.get("trigger")==="item"&&!sg(i)&&(s=Uj(i,a,n)),F(e))o.innerHTML=e+s;else if(e){o.innerHTML="",O(e)||(e=[e]);for(var l=0;l<e.length;l++)An(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var i=this._styleCoord;if(lV(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var a=this.el.style,n=sV(i[0],i[1]);w(n,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Tt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}(),uV=Hj;var Wj=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),pV(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,a,n){var o=this;j(e)&&Gt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new yt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Zv(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["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(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=fV(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var a=this._styleCoord;pV(a,this._zr,e,t),e=a[0],t=a[1];var n=i.style,o=bo(n.borderWidth||0),s=fV(n);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function bo(r){return Math.max(0,r)}function fV(r){var e=bo(r.shadowBlur||0),t=bo(r.shadowOffsetX||0),i=bo(r.shadowOffsetY||0);return{left:bo(e-t),right:bo(e+t),top:bo(e-i),bottom:bo(e+i)}}function pV(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var cV=Wj;var Yj=new ht({shape:{x:-1,y:-1,width:2,height:2}}),Zj=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(Tt.node||!i.getDom())){var a=t.getComponent("tooltip"),n=this._renderMode=_A(a.get("renderMode"));this._tooltipContent=n==="richText"?new cV(i):new uV(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,i,a){if(!(Tt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Ii(this,"_updatePosition",50,"fixRate"):cn(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");qm("itemTooltip",this._api,W(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||Tt.node||!a.getDom())){var o=hV(n,a);this._ticket="";var s=n.dataByCoordSys,l=Kj(n,i,a);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=Yj;f.x=n.x,f.y=n.y,f.update(),tt(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,a,n))return;var p=wc(n,i),c=p.point[0],h=p.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:p.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(hV(n,a))},e.prototype._manuallyAxisShowTip=function(t,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),p=Ac([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=tt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ta(a,function(f){if(tt(f).dataIndex!=null)return l=f,!0;if(tt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var a=t.get("showDelay");i=W(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ac([i.tooltipOption],n),l=this._renderMode,u=[],f=ie("section",{blocks:[],noHeader:!0}),p=[],c=new Xv;w(t,function(y){w(y.dataByAxis,function(x){var _=a.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(!(!_||b==null)){var S=zb(b,_.axis,a,x.seriesDataIndices,x.valueLabelOpt),T=ie("section",{header:S,noHeader:!Fe(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(x.seriesDataIndices,function(C){var A=a.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=Zp(_.axis,{value:b}),M.axisValueLabel=S,M.marker=c.makeTooltipMarker("item",Qi(M.color),l);var I=nx(A.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=Ac([A],n).get("valueFormatter");T.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&p.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var h=i.position,v=s.get("order"),d=cx(f,c,l,v,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?`
  27. `:"<br/>",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=tt(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),h=this._renderMode,v=t.positionDefault,d=Ac([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Xv;g.marker=y.makeTooltipMarker("item",Qi(g.color),h);var x=nx(u.formatTooltip(f,!1,p)),_=d.get("order"),b=d.get("valueFormatter"),S=x.frag,T=S?cx(b?N({valueFormatter:b},S):S,y,h,_,n.get("useUTC"),d.get("textStyle")):x.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,T,g,C,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=tt(i),o=n.tooltipConfig,s=o.option||{};if(F(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var p=t.positionDefault,c=Ac(u,this._tooltipModel,p?{position:p}:null),h=c.get("content"),v=Math.random()+"",d=new Xv;this._showOrMove(c,function(){var m=$(c.get("formatterParams")||{});this._showTooltipContent(c,h,m,v,t.offsetX,t.offsetY,t.position,i,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=v.color;if(c)if(F(c)){var m=t.ecModel.get("useUTC"),g=O(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=ms(g.axisValue,h,m)),h=Dv(h,a,!0)}else if(X(c)){var x=W(function(_,b){_===this._ticket&&(p.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,h=c(a,n,x)}else h=c;p.setContent(h,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n){if(a==="axis"||O(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!O(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),X(i)&&(i=i([a,n],s,o.el,v,{viewSize:[u,f],contentSize:p.slice()})),O(i))a=H(i[0],u),n=H(i[1],f);else if(j(i)){var d=i;d.width=p[0],d.height=p[1];var m=Zt(d,{width:u,height:f});a=m.x,n=m.y,c=null,h=null}else if(F(i)&&l){var g=jj(i,v,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=Xj(a,n,o,u,f,c?null:20,h?null:20);a=g[0],n=g[1]}if(c&&(a-=vV(c)?p[0]/2:c==="right"?p[0]:0),h&&(n-=vV(h)?p[1]/2:h==="bottom"?p[1]:0),sg(t)){var g=qj(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&w(u,function(c,h){var v=p[h]||{},d=c.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===m.length,o&&w(d,function(g,y){var x=m[y];o=o&&g.seriesIndex===x.seriesIndex&&g.dataIndex===x.dataIndex}),n&&w(c.seriesDataIndices,function(g){var y=g.seriesIndex,x=i[y],_=n[y];x&&_&&_.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){Tt.node||!i.getDom()||(cn(this,"_updatePosition"),this._tooltipContent.dispose(),bc("itemTooltip",i))},e.type="tooltip",e}(Ot);function Ac(r,e,t){var i=e.ecModel,a;t?(a=new zt(t,i,i),a=new zt(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof zt&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(a=new zt(o,a,i)))}return a}function hV(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function Xj(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function qj(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function jj(r,e,t,i){var a=t[0],n=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function vV(r){return r==="center"||r==="middle"}function Kj(r,e,t){var i=Wf(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Vn(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=tt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var dV=Zj;function lw(r){St(pa),r.registerComponentModel(iV),r.registerComponentView(dV),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},te),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},te)}var Qj=["rect","polygon","keep","clear"];function uw(r,e){var t=Nt(r?r.brush:[]);if(t.length){var i=[];w(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;O(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),$j(s),e&&!s.length&&s.push.apply(s,Qj)}}function $j(r){var e={};w(r,function(t){e[t]=1}),r.length=0,w(e,function(t,i){r.push(i)})}var mV=w;function gV(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Dc(r,e,t){var i={};return mV(e,function(n){var o=i[n]=a();mV(r[n],function(s,l){if(xe.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new xe(u),l==="opacity"&&(u=$(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new xe(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function lg(r,e,t){var i;w(t,function(a){e.hasOwnProperty(a)&&gV(e[a])&&(i=!0)}),i&&w(t,function(a){e.hasOwnProperty(a)&&gV(e[a])?r[a]=$(e[a]):delete r[a]})}function yV(r,e,t,i,a,n){var o={};w(r,function(p){var c=xe.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Ip(t,s,p)}function u(p,c){xx(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=i.call(a,p),d=e[v],m=o[v],g=0,y=m.length;g<y;g++){var x=m[g];d[x]&&d[x].applyVisual(p,l,u)}}}function xV(r,e,t,i){var a={};return w(r,function(n){var o=xe.prepareVisualTypes(e[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return Ip(s,p,b)}function f(b,S){xx(s,p,b,S)}for(var p,c=s.getStore();(p=o.next())!=null;){var h=s.getRawDataItem(p);if(!(h&&h.visualMap===!1))for(var v=i!=null?c.get(l,p):p,d=t(v),m=e[d],g=a[d],y=0,x=g.length;y<x;y++){var _=g[y];m[_]&&m[_].applyVisual(v,u,f)}}}}}function bV(r){var e=r.brushType,t={point:function(i){return _V[e].point(i,t,r)},rect:function(i){return _V[e].rect(i,t,r)}};return t}var _V={lineX:SV(0),lineY:SV(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&hn(t.range,r[0],r[1])},rect:function(r,e,t){var i=t.range;if(!r||i.length<=1)return!1;var a=r.x,n=r.y,o=r.width,s=r.height,l=i[0];if(hn(i,a,n)||hn(i,a+o,n)||hn(i,a,n+s)||hn(i,a+o,n+s)||rt.create(r).contain(l[0],l[1])||ou(a,n,a+o,n,i)||ou(a,n,a,n+s,i)||ou(a+o,n,a+o,n+s,i)||ou(a,n+s,a+o,n+s,i))return!0}}};function SV(r){var e=["x","y"],t=["width","height"];return{point:function(i,a,n){if(i){var o=n.range,s=i[r];return Mc(s,o)}},rect:function(i,a,n){if(i){var o=n.range,s=[i[e[r]],i[e[r]]+i[t[r]]];return s[1]<s[0]&&s.reverse(),Mc(s[0],o)||Mc(s[1],o)||Mc(o[0],s)||Mc(o[1],s)}}}}function Mc(r,e){return e[0]<=r&&r<=e[1]}var wV=["inBrush","outOfBrush"],fw="__ecBrushSelect",pw="__ecInBrushSelectEvent";function cw(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Cc(e.option,r);t.setInputRanges(e.areas,r)})}function hw(r,e,t){var i=[],a,n;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),cw(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:$(o.areas),selected:[]};i.push(l);var u=o.option,f=u.brushLink,p=[],c=[],h=[],v=!1;s||(a=u.throttleType,n=u.throttleDelay);var d=k(o.areas,function(b){var S=rK[b.brushType],T=q({boundingRect:S?S(b):void 0},b);return T.selectors=bV(T),T}),m=Dc(o.option,wV,function(b){b.mappingMethod="fixed"});O(f)&&w(f,function(b){p[b]=1});function g(b){return f==="all"||!!p[b]}function y(b){return!!b.length}r.eachSeries(function(b,S){var T=h[S]=[];b.subType==="parallel"?x(b,S):_(b,S,T)});function x(b,S){var T=b.coordinateSystem;v=v||T.hasAxisBrushed(),g(S)&&T.eachActiveState(b.getData(),function(C,A){C==="active"&&(c[A]=1)})}function _(b,S,T){if(!(!b.brushSelector||eK(o,S))&&(w(d,function(A){o.brushTargetManager.controlSeries(A,b,r)&&T.push(A),v=v||y(T)}),g(S)&&y(T))){var C=b.getData();C.each(function(A){TV(b,T,C,A)&&(c[A]=1)})}}r.eachSeries(function(b,S){var T={seriesId:b.id,seriesIndex:S,seriesName:b.name,dataIndex:[]};l.selected.push(T);var C=h[S],A=b.getData(),D=g(S)?function(M){return c[M]?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return TV(b,C,A,M)?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(g(S)?v:y(C))&&yV(wV,m,A,D)})}),Jj(e,a,n,i,t)}function Jj(r,e,t,i,a){if(a){var n=r.getZr();if(!n[pw]){n[fw]||(n[fw]=tK);var o=Ii(n,fw,t,e);o(r,i)}}}function tK(r,e){if(!r.isDisposed()){var t=r.getZr();t[pw]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[pw]=!1}}function TV(r,e,t,i){for(var a=0,n=e.length;a<n;a++){var o=e[a];if(r.brushSelector(i,t,o.selectors,o))return!0}}function eK(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(O(t)?nt(t,e)<0:e!==t)}var rK={rect:function(r){return CV(r.range)},polygon:function(r){for(var e,t=r.range,i=0,a=t.length;i<a;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var n=t[i];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&CV(e)}};function CV(r){return new rt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var iK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new Zu(i.getZr())).on("brush",W(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){cw(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:$(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:$(a),$from:i})},e.type="brush",e}(Ot),AV=iK;var aK="#ddd",nK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&lg(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:aK},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=k(t,function(i){return DV(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=DV(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(xt);function DV(r,e){return lt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new zt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var MV=nK;var oK=["rect","polygon","lineX","lineY","keep","clear"],sK=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,w(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return w(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:oK.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(Xe),IV=sK;function vw(r){r.registerComponentView(AV),r.registerComponentModel(MV),r.registerPreprocessor(uw),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,hw),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},te),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},te),So("brush",IV)}var lK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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"}},e}(xt),uK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=at(t.get("textBaseline"),t.get("textVerticalAlign")),f=new yt({style:Ht(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),h=new yt({style:Ht(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!v&&!m,h.silent=!d&&!m,v&&f.on("click",function(){gs(v,"_"+t.get("target"))}),d&&h.on("click",function(){gs(d,"_"+t.get("subtarget"))}),tt(f).eventData=tt(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(h);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var x=Zt(y,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),n.x=x.x,n.y=x.y,n.markRedraw();var _={align:l,verticalAlign:u};f.setStyle(_),h.setStyle(_),g=n.getBoundingRect();var b=x.margin,S=t.getItemStyle(["color","opacity"]);S.fill=t.get("backgroundColor");var T=new ht({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});n.add(T)}},e.type="title",e}(Ot);function dw(r){r.registerComponentModel(lK),r.registerComponentView(uK)}var fK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],w(i,function(u,f){var p=le(Wi(u),""),c;j(u)?(c=$(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ve([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(xt),mw=fK;var LV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=mr(mw.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(mw);jt(LV,mu.prototype);var EV=LV;var pK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Ot),PV=pK;var cK=function(r){E(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Qe),zV=cK;var gw=Math.PI,RV=ot(),hK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ie("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=dK(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":F(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:gw/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,m=v+d,g=t.get(["label","rotate"])||0;g=g*gw/180;var y,x,_,b=c.get("position",!0),S=h&&c.get("showPlayBtn",!0),T=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),A=0,D=p;b==="left"||b==="bottom"?(S&&(y=[0,0],A+=m),T&&(x=[A,0],A+=m),C&&(_=[D-v,0],D-=m)):(S&&(y=[D-v,0],D-=m),T&&(x=[0,0],A+=m),C&&(_=[D-v,0],D-=m));var M=[A,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:x,nextBtnPosition:_,axisExtent:M,controlSize:v,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Me(),l=o.x,u=o.y+o.height;tr(s,s,[-l,-u]),Rr(s,s,-gw/2),tr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),h=[a.x,a.y],v=[n.x,n.y];v[0]=h[0]=f[0][0];var d=t.labelPosOpt;if(d==null||F(d)){var m=d==="+"?0:1;x(h,p,f,1,m),x(v,c,f,1,1-m)}else{var m=d>=0?0:1;x(h,p,f,1,m),v[1]=h[1]+d}a.setPosition(h),n.setPosition(v),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(_){_.originX=f[0][0]-_.x,_.originY=f[1][0]-_.y}function y(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,b,S,T,C){_[T]+=S[T][C]-b[T][C]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType"),o=vK(i,n);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new zV("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new K;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new fe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:N({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new fe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),h=p.getModel(["emphasis","itemStyle"]),v=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},m=NV(p,c,i,d);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Ta(m);var g=tt(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],w(u,function(f){var p=f.tickValue,c=l.getItemModel(p),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(f.tickValue),g=new yt({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,p),silent:!1,style:Ht(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Ht(v),g.ensureState("progress").style=Ht(d),i.add(g),Ta(g),RV(g).dataIndex=p,o._tickLabels.push(g)})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",W(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",W(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function c(h,v,d,m){if(h){var g=er(at(n.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-g/2,g,g],x=mK(n,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});x.ensureState("emphasis").style=u,i.add(x),Ta(x)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=W(u._handlePointerDrag,u),p.ondragend=W(u._handlePointerDragend,u),OV(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){OV(p,u._progressLine,s,a,n)}};this._currentPointer=NV(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=Ie(n.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return nr(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),a=1/0,n,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,a=this._tickLabels;if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",n<t);if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",RV(a[n]).dataIndex<=t)},e.type="timeline.slider",e}(PV);function vK(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Wp({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Td({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new jr}}function dK(r,e){return Zt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function mK(r,e,t,i){var a=i.style,n=nn(r.get(["controlStyle",e]),i||{},new rt(t[0],t[1],t[2],t[3]));return a&&n.setStyle(a),n}function NV(r,e,t,i,a,n){var o=e.get("color");if(a)a.setColor(o),t.add(a),n&&n.onUpdate(a);else{var s=r.get("symbol");a=Xt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),n&&n.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),i=lt({rectHover:!0,z2:100},i,!0);var u=ea(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=ui(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var p=r.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function OV(r,e,t,i,a,n){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",t));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var kV=hK;function VV(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),q({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function yw(r){var e=r&&r.timeline;O(e)||(e=e?[e]:[]),w(e,function(t){t&&gK(t)})}function gK(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),UV(r),Hs(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});Hs(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!Hs(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}w(r.data||[],function(a){j(a)&&!O(a)&&(!Hs(a,"value")&&Hs(a,"name")&&(a.value=a.name),UV(a))})}function UV(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=r.label||r.label||{},a=i.normal||(i.normal={}),n={normal:1,emphasis:1};w(i,function(o,s){!n[s]&&!Hs(a,s)&&(a[s]=o)}),t.label&&!Hs(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Hs(r,e){return r.hasOwnProperty(e)}function xw(r){r.registerComponentModel(EV),r.registerComponentView(kV),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),VV(r),r.registerPreprocessor(yw)}function Ws(r,e){if(!r)return!1;for(var t=O(r)?r:[r],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function fg(r){ai(r,"label",["show"])}var pg=ot(),BV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Tt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,a,n){var o=this.mainType;a||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=pg(s)[o];if(!l||!l.data){pg(s)[o]=null;return}u?u._mergeOption(l,i,!0):(n&&fg(l),w(l.data,function(f){f instanceof Array?(fg(f[0]),fg(f[1])):fg(f)}),u=this.createMarkerModelFromSeries(l,this,i),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),pg(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ie("section",{header:this.name,blocks:[ie("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,i){return pg(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(xt);jt(BV,mu.prototype);var Mr=BV;var yK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Mr),FV=yK;function Sw(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function xK(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function cg(r,e,t,i,a,n){var o=[],s=fi(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=vg(e,l,r),f=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,f),o[n]=e.get(l,f);var p=e.get(i,f),c=rr(e.get(i,f));return c=Math.min(c,20),c>=0&&(o[n]=+o[n].toFixed(c)),[o,p]}var _w={min:et(cg,"min"),max:et(cg,"max"),average:et(cg,"average"),median:et(cg,"median")};function wo(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!xK(e)&&!O(e.coord)&&O(a)){var n=bw(e,t,i,r);if(e=$(e),e.type&&_w[e.type]&&n.baseAxis&&n.valueAxis){var o=nt(a,n.baseAxis.dim),s=nt(a,n.valueAxis.dim),l=_w[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!O(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)_w[u[f]]&&(u[f]=vg(t,t.mapDimension(a[f]),u[f]));return e}}function bw(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(_K(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function _K(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function To(r,e){return r&&r.containData&&e.coord&&!Sw(e)?r.containData(e.coord):!0}function GV(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Sw(e)&&!Sw(t)?r.containZone(e.coord,t.coord):!0}function hg(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return Mi(o,e[n])}:function(t,i,a,n){return Mi(t.value,e[n])}}function vg(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Tw=ot(),SK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Y()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){Tw(s).keep=!1}),i.eachSeries(function(s){var l=Mr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!Tw(s).keep&&n.group.remove(s.group)})},e.prototype.markKeep=function(t){Tw(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;w(t,function(n){var o=Mr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?Jh(l):tp(l))})}})},e.type="marker",e}(Ot),nf=SK;function HV(r,e,t){var i=e.coordinateSystem;r.each(function(a){var n=r.getItemModel(a),o,s=H(n.get("x"),t.getWidth()),l=H(n.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(i){var u=r.get(i.dimensions[0],a),f=r.get(i.dimensions[1],a);o=i.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var bK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markPoint");o&&(HV(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ra),p=wK(o,t,i);i.setData(p),HV(i.getData(),t,n),p.each(function(c){var h=p.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(X(v)||X(d)||X(m)||X(g)){var x=i.getRawValue(c),_=i.getDataParams(c);X(v)&&(v=v(x,_)),X(d)&&(d=d(x,_)),X(m)&&(m=m(x,_)),X(g)&&(g=g(x,_))}var b=h.getModel("itemStyle").getItemStyle(),S=Ma(l,"color");b.fill||(b.fill=S),p.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:b})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(h){tt(h).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(nf);function wK(r,e,t){var i;r?i=k(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return N(N({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new ve(i,t),n=k(t.get("data"),et(wo,e));r&&(n=Dt(n,et(To,r)));var o=hg(!!r,i);return a.initData(n,null,o),a}var WV=bK;function Cw(r){r.registerComponentModel(FV),r.registerComponentView(WV),r.registerPreprocessor(function(e){Ws(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var TK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Mr),YV=TK;var dg=ot(),CK=function(r,e,t,i){var a=r.getData(),n;if(O(i))n=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=ae(i.yAxis,i.xAxis);else{var u=bw(i,a,e,r);s=u.valueAxis;var f=yd(a,u.valueDataDim);l=vg(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,h=$(i),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=t.get("precision");d>=0&&vt(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[p]=v.coord[p]=l,n=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[wo(r,n[0]),wo(r,n[1]),N({},n[2])];return m[2].type=m[2].type||null,lt(m[2],m[0]),lt(m[2],m[1]),m};function mg(r){return!isNaN(r)&&!isFinite(r)}function ZV(r,e,t,i){var a=1-r,n=i.dimensions[r];return mg(e[a])&&mg(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function AK(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(ZV(1,t,i,r)||ZV(0,t,i,r)))return!0}return To(r,e[0])&&To(r,e[1])}function Aw(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),a.getWidth()),u=H(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Pi(n,"cartesian2d")){var h=n.getAxis("x"),v=n.getAxis("y"),f=n.dimensions;mg(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):mg(r.get(f[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var DK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=dg(o).from,u=dg(o).to;l.each(function(f){Aw(l,f,!0,n,a),Aw(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu);this.group.add(f.group);var p=MK(o,t,i),c=p.from,h=p.to,v=p.line;dg(i).from=c,dg(i).to=h,i.setData(v);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");O(d)||(d=[d,d]),O(m)||(m=[m,m]),O(g)||(g=[g,g]),O(y)||(y=[y,y]),p.from.each(function(_){x(c,_,!0),x(h,_,!1)}),v.each(function(_){var b=v.getItemModel(_).getModel("lineStyle").getLineStyle();v.setItemLayout(_,[c.getItemLayout(_),h.getItemLayout(_)]),b.stroke==null&&(b.stroke=c.getItemVisual(_,"style").fill),v.setItemVisual(_,{fromSymbolKeepAspect:c.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(_,"symbolOffset"),fromSymbolRotate:c.getItemVisual(_,"symbolRotate"),fromSymbolSize:c.getItemVisual(_,"symbolSize"),fromSymbol:c.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:b})}),f.updateData(v),p.line.eachItemGraphicEl(function(_){tt(_).dataModel=i,_.traverse(function(b){tt(b).dataModel=i})});function x(_,b,S){var T=_.getItemModel(b);Aw(_,b,S,t,n);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Ma(l,"color")),_.setItemVisual(b,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:at(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:at(T.get("symbolRotate",!0),g[S?0:1]),symbolSize:at(T.get("symbolSize"),m[S?0:1]),symbol:at(T.get("symbol",!0),d[S?0:1]),style:C})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(nf);function MK(r,e,t){var i;r?i=k(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return N(N({},f),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new ve(i,t),n=new ve(i,t),o=new ve([],t),s=k(t.get("data"),et(CK,e,r,t));r&&(s=Dt(s,et(AK,r)));var l=hg(!!r,i);return a.initData(k(s,function(u){return u[0]}),null,l),n.initData(k(s,function(u){return u[1]}),null,l),o.initData(k(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var XV=DK;function Dw(r){r.registerComponentModel(YV),r.registerComponentView(XV),r.registerPreprocessor(function(e){Ws(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var IK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Mr),qV=IK;var gg=ot(),LK=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=wo(r,a),s=wo(r,n),l=o.coord,u=s.coord;l[0]=ae(l[0],-1/0),l[1]=ae(l[1],-1/0),u[0]=ae(u[0],1/0),u[1]=ae(u[1],1/0);var f=Cl([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function yg(r){return!isNaN(r)&&!isFinite(r)}function jV(r,e,t,i){var a=1-r;return yg(e[a])&&yg(t[a])}function EK(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Pi(r,"cartesian2d")?t&&i&&(jV(1,t,i,r)||jV(0,t,i,r))?!0:GV(r,a,n):To(r,a)||To(r,n)}function KV(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),a.getWidth()),u=H(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),h=n.clampData(p),v=[];t[0]==="x0"?v[0]=c[0]>h[0]?p[0]:f[0]:v[0]=c[0]>h[0]?f[0]:p[0],t[1]==="y0"?v[1]=c[1]>h[1]?p[1]:f[1]:v[1]=c[1]>h[1]?f[1]:p[1],s=i.getMarkerPosition(v,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Pi(n,"cartesian2d")){var y=n.getAxis("x"),x=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);yg(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):yg(m)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var QV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],PK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Mr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=k(QV,function(p){return KV(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new K});this.group.add(f.group),this.markKeep(f);var p=zK(o,t,i);i.setData(p),p.each(function(c){var h=k(QV,function(C){return KV(p,c,C,t,n)}),v=o.getAxis("x").scale,d=o.getAxis("y").scale,m=v.getExtent(),g=d.getExtent(),y=[v.parse(p.get("x0",c)),v.parse(p.get("x1",c))],x=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];Ie(y),Ie(x);var _=!(m[0]>y[1]||m[1]<y[0]||g[0]>x[1]||g[1]<x[0]),b=!_;p.setItemLayout(c,{points:h,allClipped:b});var S=p.getItemModel(c).getModel("itemStyle").getItemStyle(),T=Ma(l,"color");S.fill||(S.fill=T,F(S.fill)&&(S.fill=Fo(S.fill,.4))),S.stroke||(S.stroke=T),p.setItemVisual(c,"style",S)}),p.diff(gg(f).data).add(function(c){var h=p.getItemLayout(c);if(!h.allClipped){var v=new he({shape:{points:h.points}});p.setItemGraphicEl(c,v),f.group.add(v)}}).update(function(c,h){var v=gg(f).data.getItemGraphicEl(h),d=p.getItemLayout(c);d.allClipped?v&&f.group.remove(v):(v?_t(v,{shape:{points:d.points}},i,c):v=new he({shape:{points:d.points}}),p.setItemGraphicEl(c,v),f.group.add(v))}).remove(function(c){var h=gg(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),p.eachItemGraphicEl(function(c,h){var v=p.getItemModel(h),d=p.getItemVisual(h,"style");c.useStyle(p.getItemVisual(h,"style")),ee(c,Kt(v),{labelFetcher:i,labelDataIndex:h,defaultText:p.getName(h)||"",inheritColor:F(d.fill)?Fo(d.fill,1):"#000"}),se(c,v),Vt(c,null,null,v.get(["emphasis","disabled"])),tt(c).dataModel=i}),gg(f).data=p,f.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e}(nf);function zK(r,e,t){var i,a,n=["x0","y0","x1","y1"];if(r){var o=k(r&&r.dimensions,function(u){var f=e.getData(),p=f.getDimensionInfo(f.mapDimension(u))||{};return N(N({},p),{name:u,ordinalMeta:null})});a=k(n,function(u,f){return{name:u,type:o[f%2].type}}),i=new ve(a,t)}else a=[{name:"value",type:"float"}],i=new ve(a,t);var s=k(t.get("data"),et(LK,e,r,t));r&&(s=Dt(s,et(EK,r)));var l=r?function(u,f,p,c){var h=u.coord[Math.floor(c/2)][c%2];return Mi(h,a[c])}:function(u,f,p,c){return Mi(u.value,a[c])};return i.initData(s,null,l),i.hasItemOption=!0,i}var $V=PK;function Mw(r){r.registerComponentModel(qV),r.registerComponentView($V),r.registerPreprocessor(function(e){Ws(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var RK=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},NK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,a=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),O(i)&&w(i,function(n,o){F(n)&&(n={type:n}),i[o]=lt(n,RK(a,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<t.length;a++){var n=t[a].get("name");if(this.isSelected(n)){this.select(n),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,c=p.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Zl(l)&&i.push(l.name)}),this._availableNames=a;var n=this.get("data")||i,o=Y(),s=k(n,function(l){return(F(l)||vt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new zt(l,this,this.ecModel))},this);this._data=Dt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var n=this._data;w(n,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;w(t,function(a){i[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;w(t,function(a){var n=a.get("name",!0);i.hasOwnProperty(n)||(i[n]=!0),i[n]=!i[n]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&nt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(xt),Ic=NK;var of=et,Iw=w,xg=K,OK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new xg),this.group.add(this._selectorGroup=new xg),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,a,l,s,u);var f=t.getBoxLayoutParams(),p={width:a.getWidth(),height:a.getHeight()},c=t.get("padding"),h=Zt(f,p,c),v=this.layoutInner(t,o,h,n,l,u),d=Zt(q({width:v.width,height:v.height},f),p,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ag(v,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=Y(),p=i.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Iw(i.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===`
  28. `)){var m=new xg;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(d)[0];if(!f.get(d))if(g){var y=g.getData(),x=y.getVisual("legendLineStyle")||{},_=y.getVisual("legendIcon"),b=y.getVisual("style"),S=this._createItem(g,d,v,h,i,t,x,b,_,p,n);S.on("click",of(JV,d,null,n,c)).on("mouseover",of(Lw,g.name,null,n,c)).on("mouseout",of(Ew,g.name,null,n,c)),a.ssr&&S.eachChild(function(T){var C=tt(T);C.seriesIndex=g.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(d,!0)}else a.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),I=qe(D.fill);I&&I[3]===0&&(I[3]=.2,D=N(N({},D),{fill:_i(I,"rgba")}));var L=this._createItem(T,d,v,h,i,t,{},D,M,p,n);L.on("click",of(JV,null,d,n,c)).on("mouseover",of(Lw,null,d,n,c)).on("mouseout",of(Ew,null,d,n,c)),a.ssr&&L.eachChild(function(P){var z=tt(P);z.seriesIndex=T.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();Iw(t,function(u){var f=u.type,p=new yt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var c=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);ee(p,{normal:c,emphasis:h},{defaultText:u.title}),Ta(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var h=t.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),x=n.get("icon");f=x||f||"roundRect";var _=kK(f,n,l,u,h,m,c),b=new xg,S=n.getModel("textStyle");if(X(t.getLegendIcon)&&(!x||x==="inherit"))b.add(t.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var T=x==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;b.add(VK({itemWidth:v,itemHeight:d,icon:f,iconRotate:T,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,A=s,D=o.get("formatter"),M=i;F(D)&&D?M=D.replace("{name}",i??""):X(D)&&(M=D(i));var I=m?S.getTextColor():n.get("inactiveColor");b.add(new yt({style:Ht(S,{text:M,x:C,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new ht({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&ji({el:L,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(z){z.silent=!0}),L.silent=!p,this.getContentGroup().add(b),Ta(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$i(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){$i("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],v=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[m]+v:p[d]+=c[m]+v,h[1-d]+=f[g]/2-c[g]/2,u.x=h[0],u.y=h[1],l.x=p[0],l.y=p[1];var x={x:0,y:0};return x[m]=f[m]+v+c[m],x[g]=Math.max(f[g],c[g]),x[y]=Math.min(0,c[y]+h[1-d]),x}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ot);function kK(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Iw(m,function(y,x){m[x]==="inherit"&&(m[x]=g[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:ra(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!n){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function VK(r){var e=r.icon||"roundRect",t=Xt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function JV(r,e,t,i){Ew(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Lw(r,e,t,i)}function tU(r){for(var e=r.getZr().storage.getDisplayList(),t,i=0,a=e.length;i<a&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function Lw(r,e,t,i){tU(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function Ew(r,e,t,i){tU(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var _g=OK;function Pw(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Lc(r,e,t){var i={},a=r==="toggleSelected",n;return t.eachComponent("legend",function(o){a&&n!=null?o[n?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),n=o.isSelected(e.name));var s=o.getData();w(s,function(l){var u=l.get("name");if(!(u===`
  29. `||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function eU(r){r.registerAction("legendToggleSelect","legendselectchanged",et(Lc,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",et(Lc,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",et(Lc,"inverseSelect")),r.registerAction("legendSelect","legendselected",et(Lc,"select")),r.registerAction("legendUnSelect","legendunselected",et(Lc,"unSelect"))}function Sg(r){r.registerComponentModel(Ic),r.registerComponentView(_g),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Pw),r.registerSubTypeDefaulter("legend",function(){return"plain"}),eU(r)}var UK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,a){var n=Ai(t);r.prototype.init.call(this,t,i,a),rU(this,t,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),rU(this,this.option,t)},e.type="legend.scroll",e.defaultOption=mr(Ic.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}),e}(Ic);function rU(r,e,t){var i=r.getOrient(),a=[1,1];a[i.index]=0,Wr(e,t,{type:"box",ignoreSize:!!a})}var iU=UK;var aU=K,zw=["width","height"],Rw=["x","y"],BK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new aU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new aU)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,a,n,o,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),c=O(p)?p:[p,p];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new yt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,m){var g=d+"DataIndex",y=nn(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:W(u._pageGo,u,g,i,n)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=zw[u],p=Rw[u],c=zw[1-u],h=Rw[1-u];o&&$i("horizontal",l,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=$(a);o&&(g[f]=a[f]-d[f]-v);var y=this._layoutContentAndController(t,n,g,u,f,c,h,p);if(o){if(s==="end")m[u]+=y[f]+v;else{var x=d[f]+v;m[u]-=x,y[p]-=x}y[f]+=d[f]+v,m[1-u]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,a,n,o,s,l,u){var f=this.getContentGroup(),p=this._containerGroup,c=this._controllerGroup;$i(t.get("orient"),f,t.get("itemGap"),n?a.width:null,n?null:a.height),$i("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=c.getBoundingRect(),d=this._showController=h[o]>a[o],m=[-h.x,-h.y];i||(m[n]=f[u]);var g=[0,0],y=[-v.x,-v.y],x=at(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);_==="end"?y[n]+=a[o]-v[o]:g[n]+=v[o]+x}y[1-n]+=h[s]/2-v[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var b={x:0,y:0};if(b[o]=d?a[o]:h[o],b[s]=Math.max(h[s],v[s]),b[l]=Math.min(0,v[l]+y[1-n]),p.__rectSize=a[o],d){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-x,0),S[s]=b[s],p.setClipPath(new ht({shape:S})),p.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&_t(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?t:null),this._updatePageInfoView(t,T),b},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",F(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=zw[o],l=Rw[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return v;var d=_(p);v.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,x=null;m<=c;++m)x=_(f[m]),(!x&&y.e>g.s+n||x&&!b(x,g.s))&&(y.i>g.i?g=y:g=x,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=x;for(var m=u-1,g=d,y=d,x=null;m>=-1;--m)x=_(f[m]),(!x||!b(y,x.s))&&g.i<y.i&&(y=g,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=g.i),++v.pageCount,++v.pageIndex),g=x;return v;function _(S){if(S){var T=S.getBoundingRect(),C=T[l]+S[l];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function b(S,T){return S.e>=T&&S.s<=T+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e}(_g),nU=BK;function Nw(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function oU(r){St(Sg),r.registerComponentModel(iU),r.registerComponentView(nU),Nw(r)}function Ow(r){St(Sg),St(oU)}var FK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=mr(_o.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(_o),sU=FK;var kw=ot();function lU(r,e,t){kw(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function uU(r,e){for(var t=kw(r).coordSysRecordMap,i=t.keys(),a=0;a<i.length;a++){var n=i[a],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||fU(t,o))}}}function fU(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function GK(r,e){var t={model:e,containsPoint:et(WK,e),dispatchAction:et(HK,r),dataZoomInfoMap:null,controller:null},i=t.controller=new Va(r.getZr());return w(["pan","zoom","scrollMove"],function(a){i.on(a,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function HK(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function WK(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function YK(r){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function pU(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=kw(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=Y());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=rg(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,GK(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){fU(a,n);return}var f=YK(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),Ii(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var XK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),lU(a,t,{pan:W(Vw.pan,this),zoom:W(Vw.zoom,this),scrollMove:W(Vw.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(ef),Vw={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=Uw[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Qr(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:cU(function(r,e,t,i,a,n){var o=Uw[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:cU(function(r,e,t,i,a,n){var o=Uw[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function cU(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(Qr(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Uw={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},hU=XK;function Ec(r){Gs(r),r.registerComponentModel(sU),r.registerComponentView(hU),pU(r)}var qK=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=mr(_o.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"}}}),e}(_o),vU=qK;var Pc=ht,dU=7,jK=1,Bw=30,KK=7,zc="horizontal",mU="vertical",QK=5,$K=["line","bar","candlestick","scatter"],JK={easing:"cubicOut",duration:100,delay:0},tQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),Ii(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){cn(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new K;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?KK:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===zc?{right:s.width-o.x-o.width,top:s.height-Bw-dU-n,width:o.width,height:Bw}:{right:dU,top:o.y,width:Bw,height:o.height},u=Ai(t.option);w(["right","top","width","height"],function(p){u[p]==="ph"&&(u[p]=l[p])});var f=Zt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===mU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===zc&&!o?{scaleY:l?1:-1,scaleX:1}:a===zc&&o?{scaleY:l?1:-1,scaleX:-1}:a===mU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Pc({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Pc({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();n?(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)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(l),c=(p[1]-p[0])*.3;p=[p[0]-c,p[1]+c];var h=[0,i[1]],v=[0,i[0]],d=[[i[0],0],[0,0]],m=[],g=v[1]/(o.count()-1),y=0,x=Math.round(o.count()/i[0]),_;o.each([l],function(A,D){if(x>0&&D%x){y+=g;return}var M=A==null||isNaN(A)||A==="",I=M?0:kt(A,p,h,!0);M&&!_&&D?(d.push([d[d.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&_&&(d.push([y,0]),m.push([y,0])),d.push([y,I]),m.push([y,I]),y+=g,_=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function S(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new K,I=new he({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new pe({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!a&&!(i!==!0&&nt($K,u.get("type"))<0)){var f=n.getComponent(Vi(o),s).axis,p=eQ(o),c,h=u.coordinateSystem;p!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),p=u.getData().mapDimension(p),a={thisAxis:f,series:u,thisDim:o,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Pc({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Pc({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:jK,fill:"rgba(0,0,0,0)"}})),w([0,1],function(x){var _=l.get("handleIcon");!Lp[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var b=Xt(_,-1,0,2,2,null,!0);b.attr({cursor:gU(this._orient),draggable:!0,drift:W(this._onDragMove,this,x),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var S=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=H(T,this._size[1]),this._handleWidth=S.width/S.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(),Ta(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(a[x]=b);var A=l.getModel("textStyle");t.add(n[x]=new yt({silent:!0,invisible:!0,style:Ht(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=c;if(p){var v=H(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new ht({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,g=i.moveHandleIcon=Xt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=s[1]+v/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new ht({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:gU(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[kt(t[0],[0,100],i,!0),kt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Qr(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?kt(s.minSpan,l,o,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ie([kt(n[0],o,l,!0),kt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=Ie(a.slice()),o=this._size;w([0,1],function(h){var v=i.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;f<l.length;f++){var p=l[f],c=p.getClipPath();c||(c=new ht,p.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,a=this._displayables,n=a.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,p=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(p[0],u),this._formatLabel(p[1],u)]}}var c=Ie(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var d=qi(a.handles[v].parent,this.group),m=cs(v===0?"right":"left",d),g=this._handleWidth/2+QK,y=nr([c[v]+(v===0?-g:g),this._size[1]/2],d);n[v].setStyle({x:y[0],y:y[1],verticalAlign:o===zc?"middle":m,align:o===zc?m:"center",text:s[v]})}},e.prototype._formatLabel=function(t,i){var a=this.dataZoomModel,n=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return X(n)?n(t,s):F(n)?n.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var i=this._displayables,a=i.handleLabels;a[0].attr("invisible",!t),a[1].attr("invisible",!t),i.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,i,a,n){this._dragging=!0,Pr(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=nr([i,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>i[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new bt(i,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ie([kt(a.x,o,s,!0),kt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Pr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Pc({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?JK:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=rg(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(ef);function eQ(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function gU(r){return r==="vertical"?"ns-resize":"ew-resize"}var yU=tQ;function Rc(r){r.registerComponentModel(vU),r.registerComponentView(yU),Gs(r)}function Fw(r){St(Ec),St(Rc)}var rQ={get:function(r,e,t){var i=$((iQ[r]||{})[e]);return t&&O(i)?i[i.length-1]:i}},iQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},bg=rQ;var xU=xe.mapVisual,aQ=xe.eachVisual,nQ=O,_U=w,oQ=Ie,sQ=kt,lQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&lg(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=W(t,this),this.controllerVisuals=Dc(this.option.controller,i,t),this.targetVisuals=Dc(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=Nt(t),i},e.prototype.eachTargetSeries=function(t,i){w(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],O(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(F(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(X(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=oQ([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var a=t.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});lt(n,a),lt(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(p){nQ(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,h){var v=p[c],d=p[h];v&&!d&&(d=p[h]={},_U(v,function(m,g){if(xe.isValidType(g)){var y=bg.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,h=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";_U(this.stateList,function(g){var y=this.itemSize,x=p[g];x||(x=p[g]={color:s?v:[v]}),x.symbol==null&&(x.symbol=c&&$(c)||(s?m:[m])),x.symbolSize==null&&(x.symbolSize=h&&$(h)||(s?y[0]:[y[0],y[0]])),x.symbol=xU(x.symbol,function(S){return S==="none"?m:S});var _=x.symbolSize;if(_!=null){var b=-1/0;aQ(_,function(S){S>b&&(b=S)}),x.symbolSize=xU(_,function(S){return sQ(S,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(xt),sf=lQ;var SU=[20,140],uQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=SU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=SU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):O(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Ie((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,a=this.getExtent();return(i[0]<=a[0]||i[0]<=t)&&(i[1]>=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=bU(this,"outOfRange",this.getExtent()),a=bU(this,"inRange",this.option.range.slice()),n=[];function o(h,v){n.push({value:h,color:t(h,v)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var p=1;s<u;s++,p=0)p&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var p=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(p&&(n.length&&o(n[n.length-1].value,"outOfRange"),p=0),o(i[l],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=mr(sf.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(sf);function bU(r,e,t){if(t[0]===t[1])return t.slice();for(var i=200,a=(t[1]-t[0])/i,n=t[0],o=[],s=0;s<=i&&n<t[1];s++)o.push(n),n+=a;return o.push(t[1]),o}var wU=uQ;var fQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,a,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,a,n)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,a=Ki(i.get("padding")||0),n=t.getBoundingRect();t.add(new ht({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,v){s[h]=v}var p=o.controllerVisuals[n||o.getValueState(t)],c=xe.prepareVisualTypes(p);return w(c,function(h){var v=p[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=p.__alphaForOpacity),xe.dependsOn(h,i)&&v&&v.applyVisual(t,u,f)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,a=this.api;Xn(t,i.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(t,i,a,n){},e.type="visualMap",e}(Ot),wg=fQ;var TU=[["left","right","width"],["top","bottom","height"]];function Tg(r,e,t){var i=r.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=TU[o],l=[0,null,10],u={},f=0;f<3;f++)u[TU[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:i[s[f]];var p=[["x","width",3],["y","height",0]][o],c=Zt(u,n,i.padding);return s[(c.margin[p[2]]||0)+c[p[0]]+c[p[1]]*.5<n[p[1]]*.5?0:1]}function lf(r,e){return w(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Fa=kt,pQ=w,AU=Math.min,Gw=Math.max,cQ=12,hQ=6,vQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(this._hideIndicator,this)},e.prototype.doRender=function(t,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var a=t.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),p=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new yt({style:Ht(h,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":p,align:c==="horizontal"?p:"center",text:n})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=Tg(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new K;u.add(f),f.add(a.outOfRange=DU()),f.add(a.inRange=DU(null,s?IU(this._orient):null,W(this._dragHandle,this,"all",!1),W(this._dragHandle,this,"all",!0))),f.setClipPath(new ht({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var p=i.textStyleModel.getTextRect("\u56FD"),c=Gw(p.width,p.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,c,o),this._createHandle(i,u,1,n,c,o)),this._createIndicator(i,u,n,c,o),t.add(u)},e.prototype._createHandle=function(t,i,a,n,o,s){var l=W(this._dragHandle,this,a,!1),u=W(this._dragHandle,this,a,!0),f=er(t.get("handleSize"),n[0]),p=Xt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=IU(this._orient);p.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){Pr(g.event)}}),p.x=n[0]/2,p.useStyle(t.getModel("handleStyle").getItemStyle()),p.setStyle({strokeNoScale:!0,strokeFirst:!0}),p.style.lineWidth*=2,p.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ja(p,!0),i.add(p);var h=this.visualMapModel.textStyleModel,v=new yt({cursor:c,draggable:!0,drift:l,onmousemove:function(g){Pr(g.event)},ondragend:u,style:Ht(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var d=[f,0],m=this._shapes;m.handleThumbs[a]=p,m.handleLabelPoints[a]=d,m.handleLabels[a]=v},e.prototype._createIndicator=function(t,i,a,n,o){var s=er(t.get("indicatorSize"),a[0]),l=Xt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof re){var f=l.style;l.useStyle(N({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var p=this.visualMapModel.textStyleModel,c=new yt({silent:!0,invisible:!0,style:Ht(p,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?n/2:hQ)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=c,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():MU(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),a=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[Fa(i[0],a,n,!0),Fa(i[1],a,n,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];Qr(i,n,o,t,0);var s=a.getExtent();this._dataInterval=[Fa(n[0],o,s,!0),Fa(n[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Aa(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var a=100,n=[],o=(t[1]-t[0])/a;n.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new K(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();pQ([0,1],function(f){var p=o[f];p.setStyle("fill",i.handlesColor[f]),p.y=t[f];var c=Fa(t[f],[0,l[1]],u,!0),h=this.getControllerVisual(c,"symbolSize");p.scaleX=p.scaleY=h/l[0],p.x=l[0]-h/2;var v=nr(a.handleLabelPoints[f],qi(p,this.group));s[f].setStyle({x:v[0],y:v[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),v=this.getControllerVisual(t,"symbolSize"),d=Fa(t,s,u,!0),m=l[0]-v/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=nr(f.indicatorLabelPoint,qi(p,this.group)),x=f.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",f.mainGroup),b=this._orient,S=b==="horizontal";x.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:S?_:"middle",align:S?"center":_});var T={x:m,y:d,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(T,A),x.animateTo(C,A)}else p.attr(T),x.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,n=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);n[1]=AU(Gw(0,n[1]),a[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();t=AU(Gw(o[0],t),o[1]);var l=dQ(a,s,o),u=[t-l,t+l],f=Fa(t,o,s,!0),p=[Fa(u[0],o,s,!0),Fa(u[1],o,s,!0)];u[0]<o[0]&&(p[0]=-1/0),u[1]>o[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(i||MU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var v=gA(c,h);this._dispatchHighDown("downplay",lf(v[0],a)),this._dispatchHighDown("highlight",lf(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(ta(t.target,function(l){var u=tt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",lf(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,a,n){var o=qi(i,n?null:this.group);return O(t)?nr(t,o,a):cs(t,o,a)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(wg);function DU(r,e,t,i){return new he({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Pr(a.event)},ondragend:i})}function dQ(r,e,t){var i=cQ/2,a=r.get("hoverLinkDataSize");return a&&(i=Fa(a,e,t,!0)/2),i}function MU(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function IU(r){return r==="vertical"?"ns-resize":"ew-resize"}var LU=vQ;var EU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},PU=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})};var zU=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var a=r.pipelineContext;!i.isTargetSeries(r)||a&&a.large||t.push(xV(i.stateList,i.targetVisuals,W(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var n=a.getVisualMeta(W(mQ,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function mQ(r,e,t,i){for(var a=e.targetVisuals[i],n=xe.prepareVisualTypes(a),o={color:Ma(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,p,c)}return o.color;function p(h){return o[h]}function c(h,v){o[h]=v}}var RU=w;function Hw(r){var e=r&&r.visualMap;O(e)||(e=e?[e]:[]),RU(e,function(t){if(t){uf(t,"splitList")&&!uf(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&O(i)&&RU(i,function(a){j(a)&&(uf(a,"start")&&!uf(a,"min")&&(a.min=a.start),uf(a,"end")&&!uf(a,"max")&&(a.max=a.end))})}})}function uf(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var NU=!1;function Nc(r){NU||(NU=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(EU,PU),w(zU,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Hw))}function Oc(r){r.registerComponentModel(wU),r.registerComponentView(LU),Nc(r)}var gQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],yQ[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=$(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=k(this._pieceList,function(l){return l=$(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=xe.listVisualTypes(),n=this.isCategory();w(t.pieces,function(s){w(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),w(i,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&w(this.stateList,function(f){(t[f]||(t[f]={}))[l]=bg.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,w(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;w(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=$(t)},e.prototype.getValueState=function(t){var i=xe.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=xe.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var h=t(c,p);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:i.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=mr(sf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(sf),yQ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),Gf(r),w(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;w(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),OU(e,r)},pieces:function(r){var e=this.option;w(e.pieces,function(t,i){j(t)||(t={value:t});var a={text:"",index:i};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var n=a.value=t.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],p=0;p<2;p++){for(var c=[["gte","gt","min"],["lte","lt","max"]][p],h=0;h<3&&o[p]==null;h++)o[p]=t[c[h]],s[p]=l[h],f[p]=h===2;o[p]==null&&(o[p]=u[p])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=xe.retrieveVisuals(t),r.push(a)},this),OU(e,r),Gf(r),w(r,function(t){var i=t.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function OU(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var kU=gQ;var xQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),p=f.endsText,c=ae(i.get("showLabel",!0),!p);p&&this._renderEndsText(t,p[0],u,c,l),w(f.viewPieceList,function(h){var v=h.piece,d=new K;d.onclick=W(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var m=i.getRepresentValue(v);if(this._createItemSymbol(d,m,[0,0,u[0],u[1]]),c){var g=this.visualMapModel.getValueState(m);d.add(new yt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}t.add(d)},this),p&&this._renderEndsText(t,p[1],u,c,l),$i(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:lf(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return Tg(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new K,l=this.visualMapModel.textStyleModel;s.add(new yt({style:Ht(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=k(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a){t.add(Xt(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=$(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(wg),VU=xQ;function kc(r){r.registerComponentModel(kU),r.registerComponentView(VU),Nc(r)}function Ww(r){St(Oc),St(kc)}var _Q={label:{enabled:!0},decal:{show:!1}},UU=ot(),SQ={};function Yw(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=$(_Q);lt(i.label,r.getLocaleModel().get("aria"),!1),lt(t.option,i,!1),a(),n();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var p=Y();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=p.get(c.type);h||(h={},p.set(c.type,h)),UU(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(X(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=gp(c.ecModel,c.name,SQ,r.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",_(x,y))}else{var v=c.getRawData(),d={},m=UU(c).scope;h.each(function(b){var S=h.getRawIndex(b);d[S]=b});var g=v.count();v.each(function(b){var S=d[b],T=v.getName(b)||b+"",C=gp(c.ecModel,T,m,g),A=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",_(A,C))})}function _(b,S){var T=b?N(N({},S),b):S;return T.dirty=!0,T}})}}function n(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=q(f.option,u),!!f.get("enabled")){var p=e.getZr().dom;if(f.get("description")){p.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),m;if(!(c<1)){var g=s();if(g){var y=f.get(["general","withTitle"]);m=o(y,{title:g})}else m=f.get(["general","withoutTitle"]);var x=[],_=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(_,{seriesCount:c}),r.eachSeries(function(C,A){if(A<d){var D=void 0,M=C.get("name"),I=M?"withName":"withoutName";D=c>1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var L=C.getData();if(L.count()>h){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:h})}else D+=f.get(["data","allData"]);for(var z=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),U=[],V=0;V<L.count();V++)if(V<h){var B=L.getName(V),Z=L.getValues(V),Q=f.get(["data",B?"withName":"withoutName"]);U.push(o(Q,{name:B,value:Z.join(z)}))}D+=U.join(z)+R,x.push(D)}});var b=f.getModel(["series","multiple","separator"]),S=b.get("middle"),T=b.get("end");m+=x.join(S)+T,p.setAttribute("aria-label",m)}}}function o(u,f){if(!F(u))return u;var p=u;return w(f,function(c,h){p=p.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),p}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function Zw(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},w(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function Xw(r){r.registerPreprocessor(Zw),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Yw)}var BU={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},bQ=function(){function r(e){var t=this._condVal=F(e)?new RegExp(e):ZT(e)?e:null;if(t==null){var i="";Gt(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return F(t)?this._condVal.test(e):vt(t)?this._condVal.test(e+""):!1},r}(),wQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),TQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),CQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),AQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),DQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),a=e?this.valueParser(i):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(e?a:i))return!1;return!0},r}();function qw(r,e){if(r===!0||r===!1){var t=new wQ;return t.value=r,t}var i="";return GU(r)||Gt(i),r.and?FU("and",r,e):r.or?FU("or",r,e):r.not?MQ(r,e):IQ(r,e)}function FU(r,e,t){var i=e[r],a="";O(i)||Gt(a),i.length||Gt(a);var n=r==="and"?new TQ:new CQ;return n.children=k(i,function(o){return qw(o,t)}),n.children.length||Gt(a),n}function MQ(r,e){var t=r.not,i="";GU(t)||Gt(i);var a=new AQ;return a.child=qw(t,e),a.child||Gt(i),a}function IQ(r,e){for(var t="",i=e.prepareGetValue(r),a=[],n=ft(r),o=r.parser,s=o?Bv(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=J(BU,u)?BU[u]:u,p=r[u],c=s?s(p):p,h=lI(f,c)||f==="reg"&&new bQ(c);h||Gt(t),a.push(h)}}a.length||Gt(t);var v=new DQ;return v.valueGetterParam=i,v.valueParser=s,v.getValue=e.getValue,v.subCondList=a,v}function GU(r){return j(r)&&!me(r)}var LQ=function(){function r(e,t){this._cond=qw(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function HU(r,e){return new LQ(r,e)}var WU={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,i=HU(r.config,{valueGetterAttrMap:Y({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;J(s,"dimension")||Gt(l);var f=e.getDimensionInfo(u);return f||Gt(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),i.evaluate()&&a.push(t);return{data:a}}};var YU={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,i="",a=Nt(t);a.length||Gt(i);var n=[];w(a,function(f){var p=f.dimension,c=f.order,h=f.parser,v=f.incomparable;if(p==null&&Gt(i),c!=="asc"&&c!=="desc"&&Gt(i),v&&v!=="min"&&v!=="max"){var d="";Gt(d)}if(c!=="asc"&&c!=="desc"){var m="";Gt(m)}var g=e.getDimensionInfo(p);g||Gt(i);var y=h?Bv(h):null;h&&!y&&Gt(i),n.push({dimIdx:g.index,parser:y,comparator:new Fv(c,v)})});var o=e.sourceFormat;o!==Le&&o!==sr&&Gt(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,p){for(var c=0;c<n.length;c++){var h=n[c],v=e.retrieveValueFromItem(f,h.dimIdx),d=e.retrieveValueFromItem(p,h.dimIdx);h.parser&&(v=h.parser(v),d=h.parser(d));var m=h.comparator.evaluate(v,d);if(m!==0)return m}return 0}),{data:s}}};function jw(r){r.registerTransform(WU),r.registerTransform(YU)}var EQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,a){r.prototype.init.call(this,t,i,a),this._sourceManager=new Wv(this),ux(this)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),ux(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Yr},e}(xt);var PQ=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Ot);function Kw(r){r.registerComponentModel(EQ),r.registerComponentView(PQ)}var Ga=Ye.CMD;function ff(r,e){return Math.abs(r-e)<1e-5}function Cg(r){var e=r.data,t=r.len(),i=[],a,n=0,o=0,s=0,l=0;function u(L,P){a&&a.length>2&&i.push(a),a=[L,P]}function f(L,P,z,R){ff(L,z)&&ff(P,R)||a.push(L,P,z,R,z,R)}function p(L,P,z,R,U,V){var B=Math.abs(P-L),Z=Math.tan(B/4)*4/3,Q=P<L?-1:1,st=Math.cos(L),ct=Math.sin(L),pt=Math.cos(P),Lt=Math.sin(P),Bt=st*U+z,Et=ct*V+R,gt=pt*U+z,Pt=Lt*V+R,Ct=U*Z*Q,ut=V*Z*Q;a.push(Bt-Ct*ct,Et+ut*st,gt+Ct*Lt,Pt-ut*pt,gt,Pt)}for(var c,h,v,d,m=0;m<t;){var g=e[m++],y=m===1;switch(y&&(n=e[m],o=e[m+1],s=n,l=o,(g===Ga.L||g===Ga.C||g===Ga.Q)&&(a=[s,l])),g){case Ga.M:n=s=e[m++],o=l=e[m++],u(s,l);break;case Ga.L:c=e[m++],h=e[m++],f(n,o,c,h),n=c,o=h;break;case Ga.C:a.push(e[m++],e[m++],e[m++],e[m++],n=e[m++],o=e[m++]);break;case Ga.Q:c=e[m++],h=e[m++],v=e[m++],d=e[m++],a.push(n+2/3*(c-n),o+2/3*(h-o),v+2/3*(c-v),d+2/3*(h-d),v,d),n=v,o=d;break;case Ga.A:var x=e[m++],_=e[m++],b=e[m++],S=e[m++],T=e[m++],C=e[m++]+T;m+=1;var A=!e[m++];c=Math.cos(T)*b+x,h=Math.sin(T)*S+_,y?(s=c,l=h,u(s,l)):f(n,o,c,h),n=Math.cos(C)*b+x,o=Math.sin(C)*S+_;for(var D=(A?-1:1)*Math.PI/2,M=T;A?M>C:M<C;M+=D){var I=A?Math.max(M+D,C):Math.min(M+D,C);p(M,I,x,_,b,S)}break;case Ga.R:s=n=e[m++],l=o=e[m++],c=s+e[m++],h=l+e[m++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case Ga.Z:a&&f(n,o,s,l),n=s,o=l;break}}return a&&a.length>2&&i.push(a),i}function Qw(r,e,t,i,a,n,o,s,l,u){if(ff(r,t)&&ff(e,i)&&ff(a,o)&&ff(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,h=s-e,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=t-r,m=i-e,g=a-o,y=n-s,x=d*d+m*m,_=g*g+y*y;if(x<p&&_<p){l.push(o,s);return}var b=c*d+h*m,S=-c*g-h*y,T=x-b*b,C=_-S*S;if(T<p&&b>=0&&C<p&&S>=0){l.push(o,s);return}var A=[],D=[];yi(r,t,a,o,.5,A),yi(e,i,n,s,.5,D),Qw(A[0],D[0],A[1],D[1],A[2],D[2],A[3],D[3],l,u),Qw(A[4],D[4],A[5],D[5],A[6],D[6],A[7],D[7],l,u)}function ZU(r,e){var t=Cg(r),i=[];e=e||1;for(var a=0;a<t.length;a++){var n=t[a],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var f=n[u++],p=n[u++],c=n[u++],h=n[u++],v=n[u++],d=n[u++];Qw(s,l,f,p,c,h,v,d,o,e),s=v,l=d}i.push(o)}return i}function KU(r,e,t){var i=r[e],a=r[1-e],n=Math.abs(i/a),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,p=t-f;if(p>0)for(var u=0;u<p;u++)l[u%o]+=1;return l}function XU(r,e,t){for(var i=r.r0,a=r.r,n=r.startAngle,o=r.endAngle,s=Math.abs(o-n),l=s*a,u=a-i,f=l>Math.abs(u),p=KU([l,u],f?0:1,e),c=(f?s:u)/p.length,h=0;h<p.length;h++)for(var v=(f?u:s)/p[h],d=0;d<p[h];d++){var m={};f?(m.startAngle=n+c*h,m.endAngle=n+c*(h+1),m.r0=i+v*d,m.r=i+v*(d+1)):(m.startAngle=n+v*d,m.endAngle=n+v*(d+1),m.r0=i+c*h,m.r=i+c*(h+1)),m.clockwise=r.clockwise,m.cx=r.cx,m.cy=r.cy,t.push(m)}}function zQ(r,e,t){for(var i=r.width,a=r.height,n=i>a,o=KU([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],v=0;v<o[c];v++){var d={};d[u]=c*p,d[f]=v*h,d[s]=p,d[l]=h,d.x+=r.x,d.y+=r.y,t.push(d)}}function qU(r,e,t,i){return r*i-t*e}function RQ(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=qU(f,p,l,u);if(Math.abs(c)<1e-6)return null;var h=r-a,v=e-n,d=qU(h,v,f,p)/c;return d<0||d>1?null:new bt(d*l+r,d*u+e)}function NQ(r,e,t){var i=new bt;bt.sub(i,t,e),i.normalize();var a=new bt;bt.sub(a,r,e);var n=a.dot(i);return n}function pf(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function OQ(r,e,t){for(var i=r.length,a=[],n=0;n<i;n++){var o=r[n],s=r[(n+1)%i],l=RQ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:NQ(l,e,t),pt:l,idx:n})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(m,g){return m.projPt-g.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var p=u;u=f,f=p}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],v=[c],d=[h],n=u.idx+1;n<=f.idx;n++)pf(v,r[n].slice());pf(v,h),pf(v,c);for(var n=f.idx+1;n<=u.idx+i;n++)pf(d,r[n%i].slice());return pf(d,c),pf(d,h),[{points:v},{points:d}]}function jU(r){var e=r.points,t=[],i=[];Jo(e,t,i);var a=new rt(t[0],t[1],i[0]-t[0],i[1]-t[1]),n=a.width,o=a.height,s=a.x,l=a.y,u=new bt,f=new bt;return n>o?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),OQ(e,u,f)}function Ag(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);Ag(r,n[0],a,i),Ag(r,n[1],t-a,i)}return i}function kQ(r,e){for(var t=[],i=0;i<e;i++)t.push(eu(r));return t}function VQ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function UQ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function QU(r,e){var t=[],i=r.shape,a;switch(r.type){case"rect":zQ(i,e,t),a=ht;break;case"sector":XU(i,e,t),a=we;break;case"circle":XU({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),a=we;break;default:var n=r.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=k(ZU(r.getUpdatedPathProxy(),o),function(g){return UQ(g)}),l=s.length;if(l===0)Ag(jU,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,p=k(s,function(g){var y=[],x=[];Jo(g,y,x);var _=(x[1]-y[1])*(x[0]-y[0]);return f+=_,{poly:g,area:_}});p.sort(function(g,y){return y.area-g.area});for(var c=e,u=0;u<l;u++){var h=p[u];if(c<=0)break;var v=u===l-1?c:Math.ceil(h.area/f*e);v<0||(Ag(jU,{points:h.poly},v,t),c-=v)}}a=he;break}if(!a)return kQ(r,e);for(var d=[],u=0;u<t.length;u++){var m=new a;m.setShape(t[u]),VQ(r,m),d.push(m)}return d}function BQ(r,e){var t=r.length,i=e.length;if(t===i)return[r,e];for(var a=[],n=[],o=t<i?r:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,p=[o[0],o[1]],c=l,h=2;h<s;){var v=o[h-2],d=o[h-1],m=o[h++],g=o[h++],y=o[h++],x=o[h++],_=o[h++],b=o[h++];if(c<=0){p.push(m,g,y,x,_,b);continue}for(var S=Math.min(c,f-1)+1,T=1;T<=S;T++){var C=T/S;yi(v,m,y,_,C,a),yi(d,g,x,b,C,n),v=a[3],d=n[3],p.push(a[1],n[1],a[2],n[2],v,d),m=a[5],g=n[5],y=a[6],x=n[6]}c-=S-1}return o===r?[p,e]:[r,p]}function $U(r,e){for(var t=r.length,i=r[t-2],a=r[t-1],n=[],o=0;o<e.length;)n[o++]=i,n[o++]=a;return n}function FQ(r,e){for(var t,i,a,n=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,p=void 0;l?u?(t=BQ(l,u),f=t[0],p=t[1],i=f,a=p):(p=$U(a||l,l),f=l):(f=$U(i||u,u),p=u),n.push(f),o.push(p)}return[n,o]}function JU(r){for(var e=0,t=0,i=0,a=r.length,n=0,o=a-2;n<a;o=n,n+=2){var s=r[o],l=r[o+1],u=r[n],f=r[n+1],p=s*f-u*l;e+=p,t+=(s+u)*p,i+=(l+f)*p}return e===0?[r[0]||0,r[1]||0]:[t/e/3,i/e/3,e]}function GQ(r,e,t,i){for(var a=(r.length-2)/6,n=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,p=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,v=r[h]-t[0],d=r[h+1]-t[1],m=e[c]-i[0],g=e[c+1]-i[1],y=m-v,x=g-d;p+=y*y+x*x}p<n&&(n=p,o=u)}return o}function HQ(r){for(var e=[],t=r.length,i=0;i<t;i+=2)e[i]=r[t-i-2],e[i+1]=r[t-i-1];return e}function WQ(r,e,t,i){for(var a=[],n,o=0;o<r.length;o++){var s=r[o],l=e[o],u=JU(s),f=JU(l);n==null&&(n=u[2]<0!=f[2]<0);var p=[],c=[],h=0,v=1/0,d=[],m=s.length;n&&(s=HQ(s));for(var g=GQ(s,l,u,f)*6,y=m-2,x=0;x<y;x+=2){var _=(g+x)%y+2;p[x+2]=s[_]-u[0],p[x+3]=s[_+1]-u[1]}if(p[0]=s[g]-u[0],p[1]=s[g+1]-u[1],t>0)for(var b=i/t,S=-i/2;S<=i/2;S+=b){for(var T=Math.sin(S),C=Math.cos(S),A=0,x=0;x<s.length;x+=2){var D=p[x],M=p[x+1],I=l[x]-f[0],L=l[x+1]-f[1],P=I*C-L*T,z=I*T+L*C;d[x]=P,d[x+1]=z;var R=P-D,U=z-M;A+=R*R+U*U}if(A<v){v=A,h=S;for(var V=0;V<d.length;V++)c[V]=d[V]}}else for(var B=0;B<m;B+=2)c[B]=l[B]-f[0],c[B+1]=l[B+1]-f[1];a.push({from:p,to:c,fromCp:u,toCp:f,rotation:-h})}return a}function Uc(r){return r.__isCombineMorphing}var eB="__mOriginal_";function Dg(r,e,t){var i=eB+e,a=r[i]||r[e];r[i]||(r[i]=r[e]);var n=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Vc(r,e){var t=eB+e;r[t]&&(r[e]=r[t],r[t]=null)}function tB(r,e){for(var t=0;t<r.length;t++)for(var i=r[t],a=0;a<i.length;){var n=i[a],o=i[a+1];i[a++]=e[0]*n+e[2]*o+e[4],i[a++]=e[1]*n+e[3]*o+e[5]}}function rB(r,e){var t=r.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),a=FQ(Cg(t),Cg(i)),n=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&tB(n,s),l&&tB(o,l),Dg(e,"updateTransform",{replace:u}),e.transform=null;var f=WQ(n,o,10,Math.PI),p=[];Dg(e,"buildPath",{replace:function(c){for(var h=e.__morphT,v=1-h,d=[],m=0;m<f.length;m++){var g=f[m],y=g.from,x=g.to,_=g.rotation*h,b=g.fromCp,S=g.toCp,T=Math.sin(_),C=Math.cos(_);Il(d,b,S,h);for(var A=0;A<y.length;A+=2){var D=y[A],M=y[A+1],I=x[A],L=x[A+1],P=D*v+I*h,z=M*v+L*h;p[A]=P*C-z*T+d[0],p[A+1]=P*T+z*C+d[1]}var R=p[0],U=p[1];c.moveTo(R,U);for(var A=2;A<y.length;){var I=p[A++],L=p[A++],V=p[A++],B=p[A++],Z=p[A++],Q=p[A++];R===I&&U===L&&V===Z&&B===Q?c.lineTo(Z,Q):c.bezierCurveTo(I,L,V,B,Z,Q),R=Z,U=Q}}}})}function Ig(r,e,t){if(!r||!e)return e;var i=t.done,a=t.during;rB(r,e),e.__morphT=0;function n(){Vc(e,"buildPath"),Vc(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},q({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){n(),i&&i()}},t)),e}function YQ(r,e,t,i,a,n){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=n===i?0:Math.round(32767*(e-i)/(n-i));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Mg(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=k(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=k(n,function(s,l){return{cp:s,z:YQ(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function iB(r){return QU(r.path,r.count)}function $w(){return{fromIndividuals:[],toIndividuals:[],count:0}}function aB(r,e,t){var i=[];function a(b){for(var S=0;S<b.length;S++){var T=b[S];Uc(T)?a(T.childrenRef()):T instanceof it&&i.push(T)}}a(r);var n=i.length;if(!n)return $w();var o=t.dividePath||iB,s=o({path:e,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),$w();i=Mg(i),s=Mg(s);for(var l=t.done,u=t.during,f=t.individualDelay,p=new Nr,c=0;c<n;c++){var h=i[c],v=s[c];v.parent=e,v.copyTransform(p),f||rB(h,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var S=0;S<s.length;S++)s[S].addSelfToZr(b)}Dg(e,"addSelfToZr",{after:function(b){d(b)}}),Dg(e,"removeSelfFromZr",{after:function(b){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(b)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Vc(e,"addSelfToZr"),Vc(e,"removeSelfFromZr")}var g=s.length;if(f)for(var y=g,x=function(){y--,y===0&&(m(),l&&l())},c=0;c<g;c++){var _=f?q({delay:(t.delay||0)+f(c,g,i[c],s[c]),done:x},t):t;Ig(i[c],s[c],_)}else e.__morphT=0,e.animateTo({__morphT:1},q({during:function(b){for(var S=0;S<g;S++){var T=s[S];T.__morphT=e.__morphT,T.dirtyShape()}u&&u(b)},done:function(){m();for(var b=0;b<r.length;b++)Vc(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:i,toIndividuals:s,count:g}}function nB(r,e,t){var i=e.length,a=[],n=t.dividePath||iB;function o(h){for(var v=0;v<h.length;v++){var d=h[v];Uc(d)?o(d.childrenRef()):d instanceof it&&a.push(d)}}if(Uc(r)){o(r.childrenRef());var s=a.length;if(s<i)for(var l=0,u=s;u<i;u++)a.push(eu(a[l++%s]));a.length=i}else{a=n({path:r,count:i});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),$w()}a=Mg(a),e=Mg(e);for(var p=t.individualDelay,u=0;u<i;u++){var c=p?q({delay:(t.delay||0)+p(u,i,a[u],e[u])},t):t;Ig(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function oB(r){return O(r[0])}function sB(r,e){for(var t=[],i=r.length,a=0;a<i;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var n=e[a].length,o=void 0;for(o=0;o<n;o++)t[o%i].many.push(e[a][o])}for(var s=0,a=i-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var ZQ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i<r.count;i++){var a=eu(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Lg(r,e,t,i,a,n){if(!r.length||!e.length)return;var o=Da("update",i,a);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;oB(r)&&(u=r,f=e),oB(e)&&(u=e,f=r);function p(g,y,x,_,b){var S=g.many,T=g.one;if(S.length===1&&!b){var C=y?S[0]:T,A=y?T:S[0];if(Uc(C))p({many:[C],one:A},!0,x,_,!0);else{var D=s?q({delay:s(x,_)},l):l;Ig(C,A,D),n(C,A,C,A,D)}}else for(var M=q({dividePath:ZQ[t],individualDelay:s&&function(U,V,B,Z){return s(U+x,_)}},l),I=y?aB(S,T,M):nB(T,S,M),L=I.fromIndividuals,P=I.toIndividuals,z=L.length,R=0;R<z;R++){var D=s?q({delay:s(R,z)},l):l;n(L[R],P[R],y?S[R]:g.one,y?g.one:S[R],D)}}for(var c=u?u===r:r.length>e.length,h=u?sB(f,u):sB(c?e:r,[c?r:e]),v=0,d=0;d<h.length;d++)v+=h[d].many.length;for(var m=0,d=0;d<h.length;d++)p(h[d],c,m,v),m+=h[d].many.length}function Co(r){if(!r)return[];if(O(r)){for(var e=[],t=0;t<r.length;t++)e.push(Co(r[t]));return e}var i=[];return r.traverse(function(a){a instanceof it&&!a.disableMorphing&&!a.invisible&&!a.ignore&&i.push(a)}),i}var dB=1e4,XQ=0,lB=1,uB=2,qQ=ot();function jQ(r,e){for(var t=r.dimensions,i=0;i<t.length;i++){var a=r.getDimensionInfo(t[i]);if(a&&a.otherDims[e]===0)return t[i]}}function KQ(r,e,t){var i=r.getDimensionInfo(t),a=i&&i.ordinalMeta;if(i){var n=r.get(i.name,e);return a&&a.categories[n]||n+""}}function fB(r,e,t,i){var a=i?"itemChildGroupId":"itemGroupId",n=jQ(r,a);if(n){var o=KQ(r,e,n);return o}var s=r.getRawDataItem(e),l=i?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!i)return t||r.getId(e)}function pB(r){var e=[];return w(r,function(t){var i=t.data,a=t.dataGroupId;if(!(i.count()>dB))for(var n=i.getIndices(),o=0;o<n.length;o++)e.push({data:i,groupId:fB(i,o,a,!1),childGroupId:fB(i,o,a,!0),divide:t.divide,dataIndex:o})}),e}function Jw(r,e,t){r.traverse(function(i){i instanceof it&&Ut(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function tT(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function cf(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function QQ(r,e,t){var i=Da("update",t,e);i&&r.traverse(function(a){if(a instanceof be){var n=JD(a);n&&a.animateFrom({style:n},i)}})}function $Q(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var a=r[i],n=e[i];if(a.data.getId(a.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function mB(r,e,t){var i=pB(r),a=pB(e);function n(x,_,b,S,T){(b||x)&&_.animateFrom({style:b&&b!==x?N(N({},b.style),x.style):x.style},T)}var o=!1,s=XQ,l=Y(),u=Y();i.forEach(function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var f=0;f<a.length;f++){var p=a[f].groupId;if(u.get(p)){s=lB;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=uB;break}}function h(x,_){return function(b){var S=b.data,T=b.dataIndex;return _?S.getId(T):x?s===lB?b.childGroupId:b.groupId:s===uB?b.childGroupId:b.groupId}}var v=$Q(i,a),d={};if(!v)for(var f=0;f<a.length;f++){var m=a[f],g=m.data.getItemGraphicEl(m.dataIndex);g&&(d[g.id]=!0)}function y(x,_){var b=i[_],S=a[x],T=S.data.hostModel,C=b.data.getItemGraphicEl(b.dataIndex),A=S.data.getItemGraphicEl(S.dataIndex);if(C===A){A&&QQ(A,S.dataIndex,T);return}C&&d[C.id]||A&&(cf(A),C?(cf(C),tT(C),o=!0,Lg(Co(C),Co(A),S.divide,T,x,n)):Jw(A,T,x))}new lr(i,a,h(!0,v),h(!1,v),null,"multiple").update(y).updateManyToOne(function(x,_){var b=a[x],S=b.data,T=S.hostModel,C=S.getItemGraphicEl(b.dataIndex),A=Dt(k(_,function(D){return i[D].data.getItemGraphicEl(i[D].dataIndex)}),function(D){return D&&D!==C&&!d[D.id]});C&&(cf(C),A.length?(w(A,function(D){cf(D),tT(D)}),o=!0,Lg(Co(A),Co(C),b.divide,T,x,n)):Jw(C,T,b.dataIndex))}).updateOneToMany(function(x,_){var b=i[_],S=b.data.getItemGraphicEl(b.dataIndex);if(!(S&&d[S.id])){var T=Dt(k(x,function(A){return a[A].data.getItemGraphicEl(a[A].dataIndex)}),function(A){return A&&A!==S}),C=a[x[0]].data.hostModel;T.length&&(w(T,function(A){return cf(A)}),S?(cf(S),tT(S),o=!0,Lg(Co(S),Co(T),b.divide,C,x[0],n)):w(T,function(A){return Jw(A,C,x[0])}))}}).updateManyToMany(function(x,_){new lr(_,x,function(b){return i[b].data.getId(i[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,S){y(x[b],_[S])}).execute()}).execute(),o&&w(e,function(x){var _=x.data,b=_.hostModel,S=b&&t.getViewOfSeriesModel(b),T=Da("update",b,0);S&&b.isAnimationEnabled()&&T&&T.duration>0&&S.group.traverse(function(C){C instanceof it&&!C.animators.length&&C.animateFrom({style:{opacity:0}},T)})})}function cB(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function hB(r){return O(r)?r.sort().join(","):r}function Ao(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function JQ(r,e){var t=Y(),i=Y(),a=Y();w(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=cB(o),p=hB(f);i.set(p,{dataGroupId:l,data:u}),O(f)&&w(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&uA("Duplicated seriesKey in universalTransition "+o)}return w(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=cB(o),f=hB(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:Ao(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:Ao(l),data:l}]});else if(O(u)){var c=[];w(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:Ao(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:Ao(l)}]})}else{var h=a.get(u);if(h){var v=t.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Ao(h.data)}],newSeries:[]},t.set(h.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:Ao(l)})}}}}),t}function vB(r,e){for(var t=0;t<r.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(i)return t}}function t$(r,e,t,i){var a=[],n=[];w(Nt(r.from),function(o){var s=vB(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Ao(e.oldData[s]),groupIdDim:o.dimension})}),w(Nt(r.to),function(o){var s=vB(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Ao(l),groupIdDim:o.dimension})}}),a.length>0&&n.length>0&&mB(a,n,i)}function eT(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){w(Nt(i.seriesTransition),function(a){w(Nt(a.to),function(n){for(var o=i.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][Cp]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,i){var a=qQ(t);if(a.oldSeries&&i.updatedSeries&&i.optionChanged){var n=i.seriesTransition;if(n)w(Nt(n),function(h){t$(h,a,i,t)});else{var o=JQ(a,i);w(o.keys(),function(h){var v=o.get(h);mB(v.oldSeries,v.newSeries,t)})}w(i.updatedSeries,function(h){h[Cp]&&(h[Cp]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],p=0;p<s.length;p++){var c=s[p].getData();c.count()<dB&&(l.push(s[p]),u.push(s[p].get("dataGroupId")),f.push(c))}})}St([R_]);St([z_]);St([F_,W_,K_,sS,fS,DS,kS,XS,v1,d1,g1,N1,U1,G1,q1,j1,K1,Q1,eb,ab,lb,Ib]);St(Ob);St(Fb);St(oc);St(Wb);St(yc);St(Zb);St(qb);St(aw);St(lw);St(pa);St(vw);St(dw);St(xw);St(Cw);St(Dw);St(Mw);St(Ow);St(Fw);St(Ec);St(Rc);St(Ww);St(Oc);St(kc);St(Xw);St(jw);St(Kw);St(eT);St(c_);var e$=["chart"],gB=(()=>{let e=class e{constructor(){this.chartInstance=null,this.options={},this.defaultTooltipOptions={tooltip:{trigger:"item",borderColor:"#00eff8",backgroundColor:"#12192C",padding:[6,14,6,14],textStyle:{fontSize:14,color:"#74FAFB"},position:"top",axisPointer:{type:"shadow"}},series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:0,max:1,splitNumber:8,axisLine:{lineStyle:{width:6,color:[[.25,"#74FAFB"],[.5,"#74FAFB"],[.75,"#74FAFB"],[1,"#74FAFB"]]}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"12%",width:20,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{length:12,lineStyle:{color:"auto",width:2}},splitLine:{length:20,lineStyle:{color:"auto",width:5}},axisLabel:{color:"#464646",fontSize:20,distance:-60,rotate:"tangential",formatter:function(i){return""}},title:{offsetCenter:[0,"-10%"],fontSize:20},tooltip:{trigger:"item",borderColor:"#00eff8",backgroundColor:"#12192C",padding:[6,14,6,14],textStyle:{fontSize:14,color:"#74FAFB"},position:"top",axisPointer:{type:"shadow"}},detail:{fontSize:30,offsetCenter:[0,"-5%"],valueAnimation:!0,formatter:function(i){return Math.round(i*100)+""},color:"inherit"}}]}}ngOnInit(){console.log("ChartComponentComponent ngOnInit"),this.initEcharts()}ngOnChanges(i){i.options&&!i.options.isFirstChange()&&(console.log("ChartComponentComponent ngOnChanges"),this.updateChartOptions())}ngOnDestroy(){this.chartInstance&&(console.log("ChartComponentComponent ngOnInit"),this.chartInstance.dispose())}initEcharts(){let i=this.chartContainer.nativeElement;this.chartInstance=Ox(i,"dark");let a=Fc(Fc({},this.defaultTooltipOptions),this.options);this.chartInstance.setOption(a)}updateChartOptions(){this.chartInstance&&this.chartInstance.setOption(this.options)}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["app-chart-component"]],viewQuery:function(a,n){if(a&1&&Gc(e$,7),a&2){let o;Ui(o=Bi())&&(n.chartContainer=o.first)}},inputs:{options:"options"},standalone:!0,features:[vf,Ae],decls:2,vars:0,consts:[[2,"width","100%","height","100%"],["chart",""]],template:function(a,n){a&1&&Ce(0,"div",0,1)}});let r=e;return r})();var Do=["*"];function r$(r,e){if(r&1&&Ce(0,"nz-avatar",3),r&2){let t=Jt();mt("nzSrc",t.nzSrc)}}function i$(r,e){r&1&&ze(0,0,["*ngIf","!nzSrc"])}function a$(r,e){if(r&1&&Ce(0,"nz-list-item-meta-avatar",3),r&2){let t=Jt();mt("nzSrc",t.avatarStr)}}function n$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-avatar"),wT(1,4),Wt()),r&2){let t=Jt();wt(),mt("ngTemplateOutlet",t.avatarTpl)}}function o$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzTitle)}}function s$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-title"),qt(1,o$,2,1,"ng-container",6),Wt()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzTitle)}}function l$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzDescription)}}function u$(r,e){if(r&1&&(Ft(0,"nz-list-item-meta-description"),qt(1,l$,2,1,"ng-container",6),Wt()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzDescription)}}function f$(r,e){if(r&1&&(Ft(0,"div",5),qt(1,s$,2,1,"nz-list-item-meta-title",1)(2,u$,2,1,"nz-list-item-meta-description",1),ze(3,1),ze(4,2),Wt()),r&2){let t=Jt();wt(),mt("ngIf",t.nzTitle&&!t.titleComponent),wt(),mt("ngIf",t.nzDescription&&!t.descriptionComponent)}}var p$=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],c$=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function h$(r,e){r&1&&ze(0)}var v$=["nz-list-item-actions",""];function d$(r,e){}function m$(r,e){r&1&&Ce(0,"em",3)}function g$(r,e){if(r&1&&(Ft(0,"li"),qt(1,d$,0,0,"ng-template",1)(2,m$,1,0,"em",2),Wt()),r&2){let t=e.$implicit,i=e.last;wt(),mt("ngTemplateOutlet",t),wt(),mt("ngIf",!i)}}function y$(r,e){}var wB=(r,e)=>({$implicit:r,index:e});function x$(r,e){if(r&1&&(ca(0),qt(1,y$,0,0,"ng-template",9),ha()),r&2){let t=e.$implicit,i=e.index,a=Jt(2);wt(),mt("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",Gg(2,wB,t,i))}}function _$(r,e){if(r&1&&(Ft(0,"div",7),qt(1,x$,2,5,"ng-container",8),ze(2,4),Wt()),r&2){let t=Jt();wt(),mt("ngForOf",t.nzDataSource)}}function S$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(2);wt(),bn(t.nzHeader)}}function b$(r,e){if(r&1&&(Ft(0,"nz-list-header"),qt(1,S$,2,1,"ng-container",10),Wt()),r&2){let t=Jt();wt(),mt("nzStringTemplateOutlet",t.nzHeader)}}function w$(r,e){r&1&&Ce(0,"div"),r&2&&ST("min-height",53,"px")}function T$(r,e){}function C$(r,e){if(r&1&&(Ft(0,"div",13),qt(1,T$,0,0,"ng-template",9),Wt()),r&2){let t=e.$implicit,i=e.index,a=Jt(2);mt("nzSpan",a.nzGrid.span||null)("nzXs",a.nzGrid.xs||null)("nzSm",a.nzGrid.sm||null)("nzMd",a.nzGrid.md||null)("nzLg",a.nzGrid.lg||null)("nzXl",a.nzGrid.xl||null)("nzXXl",a.nzGrid.xxl||null),wt(),mt("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",Gg(9,wB,t,i))}}function A$(r,e){if(r&1&&(Ft(0,"div",11),qt(1,C$,2,12,"div",12),Wt()),r&2){let t=Jt();mt("nzGutter",t.nzGrid.gutter||null),wt(),mt("ngForOf",t.nzDataSource)}}function D$(r,e){if(r&1&&Ce(0,"nz-list-empty",14),r&2){let t=Jt();mt("nzNoResult",t.nzNoResult)}}function M$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(2);wt(),bn(t.nzFooter)}}function I$(r,e){if(r&1&&(Ft(0,"nz-list-footer"),qt(1,M$,2,1,"ng-container",10),Wt()),r&2){let t=Jt();wt(),mt("nzStringTemplateOutlet",t.nzFooter)}}function L$(r,e){}function E$(r,e){}function P$(r,e){if(r&1&&(Ft(0,"nz-list-pagination"),qt(1,E$,0,0,"ng-template",6),Wt()),r&2){let t=Jt();wt(),mt("ngTemplateOutlet",t.nzPagination)}}var z$=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],R$=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function N$(r,e){if(r&1&&Ce(0,"ul",6),r&2){let t=Jt(2);mt("nzActions",t.nzActions)}}function O$(r,e){if(r&1&&(qt(0,N$,1,1,"ul",5),ze(1)),r&2){let t=Jt();mt("ngIf",t.nzActions&&t.nzActions.length>0)}}function k$(r,e){if(r&1&&(ca(0),Re(1),ha()),r&2){let t=Jt(3);wt(),bn(t.nzContent)}}function V$(r,e){if(r&1&&(ca(0),qt(1,k$,2,1,"ng-container",8),ha()),r&2){let t=Jt(2);wt(),mt("nzStringTemplateOutlet",t.nzContent)}}function U$(r,e){if(r&1&&(ze(0,1),ze(1,2),qt(2,V$,2,1,"ng-container",7)),r&2){let t=Jt();wt(2),mt("ngIf",t.nzContent)}}function B$(r,e){r&1&&ze(0,3)}function F$(r,e){}function G$(r,e){}function H$(r,e){}function W$(r,e){}function Y$(r,e){if(r&1&&qt(0,F$,0,0,"ng-template",9)(1,G$,0,0,"ng-template",9)(2,H$,0,0,"ng-template",9)(3,W$,0,0,"ng-template",9),r&2){let t=Jt(),i=Wa(3),a=Wa(5),n=Wa(1);mt("ngTemplateOutlet",i),wt(),mt("ngTemplateOutlet",t.nzExtra),wt(),mt("ngTemplateOutlet",a),wt(),mt("ngTemplateOutlet",n)}}function Z$(r,e){}function X$(r,e){}function q$(r,e){}function j$(r,e){if(r&1&&(Ft(0,"nz-list-item-extra"),qt(1,q$,0,0,"ng-template",9),Wt()),r&2){let t=Jt(2);wt(),mt("ngTemplateOutlet",t.nzExtra)}}function K$(r,e){}function Q$(r,e){if(r&1&&(ca(0),Ft(1,"div",10),qt(2,Z$,0,0,"ng-template",9)(3,X$,0,0,"ng-template",9),Wt(),qt(4,j$,2,1,"nz-list-item-extra",7)(5,K$,0,0,"ng-template",9),ha()),r&2){let t=Jt(),i=Wa(3),a=Wa(1),n=Wa(5);wt(2),mt("ngTemplateOutlet",i),wt(),mt("ngTemplateOutlet",a),wt(),mt("ngIf",t.nzExtra),wt(),mt("ngTemplateOutlet",n)}}var $$=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],J$=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"],yB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(a,n){a&1&&(hi(),Ft(0,"h4",0),ze(1),Wt())},encapsulation:2,changeDetection:0});let r=e;return r})(),xB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(a,n){a&1&&(hi(),Ft(0,"div",0),ze(1),Wt())},encapsulation:2,changeDetection:0});let r=e;return r})(),TB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(a,n){a&1&&(hi(),Ft(0,"div",0),qt(1,r$,1,1,"nz-avatar",1)(2,i$,1,0,"ng-content",2),Wt()),a&2&&(wt(),mt("ngIf",n.nzSrc),wt(),mt("ngIf",!n.nzSrc))},dependencies:[Cn,RT,va],encapsulation:2,changeDetection:0});let r=e;return r})(),tJ=(()=>{let e=class e{set nzAvatar(i){i instanceof Fg?(this.avatarStr="",this.avatarTpl=i):this.avatarStr=i}constructor(i){this.elementRef=i,this.avatarStr=""}};e.\u0275fac=function(a){return new(a||e)($r(xT))},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(a,n,o){if(a&1&&(Sn(o,xB,5),Sn(o,yB,5)),a&2){let s;Ui(s=Bi())&&(n.descriptionComponent=s.first),Ui(s=Bi())&&(n.titleComponent=s.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[Ae],ngContentSelectors:c$,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(a,n){a&1&&(hi(p$),qt(0,a$,1,1,"nz-list-item-meta-avatar",0)(1,n$,2,1,"nz-list-item-meta-avatar",1),ze(2),qt(3,f$,5,2,"div",2)),a&2&&(mt("ngIf",n.avatarStr),wt(),mt("ngIf",n.avatarTpl),wt(2),mt("ngIf",n.nzTitle||n.nzDescription||n.descriptionComponent||n.titleComponent))},dependencies:[TB,va,mf,yB,Yc,Wc,xB],encapsulation:2,changeDetection:0});let r=e;return r})(),_B=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),eJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(a,n){if(a&1&&Gc(Fg,5),a&2){let o;Ui(o=Bi())&&(n.templateRef=o.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),qt(0,h$,1,0,"ng-template"))},encapsulation:2,changeDetection:0});let r=e;return r})(),rJ=(()=>{let e=class e{constructor(i,a,n){this.ngZone=i,this.nzActions=[],this.actions=[],this.inputActionChanges$=new Rg,this.contentChildrenChanges$=pT(()=>this.nzListItemActions?fT(null):this.ngZone.onStable.pipe(hT(1),this.enterZone(),vT(()=>this.nzListItemActions.changes.pipe(dT(this.nzListItemActions))))),cT(this.contentChildrenChanges$,this.inputActionChanges$).pipe(Ng(n)).subscribe(()=>{this.nzActions.length?this.actions=this.nzActions:this.actions=this.nzListItemActions.map(o=>o.templateRef),a.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}enterZone(){return i=>new lT(a=>i.subscribe({next:n=>this.ngZone.run(()=>a.next(n))}))}};e.\u0275fac=function(a){return new(a||e)($r(_T),$r(Og),$r(qc))},e.\u0275cmp=Te({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(a,n,o){if(a&1&&Sn(o,eJ,4),a&2){let s;Ui(s=Bi())&&(n.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[CT([qc]),vf,Ae],attrs:v$,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(a,n){a&1&&qt(0,g$,3,2,"li",0),a&2&&mt("ngForOf",n.actions)},dependencies:[df,mf,va],encapsulation:2,changeDetection:0});let r=e;return r})(),CB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[Ae],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(a,n){a&1&&Ce(0,"nz-embed-empty",0),a&2&&mt("nzComponentName","list")("specificContent",n.nzNoResult)},dependencies:[PT,ET],encapsulation:2,changeDetection:0});let r=e;return r})(),iJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),SB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),bB=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[Ae],ngContentSelectors:Do,decls:1,vars:0,template:function(a,n){a&1&&(hi(),ze(0))},encapsulation:2,changeDetection:0});let r=e;return r})(),aJ=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275dir=yT({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0});let r=e;return r})();var AB=(()=>{let e=class e{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(i){this.directionality=i,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new uT(this.nzItemLayout),this.destroy$=new Rg}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Ng(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(i){i.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}};e.\u0275fac=function(a){return new(a||e)($r(LT,8))},e.\u0275cmp=Te({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(a,n,o){if(a&1&&(Sn(o,SB,5),Sn(o,bB,5),Sn(o,aJ,5)),a&2){let s;Ui(s=Bi())&&(n.nzListFooterComponent=s.first),Ui(s=Bi())&&(n.nzListPaginationComponent=s.first),Ui(s=Bi())&&(n.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(a,n){a&2&&kg("ant-list-rtl",n.dir==="rtl")("ant-list-vertical",n.nzItemLayout==="vertical")("ant-list-lg",n.nzSize==="large")("ant-list-sm",n.nzSize==="small")("ant-list-split",n.nzSplit)("ant-list-bordered",n.nzBordered)("ant-list-loading",n.nzLoading)("ant-list-something-after-last-item",n.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[vf,Ae],ngContentSelectors:R$,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(a,n){if(a&1&&(hi(z$),qt(0,_$,3,1,"ng-template",null,0,Zs)(2,b$,2,1,"nz-list-header",1),ze(3),Ft(4,"nz-spin",2),ca(5),qt(6,w$,1,2,"div",3)(7,A$,2,2,"div",4)(8,D$,1,1,"nz-list-empty",5),ha(),Wt(),qt(9,I$,2,1,"nz-list-footer",1),ze(10,1),qt(11,L$,0,0,"ng-template",6),ze(12,2),qt(13,P$,2,1,"nz-list-pagination",1),ze(14,3)),a&2){let o=Wa(1);wt(2),mt("ngIf",n.nzHeader),wt(2),mt("nzSpinning",n.nzLoading),wt(2),mt("ngIf",n.nzLoading&&n.nzDataSource&&n.nzDataSource.length===0),wt(),mt("ngIf",n.nzGrid&&n.nzDataSource)("ngIfElse",o),wt(),mt("ngIf",!n.nzLoading&&n.nzDataSource&&n.nzDataSource.length===0),wt(),mt("ngIf",n.nzFooter),wt(2),mt("ngTemplateOutlet",n.nzLoadMore),wt(2),mt("ngIf",n.nzPagination)}},dependencies:[mf,df,iJ,va,Yc,Wc,wn,zT,Tn,Qc,Kc,CB,SB,bB],encapsulation:2,changeDetection:0});let r=e;return hf([gf()],r.prototype,"nzBordered",void 0),hf([gf()],r.prototype,"nzLoading",void 0),hf([gf()],r.prototype,"nzSplit",void 0),r})(),nJ=(()=>{let e=class e{get isVerticalAndExtra(){return this.itemLayout==="vertical"&&(!!this.listItemExtraDirective||!!this.nzExtra)}constructor(i,a){this.parentComp=i,this.cdr=a,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(i=>{this.itemLayout=i,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}};e.\u0275fac=function(a){return new(a||e)($r(AB),$r(Og))},e.\u0275cmp=Te({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(a,n,o){if(a&1&&Sn(o,_B,5),a&2){let s;Ui(s=Bi())&&(n.listItemExtraDirective=s.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(a,n){a&2&&kg("ant-list-item-no-flex",n.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],standalone:!0,features:[Ae],ngContentSelectors:J$,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(a,n){if(a&1&&(hi($$),qt(0,O$,2,1,"ng-template",null,0,Zs)(2,U$,3,1,"ng-template",null,1,Zs)(4,B$,1,0,"ng-template",null,2,Zs)(6,Y$,4,4,"ng-template",null,3,Zs)(8,Q$,6,4,"ng-container",4)),a&2){let o=Wa(7);wt(8),mt("ngIf",n.isVerticalAndExtra)("ngIfElse",o)}},dependencies:[rJ,va,Yc,Wc,mf,_B],encapsulation:2,changeDetection:0});let r=e;return hf([gf()],r.prototype,"nzNoFlex",void 0),r})();var Pg=(()=>{let e=class e{};e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=gT({type:e}),e.\u0275inj=mT({imports:[AB,CB,nJ,tJ,TB]});let r=e;return r})();var lJ=r=>({margin:r,width:"100%",height:"16rem"});function uJ(r,e){if(r&1&&Ce(0,"app-chart-component",28),r&2){let t=Jt(2).$implicit,i=Jt();bT(AT(3,lJ,"20px "+20/i.chartConfig.rowNumber+"px")),mt("options",t.options)}}function fJ(r,e){if(r&1&&(Ft(0,"div",26),qt(1,uJ,1,5,"app-chart-component",27),Wt()),r&2){let t=Jt().$implicit,i=Jt();mt("nzSpan",24/i.chartConfig.rowNumber),wt(),mt("ngIf",t.checked)}}function pJ(r,e){if(r&1&&qt(0,fJ,2,2,"div",25),r&2){let t=e.$implicit;mt("ngIf",t.checked)}}function cJ(r,e){if(r&1&&(Ft(0,"div",4)(1,"div",29),Ce(2,"app-chart-component",30),Wt()()),r&2){let t=e.$implicit;wt(2),mt("options",t)}}var rF=(()=>{let e=class e{handleCheckedItems(i){console.log("\u5F53\u524D\u9009\u4E2D\u7684\u9879\u76EE:",i)}constructor(i){this._mqttService=i,this.http=Ys(Xc),this.modal=Ys(Zc),this.chartConfig={rowNumber:1,optionsCheckList:[{label:"\u5168\u6C34",options:{},checked:!0},{label:"\u70ED\u503C",options:{},checked:!0},{label:"\u5168\u786B",options:{},checked:!1},{label:"\u5185\u6C34",options:{},checked:!1},{label:"\u7070\u5206",options:{},checked:!1},{label:"\u6325\u53D1\u5206",options:{},checked:!1}],optionBottomList:[{}],optionsList:[{label:"\u5168\u6C34",options:{},checked:!0},{label:"\u70ED\u503C",options:{},checked:!0}],tableList:[{coldef:[{headerName:"\u65F6\u95F4",field:"rwmc",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u7CFB\u7EDF/\u8BBE\u5907",field:"rwms",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u64CD\u4F5C\u63CF\u8FF0",field:"kssj",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u64CD\u4F5C\u4EBA\u5458",field:"jhwcsj",unSortIcon:!0,minWidth:void 0,flex:1}],rowData:[]},{coldef:[{headerName:"\u5E8F\u53F7",field:"rwmc",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u65F6\u95F4",field:"kssj",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u4EFB\u52A1\u63CF\u8FF0",field:"rwms",unSortIcon:!0,minWidth:void 0,flex:1},{headerName:"\u7B49\u7EA7",field:"dqzt",unSortIcon:!0,minWidth:void 0,flex:1}],rowData:[]}]},this.chart_options={},this.chart_options0={},this.chart_options1={},this.chart_options2={},this.chart_options3={},this.chart_options4={},this.rowData=[],this.colDefs1=[{headerName:"\u65F6\u95F4",field:"rwmc",flex:1},{headerName:"\u7CFB\u7EDF/\u8BBE\u5907",field:"rwms",flex:1},{headerName:"\u64CD\u4F5C\u63CF\u8FF0",field:"kssj",flex:1},{headerName:"\u64CD\u4F5C\u4EBA\u5458",field:"jhwcsj",flex:1}],this.colDefs2=[{headerName:"\u5E8F\u53F7",field:"rwmc",flex:1},{headerName:"\u65F6\u95F4",field:"kssj",flex:2},{headerName:"\u4EFB\u52A1\u63CF\u8FF0",field:"rwms",flex:1},{headerName:"\u7B49\u7EA7",field:"dqzt",flex:1.5}],this.subscription=this._mqttService.observe("s1").subscribe(a=>{let n=JSON.parse(a.payload.toString());console.log("Received message as object: ",n.msg),this.chart_options0=n.msg})}ngOnInit(){this.getServerConfig();for(var i=1;i<30;i++)this.rowData.push({rwmc:"\u4EFB\u52A1"+i,rwms:"\u4EFB\u52A1\u63CF\u8FF0"+i,kssj:"2024-1-"+i+" 13:38:"+i*11,jhwcsj:"2024-1-"+i+" 13:38:"+i*10,sfcq:"\u5426",dqzt:"\u6B63\u5E38",dqjd:"\u8282\u70B9"+i,sjwcsj:"2024-1-"+i+" 13:38:"+i*27,bjmc:"\u62A5\u8B665",bjms:"\u62A5\u8B66\u63CF\u8FF05",bjsj:"2024-1-"+i+" 13:38:"+i*12,gzyy:"-",clff:"-",tzsj:"2024-1-"+i+" 13:38:"+i*19,zycd:"\u4E00\u822C",tzmc:"\u7CFB\u7EDF\u63D0\u793A",tznr:"\u8D26\u6237\u767B\u5F55",fj:"-",cz:"\u64CD\u4F5C"});for(var a=[],n=[],o=[],s=100,i=0;i<s;i++){var l=Math.random()*1e3;n.push("category"+i),a.push([i,Tu.round(Math.max(0,l-Math.random()*100)),Tu.round(l+Math.random()*80)]),o.push(Tu.round(l,2))}this.chart_options={backgroundColor:"transparent",series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:0,max:1,splitNumber:8,axisLine:{lineStyle:{width:6,color:[[.25,"#74FAFB"],[.5,"#74FAFB"],[.75,"#74FAFB"],[1,"#74FAFB"]]}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"12%",width:20,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{length:12,lineStyle:{color:"auto",width:2}},splitLine:{length:20,lineStyle:{color:"auto",width:5}},axisLabel:{color:"#464646",fontSize:20,distance:-60,rotate:"tangential",formatter:function(u){return""}},title:{offsetCenter:[0,"-10%"],fontSize:20},detail:{fontSize:30,offsetCenter:[0,"-5%"],valueAnimation:!0,formatter:function(u){return Math.round(u*100)+""},color:"inherit"},data:[{value:.9,name:""}]}]},this.chart_options0={backgroundColor:"transparent",series:[{type:"gauge",startAngle:180,endAngle:0,center:["50%","75%"],radius:"90%",min:0,max:1,splitNumber:8,axisLine:{lineStyle:{width:6,color:[[.25,"#74FAFB"],[.5,"#74FAFB"],[.75,"#74FAFB"],[1,"#74FAFB"]]}},pointer:{icon:"path://M12.8,0.7l12,40.1H0.7L12.8,0.7z",length:"12%",width:20,offsetCenter:[0,"-60%"],itemStyle:{color:"auto"}},axisTick:{length:12,lineStyle:{color:"auto",width:2}},splitLine:{length:20,lineStyle:{color:"auto",width:5}},axisLabel:{color:"#464646",fontSize:20,distance:-60,rotate:"tangential",formatter:function(u){return""}},title:{offsetCenter:[0,"0%"],fontSize:20},detail:{fontSize:30,offsetCenter:[0,"-5%"],valueAnimation:!0,formatter:function(u){return Math.round(u*100)+""},color:"inherit"},data:[{value:.97,name:""}]}]},this.chart_options1={title:{textStyle:{color:"#ffffff"},text:"\u5168\u6C34",subtext:"(kg/kg)"},legend:{data:["\u6D4B\u91CF\u503C","\u4E0A\u9650\u503C","\u4E0B\u9650\u503C"]},calculable:!0,xAxis:[{axisLine:{lineStyle:{color:[[.25,"#74FAFB"],[.5,"#74FAFB"],[.75,"#74FAFB"],[1,"#74FAFB"]]}},position:"bottom",type:"category",data:["1","2","3","4","5","6","7","8","9","10","11","12"]}],yAxis:[{type:"value"}],series:[{name:"\u6D4B\u91CF\u503C",type:"line",data:[100,155,139,199,220,160,120,182.2,150,155,160,180],markPoint:{data:[{name:"\u6700\u5927\u503C",value:220,xAxis:4,yAxis:220},{name:"\u6700\u5C0F\u503C",value:100,xAxis:0,yAxis:100}]},markLine:{data:[{type:"average",name:"\u5E73\u5747\u503C"}]}},{type:"custom",name:"error",itemStyle:{borderWidth:1.5},renderItem:function(u,f){var p=f.value(0),c=f.coord([p,f.value(1)]),h=f.coord([p,f.value(2)]),v=f.size([1,0])[0]*.1,d=f.style({stroke:f.visual("color"),fill:void 0});return{type:"group",children:[{type:"line",transition:["shape"],shape:{x1:c[0]-v,y1:c[1],x2:c[0]+v,y2:c[1]},style:d},{type:"line",transition:["shape"],shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d},{type:"line",transition:["shape"],shape:{x1:h[0]-v,y1:h[1],x2:h[0]+v,y2:h[1]},style:d}]}},encode:{x:0,y:[1,2]},data:a,z:100}]},this.chart_options2={title:{text:"\u70ED\u503C",subtext:"(kg/kg)"},legend:{data:["\u8D85\u5DEE\u6837\u6570\u91CF","\u4E0D\u5408\u683C\u6837\u6570\u91CF"]},xAxis:[{type:"category",data:["1","2","3","4","5","6","7","8","9","10","11","12"]}],yAxis:[{type:"value"}],series:[{name:"\u8D85\u5DEE\u6837\u6570\u91CF",type:"line",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]}},{name:"\u4E0D\u5408\u683C\u6837\u6570\u91CF",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"Max",value:182.2,xAxis:7,yAxis:183},{name:"Min",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"Avg"}]}}],grid:{left:"3%",right:"3%",bottom:"3%",containLabel:!0},toolbox:{show:!1,feature:{dataView:{show:!0,readOnly:!1},magicType:{show:!0,type:["line","bar"]},restore:{show:!0},saveAsImage:{show:!0}}},calculable:!0},this.chart_options3={title:{text:"\u7164\u6837\u8D85\u5DEE\u7387"},grid:{top:"10%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["\u8D85\u5DEE\u6837\u91CF","\u603B\u6837\u91CF"]},yAxis:{type:"value"},series:[{data:[3,16],label:{show:!0,position:"top",formatter:function(u){return u.value}},type:"bar"}]},this.chart_options4={title:{text:"\u7164\u6837\u5408\u683C\u7387",left:"center"},grid:{top:"10%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:["\u8D85\u5DEE\u6837\u91CF","\u603B\u6837\u91CF"]},yAxis:{type:"value"},series:[{data:[15,16],type:"bar",label:{show:!0,position:"top",formatter:function(u){return u.value}}}]},this.chartConfig.optionsCheckList[1].options=this.chart_options2,this.chartConfig.optionsCheckList[2].options=this.chart_options3,this.chartConfig.optionsCheckList[3].options=this.chart_options4,this.chartConfig.optionBottomList[0]=this.chart_options3,this.chartConfig.optionBottomList[1]=this.chart_options4}unsafePublish(i,a){this._mqttService.unsafePublish(i,a,{qos:1,retain:!0})}ngOnDestroy(){this.subscription.unsubscribe()}getServerConfig(){this.http.get("http://localhost:5006/api/config/s1").subscribe(i=>{this.chartConfig.optionsCheckList[0].options=i.data,console.log(i)})}};e.\u0275fac=function(a){return new(a||e)($r(VT))},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-s1"]],standalone:!0,features:[Ae],decls:56,vars:13,consts:[["nz-row","",1,"s1-container",3,"nzGutter"],["nz-col","","nzSpan","8"],["title","\u7CFB\u7EDF\u72B6\u6001"],["nz-row","",2,"justify-content","center","align-items","center"],["nz-col","","nzSpan","12"],[1,"centered-element"],[2,"width","26rem","height","11rem",3,"options"],[1,"sys-status-title"],["title","\u7CFB\u7EDF\u64CD\u4F5C\u8BB0\u5F55",2,"margin-top","1rem"],[1,"ag-theme-datav",3,"rowData","columnDefs"],["title","\u7CFB\u7EDF\u62A5\u8B66\u4FE1\u606F",2,"margin-top","1rem"],["title","",2,"margin-top","1rem"],[1,"progress-container"],[1,"status-text"],[2,"width","100%",3,"nzPercent","nzStrokeColor"],[1,"status-ext-text"],[1,"progress-container","mt-sm"],["title",""],[2,"height","34.6rem"],["src","assets/dashboard/dashboard_ws_demo1.png",2,"width","100%"],["nz-row","",2,"justify-content","center","align-items","center","margin-top","0.5rem"],["nz-col","","nzSpan","12",1,"sys-status-title"],["title","\u5316\u9A8C\u7ED3\u679C",3,"showSetting","optionsList","onCheckedItemsChange"],["nz-row","",1,"scrollable-container"],["nz-row",""],["nz-col","","class","centered-element",3,"nzSpan",4,"ngIf"],["nz-col","",1,"centered-element",3,"nzSpan"],[3,"options","style",4,"ngIf"],[3,"options"],[1,"centered-element",2,"margin","2px"],[2,"width","26rem","height","11rem","margin-left","0.4rem",3,"options"],["nz-col","","class","centered-element",3,"nzSpan"]],template:function(a,n){a&1&&(Ft(0,"div",0)(1,"div",1)(2,"data-v-card",2)(3,"div",3)(4,"div",4)(5,"div",5),Ce(6,"app-chart-component",6),Wt(),Ft(7,"div",7),Re(8,"\u7CFB\u7EDF\u5065\u5EB7\u5EA6"),Wt()(),Ft(9,"div",4)(10,"div",5),Ce(11,"app-chart-component",6),Wt(),Ft(12,"div",7),Re(13,"\u8BBE\u5907\u6295\u8FD0\u5EA6"),Wt()()()(),Ft(14,"data-v-card",8),Ce(15,"ag-grid-angular",9),Wt(),Ft(16,"data-v-card",10),Ce(17,"ag-grid-angular",9),Wt(),Ft(18,"data-v-card",11)(19,"div",12)(20,"span",13),Re(21,"\u5316\u9A8C\u6548\u7387\uFF1A"),Wt(),Ce(22,"nz-progress",14),Ft(23,"span",15),Re(24,"\uFF0816/25\uFF09"),Wt()(),Ft(25,"div",16)(26,"span",13),Re(27,"\u5B8C \u6210 \u7387 \uFF1A"),Wt(),Ce(28,"nz-progress",14),Ft(29,"span",15),Re(30,"\uFF0812/20\uFF09"),Wt()()()(),Ft(31,"div",1)(32,"data-v-card",17)(33,"div",18),Ce(34,"img",19),Ft(35,"div",20)(36,"div",21),Re(37," \u673A\u5668\u4EBA "),Wt(),Ft(38,"div",21),Re(39," \u5168\u786B\u4EEA "),Wt(),Ft(40,"div",21),Re(41," \u5168\u6C34\u5206\u6790\u4EEA "),Wt(),Ft(42,"div",21),Re(43," \u6325\u53D1\u5206\u4EEA "),Wt(),Ft(44,"div",21),Re(45," \u91CF\u70ED\u4EEA "),Wt(),Ft(46,"div",21),Re(47," \u8C08\u60C5\u6C2E\u5143\u7D20 "),Wt()()()()(),Ft(48,"div",1)(49,"data-v-card",22),TT("onCheckedItemsChange",function(s){return n.handleCheckedItems(s)}),Ft(50,"div",23),Ug(51,pJ,1,1,"div",31,Vg),Wt(),Ft(53,"div",24),Ug(54,cJ,3,1,"div",4,Vg),Wt()()()()),a&2&&(mt("nzGutter",16),wt(6),mt("options",n.chart_options),wt(5),mt("options",n.chart_options0),wt(4),mt("rowData",n.rowData)("columnDefs",n.colDefs1),wt(2),mt("rowData",n.rowData)("columnDefs",n.colDefs2),wt(5),mt("nzPercent",64)("nzStrokeColor","#74FAFB"),wt(6),mt("nzPercent",60)("nzStrokeColor","#74FAFB"),wt(21),mt("showSetting",!0)("optionsList",n.chartConfig.optionsCheckList),wt(2),Bg(n.chartConfig.optionsCheckList),wt(3),Bg(n.chartConfig.optionBottomList))},dependencies:[Hc,va,jc,bl,NT,OT,kT,Pg,$s,Js,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Qc,Kc,Tn,qs,nl,ol,_l,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn,gB],styles:[".dashboard-container[_ngcontent-%COMP%]{width:20rem;height:10rem;margin-top:-3rem;margin-bottom:-2rem}.sys-status-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#94ddf3;text-align:center}.ag-theme-datav[_ngcontent-%COMP%]{--ag-border-color: #74FAFB;--ag-foreground-color: #74FAFB;--ag-background-color: #0A1632;--ag-header-foreground-color: #74FAFB;--ag-header-background-color: #0A1632;--ag-odd-row-background-color: #0A1632;--ag-header-column-resize-handle-color: #7e2e84;--ag-font-size: 17px;--ag-font-family: monospace;height:5rem}.centered-element[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%}.status-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.status-circle[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%}.status-circle.red[_ngcontent-%COMP%]{background-color:red}.status-circle.green[_ngcontent-%COMP%]{background-color:green}.progress-container[_ngcontent-%COMP%]{display:flex;color:#fff}.progress-container[_ngcontent-%COMP%] .status-text[_ngcontent-%COMP%]{width:8rem;margin-left:6px;font-size:16px;font-weight:600;color:#74fafb}.progress-container[_ngcontent-%COMP%] .status-ext-text[_ngcontent-%COMP%]{margin-top:3px;font-size:12px}.progress-display[_ngcontent-%COMP%]{color:#fff;text-align:right}.statistic-item-container[_ngcontent-%COMP%]{display:flex;padding:1rem 0;color:#fff}.white-color-theme[_ngcontent-%COMP%]{color:#74fafb}.scrollable-container[_ngcontent-%COMP%]{scrollbar-color:auto;overflow-y:auto;width:100%;height:20rem} ::-webkit-scrollbar{width:10px} ::-webkit-scrollbar-track{background-color:#0a1632} ::-webkit-scrollbar-thumb{background-color:#74fafb;border-radius:2px} ::-webkit-scrollbar-thumb:hover{background-color:#74fafb}"]});let r=e;return r})();function hJ(r,e){if(r&1&&(Ft(0,"li")(1,"a",2),Re(2),Wt()()),r&2){let t=e.$implicit;wt(),mt("routerLink",t.link),wt(),bn(t.text)}}function vJ(r,e){if(r&1&&(Ft(0,"div")(1,"ul"),qt(2,hJ,3,2,"li",1),Wt()()),r&2){let t=Jt();wt(2),mt("ngForOf",t.children)}}var iF=(()=>{let e=class e{constructor(i,a){this.route=i,this.router=a,this.menu=null,this.children=null}ngOnInit(){let i=this.router.getCurrentNavigation();i?.extras.state&&(this.menu=i.extras.state.menu,this.children=this.menu?.children||null,console.log("\u7A7F\u5E26\u8FC7\u6765\u7684\u83DC\u5355\u53C2\u6570"),console.log(this.menu),console.log(this.children))}navigateToChild(i){i.link&&this.router.navigateByUrl(i.link)}};e.\u0275fac=function(a){return new(a||e)($r(DT),$r(MT))},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-s1"]],standalone:!0,features:[Ae],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(a,n){a&1&&qt(0,vJ,3,1,"div",0),a&2&&mt("ngIf",n.children&&n.children.length)},dependencies:[Hc,df,va,jc,bl,Pg,$s,Js,IT,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Tn,qs,nl,ol,_l,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn],styles:[".dashboard-container[_ngcontent-%COMP%]{width:20rem;height:10rem;margin-top:-3rem;margin-bottom:-2rem}.sys-status-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;color:#94ddf3;text-align:center}.ag-theme-datav[_ngcontent-%COMP%]{--ag-border-color: #74FAFB;--ag-foreground-color: #74FAFB;--ag-background-color: #0A1632;--ag-header-foreground-color: #74FAFB;--ag-header-background-color: #0A1632;--ag-odd-row-background-color: #0A1632;--ag-header-column-resize-handle-color: #7e2e84;--ag-font-size: 17px;--ag-font-family: monospace;height:5rem}.scrollable-container[_ngcontent-%COMP%]{overflow-y:auto;width:100%;height:20rem}.centered-element[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%}.status-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.status-circle[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%}.status-circle.red[_ngcontent-%COMP%]{background-color:red}.status-circle.green[_ngcontent-%COMP%]{background-color:green}.progress-container[_ngcontent-%COMP%]{display:flex;color:#fff}.progress-container[_ngcontent-%COMP%] .status-text[_ngcontent-%COMP%]{width:8rem;margin-left:6px;font-size:16px;font-weight:600;color:#74fafb}.progress-container[_ngcontent-%COMP%] .status-ext-text[_ngcontent-%COMP%]{margin-top:3px;font-size:12px}.progress-display[_ngcontent-%COMP%]{color:#fff;text-align:right}.statistic-item-container[_ngcontent-%COMP%]{display:flex;padding:1rem 0;color:#fff}.white-color-theme[_ngcontent-%COMP%]{color:#74fafb}"]});let r=e;return r})();var aF=(()=>{let e=class e{constructor(){this.http=Ys(Xc),this.modal=Ys(Zc)}ngOnInit(){}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=Te({type:e,selectors:[["app-data-v-threejs"]],standalone:!0,features:[Ae],decls:1,vars:0,consts:[["src","http://112.33.111.160:8083/","width","100%","height","650px",2,"border","0"]],template:function(a,n){a&1&&Ce(0,"iframe",0)},dependencies:[$s,Js,ml,fl,yl,xl,gl,vl,Qs,sl,ul,wl,hl,pl,Tn,qs,nl,ol,_l,bl,il,Cn,cl,rl,ll,al,Sl,Ks,js,dl,el,Xs,tl,wn]});let r=e;return r})();var tGt=[{path:"s1/:id",component:rF,data:{menu:null}},{path:"second1/:id",component:iF,data:{menu:null}},{path:"threejs/:id",component:aF}];export{tGt as routes};