Files
jiapu/dist/public/js/lay-module/echarts/echarts.js
T

30 lines
428 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(N,Pi){typeof exports=="object"&&typeof module!="undefined"?Pi(exports):typeof define=="function"&&define.amd?define(["exports"],Pi):Pi(N.echarts={})})(this,function(N){"use strict";function Pi(e){var t={},n={},i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:typeof document!="undefined"}}function Iu(e,t){e==="createCanvas"&&(Ma=null),El[e]=t}function ae(e){if(e==null||typeof e!="object")return e;var t=e,n=lr.call(e);if(n==="[object Array]"){if(!Yn(e)){t=[];for(var i=0,r=e.length;r>i;i++)t[i]=ae(e[i])}}else if(Ep[n]){if(!Yn(e)){var a=e.constructor;if(e.constructor.from)t=a.from(e);else{t=new a(e.length);for(var i=0,r=e.length;r>i;i++)t[i]=ae(e[i])}}}else if(!zp[n]&&!Yn(e)&&!zr(e)){t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=ae(e[o]))}return t}function K(e,t,n){if(!F(t)||!F(e))return n?ae(t):e;for(var i in t)if(t.hasOwnProperty(i)){var r=e[i],a=t[i];!F(a)||!F(r)||R(a)||R(r)||zr(a)||zr(r)||Ro(a)||Ro(r)||Yn(a)||Yn(r)?!n&&i in e||(e[i]=ae(t[i],!0)):K(r,a,n)}return e}function Eo(e,t){for(var n=e[0],i=1,r=e.length;r>i;i++)n=K(n,e[i],t);return n}function H(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Z(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?t[i]!=null:e[i]==null)&&(e[i]=t[i]);return e}function Au(){return Ma||(Ma=Sa().getContext("2d")),Ma}function J(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n}return-1}function be(e,t){function n(){}var i=e.prototype;n.prototype=t.prototype,e.prototype=new n;for(var r in i)e.prototype[r]=i[r];e.prototype.constructor=e,e.superClass=t}function ue(e,t,n){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Z(e,t,n)}function Tt(e){return e?typeof e=="string"?!1:typeof e.length=="number":void 0}function I(e,t,n){if(e&&t)if(e.forEach&&e.forEach===I_)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;r>i;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function O(e,t,n){if(e&&t){if(e.map&&e.map===C_)return e.map(t,n);for(var i=[],r=0,a=e.length;a>r;r++)i.push(t.call(n,e[r],r,e));return i}}function Li(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===D_)return e.reduce(t,n,i);for(var r=0,a=e.length;a>r;r++)n=t.call(i,n,e[r],r,e);return n}}function Pe(e,t,n){if(e&&t){if(e.filter&&e.filter===A_)return e.filter(t,n);for(var i=[],r=0,a=e.length;a>r;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}}function $0(e,t,n){if(e&&t){for(var i=0,r=e.length;r>i;i++)if(t.call(n,e[i],i,e))return e[i]}}function $(e,t){var n=ur.call(arguments,2);return function(){return e.apply(t,n.concat(ur.call(arguments)))}}function ee(e){var t=ur.call(arguments,1);return function(){return e.apply(this,t.concat(ur.call(arguments)))}}function R(e){return lr.call(e)==="[object Array]"}function $e(e){return typeof e=="function"}function ve(e){return lr.call(e)==="[object String]"}function F(e){var t=typeof e;return t==="function"||!!e&&t=="object"}function Ro(e){return!!zp[lr.call(e)]}function gt(e){return!!Ep[lr.call(e)]}function zr(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Oi(e){return e!==e}function Gt(){for(var e=0,t=arguments.length;t>e;e++)if(arguments[e]!=null)return arguments[e]}function Ce(e,t){return e!=null?e:t}function vn(e,t,n){return e!=null?e:t!=null?t:n}function Bo(){return Function.call.apply(ur,arguments)}function No(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function jn(e,t){if(!e)throw new Error(t)}function Qe(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Fo(e){e[Rp]=!0}function Yn(e){return e[Rp]}function Er(e){function t(r,a){n?i.set(r,a):i.set(a,r)}var n=R(e);this.data={};var i=this;e instanceof Er?e.each(t):e&&I(e,t)}function q(e){return new Er(e)}function Q0(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function kt(){}function yn(e,t){var n=new Bp(2);return e==null&&(e=0),t==null&&(t=0),n[0]=e,n[1]=t,n}function Cu(e,t){return e[0]=t[0],e[1]=t[1],e}function Vo(e){var t=new Bp(2);return t[0]=e[0],t[1]=e[1],t}function J0(e,t,n){return e[0]=t,e[1]=n,e}function Wo(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Du(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Rr(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Go(e){return Math.sqrt(Ho(e))}function Ho(e){return e[0]*e[0]+e[1]*e[1]}function em(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function tm(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function nm(e,t){return e[0]*t[0]+e[1]*t[1]}function Br(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Nr(e,t){var n=Go(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function zi(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function Tu(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function im(e,t){return e[0]=-t[0],e[1]=-t[1],e}function rm(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function ne(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function Pt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Lt(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}function Fr(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function Kn(e,t){return{target:e,topTarget:t&&t.topTarget}}function ku(e,t){var n=e._$eventProcessor;return t!=null&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}function am(e){return e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0}}function Zo(e,t,n,i){return n=n||{},i||!X.canvasSupported?Pu(e,t,n):X.browser.firefox&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):Pu(e,t,n),n}function Pu(e,t,n){var i=am(e);n.zrX=t.clientX-i.left,n.zrY=t.clientY-i.top}function xn(e,t,n){if(t=t||window.event,t.zrX!=null)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var a=i!="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&Zo(e,a,t,n)}else Zo(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var o=t.button;return t.which==null&&o!==void 0&&O_.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function om(e,t,n){Rl?e.addEventListener(t,n):e.attachEvent("on"+t,n)}function sm(e,t,n){Rl?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}function Xo(e){return e.which>1}function lm(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:hm}}function hm(){ui(this.event)}function Lu(){}function um(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i,r=e;r;){if(r.clipPath&&!r.clipPath.contain(t,n))return!1;r.silent&&(i=!0),r=r.parent}return i?Fp:!0}return!1}function Ot(){var e=new E_(6);return Ei(e),e}function Ei(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function qo(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function _n(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function wn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function $n(e,t,n){var i=t[0],r=t[2],a=t[4],o=t[1],s=t[3],l=t[5],h=Math.sin(n),u=Math.cos(n);return e[0]=i*u+o*h,e[1]=-i*h+o*u,e[2]=r*u+s*h,e[3]=-r*h+u*s,e[4]=u*a+h*l,e[5]=u*l-h*a,e}function Vr(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Uo(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*r)*l,e[5]=(a*r-n*s)*l,e):null}function cm(e){var t=Ot();return qo(t,e),t}function bn(e){return e>Vp||-Vp>e}function jo(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=e.loop==null?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}function mt(e){return e=Math.round(e),0>e?0:e>255?255:e}function dm(e){return e=Math.round(e),0>e?0:e>360?360:e}function Wr(e){return 0>e?0:e>1?1:e}function Yo(e){return mt(e.length&&e.charAt(e.length-1)==="%"?parseFloat(e)/100*255:parseInt(e,10))}function Qn(e){return Wr(e.length&&e.charAt(e.length-1)==="%"?parseFloat(e)/100:parseFloat(e))}function Ko(e,t,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?e+(t-e)*n*6:1>2*n?t:2>3*n?e+(t-e)*(2/3-n)*6:e}function Ht(e,t,n){return e+(t-e)*n}function st(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function $o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Jn(e,t){Ca&&$o(Ca,t),Ca=Zp.put(e,Ca||t.slice())}function lt(e,t){if(e){t=t||[];var n=Zp.get(e);if(n)return $o(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in Hp)return $o(t,Hp[i]),Jn(e,t),t;if(i.charAt(0)!=="#"){var r=i.indexOf("("),a=i.indexOf(")");if(r!==-1&&a+1===i.length){var o=i.substr(0,r),s=i.substr(r+1,a-(r+1)).split(","),l=1;switch(o){case"rgba":if(s.length!==4)return void st(t,0,0,0,1);l=Qn(s.pop());case"rgb":return s.length!==3?void st(t,0,0,0,1):(st(t,Yo(s[0]),Yo(s[1]),Yo(s[2]),l),Jn(e,t),t);case"hsla":return s.length!==4?void st(t,0,0,0,1):(s[3]=Qn(s[3]),Qo(s,t),Jn(e,t),t);case"hsl":return s.length!==3?void st(t,0,0,0,1):(Qo(s,t),Jn(e,t),t);default:return}}st(t,0,0,0,1)}else{if(i.length===4){var h=parseInt(i.substr(1),16);return h>=0&&4095>=h?(st(t,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1),Jn(e,t),t):void st(t,0,0,0,1)}if(i.length===7){var h=parseInt(i.substr(1),16);return h>=0&&16777215>=h?(st(t,(16711680&h)>>16,(65280&h)>>8,255&h,1),Jn(e,t),t):void st(t,0,0,0,1)}}}}function Qo(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Qn(e[1]),r=Qn(e[2]),a=.5>=r?r*(i+1):r+i-r*i,o=2*r-a;return t=t||[],st(t,mt(255*Ko(o,a,n+1/3)),mt(255*Ko(o,a,n)),mt(255*Ko(o,a,n-1/3)),1),e.length===4&&(t[3]=e[3]),t}function fm(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,h=(s+o)/2;if(l===0)t=0,n=0;else{n=.5>h?l/(s+o):l/(2-s-o);var u=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;i===s?t=f-c:r===s?t=1/3+u-f:a===s&&(t=2/3+c-u),0>t&&(t+=1),t>1&&(t-=1)}var d=[360*t,n,h];return e[3]!=null&&d.push(e[3]),d}}function Ou(e,t){var n=lt(e);if(n){for(var i=0;3>i;i++)n[i]=0>t?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return ei(n,n.length===4?"rgba":"rgb")}}function zu(e){var t=lt(e);return t?((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1):void 0}function Eu(e,t,n){if(t&&t.length&&e>=0&&1>=e){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),o=t[r],s=t[a],l=i-r;return n[0]=mt(Ht(o[0],s[0],l)),n[1]=mt(Ht(o[1],s[1],l)),n[2]=mt(Ht(o[2],s[2],l)),n[3]=Wr(Ht(o[3],s[3],l)),n}}function Ru(e,t,n){if(t&&t.length&&e>=0&&1>=e){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),o=lt(t[r]),s=lt(t[a]),l=i-r,h=ei([mt(Ht(o[0],s[0],l)),mt(Ht(o[1],s[1],l)),mt(Ht(o[2],s[2],l)),Wr(Ht(o[3],s[3],l))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}function pm(e,t,n,i){return e=lt(e),e?(e=fm(e),t!=null&&(e[0]=dm(t)),n!=null&&(e[1]=Qn(n)),i!=null&&(e[2]=Qn(i)),ei(Qo(e),"rgba")):void 0}function Bu(e,t){return e=lt(e),e&&t!=null?(e[3]=Wr(t),ei(e,"rgba")):void 0}function ei(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function gm(e,t){return e[t]}function mm(e,t,n){e[t]=n}function Jo(e,t,n){return(t-e)*n+e}function Nu(e,t,n){return n>.5?t:e}function Fu(e,t,n,i,r){var a=e.length;if(r==1)for(var o=0;a>o;o++)i[o]=Jo(e[o],t[o],n);else for(var s=a&&e[0].length,o=0;a>o;o++)for(var l=0;s>l;l++)i[o][l]=Jo(e[o][l],t[o][l],n)}function Vu(e,t,n){var i=e.length,r=t.length;if(i!==r){var a=i>r;if(a)e.length=r;else for(var o=i;r>o;o++)e.push(n===1?t[o]:Wl.call(t[o]))}for(var s=e[0]&&e[0].length,o=0;o<e.length;o++)if(n===1)isNaN(e[o])&&(e[o]=t[o]);else for(var l=0;s>l;l++)isNaN(e[o][l])&&(e[o][l]=t[o][l])}function vm(e,t,n){if(e===t)return!0;var i=e.length;if(i!==t.length)return!1;if(n===1){for(var r=0;i>r;r++)if(e[r]!==t[r])return!1}else for(var a=e[0].length,r=0;i>r;r++)for(var o=0;a>o;o++)if(e[r][o]!==t[r][o])return!1;return!0}function Wu(e,t,n,i,r,a,o,s,l){var h=e.length;if(l==1)for(var u=0;h>u;u++)s[u]=es(e[u],t[u],n[u],i[u],r,a,o);else for(var c=e[0].length,u=0;h>u;u++)for(var f=0;c>f;f++)s[u][f]=es(e[u][f],t[u][f],n[u][f],i[u][f],r,a,o)}function es(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}function ym(e){if(Tt(e)){var t=e.length;if(Tt(e[0])){for(var n=[],i=0;t>i;i++)n.push(Wl.call(e[i]));return n}return Wl.call(e)}return e}function Gu(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function xm(e){var t=e[e.length-1].value;return Tt(t&&t[0])?2:1}function _m(e,t,n,i,r,a){var o=e._getter,s=e._setter,l=t==="spline",h=i.length;if(h){var u,c=i[0].value,f=Tt(c),d=!1,p=!1,v=f?xm(i):0;i.sort(function(re,he){return re.time-he.time}),u=i[h-1].time;for(var g=[],m=[],y=i[0].value,x=!0,w=0;h>w;w++){g.push(i[w].time/u);var S=i[w].value;if(f&&vm(S,y,v)||!f&&S===y||(x=!1),y=S,typeof S=="string"){var b=lt(S);b?(S=b,d=!0):p=!0}m.push(S)}if(a||!x){for(var _=m[h-1],w=0;h-1>w;w++)f?Vu(m[w],_,v):!isNaN(m[w])||isNaN(_)||p||d||(m[w]=_);f&&Vu(o(e._target,r),_,v);var M,A,C,D,T,k,E=0,z=0;if(d)var B=[0,0,0,0];var W=function(re,he){var P;if(0>he)P=0;else if(z>he){for(M=Math.min(E+1,h-1),P=M;P>=0&&!(g[P]<=he);P--);P=Math.min(P,h-2)}else{for(P=E;h>P&&!(g[P]>he);P++);P=Math.min(P-1,h-2)}E=P,z=he;var me=g[P+1]-g[P];if(me!==0)if(A=(he-g[P])/me,l)if(D=m[P],C=m[P===0?P:P-1],T=m[P>h-2?h-1:P+1],k=m[P>h-3?h-1:P+2],f)Wu(C,D,T,k,A,A*A,A*A*A,o(re,r),v);else{var Ke;if(d)Ke=Wu(C,D,T,k,A,A*A,A*A*A,B,1),Ke=Gu(B);else{if(p)return Nu(D,T,A);Ke=es(C,D,T,k,A,A*A,A*A*A)}s(re,r,Ke)}else if(f)Fu(m[P],m[P+1],A,o(re,r),v);else{var Ke;if(d)Fu(m[P],m[P+1],A,B,1),Ke=Gu(B);else{if(p)return Nu(m[P],m[P+1],A);Ke=Jo(m[P],m[P+1],A)}s(re,r,Ke)}},G=new jo({target:e._target,life:u,loop:e._loop,delay:e._delay,onframe:W,ondestroy:n});return t&&t!=="spline"&&(G.easing=t),G}}}function Hu(e,t,n,i,r,a,o,s){function l(){u--,u||a&&a()}ve(i)?(a=r,r=i,i=0):$e(r)?(a=r,r="linear",i=0):$e(i)?(a=i,i=0):$e(n)?(a=n,n=500):n||(n=500),e.stopAnimation(),Zu(e,"",e,t,n,i,s);var h=e.animators.slice(),u=h.length;u||a&&a();for(var c=0;c<h.length;c++)h[c].done(l).start(r,o)}function Zu(e,t,n,i,r,a,o){var s={},l=0;for(var h in i)i.hasOwnProperty(h)&&(n[h]!=null?F(i[h])&&!Tt(i[h])?Zu(e,t?t+"."+h:h,n[h],i[h],r,a,o):(o?(s[h]=n[h],Xu(e,t,h,i[h])):s[h]=i[h],l++):i[h]==null||o||Xu(e,t,h,i[h]));l>0&&e.animate(t,!1).when(r==null?500:r,s).delay(a||0)}function Xu(e,t,n,i){if(t){var r={};r[t]={},r[t][n]=i,e.attr(r)}else e.attr(n,i)}function ie(e,t,n,i){0>n&&(e+=n,n=-n),0>i&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}function wm(e){for(var t=0;e>=Up;)t|=1&e,e>>=1;return e+t}function qu(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;n>r&&i(e[r],e[r-1])<0;)r++;bm(e,t,r)}else for(;n>r&&i(e[r],e[r-1])>=0;)r++;return r-t}function bm(e,t,n){for(n--;n>t;){var i=e[t];e[t++]=e[n],e[n--]=i}}function Uu(e,t,n,i,r){for(i===t&&i++;n>i;i++){for(var a,o=e[i],s=t,l=i;l>s;)a=s+l>>>1,r(o,e[a])<0?l=a:s=a+1;var h=i-s;switch(h){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;h>0;)e[s+h]=e[s+h-1],h--}e[s]=o}}function ts(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])>0){for(s=i-r;s>l&&a(e,t[n+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(e,t[n+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}for(o++;l>o;){var u=o+(l-o>>>1);a(e,t[n+u])>0?o=u+1:l=u}return l}function ns(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])<0){for(s=r+1;s>l&&a(e,t[n+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}else{for(s=i-r;s>l&&a(e,t[n+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var u=o+(l-o>>>1);a(e,t[n+u])<0?l=u:o=u+1}return l}function Sm(e,t){function n(d,p){l[c]=d,h[c]=p,c+=1}function i(){for(;c>1;){var d=c-2;if(d>=1&&h[d-1]<=h[d]+h[d+1]||d>=2&&h[d-2]<=h[d]+h[d-1])h[d-1]<h[d+1]&&d--;else if(h[d]>h[d+1])break;a(d)}}function r(){for(;c>1;){var d=c-2;d>0&&h[d-1]<h[d+1]&&d--,a(d)}}function a(d){var p=l[d],v=h[d],g=l[d+1],m=h[d+1];h[d]=v+m,d===c-3&&(l[d+1]=l[d+2],h[d+1]=h[d+2]),c--;var y=ns(e[g],e,p,v,0,t);p+=y,v-=y,v!==0&&(m=ts(e[p+v-1],e,g,m,m-1,t),m!==0&&(m>=v?o(p,v,g,m):s(p,v,g,m)))}function o(d,p,v,g){var m=0;for(m=0;p>m;m++)f[m]=e[d+m];var y=0,x=v,w=d;if(e[w++]=e[x++],--g!==0){if(p===1){for(m=0;g>m;m++)e[w+m]=e[x+m];return void(e[w+g]=f[y])}for(var S,b,_,M=u;;){S=0,b=0,_=!1;do if(t(e[x],f[y])<0){if(e[w++]=e[x++],b++,S=0,--g===0){_=!0;break}}else if(e[w++]=f[y++],S++,b=0,--p===1){_=!0;break}while(M>(S|b));if(_)break;do{if(S=ns(e[x],f,y,p,0,t),S!==0){for(m=0;S>m;m++)e[w+m]=f[y+m];if(w+=S,y+=S,p-=S,1>=p){_=!0;break}}if(e[w++]=e[x++],--g===0){_=!0;break}if(b=ts(f[y],e,x,g,0,t),b!==0){for(m=0;b>m;m++)e[w+m]=e[x+m];if(w+=b,x+=b,g-=b,g===0){_=!0;break}}if(e[w++]=f[y++],--p===1){_=!0;break}M--}while(S>=fr||b>=fr);if(_)break;0>M&&(M=0),M+=2}if(u=M,1>u&&(u=1),p===1){for(m=0;g>m;m++)e[w+m]=e[x+m];e[w+g]=f[y]}else{if(p===0)throw new Error;for(m=0;p>m;m++)e[w+m]=f[y+m]}}else for(m=0;p>m;m++)e[w+m]=f[y+m]}function s(d,p,v,g){var m=0;for(m=0;g>m;m++)f[m]=e[v+m];var y=d+p-1,x=g-1,w=v+g-1,S=0,b=0;if(e[w--]=e[y--],--p!==0){if(g===1){for(w-=p,y-=p,b=w+1,S=y+1,m=p-1;m>=0;m--)e[b+m]=e[S+m];return void(e[w]=f[x])}for(var _=u;;){var M=0,A=0,C=!1;do if(t(f[x],e[y])<0){if(e[w--]=e[y--],M++,A=0,--p===0){C=!0;break}}else if(e[w--]=f[x--],A++,M=0,--g===1){C=!0;break}while(_>(M|A));if(C)break;do{if(M=p-ns(f[x],e,d,p,p-1,t),M!==0){for(w-=M,y-=M,p-=M,b=w+1,S=y+1,m=M-1;m>=0;m--)e[b+m]=e[S+m];if(p===0){C=!0;break}}if(e[w--]=f[x--],--g===1){C=!0;break}if(A=g-ts(e[y],f,0,g,g-1,t),A!==0){for(w-=A,x-=A,g-=A,b=w+1,S=x+1,m=0;A>m;m++)e[b+m]=f[S+m];if(1>=g){C=!0;break}}if(e[w--]=e[y--],--p===0){C=!0;break}_--}while(M>=fr||A>=fr);if(C)break;0>_&&(_=0),_+=2}if(u=_,1>u&&(u=1),g===1){for(w-=p,y-=p,b=w+1,S=y+1,m=p-1;m>=0;m--)e[b+m]=e[S+m];e[w]=f[x]}else{if(g===0)throw new Error;for(S=w-(g-1),m=0;g>m;m++)e[S+m]=f[m]}}else for(S=w-(g-1),m=0;g>m;m++)e[S+m]=f[m]}var l,h,u=fr,c=0,f=[];l=[],h=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function Gr(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(2>r)){var a=0;if(Up>r)return a=qu(e,n,i,t),void Uu(e,n,i,n+a,t);var o=new Sm(e,t),s=wm(r);do{if(a=qu(e,n,i,t),s>a){var l=r;l>s&&(l=s),Uu(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(r!==0);o.forceMergeRuns()}}function ju(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}function Mm(e,t,n){var i=t.x==null?0:t.x,r=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=e.createLinearGradient(i,a,r,o);return s}function Im(e,t,n){var i=n.width,r=n.height,a=Math.min(i,r),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var h=e.createRadialGradient(o,s,0,o,s,l);return h}function Am(){return!1}function Yu(e,t,n){var i=Sa(),r=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=a*n,i}function Cm(e){if(typeof e=="string"){var t=$l.get(e);return t&&t.image}return e}function Ku(e,t,n,i,r){if(e){if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=$l.get(e),o={hostEl:n,cb:i,cbPayload:r};return a?(t=a.image,!Hr(t)&&a.pending.push(o)):(!t&&(t=new Image),t.onload=t.onerror=Dm,$l.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}return e}return t}function Dm(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Hr(e){return e&&e.width&&e.height}function Tm(e,t){eh[e]=t}function vt(e,t){t=t||gr;var n=e+":"+t;if(za[n])return za[n];for(var i=(e+"").split(`
`),r=0,a=0,o=i.length;o>a;a++)r=Math.max(Om(i[a],t).width,r);return Ql>W_&&(Ql=0,za={}),Ql++,za[n]=r,r}function Sn(e,t,n,i,r,a,o){return a?Pm(e,t,n,i,r,a,o):km(e,t,n,i,r,o)}function km(e,t,n,i,r,a){var o=nc(e,t,r,a),s=vt(e,t);r&&(s+=r[1]+r[3]);var l=o.outerHeight,h=Ri(0,s,n),u=Bi(0,l,i),c=new ie(h,u,s,l);return c.lineHeight=o.lineHeight,c}function Pm(e,t,n,i,r,a,o){var s=is(e,{rich:a,truncate:o,font:t,textAlign:n,textPadding:r}),l=s.outerWidth,h=s.outerHeight,u=Ri(0,l,n),c=Bi(0,h,i);return new ie(u,c,l,h)}function Ri(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Bi(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function $u(e,t,n){var i=t.x,r=t.y,a=t.height,o=t.width,s=a/2,l="left",h="top";switch(e){case"left":i-=n,r+=s,l="right",h="middle";break;case"right":i+=n+o,r+=s,h="middle";break;case"top":i+=o/2,r-=n,l="center",h="bottom";break;case"bottom":i+=o/2,r+=a+n,l="center";break;case"inside":i+=o/2,r+=s,l="center",h="middle";break;case"insideLeft":i+=n,r+=s,h="middle";break;case"insideRight":i+=o-n,r+=s,l="right",h="middle";break;case"insideTop":i+=o/2,r+=n,l="center";break;case"insideBottom":i+=o/2,r+=a-n,l="center",h="bottom";break;case"insideTopLeft":i+=n,r+=n;break;case"insideTopRight":i+=o-n,r+=n,l="right";break;case"insideBottomLeft":i+=n,r+=a-n,h="bottom";break;case"insideBottomRight":i+=o-n,r+=a-n,l="right",h="bottom"}return{x:i,y:r,textAlign:l,textVerticalAlign:h}}function Qu(e,t,n,i,r){if(!t)return"";var a=(e+"").split(`
`);r=Ju(t,n,i,r);for(var o=0,s=a.length;s>o;o++)a[o]=ec(a[o],r);return a.join(`
`)}function Ju(e,t,r,i){i=H({},i),i.font=t;var r=Ce(r,"...");i.maxIterations=Ce(i.maxIterations,2);var a=i.minChar=Ce(i.minChar,0);i.cnCharWidth=vt("国",t);var o=i.ascCharWidth=vt("a",t);i.placeholder=Ce(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;a>l&&s>=o;l++)s-=o;var h=vt(r);return h>s&&(r="",h=0),s=e-h,i.ellipsis=r,i.ellipsisWidth=h,i.contentWidth=s,i.containerWidth=e,i}function ec(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var a=vt(e,i);if(n>=a)return e;for(var o=0;;o++){if(r>=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Lm(e,r,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*r/a):0;e=e.substr(0,s),a=vt(e,i)}return e===""&&(e=t.placeholder),e}function Lm(e,t,n,i){for(var r=0,a=0,o=e.length;o>a&&t>r;a++){var s=e.charCodeAt(a);r+=s>=0&&127>=s?n:i}return a}function tc(e){return vt("国",e)}function Om(e,t){return eh.measureText(e,t)}function nc(e,t,n,i){e!=null&&(e+="");var r=tc(t),a=e?e.split(`
`):[],o=a.length*r,s=o;if(n&&(s+=n[0]+n[2]),e&&i){var l=i.outerHeight,h=i.outerWidth;if(l!=null&&s>l)e="",a=[];else if(h!=null)for(var u=Ju(h-(n?n[1]+n[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),c=0,f=a.length;f>c;c++)a[c]=ec(a[c],u)}return{lines:a,height:o,outerHeight:s,lineHeight:r}}function is(e,t){var n={lines:[],width:0,height:0};if(e!=null&&(e+=""),!e)return n;for(var i,r=Jl.lastIndex=0;(i=Jl.exec(e))!=null;){var a=i.index;a>r&&rs(n,e.substring(r,a)),rs(n,i[2],i[1]),r=Jl.lastIndex}r<e.length&&rs(n,e.substring(r,e.length));var o=n.lines,s=0,l=0,h=[],u=t.textPadding,c=t.truncate,f=c&&c.outerWidth,d=c&&c.outerHeight;u&&(f!=null&&(f-=u[1]+u[3]),d!=null&&(d-=u[0]+u[2]));for(var p=0;p<o.length;p++){for(var v=o[p],g=0,m=0,y=0;y<v.tokens.length;y++){var x=v.tokens[y],w=x.styleName&&t.rich[x.styleName]||{},S=x.textPadding=w.textPadding,b=x.font=w.font||t.font,_=x.textHeight=Ce(w.textHeight,tc(b));if(S&&(_+=S[0]+S[2]),x.height=_,x.lineHeight=vn(w.textLineHeight,t.textLineHeight,_),x.textAlign=w&&w.textAlign||t.textAlign,x.textVerticalAlign=w&&w.textVerticalAlign||"middle",d!=null&&s+x.lineHeight>d)return{lines:[],width:0,height:0};x.textWidth=vt(x.text,b);var M=w.textWidth,A=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")x.percentWidth=M,h.push(x),M=0;else{if(A){M=x.textWidth;var C=w.textBackgroundColor,D=C&&C.image;D&&(D=Cm(D),Hr(D)&&(M=Math.max(M,D.width*_/D.height)))}var T=S?S[1]+S[3]:0;M+=T;var k=f!=null?f-m:null;k!=null&&M>k&&(!A||T>k?(x.text="",x.textWidth=M=0):(x.text=Qu(x.text,k-T,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=vt(x.text,b),M=x.textWidth+T))}m+=x.width=M,w&&(g=Math.max(g,x.lineHeight))}v.width=m,v.lineHeight=g,s+=g,l=Math.max(l,m)}n.outerWidth=n.width=Ce(t.textWidth,l),n.outerHeight=n.height=Ce(t.textHeight,s),u&&(n.outerWidth+=u[1]+u[3],n.outerHeight+=u[0]+u[2]);for(var p=0;p<h.length;p++){var x=h[p],E=x.percentWidth;x.width=parseInt(E,10)/100*l}return n}function rs(e,t,n){for(var i=t==="",r=t.split(`
`),a=e.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var h=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=h.length;u===1&&h[0].isLineHolder?h[0]=l:(s||!u||i)&&h.push(l)}}}function zm(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&Qe(t)||e.textFont||e.font}function ic(e,t){var n,i,r,a,o=t.x,s=t.y,l=t.width,h=t.height,u=t.r;0>l&&(o+=l,l=-l),0>h&&(s+=h,h=-h),typeof u=="number"?n=i=r=a=u:u instanceof Array?u.length===1?n=i=r=a=u[0]:u.length===2?(n=r=u[0],i=a=u[1]):u.length===3?(n=u[0],i=a=u[1],r=u[2]):(n=u[0],i=u[1],r=u[2],a=u[3]):n=i=r=a=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),i+r>h&&(c=i+r,i*=h/c,r*=h/c),n+a>h&&(c=n+a,n*=h/c,a*=h/c),e.moveTo(o+n,s),e.lineTo(o+l-i,s),i!==0&&e.arc(o+l-i,s+i,i,-Math.PI/2,0),e.lineTo(o+l,s+h-r),r!==0&&e.arc(o+l-r,s+h-r,r,0,Math.PI/2),e.lineTo(o+a,s+h),a!==0&&e.arc(o+a,s+h-a,a,Math.PI/2,Math.PI),e.lineTo(o,s+n),n!==0&&e.arc(o+n,s+n,n,Math.PI,1.5*Math.PI)}function Zr(e){return rc(e),I(e.rich,rc),e}function rc(e){if(e){e.font=zm(e);var t=e.textAlign;t==="middle"&&(t="center"),e.textAlign=t==null||G_[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;n==="center"&&(n="middle"),e.textVerticalAlign=n==null||H_[n]?n:"top";var i=e.textPadding;i&&(e.textPadding=No(e.textPadding))}}function ac(e,t,n,i,r,a){i.rich?Rm(e,t,n,i,r):Em(e,t,n,i,r,a)}function Em(e,t,n,i,r,a){var o=a&&a.style,s=o&&a.type==="text",l=i.font||gr;s&&l===(o.font||gr)||(t.font=l);var h=e.__computedFont;e.__styleFont!==l&&(e.__styleFont=l,h=e.__computedFont=t.font);var u=i.textPadding,c=e.__textCotentBlock;(!c||e.__dirtyText)&&(c=e.__textCotentBlock=nc(n,h,u,i.truncate));var f=c.outerHeight,d=c.lines,p=c.lineHeight,v=sc(f,i,r),g=v.baseX,m=v.baseY,y=v.textAlign||"left",x=v.textVerticalAlign;oc(t,i,r,g,m);var w=Bi(m,f,x),S=g,b=w,_=os(i);if(_||u){var M=vt(n,h),A=M;u&&(A+=u[1]+u[3]);var C=Ri(g,A,y);_&&ss(e,t,i,C,w,A,f),u&&(S=uc(g,y,u),b+=u[0])}t.textAlign=y,t.textBaseline="middle";for(var D=0;D<jp.length;D++){var T=jp[D],k=T[0],E=T[1],z=i[k];s&&z===o[k]||(t[E]=Xl(t,E,z||T[2]))}b+=p/2;var B=i.textStrokeWidth,W=s?o.textStrokeWidth:null,G=!s||B!==W,re=!s||G||i.textStroke!==o.textStroke,he=ls(i.textStroke,B),P=lc(i.textFill);if(he&&(G&&(t.lineWidth=B),re&&(t.strokeStyle=he)),P&&(!s||i.textFill!==o.textFill||o.textBackgroundColor)&&(t.fillStyle=P),d.length===1)he&&t.strokeText(d[0],S,b),P&&t.fillText(d[0],S,b);else for(var D=0;D<d.length;D++)he&&t.strokeText(d[D],S,b),P&&t.fillText(d[D],S,b),b+=p}function Rm(e,t,n,i,r){var a=e.__textCotentBlock;(!a||e.__dirtyText)&&(a=e.__textCotentBlock=is(n,i)),Bm(e,t,a,i,r)}function Bm(e,t,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,h=sc(s,i,r),u=h.baseX,c=h.baseY,f=h.textAlign,d=h.textVerticalAlign;oc(t,i,r,u,c);var p=Ri(u,o,f),v=Bi(c,s,d),g=p,m=v;l&&(g+=l[3],m+=l[0]);var y=g+a;os(i)&&ss(e,t,i,p,v,o,s);for(var x=0;x<n.lines.length;x++){for(var w,S=n.lines[x],b=S.tokens,_=b.length,M=S.lineHeight,A=S.width,C=0,D=g,T=y,k=_-1;_>C&&(w=b[C],!w.textAlign||w.textAlign==="left");)as(e,t,w,i,M,m,D,"left"),A-=w.width,D+=w.width,C++;for(;k>=0&&(w=b[k],w.textAlign==="right");)as(e,t,w,i,M,m,T,"right"),A-=w.width,T-=w.width,k--;for(D+=(a-(D-g)-(y-T)-A)/2;k>=C;)w=b[C],as(e,t,w,i,M,m,D+w.width/2,"center"),D+=w.width,C++;m+=M}}function oc(e,t,n,i,r){if(n&&t.textRotation){var a=t.textOrigin;a==="center"?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),e.translate(i,r),e.rotate(-t.textRotation),e.translate(-i,-r)}}function as(e,t,n,i,r,a,o,s){var l=i.rich[n.styleName]||{};l.text=n.text;var h=n.textVerticalAlign,u=a+r/2;h==="top"?u=a+n.height/2:h==="bottom"&&(u=a+r-n.height/2),!n.isLineHolder&&os(l)&&ss(e,t,l,s==="right"?o-n.width:s==="center"?o-n.width/2:o,u-n.height/2,n.width,n.height);var c=n.textPadding;c&&(o=uc(o,s,c),u-=n.height/2-c[2]-n.textHeight/2),_e(t,"shadowBlur",vn(l.textShadowBlur,i.textShadowBlur,0)),_e(t,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),_e(t,"shadowOffsetX",vn(l.textShadowOffsetX,i.textShadowOffsetX,0)),_e(t,"shadowOffsetY",vn(l.textShadowOffsetY,i.textShadowOffsetY,0)),_e(t,"textAlign",s),_e(t,"textBaseline","middle"),_e(t,"font",n.font||gr);var f=ls(l.textStroke||i.textStroke,p),d=lc(l.textFill||i.textFill),p=Ce(l.textStrokeWidth,i.textStrokeWidth);f&&(_e(t,"lineWidth",p),_e(t,"strokeStyle",f),t.strokeText(n.text,o,u)),d&&(_e(t,"fillStyle",d),t.fillText(n.text,o,u))}function os(e){return e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor}function ss(e,t,n,i,r,a,o){var s=n.textBackgroundColor,l=n.textBorderWidth,h=n.textBorderColor,u=ve(s);if(_e(t,"shadowBlur",n.textBoxShadowBlur||0),_e(t,"shadowColor",n.textBoxShadowColor||"transparent"),_e(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),_e(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),u||l&&h){t.beginPath();var c=n.textBorderRadius;c?ic(t,{x:i,y:r,width:a,height:o,r:c}):t.rect(i,r,a,o),t.closePath()}if(u)if(_e(t,"fillStyle",s),n.fillOpacity!=null){var f=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=f}else t.fill();else if($e(s))_e(t,"fillStyle",s(n)),t.fill();else if(F(s)){var d=s.image;d=Ku(d,null,e,Nm,s),d&&Hr(d)&&t.drawImage(d,i,r,a,o)}if(l&&h)if(_e(t,"lineWidth",l),_e(t,"strokeStyle",h),n.strokeOpacity!=null){var f=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=f}else t.stroke()}function Nm(e,t){t.image=e}function sc(e,t,n){var i=t.x||0,r=t.y||0,a=t.textAlign,o=t.textVerticalAlign;if(n){var s=t.textPosition;if(s instanceof Array)i=n.x+hc(s[0],n.width),r=n.y+hc(s[1],n.height);else{var l=$u(s,n,t.textDistance);i=l.x,r=l.y,a=a||l.textAlign,o=o||l.textVerticalAlign}var h=t.textOffset;h&&(i+=h[0],r+=h[1])}return{baseX:i,baseY:r,textAlign:a,textVerticalAlign:o}}function _e(e,t,n){return e[t]=Xl(e,t,n),e[t]}function ls(e,t){return e==null||0>=t||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function lc(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function hc(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function uc(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function cc(e,t){return e!=null&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}function Le(e){e=e||{},Nt.call(this,e);for(var t in e)e.hasOwnProperty(t)&&t!=="style"&&(this[t]=e[t]);this.style=new en(e.style,this),this._rect=null,this.__clipPaths=[]}function Oe(e){Le.call(this,e)}function Xr(e){return parseInt(e,10)}function Fm(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Vm(e,t,n){return nh.copy(e.getBoundingRect()),e.transform&&nh.applyTransform(e.transform),ih.width=t,ih.height=n,!nh.intersect(ih)}function Wm(e,t){if(e==t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0}function Gm(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.setTransform(t),t.beginPath(),i.buildPath(t,i.shape),t.clip(),i.restoreTransform(t)}}function Hm(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function dc(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Zm(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}function fc(e){return e==="mousewheel"&&X.browser.firefox?"DOMMouseScroll":e}function hs(e,t,n){var i=e._gestureMgr;n==="start"&&i.clear();var r=i.recognize(t,e.handler.findHover(t.zrX,t.zrY,null).target,e.dom);if(n==="end"&&i.clear(),r){var a=r.type;t.gestureEvent=a,e.handler.dispatchToElement({target:r.target},a,r.event)}}function us(e){e._touching=!0,clearTimeout(e._touchTimer),e._touchTimer=setTimeout(function(){e._touching=!1},700)}function pc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Xm(e){function t(n,i){return function(){return i._touching?void 0:n.apply(i,arguments)}}I(sh,function(n){e._handlers[n]=$(Xe[n],e)}),I($p,function(n){e._handlers[n]=$(Xe[n],e)}),I(Ba,function(n){e._handlers[n]=t(Xe[n],e)})}function cs(e){function t(n,i){I(n,function(r){om(e,fc(r),i._handlers[r])},i)}Se.call(this),this.dom=e,this._touching=!1,this._touchTimer,this._gestureMgr=new ah,this._handlers={},Xm(this),X.pointerEventsSupported?t($p,this):(X.touchEventsSupported&&t(sh,this),t(Ba,this))}function ds(e,t){var n=new lh(Lp(),e,t);return zn[n.id]=n,n}function qm(e){if(e)e.dispose();else{for(var t in zn)zn.hasOwnProperty(t)&&zn[t].dispose();zn={}}return this}function Um(e){return zn[e]}function gc(e,t){Na[e]=t}function jm(e){delete zn[e]}function Ve(e){return e instanceof Array?e:e==null?[]:[e]}function qr(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;r>i;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function Ni(e){return!gi(e)||K_(e)||e instanceof Date?e:e.value}function Ym(e){return gi(e)&&!(e instanceof Array)}function mc(e,t){t=(t||[]).slice();var n=O(e||[],function(i){return{exist:i}});return pi(t,function(i,r){if(gi(i)){for(var a=0;a<n.length;a++)if(!n[a].option&&i.id!=null&&n[a].exist.id===i.id+"")return n[a].option=i,void(t[r]=null);for(var a=0;a<n.length;a++){var o=n[a].exist;if(!(n[a].option||o.id!=null&&i.id!=null||i.name==null||Ur(i)||Ur(o)||o.name!==i.name+""))return n[a].option=i,void(t[r]=null)}}}),pi(t,function(i){if(gi(i)){for(var r=0;r<n.length;r++){var a=n[r].exist;if(!n[r].option&&!Ur(a)&&i.id==null){n[r].option=i;break}}r>=n.length&&n.push({option:i})}}),n}function Km(e){var t=q();pi(e,function(n){var i=n.exist;i&&t.set(i.id,n)}),pi(e,function(n){var i=n.option;jn(!i||i.id==null||!t.get(i.id)||t.get(i.id)===n,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,n),!n.keyInfo&&(n.keyInfo={})}),pi(e,function(n,i){var r=n.exist,a=n.option,o=n.keyInfo;if(gi(a)){if(o.name=a.name!=null?a.name+"":r?r.name:Jp+i,r)o.id=r.id;else if(a.id!=null)o.id=a.id+"";else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,n)}})}function fs(e){var t=e.name;return!(!t||!t.indexOf(Jp))}function Ur(e){return gi(e)&&e.id&&(e.id+"").indexOf("\0_ec_\0")===0}function jr(e,t){return t.dataIndexInside!=null?t.dataIndexInside:t.dataIndex!=null?R(t.dataIndex)?O(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex):t.name!=null?R(t.name)?O(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name):void 0}function ht(){var e="__\0ec_inner_"+$_+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}function ps(e,t,n){if(ve(t)){var i={};i[t+"Index"]=0,t=i}var r=n&&n.defaultMainType;!r||gs(t,r+"Index")||gs(t,r+"Id")||gs(t,r+"Name")||(t[r+"Index"]=0);var a={};return pi(t,function(l,s){var l=t[s];if(s==="dataIndex"||s==="dataIndexInside")return void(a[s]=l);var h=s.match(/^(\w+)(Index|Id|Name)$/)||[],u=h[1],c=(h[2]||"").toLowerCase();if(!(!u||!c||l==null||c==="index"&&l==="none"||n&&n.includeMainTypes&&J(n.includeMainTypes,u)<0)){var f={mainType:u};(c!=="index"||l!=="all")&&(f[c]=l);var d=e.queryComponents(f);a[u+"Models"]=d,a[u+"Model"]=d[0]}}),a}function gs(e,t){return e&&e.hasOwnProperty(t)}function vc(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function $m(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function yc(e){return e==="auto"?X.domSupported?"html":"richText":e||"html"}function Zt(e){var t={main:"",sub:""};return e&&(e=e.split(Q_),t.main=e[0]||"",t.sub=e[1]||""),t}function Qm(e){jn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Fi(e){e.$constructor=e,e.extend=function(t){var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return H(i.prototype,t),i.extend=this.extend,i.superCall=Jm,i.superApply=ev,be(i,this),i.superClass=n,i}}function xc(e){var t=["__\0is_clz",J_++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!(!n||!n[t])}}function Jm(e,t){var n=Bo(arguments,2);return this.superClass.prototype[t].apply(e,n)}function ev(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Yr(e,t){function n(a){var o=i[a.main];return o&&o[En]||(o=i[a.main]={},o[En]=!0),o}t=t||{};var i={};if(e.registerClass=function(a,o){if(o)if(Qm(o),o=Zt(o),o.sub){if(o.sub!==En){var s=n(o);s[o.sub]=a}}else i[o.main]=a;return a},e.getClass=function(a,o,s){var l=i[a];if(l&&l[En]&&(l=o?l[o]:null),s&&!l)throw new Error(o?"Component "+a+"."+(o||"")+" not exists. Load it first.":a+".type should be specified.");return l},e.getClassesByMainType=function(a){a=Zt(a);var o=[],s=i[a.main];return s&&s[En]?I(s,function(l,h){h!==En&&o.push(l)}):o.push(s),o},e.hasClass=function(a){return a=Zt(a),!!i[a.main]},e.getAllClassMainTypes=function(){var a=[];return I(i,function(o,s){a.push(s)}),a},e.hasSubTypes=function(a){a=Zt(a);var o=i[a.main];return o&&o[En]},e.parseClassType=Zt,t.registerWhenExtend){var r=e.extend;r&&(e.extend=function(a){var o=r.call(this,a);return e.registerClass(o,a.type)})}return e}function Xt(e){return e>-Wa&&Wa>e}function _c(e){return e>Wa||-Wa>e}function De(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function wc(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)}function tv(e,t,n,i,r,a){var o=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),h=e-r,u=s*s-3*o*l,c=s*l-9*o*h,f=l*l-3*s*h,d=0;if(Xt(u)&&Xt(c))if(Xt(s))a[0]=0;else{var p=-l/s;p>=0&&1>=p&&(a[d++]=p)}else{var v=c*c-4*u*f;if(Xt(v)){var g=c/u,p=-s/o+g,m=-g/2;p>=0&&1>=p&&(a[d++]=p),m>=0&&1>=m&&(a[d++]=m)}else if(v>0){var y=tn(v),x=u*s+1.5*o*(-c+y),w=u*s+1.5*o*(-c-y);x=0>x?-Va(-x,Ga):Va(x,Ga),w=0>w?-Va(-w,Ga):Va(w,Ga);var p=(-s-(x+w))/(3*o);p>=0&&1>=p&&(a[d++]=p)}else{var S=(2*u*s-3*o*c)/(2*tn(u*u*u)),b=Math.acos(S)/3,_=tn(u),M=Math.cos(b),p=(-s-2*_*M)/(3*o),m=(-s+_*(M+ng*Math.sin(b)))/(3*o),A=(-s+_*(M-ng*Math.sin(b)))/(3*o);p>=0&&1>=p&&(a[d++]=p),m>=0&&1>=m&&(a[d++]=m),A>=0&&1>=A&&(a[d++]=A)}}return d}function bc(e,t,n,i,r){var a=6*n-12*t+6*e,o=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(Xt(o)){if(_c(a)){var h=-s/a;h>=0&&1>=h&&(r[l++]=h)}}else{var u=a*a-4*o*s;if(Xt(u))r[0]=-a/(2*o);else if(u>0){var c=tn(u),h=(-a+c)/(2*o),f=(-a-c)/(2*o);h>=0&&1>=h&&(r[l++]=h),f>=0&&1>=f&&(r[l++]=f)}}return l}function Sc(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,h=(s-o)*r+o,u=(l-s)*r+s,c=(u-h)*r+h;a[0]=e,a[1]=o,a[2]=h,a[3]=c,a[4]=c,a[5]=u,a[6]=l,a[7]=i}function nv(e,t,n,i,r,a,o,s,l,h,u){var c,f,d,p,v,g=.005,m=1/0;xt[0]=l,xt[1]=h;for(var y=0;1>y;y+=.05)nt[0]=De(e,n,r,o,y),nt[1]=De(t,i,a,s,y),p=Pn(xt,nt),m>p&&(c=y,m=p);m=1/0;for(var x=0;32>x&&!(tg>g);x++)f=c-g,d=c+g,nt[0]=De(e,n,r,o,f),nt[1]=De(t,i,a,s,f),p=Pn(nt,xt),f>=0&&m>p?(c=f,m=p):(mi[0]=De(e,n,r,o,d),mi[1]=De(t,i,a,s,d),v=Pn(mi,xt),1>=d&&m>v?(c=d,m=v):g*=.5);return u&&(u[0]=De(e,n,r,o,c),u[1]=De(t,i,a,s,c)),tn(m)}function ze(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function Mc(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function iv(e,t,n,i,r){var a=e-2*t+n,o=2*(t-e),s=e-i,l=0;if(Xt(a)){if(_c(o)){var h=-s/o;h>=0&&1>=h&&(r[l++]=h)}}else{var u=o*o-4*a*s;if(Xt(u)){var h=-o/(2*a);h>=0&&1>=h&&(r[l++]=h)}else if(u>0){var c=tn(u),h=(-o+c)/(2*a),f=(-o-c)/(2*a);h>=0&&1>=h&&(r[l++]=h),f>=0&&1>=f&&(r[l++]=f)}}return l}function Ic(e,t,n){var i=e+n-2*t;return i===0?.5:(e-t)/i}function Ac(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function rv(e,t,n,i,r,a,o,s,l){var h,u=.005,c=1/0;xt[0]=o,xt[1]=s;for(var f=0;1>f;f+=.05){nt[0]=ze(e,n,r,f),nt[1]=ze(t,i,a,f);var d=Pn(xt,nt);c>d&&(h=f,c=d)}c=1/0;for(var p=0;32>p&&!(tg>u);p++){var v=h-u,g=h+u;nt[0]=ze(e,n,r,v),nt[1]=ze(t,i,a,v);var d=Pn(nt,xt);if(v>=0&&c>d)h=v,c=d;else{mi[0]=ze(e,n,r,g),mi[1]=ze(t,i,a,g);var m=Pn(mi,xt);1>=g&&c>m?(h=g,c=m):u*=.5}}return l&&(l[0]=ze(e,n,r,h),l[1]=ze(t,i,a,h)),tn(c)}function av(e,t,n){if(e.length!==0){var i,r=e[0],a=r[0],o=r[0],s=r[1],l=r[1];for(i=1;i<e.length;i++)r=e[i],a=Re(a,r[0]),o=Be(o,r[0]),s=Re(s,r[1]),l=Be(l,r[1]);t[0]=a,t[1]=s,n[0]=o,n[1]=l}}function Cc(e,t,n,i,r,a){r[0]=Re(e,n),r[1]=Re(t,i),a[0]=Be(e,n),a[1]=Be(t,i)}function ov(e,t,n,i,r,a,o,s,l,h){var u,c=bc,f=De,d=c(e,n,r,o,ig);for(l[0]=1/0,l[1]=1/0,h[0]=-1/0,h[1]=-1/0,u=0;d>u;u++){var p=f(e,n,r,o,ig[u]);l[0]=Re(p,l[0]),h[0]=Be(p,h[0])}for(d=c(t,i,a,s,rg),u=0;d>u;u++){var v=f(t,i,a,s,rg[u]);l[1]=Re(v,l[1]),h[1]=Be(v,h[1])}l[0]=Re(e,l[0]),h[0]=Be(e,h[0]),l[0]=Re(o,l[0]),h[0]=Be(o,h[0]),l[1]=Re(t,l[1]),h[1]=Be(t,h[1]),l[1]=Re(s,l[1]),h[1]=Be(s,h[1])}function sv(e,t,n,i,r,a,o,s){var l=Ic,h=ze,u=Be(Re(l(e,n,r),1),0),c=Be(Re(l(t,i,a),1),0),f=h(e,n,r,u),d=h(t,i,a,c);o[0]=Re(e,r,f),o[1]=Re(t,a,d),s[0]=Be(e,r,f),s[1]=Be(t,a,d)}function lv(e,t,n,i,r,a,o,s,l){var h=Pt,u=Lt,c=Math.abs(r-a);if(1e-4>c%Rn&&c>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(Ha[0]=uh(r)*n+e,Ha[1]=hh(r)*i+t,Za[0]=uh(a)*n+e,Za[1]=hh(a)*i+t,h(s,Ha,Za),u(l,Ha,Za),r%=Rn,0>r&&(r+=Rn),a%=Rn,0>a&&(a+=Rn),r>a&&!o?a+=Rn:a>r&&o&&(r+=Rn),o){var f=a;a=r,r=f}for(var d=0;a>d;d+=Math.PI/2)d>r&&(Xa[0]=uh(d)*n+e,Xa[1]=hh(d)*i+t,h(s,Xa,s),u(l,Xa,l))}function ti(e,t,n,i,r,a,o){if(r===0)return!1;var s=r,l=0,h=e;if(o>t+s&&o>i+s||t-s>o&&i-s>o||a>e+s&&a>n+s||e-s>a&&n-s>a)return!1;if(e===n)return Math.abs(a-e)<=s/2;l=(t-i)/(e-n),h=(e*i-n*t)/(e-n);var u=l*a-o+h,c=u*u/(l*l+1);return s/2*s/2>=c}function hv(e,t,n,i,r,a,o,s,l,h,u){if(l===0)return!1;var c=l;if(u>t+c&&u>i+c&&u>a+c&&u>s+c||t-c>u&&i-c>u&&a-c>u&&s-c>u||h>e+c&&h>n+c&&h>r+c&&h>o+c||e-c>h&&n-c>h&&r-c>h&&o-c>h)return!1;var f=nv(e,t,n,i,r,a,o,s,h,u,null);return c/2>=f}function uv(e,t,n,i,r,a,o,s,l){if(o===0)return!1;var h=o;if(l>t+h&&l>i+h&&l>a+h||t-h>l&&i-h>l&&a-h>l||s>e+h&&s>n+h&&s>r+h||e-h>s&&n-h>s&&r-h>s)return!1;var u=rv(e,t,n,i,r,a,s,l,null);return h/2>=u}function qt(e){return e%=sg,0>e&&(e+=sg),e}function cv(e,t,n,i,r,a,o,s,l){if(o===0)return!1;var h=o;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-h>n||n>u+h)return!1;if(Math.abs(i-r)%yr<1e-4)return!0;if(a){var c=i;i=qt(r),r=qt(c)}else i=qt(i),r=qt(r);i>r&&(r+=yr);var f=Math.atan2(l,s);return 0>f&&(f+=yr),f>=i&&r>=f||f+yr>=i&&r>=f+yr}function zt(e,t,n,i,r,a){if(a>t&&a>i||t>a&&i>a||i===t)return 0;var o=t>i?1:-1,s=(a-t)/(i-t);(s===1||s===0)&&(o=t>i?.5:-.5);var l=s*(n-e)+e;return l===r?1/0:l>r?o:0}function dv(e,t){return Math.abs(e-t)<rw}function fv(){var e=it[0];it[0]=it[1],it[1]=e}function pv(e,t,n,i,r,a,o,s,l,h){if(h>t&&h>i&&h>a&&h>s||t>h&&i>h&&a>h&&s>h)return 0;var u=tv(t,i,a,s,h,ke);if(u===0)return 0;for(var c,f,d=0,p=-1,v=0;u>v;v++){var g=ke[v],m=g===0||g===1?.5:1,y=De(e,n,r,o,g);l>y||(0>p&&(p=bc(t,i,a,s,it),it[1]<it[0]&&p>1&&fv(),c=De(t,i,a,s,it[0]),p>1&&(f=De(t,i,a,s,it[1]))),d+=p==2?g<it[0]?t>c?m:-m:g<it[1]?c>f?m:-m:f>s?m:-m:g<it[0]?t>c?m:-m:c>s?m:-m)}return d}function gv(e,t,n,i,r,a,o,s){if(s>t&&s>i&&s>a||t>s&&i>s&&a>s)return 0;var l=iv(t,i,a,s,ke);if(l===0)return 0;var h=Ic(t,i,a);if(h>=0&&1>=h){for(var u=0,c=ze(t,i,a,h),f=0;l>f;f++){var d=ke[f]===0||ke[f]===1?.5:1,p=ze(e,n,r,ke[f]);o>p||(u+=ke[f]<h?t>c?d:-d:c>a?d:-d)}return u}var d=ke[0]===0||ke[0]===1?.5:1,p=ze(e,n,r,ke[0]);return o>p?0:t>a?d:-d}function mv(e,t,n,i,r,a,o,s){if(s-=t,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);ke[0]=-l,ke[1]=l;var h=Math.abs(i-r);if(1e-4>h)return 0;if(1e-4>h%yi){i=0,r=yi;var u=a?1:-1;return o>=ke[0]+e&&o<=ke[1]+e?u:0}if(a){var l=i;i=qt(r),r=qt(l)}else i=qt(i),r=qt(r);i>r&&(r+=yi);for(var c=0,f=0;2>f;f++){var d=ke[f];if(d+e>o){var p=Math.atan2(s,d),u=a?1:-1;0>p&&(p=yi+p),(p>=i&&r>=p||p+yi>=i&&r>=p+yi)&&(p>Math.PI/2&&p<1.5*Math.PI&&(u=-u),c+=u)}}return c}function Dc(e,t,n,i,r){for(var a=0,o=0,s=0,l=0,h=0,u=0;u<e.length;){var c=e[u++];switch(c===rn.M&&u>1&&(n||(a+=zt(o,s,l,h,i,r))),u==1&&(o=e[u],s=e[u+1],l=o,h=s),c){case rn.M:l=e[u++],h=e[u++],o=l,s=h;break;case rn.L:if(n){if(ti(o,s,e[u],e[u+1],t,i,r))return!0}else a+=zt(o,s,e[u],e[u+1],i,r)||0;o=e[u++],s=e[u++];break;case rn.C:if(n){if(hv(o,s,e[u++],e[u++],e[u++],e[u++],e[u],e[u+1],t,i,r))return!0}else a+=pv(o,s,e[u++],e[u++],e[u++],e[u++],e[u],e[u+1],i,r)||0;o=e[u++],s=e[u++];break;case rn.Q:if(n){if(uv(o,s,e[u++],e[u++],e[u],e[u+1],t,i,r))return!0}else a+=gv(o,s,e[u++],e[u++],e[u],e[u+1],i,r)||0;o=e[u++],s=e[u++];break;case rn.A:var f=e[u++],d=e[u++],p=e[u++],v=e[u++],g=e[u++],m=e[u++],y=(e[u++],1-e[u++]),b=Math.cos(g)*p+f,_=Math.sin(g)*v+d;u>1?a+=zt(o,s,b,_,i,r):(l=b,h=_);var x=(i-f)*v/p+f;if(n){if(cv(f,d,v,g,g+m,y,t,x,r))return!0}else a+=mv(f,d,v,g,g+m,y,x,r);o=Math.cos(g+m)*p+f,s=Math.sin(g+m)*v+d;break;case rn.R:l=o=e[u++],h=s=e[u++];var w=e[u++],S=e[u++],b=l+w,_=h+S;if(n){if(ti(l,h,b,h,t,i,r)||ti(b,h,b,_,t,i,r)||ti(b,_,l,_,t,i,r)||ti(l,_,l,h,t,i,r))return!0}else a+=zt(b,h,b,_,i,r),a+=zt(l,_,l,h,i,r);break;case rn.Z:if(n){if(ti(o,s,l,h,t,i,r))return!0}else a+=zt(o,s,l,h,i,r);o=l,s=h}}return n||dv(s,h)||(a+=zt(o,s,l,h,i,r)||0),a!==0}function vv(e,t,n){return Dc(e,0,!1,t,n)}function yv(e,t,n,i){return Dc(e,t,!0,n,i)}function U(e){Le.call(this,e),this.path=null}function Tc(e,t,n,i,r,a,o,s,l,h,u){var c=l*(Ya/180),f=ja(c)*(e-n)/2+Ua(c)*(t-i)/2,d=-1*Ua(c)*(e-n)/2+ja(c)*(t-i)/2,p=f*f/(o*o)+d*d/(s*s);p>1&&(o*=fh(p),s*=fh(p));var v=(r===a?-1:1)*fh((o*o*s*s-o*o*d*d-s*s*f*f)/(o*o*d*d+s*s*f*f))||0,g=v*o*d/s,m=v*-s*f/o,y=(e+n)/2+ja(c)*g-Ua(c)*m,x=(t+i)/2+Ua(c)*g+ja(c)*m,w=cg([1,0],[(f-g)/o,(d-m)/s]),S=[(f-g)/o,(d-m)/s],b=[(-1*f-g)/o,(-1*d-m)/s],_=cg(S,b);ph(S,b)<=-1&&(_=Ya),ph(S,b)>=1&&(_=0),a===0&&_>0&&(_-=2*Ya),a===1&&0>_&&(_+=2*Ya),u.addData(h,y,x,o,s,w,_,c,a)}function xv(e){if(!e)return new qe;for(var t,n=0,i=0,r=n,a=i,o=new qe,s=qe.CMD,l=e.match(hw),h=0;h<l.length;h++){for(var u,c=l[h],f=c.charAt(0),d=c.match(uw)||[],p=d.length,v=0;p>v;v++)d[v]=parseFloat(d[v]);for(var g=0;p>g;){var m,y,x,w,S,b,_,M=n,A=i;switch(f){case"l":n+=d[g++],i+=d[g++],u=s.L,o.addData(u,n,i);break;case"L":n=d[g++],i=d[g++],u=s.L,o.addData(u,n,i);break;case"m":n+=d[g++],i+=d[g++],u=s.M,o.addData(u,n,i),r=n,a=i,f="l";break;case"M":n=d[g++],i=d[g++],u=s.M,o.addData(u,n,i),r=n,a=i,f="L";break;case"h":n+=d[g++],u=s.L,o.addData(u,n,i);break;case"H":n=d[g++],u=s.L,o.addData(u,n,i);break;case"v":i+=d[g++],u=s.L,o.addData(u,n,i);break;case"V":i=d[g++],u=s.L,o.addData(u,n,i);break;case"C":u=s.C,o.addData(u,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),n=d[g-2],i=d[g-1];break;case"c":u=s.C,o.addData(u,d[g++]+n,d[g++]+i,d[g++]+n,d[g++]+i,d[g++]+n,d[g++]+i),n+=d[g-2],i+=d[g-1];break;case"S":m=n,y=i;var C=o.len(),D=o.data;t===s.C&&(m+=n-D[C-4],y+=i-D[C-3]),u=s.C,M=d[g++],A=d[g++],n=d[g++],i=d[g++],o.addData(u,m,y,M,A,n,i);break;case"s":m=n,y=i;var C=o.len(),D=o.data;t===s.C&&(m+=n-D[C-4],y+=i-D[C-3]),u=s.C,M=n+d[g++],A=i+d[g++],n+=d[g++],i+=d[g++],o.addData(u,m,y,M,A,n,i);break;case"Q":M=d[g++],A=d[g++],n=d[g++],i=d[g++],u=s.Q,o.addData(u,M,A,n,i);break;case"q":M=d[g++]+n,A=d[g++]+i,n+=d[g++],i+=d[g++],u=s.Q,o.addData(u,M,A,n,i);break;case"T":m=n,y=i;var C=o.len(),D=o.data;t===s.Q&&(m+=n-D[C-4],y+=i-D[C-3]),n=d[g++],i=d[g++],u=s.Q,o.addData(u,m,y,n,i);break;case"t":m=n,y=i;var C=o.len(),D=o.data;t===s.Q&&(m+=n-D[C-4],y+=i-D[C-3]),n+=d[g++],i+=d[g++],u=s.Q,o.addData(u,m,y,n,i);break;case"A":x=d[g++],w=d[g++],S=d[g++],b=d[g++],_=d[g++],M=n,A=i,n=d[g++],i=d[g++],u=s.A,Tc(M,A,n,i,b,_,x,w,S,u,o);break;case"a":x=d[g++],w=d[g++],S=d[g++],b=d[g++],_=d[g++],M=n,A=i,n+=d[g++],i+=d[g++],u=s.A,Tc(M,A,n,i,b,_,x,w,S,u,o)}}(f==="z"||f==="Z")&&(u=s.Z,o.addData(u),n=r,i=a),t=u}return o.toStatic(),o}function kc(e,t){var n=xv(e);return t=t||{},t.buildPath=function(i){if(i.setData){i.setData(n.data);var r=i.getContext();r&&i.rebuildPath(r)}else{var r=i;n.rebuildPath(r)}},t.applyTransform=function(i){lw(n,i),this.dirty(!0)},t}function Pc(e,t){return new U(kc(e,t))}function _v(e,t){return U.extend(kc(e,t))}function wv(e,t){for(var n=[],i=e.length,r=0;i>r;r++){var a=e[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var o=new U(t);return o.createPathProxy(),o.buildPath=function(s){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l)},o}function Lc(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}function Oc(e,t,n){var i=t.points,r=t.smooth;if(i&&i.length>=2){if(r&&r!=="spline"){var a=fw(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;(n?o:o-1)>s;s++){var l=a[2*s],h=a[2*s+1],u=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{r==="spline"&&(i=dw(i,n)),e.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}function zc(e,t,n){var i=e.cpx2,r=e.cpy2;return i===null||r===null?[(n?wc:De)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?wc:De)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Mc:ze)(e.x1,e.cpx1,e.x2,t),(n?Mc:ze)(e.y1,e.cpy1,e.y2,t)]}function ut(e){Le.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function Mn(e){return U.extend(e)}function bv(e,t){return _v(e,t)}function Vi(e,t,n,i){var r=Pc(e,t);return n&&(i==="center"&&(n=Rc(n,r.getBoundingRect())),Bc(r,n)),r}function Ec(e,t,n){var i=new Oe({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(n==="center"){var a={width:r.width,height:r.height};i.setStyle(Rc(t,a))}}});return i}function Rc(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}function Bc(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Wi(e){var t=e.shape,n=e.style.lineWidth;return wi(2*t.x1)===wi(2*t.x2)&&(t.x1=t.x2=In(t.x1,n,!0)),wi(2*t.y1)===wi(2*t.y2)&&(t.y1=t.y2=In(t.y1,n,!0)),e}function ms(e){var t=e.shape,n=e.style.lineWidth,i=t.x,r=t.y,a=t.width,o=t.height;return t.x=In(t.x,n,!0),t.y=In(t.y,n,!0),t.width=Math.max(In(i+a,n,!1)-t.x,a===0?0:1),t.height=Math.max(In(r+o,n,!1)-t.y,o===0?0:1),e}function In(e,t,n){var i=wi(2*e);return(i+wi(t))%2===0?i/2:(i+(n?1:-1))/2}function Nc(e){return e!=null&&e!=="none"}function Sv(e){if(typeof e!="string")return e;var t=pg.get(e);return t||(t=Ou(e,-.1),1e4>gg&&(pg.set(e,t),gg++)),t}function Mv(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(!t)return void(e.__normalStl=null);var n=e.__normalStl={},i=e.style;for(var r in t)t[r]!=null&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}}function vs(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.useHoverLayer;e.__highlighted=n?"layer":"plain";var i=e.__zr;if(i||!n){var r=e,a=e.style;n&&(r=i.addHover(e),a=r.style),Gc(a),n||Mv(r),a.extendFrom(t),Fc(a,t,"fill"),Fc(a,t,"stroke"),ws(a),n||(e.dirty(!1),e.z2+=1)}}}function Fc(e,t,n){!Nc(t[n])&&Nc(e[n])&&(e[n]=Sv(e[n]))}function ys(e){e.__highlighted&&(Iv(e),e.__highlighted=!1)}function Iv(e){var t=e.__highlighted;if(t==="layer")e.__zr&&e.__zr.removeHover(e);else if(t){var n=e.style,i=e.__normalStl;i&&(Gc(n),e.setStyle(i),ws(n),e.z2-=1)}}function Kr(e,t){e.isGroup?e.traverse(function(n){!n.isGroup&&t(n)}):t(e)}function $r(e,t){t=e.__hoverStl=t!==!1&&(t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(ys(e),vs(e))}function xs(e){return e&&e.__isEmphasisEntered}function Av(e){this.__hoverSilentOnTouch&&e.zrByTouch||!this.__isEmphasisEntered&&Kr(this,vs)}function Cv(e){this.__hoverSilentOnTouch&&e.zrByTouch||!this.__isEmphasisEntered&&Kr(this,ys)}function Dv(){this.__isEmphasisEntered=!0,Kr(this,vs)}function Tv(){this.__isEmphasisEntered=!1,Kr(this,ys)}function yt(e,t,n){e.isGroup?e.traverse(function(i){!i.isGroup&&$r(i,i.hoverStyle||t)}):$r(e,e.hoverStyle||t),_s(e,n)}function _s(e,t){var n=t===!1;if(e.__hoverSilentOnTouch=t!=null&&t.hoverSilentOnTouch,!n||e.__hoverStyleTrigger){var i=n?"off":"on";e[i]("mouseover",Av)[i]("mouseout",Cv),e[i]("emphasis",Dv)[i]("normal",Tv),e.__hoverStyleTrigger=!n}}function Gi(e,t,n,i,r,a,o){r=r||to;var s,l=r.labelFetcher,h=r.labelDataIndex,u=r.labelDimIndex,c=n.getShallow("show"),f=i.getShallow("show");(c||f)&&(l&&(s=l.getFormattedLabel(h,"normal",null,u)),s==null&&(s=$e(r.defaultText)?r.defaultText(h,r):r.defaultText));var d=c?s:null,p=f?Ce(l?l.getFormattedLabel(h,"emphasis",null,u):null,s):null;(d!=null||p!=null)&&(We(e,n,a,r),We(t,i,o,r,!0)),e.text=d,t.text=p}function We(e,t,n,i,r){return Vc(e,t,i,r),n&&H(e,n),e}function kv(e,t,n){var i,r={isRectText:!0};n===!1?i=!0:r.autoColor=n,Vc(e,t,r,i)}function Vc(e,t,n,i){if(n=n||to,n.isRectText){var r=t.getShallow("position")||(i?null:"inside");r==="outside"&&(r="top"),e.textPosition=r,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");a!=null&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=Ce(t.getShallow("distance"),i?null:5)}var o,s=t.ecModel,l=s&&s.option.textStyle,h=Pv(t);if(h){o={};for(var u in h)if(h.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Wc(o[u]={},c,l,n,i)}}return e.rich=o,Wc(e,t,l,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function Pv(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||to).rich;if(n){t=t||{};for(var i in n)n.hasOwnProperty(i)&&(t[i]=1)}e=e.parentModel}return t}function Wc(e,t,n,i,r,a){n=!r&&n||to,e.textFill=Qr(t.getShallow("color"),i)||n.color,e.textStroke=Qr(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=Ce(t.getShallow("textBorderWidth"),n.textBorderWidth),e.insideRawTextPosition=e.textPosition,r||(a&&(e.insideRollbackOpt=i,ws(e)),e.textFill==null&&(e.textFill=i.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&i.disableBox||(e.textBackgroundColor=Qr(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=Qr(t.getShallow("borderColor"),i),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function Qr(e,t){return e!=="auto"?e:t&&t.autoColor?t.autoColor:null}function ws(e){var t=e.insideRollbackOpt;if(t&&e.textFill==null){var n,i=t.useInsideStyle,r=e.insideRawTextPosition,a=t.autoColor;i!==!1&&(i===!0||t.isRectText&&r&&typeof r=="string"&&r.indexOf("inside")>=0)?(n={textFill:null,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth},e.textFill="#fff",e.textStroke==null&&(e.textStroke=a,e.textStrokeWidth==null&&(e.textStrokeWidth=2))):a!=null&&(n={textFill:null},e.textFill=a),n&&(e.insideRollback=n)}}function Gc(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function bs(e,t){var n=t||t.getModel("textStyle");return Qe([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Hc(e,t,n,i,r,a){typeof r=="function"&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=e?"Update":"",l=i.getShallow("animationDuration"+s),h=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);typeof u=="function"&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),typeof l=="function"&&(l=l(r)),l>0?t.animateTo(n,l,u||0,h,a,!!a):(t.stopAnimation(),t.attr(n),a&&a())}else t.stopAnimation(),t.attr(n),a&&a()}function ye(e,t,n,i,r){Hc(!0,e,t,n,i,r)}function Ut(e,t,n,i,r){Hc(!1,e,t,n,i,r)}function Zc(e,t){for(var n=Ei([]);e&&e!==t;)_n(n,e.getLocalTransform(),n),e=e.parent;return n}function ni(e,t,n){return t&&!Tt(t)&&(t=di.getLocalTransform(t)),n&&(t=Uo([],t)),ne([],e,t)}function Xc(e,t,n){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-r:e==="bottom"?r:0];return a=ni(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function qc(e,t,n){function i(o){var s={};return o.traverse(function(l){!l.isGroup&&l.anid&&(s[l.anid]=l)}),s}function r(o){var s={position:Vo(o.position),rotation:o.rotation};return o.shape&&(s.shape=H({},o.shape)),s}if(e&&t){var a=i(e);t.traverse(function(o){if(!o.isGroup&&o.anid){var s=a[o.anid];if(s){var l=r(o);o.attr(r(s)),ye(o,l,n,o.dataIndex)}}})}}function Lv(e,t){return O(e,function(n){var i=n[0];i=Ja(i,t.x),i=eo(i,t.x+t.width);var r=n[1];return r=Ja(r,t.y),r=eo(r,t.y+t.height),[i,r]})}function Ov(e,t){var n=Ja(e.x,t.x),i=eo(e.x+e.width,t.x+t.width),r=Ja(e.y,t.y),a=eo(e.y+e.height,t.y+t.height);return i>=n&&a>=r?{x:n,y:r,width:i-n,height:a-r}:void 0}function Jr(e,t,n){t=H({rectHover:!0},t);var i=t.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},e?e.indexOf("image://")===0?(i.image=e.slice(8),Z(i,n),new Oe(t)):Vi(e.replace("path://",""),t,n,"center"):void 0}function oe(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function Uc(e,t,n){for(var i=0;i<t.length&&(!t[i]||(e=e&&typeof e=="object"?e[t[i]]:null,e!=null));i++);return e==null&&n&&(e=n.get(t)),e}function Ss(e,t){var n=mg(e).getParent;return n?n.call(e,t):e.parentModel}function ea(e){return[e||"",ww++,Math.random().toFixed(5)].join("_")}function zv(e){var t={};return e.registerSubTypeDefaulter=function(n,i){n=Zt(n),t[n.main]=i},e.determineSubType=function(n,i){var r=i.type;if(!r){var a=Zt(n).main;e.hasSubTypes(n)&&t[a]&&(r=t[a](i))}return r},e}function Ev(e,t){function n(a){var o={},s=[];return I(a,function(l){var h=i(o,l),u=h.originalDeps=t(l),c=r(u,a);h.entryCount=c.length,h.entryCount===0&&s.push(l),I(c,function(f){J(h.predecessor,f)<0&&h.predecessor.push(f);var d=i(o,f);J(d.successor,f)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function r(a,o){var s=[];return I(a,function(l){J(o,l)>=0&&s.push(l)}),s}e.topologicalTravel=function(a,o,s,l){function h(y){f[y].entryCount--,f[y].entryCount===0&&d.push(y)}function u(y){p[y]=!0,h(y)}if(a.length){var c=n(o),f=c.graph,d=c.noEntryList,p={};for(I(a,function(y){p[y]=!0});d.length;){var v=d.pop(),g=f[v],m=!!p[v];m&&(s.call(l,v,g.originalDeps.slice()),delete p[v]),I(g.successor,m?u:h)}I(p,function(){throw new Error("Circle dependency may exists")})}}}function Rv(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function jt(e,t,n,i){var r=t[1]-t[0],a=n[1]-n[0];if(r===0)return a===0?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*a+n[0]}function Q(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return typeof e=="string"?Rv(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ee(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function ta(e){return e.sort(function(t,n){return t-n}),e}function jc(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}function na(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return 0>i?-i:0}var r=t.indexOf(".");return 0>r?0:t.length-1-r}function Ms(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),a=Math.round(n(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function Yc(e,t,n){if(!e[t])return 0;var i=Li(e,function(p,v){return p+(isNaN(v)?0:v)},0);if(i===0)return 0;for(var r=Math.pow(10,n),a=O(e,function(p){return(isNaN(p)?0:p)/i*r*100}),o=100*r,s=O(a,function(p){return Math.floor(p)}),l=Li(s,function(p,v){return p+v},0),h=O(a,function(p,v){return p-s[v]});o>l;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=h.length;d>f;++f)h[f]>u&&(u=h[f],c=f);++s[c],h[c]=0,++l}return s[t]/r}function Is(e){var t=2*Math.PI;return(e%t+t)%t}function Hi(e){return e>-vg&&vg>e}function ia(e){if(e instanceof Date)return e;if(typeof e=="string"){var t=Sw.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return new Date(e==null?NaN:Math.round(e))}function Kc(e){return Math.pow(10,$c(e))}function $c(e){return Math.floor(Math.log(e)/Math.LN10)}function As(e,t){var n,i=$c(e),r=Math.pow(10,i),a=e/r;return n=t?1.5>a?1:2.5>a?2:4>a?3:7>a?5:10:1>a?1:2>a?2:3>a?3:5>a?5:10,e=n*r,i>=-20?+e.toFixed(0>i?-i:0):e}function Bv(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],a=n-i;return a?r+a*(e[i]-r):r}function Nv(e){function t(l,h,u){return l.interval[u]<h.interval[u]||l.interval[u]===h.interval[u]&&(l.close[u]-h.close[u]===(u?-1:1)||!u&&t(l,h,1))}e.sort(function(l,h){return t(l,h,0)?-1:1});for(var n=-1/0,i=1,r=0;r<e.length;){for(var a=e[r].interval,o=e[r].close,s=0;2>s;s++)a[s]<=n&&(a[s]=n,o[s]=s?1:1-i),n=a[s],i=o[s];a[0]===a[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e}function Fv(e){return e-parseFloat(e)>=0}function Zi(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function Qc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function Ge(e){return e==null?"":(e+"").replace(Iw,function(t,n){return Aw[n]})}function Cs(e,t,n){R(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var o=yg[a];e=e.replace(vh(o),vh(o,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var h=t[s][r[l]];e=e.replace(vh(yg[l],s),n?Ge(h):h)}return e}function Vv(e,t,n){return I(t,function(i,r){e=e.replace("{"+r+"}",n?Ge(i):i)}),e}function ra(e,r){e=ve(e)?{color:e,extraCssText:r}:e||{};var n=e.color,i=e.type,r=e.extraCssText,a=e.renderMode||"html",o=e.markerId||"X";return n?a==="html"?i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ge(n)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Ge(n)+";"+(r||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:n}}:""}function ii(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ds(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var i=ia(t),r=n?"UTC":"",a=i["get"+r+"FullYear"](),o=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),u=i["get"+r+"Seconds"](),c=i["get"+r+"Milliseconds"]();return e=e.replace("MM",ii(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",ii(s,2)).replace("d",s).replace("hh",ii(l,2)).replace("h",l).replace("mm",ii(h,2)).replace("m",h).replace("ss",ii(u,2)).replace("s",u).replace("SSS",ii(c,3))}function Ts(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function ks(e,t,n,i,r){var a=0,o=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,h){var u,c,f=l.position,d=l.getBoundingRect(),p=t.childAt(h+1),v=p&&p.getBoundingRect();if(e==="horizontal"){var g=d.width+(v?-v.x+d.x:0);u=a+g,u>i||l.newline?(a=0,u=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(v?-v.y+d.y:0);c=o+m,c>r||l.newline?(a+=s+n,o=0,c=m,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,e==="horizontal"?a=u+n:o=c+n)})}function Yt(e,t,n){n=wr(n||0);var i=t.width,r=t.height,a=Q(e.left,i),o=Q(e.top,r),s=Q(e.right,i),l=Q(e.bottom,r),h=Q(e.width,i),u=Q(e.height,r),c=n[2]+n[0],f=n[1]+n[3],d=e.aspect;switch(isNaN(h)&&(h=i-s-f-a),isNaN(u)&&(u=r-l-c-o),d!=null&&(isNaN(h)&&isNaN(u)&&(d>i/r?h=.8*i:u=.8*r),isNaN(h)&&(h=d*u),isNaN(u)&&(u=h/d)),isNaN(a)&&(a=i-s-h-f),isNaN(o)&&(o=r-l-u-c),e.left||e.right){case"center":a=i/2-h/2-n[3];break;case"right":a=i-h-f}switch(e.top||e.bottom){case"middle":case"center":o=r/2-u/2-n[0];break;case"bottom":o=r-u-c}a=a||0,o=o||0,isNaN(h)&&(h=i-f-a-(s||0)),isNaN(u)&&(u=r-c-o-(l||0));var p=new ie(a+n[3],o+n[0],h,u);return p.margin=n,p}function ri(e,t,n){function i(u,c){var f={},d=0,p={},v=0,g=2;if(io(u,function(x){p[x]=e[x]}),io(u,function(x){r(t,x)&&(f[x]=p[x]=t[x]),a(f,x)&&d++,a(p,x)&&v++}),s[c])return a(t,u[1])?p[u[2]]=null:a(t,u[2])&&(p[u[1]]=null),p;if(v!==g&&d){if(d>=g)return f;for(var m=0;m<u.length;m++){var y=u[m];if(!r(f,y)&&r(e,y)){f[y]=e[y];break}}return f}return p}function r(u,c){return u.hasOwnProperty(c)}function a(u,c){return u[c]!=null&&u[c]!=="auto"}function o(u,c,f){io(u,function(d){c[d]=f[d]})}!F(n)&&(n={});var s=n.ignoreSize;!R(s)&&(s=[s,s]);var l=i(ro[0],0),h=i(ro[1],1);o(ro[0],e,l),o(ro[1],e,h)}function Xi(e){return Wv({},e)}function Wv(e,t){return t&&e&&io(Tw,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function Gv(e){var t=[];return I(te.getClassesByMainType(e),function(n){t=t.concat(n.prototype.dependencies||[])}),t=O(t,function(n){return Zt(n).main}),e!=="dataset"&&J(t,"dataset")<=0&&t.unshift("dataset"),t}function Hv(e,t){for(var n=e.length,i=0;n>i;i++)if(e[i].length>t)return e[i];return e[n-1]}function Jc(e){var t=e.get("coordinateSystem"),n={coordSysName:t,coordSysDims:[],axisMap:q(),categoryAxisMap:q()},i=Ow[t];return i?(i(e,n,n.axisMap,n.categoryAxisMap),n):void 0}function ai(e){return e.get("type")==="category"}function ct(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===oo?{}:[]),this.sourceFormat=e.sourceFormat||wg,this.seriesLayoutBy=e.seriesLayoutBy||bg,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&q(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}function Zv(e){var t=e.option.source,n=wg;if(gt(t))n=so;else if(R(t)){t.length===0&&(n=br);for(var i=0,r=t.length;r>i;i++){var a=t[i];if(a!=null){if(R(a)){n=br;break}if(F(a)){n=ao;break}}}}else if(F(t)){for(var o in t)if(t.hasOwnProperty(o)&&Tt(t[o])){n=oo;break}}else if(t!=null)throw new Error("Invalid data");bi(e).sourceFormat=n}function Xv(e){return bi(e).source}function qv(e){bi(e).datasetMap=q()}function ed(e){var t=e.option,n=t.data,i=gt(n)?so:Bn,r=!1,a=t.seriesLayoutBy,o=t.sourceHeader,s=t.dimensions,l=Kv(e);if(l){var h=l.option;n=h.source,i=bi(l).sourceFormat,r=!0,a=a||h.seriesLayoutBy,o==null&&(o=h.sourceHeader),s=s||h.dimensions}var u=Uv(n,i,a,o,s),c=t.encode;!c&&l&&(c=Yv(e,l,n,i,a,u)),bi(e).source=new ct({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:c})}function Uv(e,t,n,i,r){if(!e)return{dimensionsDefine:td(r)};var a,o,s;if(t===br)i==="auto"||i==null?nd(function(u){u!=null&&u!=="-"&&(ve(u)?o==null&&(o=1):o=0)},n,e,10):o=i?1:0,r||o!==1||(r=[],nd(function(u,c){r[c]=u!=null?u:""},n,e)),a=r?r.length:n===wh?e.length:e[0]?e[0].length:null;else if(t===ao)r||(r=jv(e),s=!0);else if(t===oo)r||(r=[],s=!0,I(e,function(u,c){r.push(c)}));else if(t===Bn){var l=Ni(e[0]);a=R(l)&&l.length||1}var h;return s&&I(r,function(u,c){(F(u)?u.name:u)==="name"&&(h=c)}),{startIndex:o,dimensionsDefine:td(r),dimensionsDetectCount:a,potentialNameDimIndex:h}}function td(e){if(e){var t=q();return O(e,function(n){if(n=H({},F(n)?n:{name:n}),n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function nd(e,t,n,i){if(i==null&&(i=1/0),t===wh)for(var r=0;r<n.length&&i>r;r++)e(n[r]?n[r][0]:null,r);else for(var a=n[0]||[],r=0;r<a.length&&i>r;r++)e(a[r],r)}function jv(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t){var i=[];return I(t,function(r,a){i.push(a)}),i}}function Yv(e,t,n,i,r,a){var o=Jc(e),s={},l=[],h=[],u=e.subType,c=q(["pie","map","funnel"]),f=q(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(o&&f.get(u)!=null){var d=e.ecModel,p=bi(d).datasetMap,v=t.uid+"_"+r,g=p.get(v)||p.set(v,{categoryWayDim:1,valueWayDim:0});I(o.coordSysDims,function(w){if(o.firstCategoryDimIndex==null){var S=g.valueWayDim++;s[w]=S,h.push(S)}else if(o.categoryAxisMap.get(w))s[w]=0,l.push(0);else{var S=g.categoryWayDim++;s[w]=S,h.push(S)}})}else if(c.get(u)!=null){for(var m,y=0;5>y&&m==null;y++)id(n,i,r,a.dimensionsDefine,a.startIndex,y)||(m=y);if(m!=null){s.value=m;var x=a.potentialNameDimIndex||Math.max(m-1,0);h.push(x),l.push(x)}}return l.length&&(s.itemName=l),h.length&&(s.seriesName=h),s}function Kv(e){var t=e.option,n=t.data;return n?void 0:e.ecModel.getComponent("dataset",t.datasetIndex||0)}function $v(e,t){return id(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function id(e,t,n,i,r,a){function o(v){return v!=null&&isFinite(v)&&v!==""?!1:ve(v)&&v!=="-"?!0:void 0}var s,l=5;if(gt(e))return!1;var h;if(i&&(h=i[a],h=F(h)?h.name:h),t===br)if(n===wh){for(var u=e[a],c=0;c<(u||[]).length&&l>c;c++)if((s=o(u[r+c]))!=null)return s}else for(var c=0;c<e.length&&l>c;c++){var f=e[r+c];if(f&&(s=o(f[a]))!=null)return s}else if(t===ao){if(!h)return;for(var c=0;c<e.length&&l>c;c++){var d=e[c];if(d&&(s=o(d[h]))!=null)return s}}else if(t===oo){if(!h)return;var u=e[h];if(!u||gt(u))return!1;for(var c=0;c<u.length&&l>c;c++)if((s=o(u[c]))!=null)return s}else if(t===Bn)for(var c=0;c<e.length&&l>c;c++){var d=e[c],p=Ni(d);if(!R(p))return!1;if((s=o(p[a]))!=null)return s}return!1}function Qv(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,r=t.seriesName;return n!=null&&e.componentIndex!==n||i!=null&&e.id!==i||r!=null&&e.name!==r}}function Jv(e,t){var n=e.color&&!e.colorLayer;I(t,function(i,r){r==="colorLayer"&&n||te.hasClass(r)||(typeof i=="object"?e[r]=e[r]?K(e[r],i,!1):ae(i):e[r]==null&&(e[r]=i))})}function ey(e){e=e,this.option={},this.option[bh]=1,this._componentsMap=q({series:[]}),this._seriesIndices,this._seriesIndicesMap,Jv(e,this._theme.option),K(e,Lw,!1),this.mergeOption(e)}function ty(e,t){R(t)||(t=t?[t]:[]);var n={};return I(t,function(i){n[i]=(e.get(i)||[]).slice()}),n}function ny(e,t,n){var i=t.type?t.type:n?n.subType:te.determineSubType(e,t);return i}function Ps(e,t){e._seriesIndicesMap=q(e._seriesIndices=O(t,function(n){return n.componentIndex})||[])}function rd(e,t){return t.hasOwnProperty("subType")?Pe(e,function(n){return n.subType===t.subType}):e}function ad(e){I(zw,function(t){this[t]=$(e[t],e)},this)}function Et(){this._coordinateSystems=[]}function Ls(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function iy(e,t,n){var i,r,a=[],o=[],s=e.timeline;if(e.baseOption&&(r=e.baseOption),(s||e.options)&&(r=r||{},a=(e.options||[]).slice()),e.media){r=r||{};var l=e.media;lo(l,function(h){h&&h.option&&(h.query?o.push(h):i||(i=h))})}return r||(r=e),r.timeline||(r.timeline=s),lo([r].concat(a).concat(O(o,function(h){return h.option})),function(h){lo(t,function(u){u(h,n)})}),{baseOption:r,timelineOptions:a,mediaDefault:i,mediaList:o}}function ry(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return I(e,function(a,o){var s=o.match(Ew);if(s&&s[1]&&s[2]){var l=s[1],h=s[2].toLowerCase();ay(i[h],a,l)||(r=!1)}}),r}function ay(e,t,n){return n==="min"?e>=t:n==="max"?t>=e:e===t}function oy(e,t){return e.join(",")===t.join(",")}function sy(e,t){t=t||{},lo(t,function(n,i){if(n!=null){var r=e[i];if(te.hasClass(i)){n=Ve(n),r=Ve(r);var a=mc(r,n);e[i]=ho(a,function(o){return o.option&&o.exist?Sg(o.exist,o.option,!0):o.exist||o.option})}else e[i]=Sg(r,n,!0)}})}function Os(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Mg.length;i>n;n++){var r=Mg[n],a=t.normal,o=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?K(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),o&&o[r]&&(e[r]=e[r]||{},e[r].emphasis?K(e[r].emphasis,o[r]):e[r].emphasis=o[r],o[r]=null)}}function Ie(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,Z(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function qi(e){Ie(e,"itemStyle"),Ie(e,"lineStyle"),Ie(e,"areaStyle"),Ie(e,"label"),Ie(e,"labelLine"),Ie(e,"upperLabel"),Ie(e,"edgeLabel")}function de(e,t){var n=Sr(e)&&e[t],i=Sr(n)&&n.textStyle;if(i)for(var r=0,a=eg.length;a>r;r++){var t=eg[r];i.hasOwnProperty(t)&&(n[t]=i[t])}}function Je(e){e&&(qi(e),de(e,"label"),e.emphasis&&de(e.emphasis,"label"))}function ly(e){if(Sr(e)){Os(e),qi(e),de(e,"label"),de(e,"upperLabel"),de(e,"edgeLabel"),e.emphasis&&(de(e.emphasis,"label"),de(e.emphasis,"upperLabel"),de(e.emphasis,"edgeLabel"));var a=e.markPoint;a&&(Os(a),Je(a));var s=e.markLine;s&&(Os(s),Je(s));var t=e.markArea;t&&Je(t);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var i=e.links||e.edges;if(i&&!gt(i))for(var r=0;r<i.length;r++)Je(i[r]);I(e.categories,function(h){qi(h)})}if(n&&!gt(n))for(var r=0;r<n.length;r++)Je(n[r]);var a=e.markPoint;if(a&&a.data)for(var o=a.data,r=0;r<o.length;r++)Je(o[r]);var s=e.markLine;if(s&&s.data)for(var l=s.data,r=0;r<l.length;r++)R(l[r])?(Je(l[r][0]),Je(l[r][1])):Je(l[r]);e.type==="gauge"?(de(e,"axisLabel"),de(e,"title"),de(e,"detail")):e.type==="treemap"?(Ie(e.breadcrumb,"itemStyle"),I(e.levels,function(h){qi(h)})):e.type==="tree"&&qi(e.leaves)}}function Rt(e){return R(e)?e:e?[e]:[]}function od(e){return(R(e)?e[0]:e)||{}}function hy(e,t){t=t.split(",");for(var n=e,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function uy(e,t,n,i){t=t.split(",");for(var r,a=e,o=0;o<t.length-1;o++)r=t[o],a[r]==null&&(a[r]={}),a=a[r];(i||a[t[o]]==null)&&(a[t[o]]=n)}function sd(e){I(Bw,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function cy(e){I(e,function(t,n){var i=[],r=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(a,function(h,u,c){var f=o.get(t.stackedDimension,c);if(isNaN(f))return r;var d,p;s?p=o.getRawIndex(c):d=o.get(t.stackedByDimension,c);for(var v=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,d)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(f>=0&&y>0||0>=f&&0>y){f+=y,v=y;break}}}return i[0]=f,i[1]=v,i});o.hostModel.setData(l),t.data=l})}function ld(e,t){ct.isInstance(e)||(e=ct.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===so&&(this._offset=0,this._dimSize=t,this._data=n);var r=Vw[i===br?i+"_"+e.seriesLayoutBy:i];H(this,r)}function hd(){return this._data.length}function ud(e){return this._data[e]}function zs(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}function Es(e,t,n){return n!=null?e[n]:e}function cd(e,t,n,i){return Rs(e[i],this._dimensionInfos[t])}function Rs(e,t){var n=t&&t.type;if(n==="ordinal"){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return n==="time"&&typeof e!="number"&&e!=null&&e!=="-"&&(e=+ia(e)),e==null||e===""?NaN:+e}function An(e,t,n){if(e){var i=e.getRawDataItem(t);if(i!=null){var r,a,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(r=s.name,a=s.index),Ww[o](i,t,a,r)}}}function dy(e,t,n){if(e){var i=e.getProvider().getSource().sourceFormat;if(i===Bn||i===ao){var r=e.getRawDataItem(t);return i!==Bn||F(r)||(r=null),r?r[n]:void 0}}}function Ui(e){return new dd(e)}function dd(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}function fd(e,t,n,i,r,a){Ag.reset(n,i,r,a),e._callingProgress=t,e._callingProgress({start:n,end:i,count:i-n,next:Ag.next},e.context)}function fy(e,t){e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null;var n,i;!t&&e._reset&&(n=e._reset(e.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),R(n)&&!n.length&&(n=null)),e._progress=n,e._modBy=e._modDataCount=null;var r=e._downstream;return r&&r.dirty(),i}function pd(e){var t=e.name;fs(e)||(e.name=py(e)||t)}function py(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return I(n,function(r){var a=t.getDimensionInfo(r);a.displayName&&i.push(a.displayName)}),i.join(" ")}function gy(e){return e.model.getRawData().count()}function my(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vy}function vy(e,t){e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gd(e,t){I(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,ee(yy,t))})}function yy(e){var t=Bs(e);t&&t.setOutputEnd(this.count())}function Bs(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}function He(){this.group=new V,this.uid=ea("viewChart"),this.renderTask=Ui({plan:xy,reset:_y}),this.renderTask.context={view:this}}function Ns(e,t){if(e&&(e.trigger(t),e.type==="group"))for(var n=0;n<e.childCount();n++)Ns(e.childAt(n),t)}function md(e,t,n){var i=jr(e,t);i!=null?I(Ve(i),function(r){Ns(e.getItemGraphicEl(r),n)}):e.eachItemGraphicEl(function(r){Ns(r,n)})}function xy(e){return Zw(e.model)}function _y(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&Cg(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,i,r),Xw[l]}function Fs(e,t,n){function i(){u=new Date().getTime(),c=null,e.apply(o,s||[])}var r,a,o,s,l,h=0,u=0,c=null;t=t||0;var f=function(){r=new Date().getTime(),o=this,s=arguments;var d=l||t,p=l||n;l=null,a=r-(p?h:u)-d,clearTimeout(c),p?c=setTimeout(i,d):a>=0?i():c=setTimeout(i,-a),h=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(d){l=d},f}function Vs(e,t,n,i){var r=e[t];if(r){var a=r[uo]||r,o=r[Tg],s=r[Dg];if(s!==n||o!==i){if(n==null||!i)return e[t]=a;r=e[t]=Fs(a,n,i==="debounce"),r[uo]=a,r[Tg]=i,r[Dg]=n}return r}}function vd(e,t){var n=e[t];n&&n[uo]&&(e[t]=n[uo])}function aa(e,t,r,a){this.ecInstance=e,this.api=t,this.unfinished;var r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice();this._allHandlers=r.concat(a),this._stageTaskMap=q()}function yd(e,t,n,i,r){function a(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}r=r||{};var o;I(t,function(s){if(!r.visualType||r.visualType===s.visualType){var l=e._stageTaskMap.get(s.uid),h=l.seriesTaskMap,u=l.overallTask;if(u){var c,f=u.agentStubMap;f.each(function(p){a(r,p)&&(p.dirty(),c=!0)}),c&&u.dirty(),Pg(u,i);var d=e.getPerformArgs(u,r.block);f.each(function(p){p.perform(d)}),o|=u.perform(d)}else h&&h.each(function(p){a(r,p)&&p.dirty();var v=e.getPerformArgs(p,r.block);v.skip=!s.performRawSeries&&n.isSeriesFiltered(p.context.model),Pg(p,i),o|=p.perform(v)})}}),e.unfinished|=o}function wy(e,t,n,i,r){function a(u){var c=u.uid,f=o.get(c)||o.set(c,Ui({plan:Cy,reset:Dy,count:Ty}));f.context={model:u,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},oa(e,u,f)}var o=n.seriesTaskMap||(n.seriesTaskMap=q()),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(a):s?i.eachRawSeriesByType(s,a):l&&l(i,r).each(a);var h=e._pipelineMap;o.each(function(u,c){h.get(c)||(u.dispose(),o.removeKey(c))})}function by(e,t,n,i,r){function a(d){var p=d.uid,v=s.get(p);v||(v=s.set(p,Ui({reset:My,onDirty:Ay})),o.dirty()),v.context={model:d,overallProgress:u,modifyOutputEnd:c},v.agent=o,v.__block=u,oa(e,d,v)}var o=n.overallTask=n.overallTask||Ui({reset:Sy});o.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:e};var s=o.agentStubMap=o.agentStubMap||q(),l=t.seriesType,h=t.getTargetSeries,u=!0,c=t.modifyOutputEnd;l?i.eachRawSeriesByType(l,a):h?h(i,r).each(a):(u=!1,I(i.getSeries(),a));var f=e._pipelineMap;s.each(function(d,p){f.get(p)||(d.dispose(),o.dirty(),s.removeKey(p))})}function Sy(e){e.overallReset(e.ecModel,e.api,e.payload)}function My(e){return e.overallProgress&&Iy}function Iy(){this.agent.dirty(),this.getDownstream().dirty()}function Ay(){this.agent&&this.agent.dirty()}function Cy(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function Dy(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ve(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?O(t,function(n,i){return xd(i)}):Yw}function xd(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var a=t.start;a<t.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(t,i)}}function Ty(e){return e.data.count()}function oa(e,t,n){var i=t.uid,r=e._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function ky(e){fo=null;try{e(Ir,Lg)}catch(t){}return fo}function _d(e,t){for(var n in t.prototype)e[n]=kt}function wd(e){if(ve(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}function Ws(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function Py(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";t.addColorStop(i,r)}n=n.nextSibling}}function et(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Z(t.__inheritedStyle,e.__inheritedStyle))}function bd(e){for(var t=Qe(e).split(ln),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),a=parseFloat(t[i+1]);n.push([r,a])}return n}function Ze(e,t,n,i){var r=t.__inheritedStyle||{},a=t.type==="text";if(e.nodeType===1&&(Ly(e,t),H(r,Oy(e)),!i)){for(var o in Si)if(Si.hasOwnProperty(o)){var s=e.getAttribute(o);s!=null&&(r[Si[o]]=s)}}var l=a?"textFill":"fill",h=a?"textStroke":"stroke";t.style=t.style||new en;var u=t.style;r.fill!=null&&u.set(l,Sd(r.fill,n)),r.stroke!=null&&u.set(h,Sd(r.stroke,n)),I(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(c){var f=c==="lineWidth"&&a?"textStrokeWidth":c;r[c]!=null&&u.set(f,parseFloat(r[c]))}),r.textBaseline&&r.textBaseline!=="auto"||(r.textBaseline="alphabetic"),r.textBaseline==="alphabetic"&&(r.textBaseline="bottom"),r.textAlign==="start"&&(r.textAlign="left"),r.textAlign==="end"&&(r.textAlign="right"),I(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(c){r[c]!=null&&u.set(c,r[c])}),r.lineDash&&(t.style.lineDash=Qe(r.lineDash).split(ln)),u[h]&&u[h]!=="none"&&(t[h]=!0),t.__inheritedStyle=r}function Sd(e,t){var n=t&&e&&e.match(eb);if(n){var i=Qe(n[1]),r=t[i];return r}return e}function Ly(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(tb,function(l,h,u){r.push(h,u)});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||Ot(),s){case"translate":o=Qe(o).split(ln),wn(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=Qe(o).split(ln),Vr(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=Qe(o).split(ln),$n(i,i,parseFloat(o[0]));break;case"skew":o=Qe(o).split(ln),console.warn("Skew transform is not supported yet");break;case"matrix":var o=Qe(o).split(ln);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5])}}}t.setLocalTransform(i)}function Oy(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i={};Eg.lastIndex=0;for(var r;(r=Eg.exec(t))!=null;)i[r[1]]=r[2];for(var a in Si)Si.hasOwnProperty(a)&&i[a]!=null&&(n[Si[a]]=i[a]);return n}function zy(e,t,n){var i=t/e.width,r=n/e.height,a=Math.min(i,r),o=[a,a],s=[-(e.x+e.width/2)*a+t/2,-(e.y+e.height/2)*a+n/2];return{scale:o,position:s}}function oi(e){return function(t,n,i){t=t&&t.toLowerCase(),Se.prototype[e].call(this,t,n,i)}}function ji(){Se.call(this)}function Yi(e,o,n){function i(l,h){return l.__prio-h.__prio}n=n||{},typeof o=="string"&&(o=qg[o]),this.id,this.group,this._dom=e;var r="canvas",a=this._zr=ds(e,{renderer:n.renderer||r,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=Fs($(a.flush,a),17);var o=ae(o);o&&Ig(o,!0),this._theme=o,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Et;var s=this._api=Fy(this);Gr(vo,i),Gr(Oh,i),this._scheduler=new aa(this,s,Oh,vo),Se.call(this,this._ecEventProcessor=new Xs),this._messageCenter=new ji,this._initEvents(),this.resize=$(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),Ey(a,this),Fo(this)}function Md(e,t,n){var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();t=ps(r,t);for(var o=0;o<a.length;o++){var s=a[o];if(s[e]&&(i=s[e](r,t,n))!=null)return i}}function Ki(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),Dd(e,"component",t,n),Dd(e,"chart",t,n),n.plan()}function Id(e,t,n,i,r){function a(u){u&&u.__alive&&u[t]&&u[t](u.__model,o,e._api,n)}var o=e._model;if(!i)return void we(e._componentsViews.concat(e._chartsViews),a);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var h=n.excludeSeriesId;h!=null&&(h=q(Ve(h))),o&&o.eachComponent(l,function(u){h&&h.get(u.id)!=null||a(e[i==="series"?"_chartsMap":"_componentsMap"][u.__viewId])},e)}function Ad(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries(function(r){i.updateStreamModes(r,n[r.__viewId])})}function Cd(e,t){var n=e.type,i=e.escapeConnect,r=go[n],a=r.actionInfo,o=(a.update||"update").split(":"),s=o.pop();o=o[0]!=null&&Ph(o[0]),this[It]=!0;var l=[e],h=!1;e.batch&&(h=!0,l=O(e.batch,function(d){return d=Z(H({},d),e),d.batch=null,d}));var u,c=[],f=n==="highlight"||n==="downplay";we(l,function(d){u=r.action(d,this._model,this._api),u=u||H({},d),u.type=a.event||u.type,c.push(u),f?Id(this,s,d,"series"):o&&Id(this,s,d,o.main,o.sub)},this),s==="none"||f||o||(this[hn]?(Ki(this),un.update.call(this,e),this[hn]=!1):un[s].call(this,e)),u=h?{type:a.event||n,escapeConnect:i,batch:c}:c[0],this[It]=!1,!t&&this._messageCenter.trigger(u.type,u)}function sa(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Cd.call(this,n,e)}}function la(e){!e&&this.trigger("updated")}function Ey(e,t){e.on("rendered",function(){t.trigger("rendered"),!e.animation.isFinished()||t[hn]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})}function Dd(e,t,n,i){function r(f){var d="_ec_"+f.id+"_"+f.type,p=s[d];if(!p){var v=Ph(f.type),g=a?Mt.getClass(v.main,v.sub):He.getClass(v.sub);p=new g,p.init(n,h),s[d]=p,o.push(p),l.add(p.group)}f.__viewId=p.__id=d,p.__alive=!0,p.__model=f,p.group.__ecComponentInfo={mainType:f.mainType,index:f.componentIndex},!a&&i.prepareView(p,f,n,h)}for(var a=t==="component",o=a?e._componentsViews:e._chartsViews,s=a?e._componentsMap:e._chartsMap,l=e._zr,h=e._api,u=0;u<o.length;u++)o[u].__alive=!1;a?n.eachComponent(function(f,d){f!=="series"&&r(d)}):n.eachSeries(r);for(var u=0;u<o.length;){var c=o[u];c.__alive?u++:(!a&&c.renderTask.dispose(),l.remove(c.group),c.dispose(n,h),o.splice(u,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function Gs(e){e.clearColorPalette(),e.eachSeries(function(t){t.clearColorPalette()})}function Td(e,t,n,i){Ry(e,t,n,i),we(e._chartsViews,function(r){r.__alive=!1}),Hs(e,t,n,i),we(e._chartsViews,function(r){r.__alive||r.remove(t,n)})}function Ry(e,t,n,i,r){we(r||e._componentsViews,function(a){var o=a.__model;a.render(o,t,n,i),kd(o,a)})}function Hs(e,t,n,i,r){var a,o=e._scheduler;t.eachSeries(function(s){var l=e._chartsMap[s.__viewId];l.__alive=!0;var h=l.renderTask;o.updatePayload(h,i),r&&r.get(s.uid)&&h.dirty(),a|=h.perform(o.getPerformArgs(h)),l.group.silent=!!s.get("silent"),kd(s,l),Ny(s,l)}),o.unfinished|=a,By(e._zr,t),Uw(e._zr.dom,t)}function Zs(e,t){we(Xg,function(n){n(e,t)})}function By(e,t){var n=e.storage,i=0;n.traverse(function(r){r.isGroup||i++}),i>t.get("hoverLayerThreshold")&&!X.node&&n.traverse(function(r){r.isGroup||(r.useHoverLayer=!0)})}function Ny(e,t){var n=e.get("blendMode")||null;t.group.traverse(function(i){i.isGroup||i.style.blend!==n&&i.setStyle("blend",n),i.eachPendingDisplayable&&i.eachPendingDisplayable(function(r){r.setStyle("blend",n)})})}function kd(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse(function(r){r.type!=="group"&&(n!=null&&(r.z=n),i!=null&&(r.zlevel=i))})}function Fy(e){var t=e._coordSysMgr;return H(new ad(e),{getCoordinateSystems:$(t.getCoordinateSystems,t),getComponentByElement:function(n){for(;n;){var i=n.__ecComponentInfo;if(i!=null)return e._model.getComponent(i.mainType,i.index);n=n.parent}}})}function Xs(){this.eventInfo}function Vy(e){function t(o,s){for(var l=0;l<o.length;l++){var h=o[l];h[a]=s}}var n=0,i=1,r=2,a="__connectUpdateStatus";we(mo,function(o,s){e._messageCenter.on(s,function(l){if(yo[e.group]&&e[a]!==n){if(l&&l.escapeConnect)return;var h=e.makeActionFromEvent(l),u=[];we(Vn,function(c){c!==e&&c.group===e.group&&u.push(c)}),t(u,n),we(u,function(c){c[a]!==i&&c.dispatchAction(h)}),t(u,r)}})})}function Wy(e,t,n){var i=qs(e);if(i)return i;var r=new Yi(e,t,n);return r.id="ec_"+cb++,Vn[r.id]=r,vc(e,Eh,r.id),Vy(r),r}function Gy(e){if(R(e)){var t=e;e=null,we(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+db++,we(t,function(n){n.group=e})}return yo[e]=!0,e}function Pd(e){yo[e]=!1}function Hy(e){typeof e=="string"?e=Vn[e]:e instanceof Yi||(e=qs(e)),e instanceof Yi&&!e.isDisposed()&&e.dispose()}function qs(e){return Vn[$m(e,Eh)]}function Zy(e){return Vn[e]}function Us(e,t){qg[e]=t}function Kt(e){Zg.push(e)}function Cn(e,t){js(Oh,e,t,Ng)}function Xy(e){Xg.push(e)}function Te(e,t,n){typeof t=="function"&&(n=t,t="");var i=Ar(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,ib(Hg.test(i)&&Hg.test(t)),go[i]||(go[i]={action:n,actionInfo:e}),mo[t]=i}function qy(e,t){Et.register(e,t)}function Uy(e){var t=Et.get(e);return t?t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice():void 0}function $i(e,t){js(vo,e,t,Vg,"layout")}function Qi(e,t){js(vo,e,t,Gg,"visual")}function js(e,t,n,i,r){(rb(t)||Ar(t))&&(n=t,t=i);var a=aa.wrapStageHandler(n,r);return a.__prio=t,a.__raw=n,e.push(a),a}function Ld(e,t){zh[e]=t}function Dn(e){return te.extend(e)}function $t(e){return Mt.extend(e)}function Od(e){return Fn.extend(e)}function zd(e){return He.extend(e)}function jy(e){Iu("createCanvas",e)}function Yy(e,t,n){Bg.registerMap(e,t,n)}function Ky(e){var t=Bg.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}function Ed(e){return e}function ha(e,t,n,i,r){this._old=e,this._new=t,this._oldKeyGetter=n||Ed,this._newKeyGetter=i||Ed,this.context=r}function Rd(e,t,n,i,r){for(var a=0;a<e.length;a++){var o="_ec_"+r[i](e[a],a),s=t[o];s==null?(n.push(o),t[o]=a):(s.length||(t[o]=s=[s]),s.push(a))}}function $y(e){var t={},n=t.encode={},i=q(),r=[],a=[];I(e.dimensions,function(u){var c=e.getDimensionInfo(u),f=c.coordDim;if(f){var d=n[f];n.hasOwnProperty(f)||(d=n[f]=[]),d[c.coordDimIndex]=u,c.isExtraCoord||(i.set(f,1),Jy(c.type)&&(r[0]=u)),c.defaultTooltip&&a.push(u)}Ug.each(function(p,v){var g=n[v];n.hasOwnProperty(v)||(g=n[v]=[]);var m=c.otherDims[v];m!=null&&m!==!1&&(g[m]=c.name)})});var o=[],s={};i.each(function(u,c){var f=n[c];s[c]=f[0],o=o.concat(f)}),t.dataDimsOnCoord=o,t.encodeFirstDimNotExtra=s;var l=n.label;l&&l.length&&(r=l.slice());var h=n.tooltip;return h&&h.length?a=h.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,t}function Qy(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Jy(e){return!(e==="ordinal"||e==="time")}function ua(e){return e._rawCount>65535?jg:vb}function ex(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Bd(e,t){I(yb.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,I(xb,function(n){e[n]=ae(t[n])}),e._calculationInfo=H(t._calculationInfo)}function tx(e){var t=e._invertedIndicesMap;I(t,function(n,i){var r=e._dimensionInfos[i],a=r.ordinalMeta;if(a){n=t[i]=new jg(a.categories.length);for(var o=0;o<n.length;o++)n[o]=NaN;for(var o=0;o<e._count;o++)n[e.get(i,o)]=o}})}function Nd(e,t,n){var i;if(t!=null){var r=e._chunkSize,a=Math.floor(n/r),o=n%r,s=e.dimensions[t],l=e._storage[s][a];if(l){i=l[o];var h=e._dimensionInfos[s].ordinalMeta;h&&h.categories.length&&(i=h.categories[i])}}return i}function Ji(e){return e}function er(e){return e<this._count&&e>=0?this._indices[e]:-1}function Ys(e,t){var n=e._idList[t];return n==null&&(n=Nd(e,e._idDimIdx,t)),n==null&&(n=gb+t),n}function Ks(e){return R(e)||(e=[e]),e}function Fd(e,t){var n=e.dimensions,i=new Ue(O(n,e.getDimensionInfo,e),e.hostModel);Bd(i,e);for(var r=i._storage={},a=e._storage,o=0;o<n.length;o++){var s=n[o];a[s]&&(J(t,s)>=0?(r[s]=nx(a[s]),i._rawExtent[s]=$s(),i._extent[s]=null):r[s]=a[s])}return i}function nx(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=ex(e[n]);return t}function $s(){return[1/0,-1/0]}function Vd(e,t,n){function i(S,b,_){Ug.get(b)!=null?S.otherDims[b]=_:(S.coordDim=b,S.coordDimIndex=_,s.set(b,!0))}ct.isInstance(t)||(t=ct.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var r=(n.dimsDef||[]).slice(),a=q(n.encodeDef),o=q(),s=q(),l=[],h=ix(t,e,r,n.dimCount),u=0;h>u;u++){var c=r[u]=H({},F(r[u])?r[u]:{name:r[u]}),f=c.name,d=l[u]={otherDims:{}};f!=null&&o.get(f)==null&&(d.name=d.displayName=f,o.set(f,u)),c.type!=null&&(d.type=c.type),c.displayName!=null&&(d.displayName=c.displayName)}a.each(function(S,b){if(S=Ve(S).slice(),S.length===1&&S[0]<0)return void a.set(b,!1);var _=a.set(b,[]);I(S,function(M,A){ve(M)&&(M=o.get(M)),M!=null&&h>M&&(_[A]=M,i(l[M],b,A))})});var p=0;I(e,function(_){var b,_,M,A;if(ve(_))b=_,_={};else{b=_.name;var C=_.ordinalMeta;_.ordinalMeta=null,_=ae(_),_.ordinalMeta=C,M=_.dimsDef,A=_.otherDims,_.name=_.coordDim=_.coordDimIndex=_.dimsDef=_.otherDims=null}var D=a.get(b);if(D!==!1){var D=Ve(D);if(!D.length)for(var T=0;T<(M&&M.length||1);T++){for(;p<l.length&&l[p].coordDim!=null;)p++;p<l.length&&D.push(p++)}I(D,function(E,z){var B=l[E];if(i(Z(B,_),b,z),B.name==null&&M){var W=M[z];!F(W)&&(W={name:W}),B.name=B.displayName=W.name,B.defaultTooltip=W.defaultTooltip}A&&Z(B.otherDims,A)})}});var v=n.generateCoord,g=n.generateCoordCount,m=g!=null;g=v?g||1:0;for(var y=v||"value",x=0;h>x;x++){var d=l[x]=l[x]||{},w=d.coordDim;w==null&&(d.coordDim=Wd(y,s,m),d.coordDimIndex=0,(!v||0>=g)&&(d.isExtraCoord=!0),g--),d.name==null&&(d.name=Wd(d.coordDim,o)),d.type==null&&$v(t,x,d.name)&&(d.type="ordinal")}return l}function ix(e,t,n,i){var r=Math.max(e.dimensionsDetectCount||1,t.length,n.length,i||0);return I(t,function(a){var o=a.dimsDef;o&&(r=Math.max(r,o.length))}),r}function Wd(e,t,n){if(n||t.get(e)!=null){for(var i=0;t.get(e+i)!=null;)i++;e+=i}return t.set(e,!0),e}function Gd(e,t,n){n=n||{};var i,r,a,o,s=n.byIndex,l=n.stackedCoordDimension,h=!(!e||!e.get("stack"));if(I(t,function(d,p){ve(d)&&(t[p]=d={name:d}),h&&!d.isExtraCoord&&(s||i||!d.ordinalMeta||(i=d),r||d.type==="ordinal"||d.type==="time"||l&&l!==d.coordDim||(r=d))}),!r||s||i||(s=!0),r){a="__\0ecstackresult",o="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var u=r.coordDim,c=r.type,f=0;I(t,function(d){d.coordDim===u&&f++}),t.push({name:a,coordDim:u,coordDimIndex:f,type:c,isExtraCoord:!0,isCalculationCoord:!0}),f++,t.push({name:o,coordDim:o,coordDimIndex:f,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:o,stackResultDimension:a}}function Qt(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Hd(e,t){return Qt(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ca(e,t,n){n=n||{},ct.isInstance(e)||(e=ct.seriesDataToSource(e));var i,r=t.get("coordinateSystem"),a=Et.get(r),o=Jc(t);o&&(i=O(o.coordSysDims,function(d){var p={name:d},v=o.axisMap.get(d);if(v){var g=v.get("type");p.type=Qy(g)}return p})),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,h=Rh(e,{coordDimensions:i,generateCoord:n.generateCoord});o&&I(h,function(d,p){var v=d.coordDim,g=o.categoryAxisMap.get(v);g&&(s==null&&(s=p),d.ordinalMeta=g.getOrdinalMeta()),d.otherDims.itemName!=null&&(l=!0)}),l||s==null||(h[s].otherDims.itemName=0);var u=Gd(t,h),c=new Ue(h,t);c.setCalculationInfo(u);var f=s!=null&&rx(e)?function(d,p,v,g){return g===s?v:this.defaultDimValueGetter(d,p,v,g)}:null;return c.hasItemOption=!1,c.initData(e,null,f),c}function rx(e){if(e.sourceFormat===Bn){var t=ax(e.data||[]);return t!=null&&!R(Ni(t))}}function ax(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function fe(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function tr(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}function Zd(e){return e._map||(e._map=q(e.categories))}function ox(e){return F(e)&&e.value!=null?e.value:e+""}function sx(e,t,n,i){var r={},a=e[1]-e[0],o=r.interval=As(a/t,!0);n!=null&&n>o&&(o=r.interval=n),i!=null&&o>i&&(o=r.interval=i);var s=r.intervalPrecision=Xd(o),l=r.niceTickExtent=[Fh(Math.ceil(e[0]/o)*o,s),Fh(Math.floor(e[1]/o)*o,s)];return Ud(l,e),r}function Xd(e){return na(e)+2}function qd(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Ud(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),qd(e,0,t),qd(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function lx(e,t,n,i){var r=[];if(!e)return r;var a=1e4;t[0]<n[0]&&r.push(t[0]);for(var o=n[0];o<=n[1]&&(r.push(o),o=Fh(o+e,i),o!==r[r.length-1]);)if(r.length>a)return[];return t[1]>(r.length?r[r.length-1]:n[1])&&r.push(t[1]),r}function Qs(e){return e.get("stack")||Wh+e.seriesIndex}function Js(e){return e.dim+e.index}function hx(e){var t=[],n=e.axis,i="axis0";if(n.type==="category"){for(var r=n.getBandWidth(),a=0;a<e.count;a++)t.push(Z({bandWidth:r,axisKey:i,stackId:Wh+a},e));for(var o=Yd(t),s=[],a=0;a<e.count;a++){var l=o[i][Wh+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function jd(e,t){var n=[];return t.eachSeriesByType(e,function(i){$d(i)&&!Qd(i)&&n.push(i)}),n}function el(e){var t=[];return I(e,function(n){var i=n.getData(),r=n.coordinateSystem,a=r.getBaseAxis(),o=a.getExtent(),s=a.type==="category"?a.getBandWidth():Math.abs(o[1]-o[0])/i.count(),l=Q(n.get("barWidth"),s),h=Q(n.get("barMaxWidth"),s),u=n.get("barGap"),c=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:l,barMaxWidth:h,barGap:u,barCategoryGap:c,axisKey:Js(a),stackId:Qs(n)})}),Yd(t)}function Yd(e){var t={};I(e,function(i){var r=i.axisKey,a=i.bandWidth,o=t[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},s=o.stacks;t[r]=o;var l=i.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var h=i.barWidth;h&&!s[l].width&&(s[l].width=h,h=Math.min(o.remainedWidth,h),o.remainedWidth-=h);var u=i.barMaxWidth;u&&(s[l].maxWidth=u);var c=i.barGap;c!=null&&(o.gap=c);var f=i.barCategoryGap;f!=null&&(o.categoryGap=f)});var n={};return I(t,function(i,r){n[r]={};var a=i.stacks,o=i.bandWidth,s=Q(i.categoryGap,o),l=Q(i.gap,1),h=i.remainedWidth,u=i.autoWidthCount,c=(h-s)/(u+(u-1)*l);c=Math.max(c,0),I(a,function(v){var g=v.maxWidth;g&&c>g&&(g=Math.min(g,h),v.width&&(g=Math.min(g,v.width)),h-=g,v.width=g,u--)}),c=(h-s)/(u+(u-1)*l),c=Math.max(c,0);var f,d=0;I(a,function(v){v.width||(v.width=c),f=v,d+=v.width*(1+l)}),f&&(d-=f.width*l);var p=-d/2;I(a,function(v,g){n[r][g]=n[r][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),n}function Kd(e,t,n){if(e&&t){var i=e[Js(t)];return i!=null&&n!=null&&(i=i[Qs(n)]),i}}function ux(e,t){var n=jd(e,t),i=el(n),r={};I(n,function(a){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),h=Qs(a),u=i[Js(l)][h],c=u.offset,f=u.width,d=s.getOtherAxis(l),p=a.get("barMinHeight")||0;r[h]=r[h]||[],o.setLayout({offset:c,size:f});for(var v=o.mapDimension(d.dim),g=o.mapDimension(l.dim),m=Qt(o,v),y=d.isHorizontal(),x=Jd(l,d,m),w=0,S=o.count();S>w;w++){var b=o.get(v,w),_=o.get(g,w);if(!isNaN(b)){var M=b>=0?"p":"n",A=x;m&&(r[h][_]||(r[h][_]={p:x,n:x}),A=r[h][_][M]);var C,D,T,k;if(y){var E=s.dataToPoint([b,_]);C=A,D=E[1]+c,T=E[0]-x,k=f,Math.abs(T)<p&&(T=(0>T?-1:1)*p),m&&(r[h][_][M]+=T)}else{var E=s.dataToPoint([_,b]);C=E[0]+c,D=A,T=f,k=E[1]-x,Math.abs(k)<p&&(k=(0>=k?-1:1)*p),m&&(r[h][_][M]+=k)}o.setItemLayout(w,{x:C,y:D,width:T,height:k})}}},this)}function $d(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Qd(e){return e.pipelineContext&&e.pipelineContext.large}function Jd(e,t){var n,i,r=t.getGlobalExtent();r[0]>r[1]?(n=r[1],i=r[0]):(n=r[0],i=r[1]);var a=t.toGlobalCoord(t.dataToCoord(0));return n>a&&(a=n),a>i&&(a=i),a}function da(e,t){return Ab(e,Ib(t))}function cx(e,t){var n,i,r,a=e.type,o=t.getMin(),s=t.getMax(),l=o!=null,h=s!=null,u=e.getExtent();a==="ordinal"?n=t.getCategories().length:(i=t.get("boundaryGap"),R(i)||(i=[i||0,i||0]),typeof i[0]=="boolean"&&(i=[0,0]),i[0]=Q(i[0],1),i[1]=Q(i[1],1),r=u[1]-u[0]||Math.abs(u[0])),o==null&&(o=a==="ordinal"?n?0:NaN:u[0]-i[0]*r),s==null&&(s=a==="ordinal"?n?n-1:NaN:u[1]+i[1]*r),o==="dataMin"?o=u[0]:typeof o=="function"&&(o=o({min:u[0],max:u[1]})),s==="dataMax"?s=u[1]:typeof s=="function"&&(s=s({min:u[0],max:u[1]})),(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN),e.setBlank(Oi(o)||Oi(s)||a==="ordinal"&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),0>o&&0>s&&!h&&(s=0));var c=t.ecModel;if(c&&a==="time"){var f,d=jd("bar",c);if(I(d,function(g){f|=g.getBaseAxis()===t.axis}),f){var p=el(d),v=dx(o,s,t,p);o=v.min,s=v.max}}return[o,s]}function dx(e,t,n,i){var r=n.axis.getExtent(),a=r[1]-r[0],o=Kd(i,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;I(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;I(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var h=s+l,u=t-e,c=1-(s+l)/a,f=u/c-u;return t+=f*(l/h),e-=f*(s/h),{min:e,max:t}}function tl(e,t){var n=cx(e,t),i=t.getMin()!=null,r=t.getMax()!=null,a=t.get("splitNumber");e.type==="log"&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(n[0],n[1]),e.niceExtent({splitNumber:a,fixMin:i,fixMax:r,minInterval:o==="interval"||o==="time"?t.get("minInterval"):null,maxInterval:o==="interval"||o==="time"?t.get("maxInterval"):null});var s=t.get("interval");s!=null&&e.setInterval&&e.setInterval(s)}function nl(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Nh(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new Ft;default:return(fe.getClass(t)||Ft).create(e)}}function fx(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||0>n&&0>i)}function nr(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return typeof t=="string"?t=(function(i){return function(r){return r=e.scale.getLabel(r),i.replace("{value}",r!=null?r:"")}})(t):typeof t=="function"?function(i,r){return n!=null&&(r=i-n),t(il(e,i),r)}:function(i){return e.scale.getLabel(i)}}function il(e,t){return e.type==="category"?e.scale.getLabel(t):t}function px(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,a=e.type==="category",o=n.getExtent();a?r=n.count():(i=n.getTicks(),r=i.length);var s,l=e.getLabelModel(),h=nr(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;r>c;c+=u){var f=i?i[c]:o[0]+c,d=h(f),p=l.getTextRect(d),v=gx(p,l.get("rotate")||0);s?s.union(v):s=v}return s}}function gx(e,t){var n=t*Math.PI/180,i=e.plain(),r=i.width,a=i.height,o=r*Math.cos(n)+a*Math.sin(n),s=r*Math.sin(n)+a*Math.cos(n),l=new ie(i.x,i.y,o,s);return l}function mx(e,t){if(this.type!=="image"){var n=this.style,i=this.shape;i&&i.symbolType==="line"?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}function Tn(e,t,n,i,r,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return l=e.indexOf("image://")===0?Ec(e.slice(8),new ie(t,n,i,r),o?"center":"cover"):e.indexOf("path://")===0?Vi(e.slice(7),{},new ie(t,n,i,r),o?"center":"cover"):new Eb({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=mx,l.setColor(a),l}function vx(e){return ca(e.getSource(),e)}function yx(e,t){var n=t;oe.isInstance(t)||(n=new oe(t),ue(n,Xh));var i=nl(n);return i.setExtent(e[0],e[1]),tl(i,n),i}function xx(e){ue(e,Xh)}function ef(e,t){return Math.abs(e-t)<Nb}function tf(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var a=1;a<e.length;a++){var o=e[a];i+=zt(r[0],r[1],o[0],o[1],t,n),r=o}var s=e[0];return ef(r[0],s[0])&&ef(r[1],s[1])||(i+=zt(r[0],r[1],s[0],s[1],t,n)),i!==0}function fa(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}function _x(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;t==null&&(t=1024);for(var n=e.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o.length;l++){var h=o[l];if(a.type==="Polygon")o[l]=nf(h,s[l],t);else if(a.type==="MultiPolygon")for(var u=0;u<h.length;u++){var c=h[u];h[u]=nf(c,s[l][u],t)}}return e.UTF8Encoding=!1,e}function nf(e,t,n){for(var i=[],r=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function bx(e){return e.type==="category"?Mx(e):Ax(e)}function Sx(e,t){return e.type==="category"?Ix(e,t):{ticks:e.scale.getTicks()}}function Mx(e){var t=e.getLabelModel(),n=rf(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function rf(e,t){var n=af(e,"labels"),i=uf(t),r=of(n,i);if(r)return r;var a,o;return $e(i)?a=hf(e,i):(o=i==="auto"?Cx(e):i,a=lf(e,o)),sf(n,i,{labels:a,labelCategoryInterval:o})}function Ix(e,t){var n=af(e,"ticks"),i=uf(t),r=of(n,i);if(r)return r;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),$e(i))a=hf(e,i,!0);else if(i==="auto"){var s=rf(e,e.getLabelModel());o=s.labelCategoryInterval,a=O(s.labels,function(l){return l.tickValue})}else o=i,a=lf(e,o,!0);return sf(n,i,{ticks:a,tickCategoryInterval:o})}function Ax(e){var t=e.scale.getTicks(),n=nr(e);return{labels:O(t,function(i,r){return{formattedLabel:n(i,r),rawLabel:e.scale.getLabel(i),tickValue:i}})}}function af(e,t){return Dr(e)[t]||(Dr(e)[t]=[])}function of(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function sf(e,t,n){return e.push({key:t,value:n}),n}function Cx(e){var t=Dr(e).autoInterval;return t!=null?t:Dr(e).autoInterval=e.calculateCategoryInterval()}function Dx(e){var t=Tx(e),n=nr(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],h=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(h*Math.cos(i)),c=Math.abs(h*Math.sin(i)),f=0,d=0;l<=a[1];l+=s){var p=0,v=0,g=Sn(n(l),t.font,"center","top");p=1.3*g.width,v=1.3*g.height,f=Math.max(f,p,7),d=Math.max(d,v,7)}var m=f/u,y=d/c;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),w=Dr(e.model),S=w.lastAutoInterval,b=w.lastTickCount;return S!=null&&b!=null&&Math.abs(S-x)<=1&&Math.abs(b-o)<=1&&S>x?x=S:(w.lastTickCount=o,w.lastAutoInterval=x),x}function Tx(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function lf(e,t,n){function i(p){l.push(n?p:{formattedLabel:r(p),rawLabel:a.getLabel(p),tickValue:p})}var r=nr(e),a=e.scale,o=a.getExtent(),s=e.getLabelModel(),l=[],h=Math.max((t||0)+1,1),u=o[0],c=a.count();u!==0&&h>1&&c/h>2&&(u=Math.round(Math.ceil(u/h)*h));var f={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};f.min&&u!==o[0]&&i(o[0]);for(var d=u;d<=o[1];d+=h)i(d);return f.max&&d!==o[1]&&i(o[1]),l}function hf(e,t,n){var i=e.scale,r=nr(e),a=[];return I(i.getTicks(),function(o){var s=i.getLabel(o);t(o,s)&&a.push(n?o:{formattedLabel:r(o),rawLabel:s,tickValue:o})}),a}function uf(e){var t=e.get("interval");return t==null?"auto":t}function cf(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function kx(e,t,n,i,r){function a(c,f){return u?c>f:f>c}var o=t.length;if(e.onBand&&!i&&o){var s,l=e.getExtent();if(o===1)t[0].coord=l[0],s=t[1]={coord:l[0]};else{var h=t[1].coord-t[0].coord;I(t,function(c){c.coord-=h/2;var f=f||0;f%2>0&&(c.coord-=h/(2*(f+1)))}),s={coord:t[o-1].coord+h},t.push(s)}var u=l[0]>l[1];a(t[0].coord,l[0])&&(r?t[0].coord=l[0]:t.shift()),r&&a(l[0],t[0].coord)&&t.unshift({coord:l[0]}),a(l[1],s.coord)&&(r?s.coord=l[1]:t.pop()),r&&a(s.coord,l[1])&&t.push({coord:l[1]})}}function Px(e){return this._axes[e]}function ir(e){Mo.call(this,e)}function df(e,t){return t.type||(t.data?"category":"value")}function rl(e,t){return e.getCoordSysModel()===t}function si(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}function ff(e,t,n,i){function r(c){return c.dim+"_"+c.index}n.getAxesOnZeroOf=function(){return a?[a]:[]};var a,o=e[t],s=n.model,l=s.get("axisLine.onZero"),h=s.get("axisLine.onZeroAxisIndex");if(l){if(h!=null)pf(o[h])&&(a=o[h]);else for(var u in o)if(o.hasOwnProperty(u)&&pf(o[u])&&!i[r(o[u])]){a=o[u];break}a&&(i[r(a)]=!0)}}function pf(e){return e&&e.type!=="category"&&e.type!=="time"&&fx(e)}function Lx(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(r){return r+t}:function(r){return i-r+t},e.toLocalCoord=e.dim==="x"?function(r){return r-t}:function(r){return i-r+t}}function gf(e){return O(Wb,function(t){var n=e.getReferringComponents(t)[0];return n})}function mf(e){return e.get("coordinateSystem")==="cartesian2d"}function pa(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(i===1)return An(e,t,n[0]);if(i){for(var r=[],a=0;a<n.length;a++){var o=An(e,t,n[a]);r.push(o)}return r.join(" ")}}function Ox(e,t,n,i,r,a){var o=n.getModel("label"),s=n.getModel("emphasis.label");Gi(e,t,o,s,{labelFetcher:r,labelDataIndex:a,defaultText:pa(r.getData(),a),isRectText:!0,autoColor:i}),vf(e),vf(t)}function vf(e,t){e.textPosition==="outside"&&(e.textPosition=t)}function yf(e,t,n){n.style.text=null,ye(n,{shape:{width:0}},t,e,function(){n.parent&&n.parent.remove(n)})}function xf(e,t,n){n.style.text=null,ye(n,{shape:{r:n.shape.r0}},t,e,function(){n.parent&&n.parent.remove(n)})}function _f(e,t,n,i,r,a,o,s){var l=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),u=i.getModel("itemStyle"),c=i.getModel("emphasis.itemStyle").getBarItemStyle();s||e.setShape("r",u.get("barBorderRadius")||0),e.useStyle(Z({fill:l,opacity:h},u.getBarItemStyle()));var f=i.getShallow("cursor");f&&e.attr("cursor",f);var d=o?r.height>0?"bottom":"top":r.width>0?"left":"right";s||Ox(e.style,c,i,l,a,n,d),yt(e,c)}function zx(e,t){var n=e.get(Xb)||0;return Math.min(n,Math.abs(t.width),Math.abs(t.height))}function wf(e,t,n){var i=e.getData(),r=[],a=i.getLayout("valueAxisHorizontal")?1:0;r[1-a]=i.getLayout("valueAxisStart");var o=new qb({shape:{points:i.getLayout("largePoints")},incremental:!!n,__startPoint:r,__valueIdx:a});t.add(o),Ex(o,e,i)}function Ex(e,t,n){var i=n.getVisual("borderColor")||n.getVisual("color"),r=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(r),e.style.fill=null,e.style.stroke=i,e.style.lineWidth=n.getLayout("barWidth")}function bf(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t}function Rx(e,t,n,i){var r,a,o=Is(n-e.rotation),s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Hi(o-cn/2)?(a=l?"bottom":"top",r="center"):Hi(o-1.5*cn)?(a=l?"top":"bottom",r="center"):(a="middle",r=1.5*cn>o&&o>cn/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function Sf(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)}function Bx(e,t,n){var i=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],h=n[0],u=n[1],c=n[n.length-1],f=n[n.length-2];i===!1?(tt(a),tt(h)):Mf(a,o)&&(i?(tt(o),tt(u)):(tt(a),tt(h))),r===!1?(tt(s),tt(c)):Mf(l,s)&&(r?(tt(l),tt(f)):(tt(s),tt(c)))}function tt(e){e&&(e.ignore=!0)}function Mf(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ei([]);return $n(r,r,-e.rotation),n.applyTransform(_n([],r,e.getLocalTransform())),i.applyTransform(_n([],r,t.getLocalTransform())),n.intersect(i)}}function If(e){return e==="middle"||e==="center"}function Nx(e,t,n){var i=t.axis;if(t.get("axisTick.show")&&!i.scale.isBlank()){for(var r=t.getModel("axisTick"),a=r.getModel("lineStyle"),o=r.get("length"),s=i.getTicksCoords(),l=[],h=[],u=e._transform,c=[],f=0;f<s.length;f++){var d=s[f].coord;l[0]=d,l[1]=0,h[0]=d,h[1]=n.tickDirection*o,u&&(ne(l,l,u),ne(h,h,u));var p=new on(Wi({anid:"tick_"+s[f].tickValue,shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:Z(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));e.group.add(p),c.push(p)}return c}}function Fx(e,t,n){var i=t.axis,r=Gt(n.axisLabelShow,t.get("axisLabel.show"));if(r&&!i.scale.isBlank()){var a=t.getModel("axisLabel"),o=a.get("margin"),s=i.getViewLabels(),l=(Gt(n.labelRotate,a.get("rotate"))||0)*cn/180,h=h0(n.rotation,l,n.labelDirection),u=t.getCategories(!0),c=[],f=Sf(t),d=t.get("triggerEvent");return I(s,function(p,v){var g=p.tickValue,m=p.formattedLabel,y=p.rawLabel,x=a;u&&u[g]&&u[g].textStyle&&(x=new oe(u[g].textStyle,a,t.ecModel));var w=x.getTextColor()||t.get("axisLine.lineStyle.color"),S=i.dataToCoord(g),b=[S,n.labelOffset+n.labelDirection*o],_=new pe({anid:"label_"+g,position:b,rotation:h.rotation,silent:f,z2:10});We(_.style,x,{text:m,textAlign:x.getShallow("align",!0)||h.textAlign,textVerticalAlign:x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||h.textVerticalAlign,textFill:typeof w=="function"?w(i.type==="category"?y:i.type==="value"?g+"":g,v):w}),d&&(_.eventData=bf(t),_.eventData.targetType="axisLabel",_.eventData.value=y),e._dumbGroup.add(_),_.updateTransform(),c.push(_),e.group.add(_),_.decomposeTransform()}),c}}function Vx(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Wx(n,e,t),n.seriesInvolved&&Hx(n,e),n}function Wx(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];Ci(n.getCoordinateSystems(),function(s){function l(g,m,y){var x=y.model.getModel("axisPointer",r),w=x.get("show");if(w&&(w!=="auto"||g||sl(x))){m==null&&(m=x.get("triggerTooltip")),x=g?Gx(y,f,r,t,g,m):x;var S=x.get("snap"),b=rr(y.model),_=m||S||y.type==="category",M=e.axesInfo[b]={key:b,axis:y,coordSys:s,axisPointerModel:x,triggerTooltip:m,involveSeries:_,snap:S,useHandle:sl(x),seriesModels:[]};u[b]=M,e.seriesInvolved|=_;var A=Zx(a,y);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[b]=M,C.mapper=a[A].mapper,M.linkGroup=C}}}if(s.axisPointerEnabled){var h=rr(s.model),u=e.coordSysAxesInfo[h]={};e.coordSysMap[h]=s;var c=s.model,f=c.getModel("tooltip",i);if(Ci(s.getAxes(),Uh(l,!1,null)),s.getTooltipAxes&&i&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get("axisPointer.type")==="cross",v=s.getTooltipAxes(f.get("axisPointer.axis"));(d||p)&&Ci(v.baseAxes,Uh(l,p?"cross":!0,d)),p&&Ci(v.otherAxes,Uh(l,"cross",!1))}}})}function Gx(e,t,n,i,r,a){var o=t.getModel("axisPointer"),s={};Ci(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(c){s[c]=ae(o.get(c))}),s.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(s.type="line");var l=s.label||(s.label={});if(l.show==null&&(l.show=!1),r==="cross"){var h=o.get("label.show");if(l.show=h!=null?h:!0,!a){var u=s.lineStyle=o.get("crossStyle");u&&Z(l,u.textStyle)}}return e.model.getModel("axisPointer",new oe(s,n,i))}function Hx(e,t){t.eachSeries(function(n){var i=n.coordinateSystem,r=n.get("tooltip.trigger",!0),a=n.get("tooltip.show",!0);i&&r!=="none"&&r!==!1&&r!=="item"&&a!==!1&&n.get("axisPointer.show",!0)!==!1&&Ci(e.coordSysAxesInfo[rr(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})},this)}function Zx(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var a=e[r]||{};if(al(a[i+"AxisId"],n.id)||al(a[i+"AxisIndex"],n.componentIndex)||al(a[i+"AxisName"],n.name))return r}}function al(e,t){return e==="all"||R(e)&&J(e,t)>=0||e===t}function Xx(e){var t=ol(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");o!=null&&(o=i.parse(o));var s=sl(n);a==null&&(r.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]),r.value=o,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function ol(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[rr(e)]}function qx(e){var t=ol(e);return t&&t.axisPointerModel}function sl(e){return!!e.get("handle.show")}function rr(e){return e.type+"||"+e.id}function Af(e,t,n,i,r,a){var o=dn.getAxisPointerClass(e.axisPointerClass);if(o){var s=qx(t);s?(e._axisPointer||(e._axisPointer=new o)).render(t,s,i,a):Cf(e,i)}}function Cf(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}function ll(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,h=r.dim,u=i.getRect(),c=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,p=h==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[h==="y"?p[f[l]]:c[0],h==="x"?p[f[l]]:c[3]],a.rotation=Math.PI/2*(h==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[f[s]]-p[f.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),Gt(n.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var m=t.get("axisLabel.rotate");return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function li(e,t,n){V.call(this),this.updateData(e,t,n)}function hl(e){return[e[0]/2,e[1]/2]}function Ux(e,t){this.parent.drift(e,t)}function jx(){!xs(this)&&Df.call(this)}function Yx(){!xs(this)&&Tf.call(this)}function Df(){if(!this.incremental&&!this.useHoverLayer){var e=this.__symbolOriginalScale,t=e[1]/e[0];this.animateTo({scale:[Math.max(1.1*e[0],e[0]+3),Math.max(1.1*e[1],e[1]+3*t)]},400,"elasticOut")}}function Tf(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function ul(e){this.group=new V,this._symbolCtor=e||li}function cl(e,t,n,i){return!(!t||isNaN(t[0])||isNaN(t[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(t[0],t[1])||e.getItemVisual(n,"symbol")==="none")}function kf(e){return e==null||F(e)||(e={isIgnore:e}),e||{}}function Pf(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}function dl(e,t,n){var i,r=e.getBaseAxis(),a=e.getOtherAxis(r),o=Kx(a,n),s=r.dim,l=a.dim,h=t.mapDimension(l),u=t.mapDimension(s),c=l==="x"||l==="radius"?1:0,f=O(e.dimensions,function(p){return t.mapDimension(p)}),d=t.getCalculationInfo("stackResultDimension");return(i|=Qt(t,f[0]))&&(f[0]=d),(i|=Qt(t,f[1]))&&(f[1]=d),{dataDimsForPoint:f,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:h,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Kx(e,t){var n=0,i=e.scale.getExtent();return t==="start"?n=i[0]:t==="end"?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function fl(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,i),o[1-a]=r,t.dataToPoint(o)}function $x(e,t){var n=[];return t.diff(e).add(function(i){n.push({cmd:"+",idx:i})}).update(function(i,r){n.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){n.push({cmd:"-",idx:i})}).execute(),n}function Bt(e){return isNaN(e[0])||isNaN(e[1])}function pl(e,t,n,i,r,a,o,s,l,h){return h!=="none"&&h?Qx.apply(this,arguments):Jx.apply(this,arguments)}function Qx(e,t,n,i,r,a,o,s,l,h,u){for(var c=0,f=n,d=0;i>d;d++){var p=t[f];if(f>=r||0>f)break;if(Bt(p)){if(u){f+=a;continue}break}if(f===n)e[a>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var v=t[c],g=h==="y"?1:0,m=(p[g]-v[g])*l;Ao(at,v),at[g]=v[g]+m,Ao(ot,p),ot[g]=p[g]-m,e.bezierCurveTo(at[0],at[1],ot[0],ot[1],p[0],p[1])}else e.lineTo(p[0],p[1]);c=f,f+=a}return d}function Jx(e,t,n,i,r,a,o,s,l,h,u){for(var c=0,f=n,d=0;i>d;d++){var p=t[f];if(f>=r||0>f)break;if(Bt(p)){if(u){f+=a;continue}break}if(f===n)e[a>0?"moveTo":"lineTo"](p[0],p[1]),Ao(at,p);else if(l>0){var v=f+a,y=t[v];if(u)for(;y&&Bt(t[v]);)v+=a,y=t[v];var g=.5,m=t[c],y=t[v];if(!y||Bt(y))Ao(ot,p);else{Bt(y)&&!u&&(y=p),Rr(Yh,y,m);var x,w;if(h==="x"||h==="y"){var S=h==="x"?0:1;x=Math.abs(p[S]-m[S]),w=Math.abs(p[S]-y[S])}else x=Ia(p,m),w=Ia(p,y);g=w/(w+x),f0(ot,p,Yh,-l*(1-g))}c0(at,at,s),d0(at,at,o),c0(ot,ot,s),d0(ot,ot,o),e.bezierCurveTo(at[0],at[1],ot[0],ot[1],p[0],p[1]),f0(at,p,Yh,l*g)}else e.lineTo(p[0],p[1]);c=f,f+=a}return d}function gl(e,t){var n=[1/0,1/0],i=[-1/0,-1/0];if(t)for(var r=0;r<e.length;r++){var a=e[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:t?n:i,max:t?i:n}}function Lf(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function Of(e){return typeof e=="number"?e:e?.5:0}function zf(e){var t=e.getGlobalExtent();if(e.onBand){var n=e.getBandWidth()/2-1,i=t[1]>t[0]?1:-1;t[0]+=i*n,t[1]-=i*n}return t}function e1(e,t,n){if(!n.valueDim)return[];for(var i=[],r=0,a=t.count();a>r;r++)i.push(fl(n,e,t,r));return i}function t1(e,t,n,i){var r=zf(e.getAxis("x")),a=zf(e.getAxis("y")),o=e.getBaseAxis().isHorizontal(),s=Math.min(r[0],r[1]),l=Math.min(a[0],a[1]),h=Math.max(r[0],r[1])-s,u=Math.max(a[0],a[1])-l;if(n)s-=.5,h+=.5,l-=.5,u+=.5;else{var c=i.get("lineStyle.width")||2,f=i.get("clipOverflow")?c/2:Math.max(h,u);o?(l-=f,u+=2*f):(s-=f,h+=2*f)}var d=new xe({shape:{x:s,y:l,width:h,height:u}});return t&&(d.shape[o?"width":"height"]=0,Ut(d,{shape:{width:h,height:u}},i)),d}function n1(e,t,n,i){var r=e.getAngleAxis(),a=e.getRadiusAxis(),o=a.getExtent().slice();o[0]>o[1]&&o.reverse();var s=r.getExtent(),l=Math.PI/180;n&&(o[0]-=.5,o[1]+=.5);var h=new xr({shape:{cx:Ee(e.cx,1),cy:Ee(e.cy,1),r0:Ee(o[0],1),r:Ee(o[1],1),startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:r.inverse}});return t&&(h.shape.endAngle=-s[0]*l,Ut(h,{shape:{endAngle:-s[1]*l}},i)),h}function ga(e,t,n,i){return e.type==="polar"?n1(e,t,n,i):t1(e,t,n,i)}function Jt(e,t,n){for(var i=t.getBaseAxis(),r=i.dim==="x"||i.dim==="radius"?0:1,a=[],o=0;o<e.length-1;o++){var s=e[o+1],l=e[o];a.push(l);var h=[];switch(n){case"end":h[r]=s[r],h[1-r]=l[1-r],a.push(h);break;case"middle":var u=(l[r]+s[r])/2,c=[];h[r]=c[r]=u,h[1-r]=l[1-r],c[1-r]=s[1-r],a.push(h),a.push(c);break;default:h[r]=l[r],h[1-r]=s[1-r],a.push(h)}}return e[o]&&a.push(e[o]),a}function i1(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&t.type==="cartesian2d"){for(var i,r,a=n.length-1;a>=0;a--){var o=n[a].dimension,s=e.dimensions[o],l=e.getDimensionInfo(s);if(i=l&&l.coordDim,i==="x"||i==="y"){r=n[a];break}}if(r){var h=t.getAxis(i),u=O(r.stops,function(y){return{coord:h.toGlobalCoord(h.dataToCoord(y.value)),color:y.color}}),c=u.length,f=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=10,p=u[0].coord-d,v=u[c-1].coord+d,g=v-p;if(.001>g)return"transparent";I(u,function(y){y.offset=(y.coord-p)/g}),u.push({offset:c?u[c-1].offset:.5,color:f[1]||"transparent"}),u.unshift({offset:c?u[0].offset:.5,color:f[0]||"transparent"});var m=new _i(0,0,0,0,u,!0);return m[i]=p,m[i+"2"]=v,m}}}function r1(e,t,n){var i=e.get("showAllSymbol"),r=i==="auto";if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!a1(a,t))){var o=t.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){s[l.tickValue]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function a1(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),a=Math.max(1,Math.round(r/5)),o=0;r>o;o+=a)if(1.5*li.getSymbolSize(t,o)[e.isHorizontal()?1:0]>i)return!1;return!0}function o1(e,t,n,i){var r=t.getData(),a=this.dataIndex,o=r.getName(a),s=t.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:e,name:o,seriesId:t.id}),r.each(function(l){Ef(r.getItemGraphicEl(l),r.getItemLayout(l),t.isSelected(r.getName(l)),s,n)})}function Ef(e,t,n,i,r){var a=(t.startAngle+t.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,h=[o*l,s*l];r?e.animate().when(200,{position:h}).start("bounceOut"):e.attr("position",h)}function ml(e,t){function n(){a.ignore=a.hoverIgnore,o.ignore=o.hoverIgnore}function i(){a.ignore=a.normalIgnore,o.ignore=o.normalIgnore}V.call(this);var r=new xr({z2:2}),a=new $a,o=new pe;this.add(r),this.add(a),this.add(o),this.updateData(e,t,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function Rf(e,t,n,i,r,a,o){function s(g,m,y){for(var x=g;m>x;x++)if(e[x].y+=y,x>g&&m>x+1&&e[x+1].y>e[x].y+e[x].height)return void l(x,y/2);l(m-1,y/2)}function l(g,m){for(var y=g;y>=0&&(e[y].y-=m,!(y>0&&e[y].y>e[y-1].y+e[y-1].height));y--);}function h(g,m,y,x,w,S){for(var b=(S>0,m?Number.MAX_VALUE:0),_=0,M=g.length;M>_;_++)if(g[_].position!=="center"){var A=Math.abs(g[_].y-x),C=g[_].len,D=g[_].len2,T=w+C>A?Math.sqrt((w+C+D)*(w+C+D)-A*A):Math.abs(g[_].x-y);m&&T>=b&&(T=b-10),!m&&b>=T&&(T=b+10),g[_].x=y+T*S,b=T}}e.sort(function(g,m){return g.y-m.y});for(var u,c=0,f=e.length,d=[],p=[],v=0;f>v;v++)u=e[v].y-c,0>u&&s(v,f,-u,r),c=e[v].y+e[v].height;0>o-c&&l(f-1,c-o);for(var v=0;f>v;v++)e[v].y>=n?p.push(e[v]):d.push(e[v]);h(d,!1,t,n,i,r),h(p,!0,t,n,i,r)}function s1(e,t,n,i,r,a){for(var o=[],s=[],l=0;l<e.length;l++)e[l].x<t?o.push(e[l]):s.push(e[l]);Rf(s,t,n,i,1,r,a),Rf(o,t,n,i,-1,r,a);for(var l=0;l<e.length;l++){var h=e[l].linePoints;if(h){var u=h[1][0]-h[2][0];h[2][0]=e[l].x<t?e[l].x+3:e[l].x-3,h[1][1]=h[2][1]=e[l].y,h[1][0]=h[2][0]+u}}}function l1(e,t){return t=t||[0,0],O(["x","y"],function(n,i){var r=this.getAxis(n),a=t[i],o=e[i]/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))},this)}function h1(e,t){return t=t||[0,0],O([0,1],function(n){var i=t[n],r=e[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function u1(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function c1(e,t){return O(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),a=t[i],o=e[i]/2,s="dataTo"+n,l=r.type==="category"?r.getBandWidth():Math.abs(r[s](a-o)-r[s](a+o));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function d1(e){var t,n=e.type;if(n==="path"){var i=e.shape,r=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=Wf(i);t=Vi(a,null,r,i.layout||"center"),t.__customPathData=a}else if(n==="image")t=new Oe({}),t.__customImagePath=e.style.image;else if(n==="text")t=new pe({}),t.__customText=e.style.text;else{var o=_r[n.charAt(0).toUpperCase()+n.slice(1)];t=new o}return t.__customGraphicType=n,t.name=e.name,t}function f1(e,t,n,i,r,a,o){var s={},l=n.style||{};if(n.shape&&(s.shape=ae(n.shape)),n.position&&(s.position=n.position.slice()),n.scale&&(s.scale=n.scale.slice()),n.origin&&(s.origin=n.origin.slice()),n.rotation&&(s.rotation=n.rotation),e.type==="image"&&n.style){var h=s.style={};I(["x","y","width","height"],function(d){Bf(d,h,l,e.style,a)})}if(e.type==="text"&&n.style){var h=s.style={};I(["x","y"],function(p){Bf(p,h,l,e.style,a)}),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}if(e.type!=="group"&&(e.useStyle(l),a)){e.style.opacity=0;var u=l.opacity;u==null&&(u=1),Ut(e,{style:{opacity:u}},i,t)}a?e.attr(s):ye(e,s,i,t),n.hasOwnProperty("z2")&&e.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&e.attr("silent",n.silent),n.hasOwnProperty("invisible")&&e.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&e.attr("ignore",n.ignore),n.hasOwnProperty("info")&&e.attr("info",n.info);var c=n.styleEmphasis,f=c===!1;e.__cusHasEmphStl&&c==null||!e.__cusHasEmphStl&&f||($r(e,c),e.__cusHasEmphStl=!f),o&&_s(e,!f)}function Bf(e,t,n,i,r){n[e]==null||r||(t[e]=n[e],n[e]=i[e])}function Nf(e,t,n,i){function r(_){_==null&&(_=v),b&&(g=t.getItemModel(_),m=g.getModel(bS),y=g.getModel(SS),x=t.getItemVisual(_,"color"),b=!1)}function a(_,M){return M==null&&(M=v),t.get(t.getDimension(_||0),M)}function o(_,M){M==null&&(M=v),r(M);var A=g.getModel(_S).getItemStyle();x!=null&&(A.fill=x);var C=t.getItemVisual(M,"opacity");return C!=null&&(A.opacity=C),We(A,m,null,{autoColor:x,isRectText:!0}),A.text=m.getShallow("show")?Ce(e.getFormattedLabel(M,"normal"),pa(t,M)):null,_&&H(A,_),A}function s(_,M){M==null&&(M=v),r(M);var A=g.getModel(wS).getItemStyle();return We(A,y,null,{isRectText:!0},!0),A.text=y.getShallow("show")?vn(e.getFormattedLabel(M,"emphasis"),e.getFormattedLabel(M,"normal"),pa(t,M)):null,_&&H(A,_),A}function l(_,M){return M==null&&(M=v),t.getItemVisual(M,_)}function h(_){if(d.getBaseAxis){var M=d.getBaseAxis();return hx(Z({axis:M},_),i)}}function u(){return n.getCurrentSeriesIndices()}function c(_){return bs(_,n)}var f=e.get("renderItem"),d=e.coordinateSystem,p={};d&&(p=d.prepareCustoms?d.prepareCustoms():IS[d.type](d));var v,g,m,y,x,w=Z({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:a,style:o,styleEmphasis:s,visual:l,barLayout:h,currentSeriesIndices:u,font:c},p.api||{}),S={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:p.coordSys,dataInsideLength:t.count(),encode:p1(e.getData())},b=!0;return function(_,M){return v=_,b=!0,f&&f(Z({dataIndexInside:_,dataIndex:t.getRawIndex(_),actionType:M?M.type:null},S),w)}}function p1(e){var t={};return I(e.dimensions,function(n,i){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,o=t[a]=t[a]||[];o[r.coordDimIndex]=i}}),t}function vl(e,t,n,i,r,a){return e=yl(e,t,n,i,r,a,!0),e&&a.setItemGraphicEl(t,e),e}function yl(e,t,n,i,r,a,o){var s=!n;n=n||{};var l=n.type,h=n.shape,u=n.style;if(e&&(s||l!=null&&l!==e.__customGraphicType||l==="path"&&y1(h)&&Wf(h)!==e.__customPathData||l==="image"&&Gf(u,"image")&&u.image!==e.__customImagePath||l==="text"&&Gf(h,"text")&&u.text!==e.__customText)&&(r.remove(e),e=null),!s){var c=!e;return!e&&(e=d1(n)),f1(e,t,n,i,a,c,o),l==="group"&&g1(e,t,n,i,a),r.add(e),e}}function g1(e,t,n,i,r){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,h=s===!1;if(o||l||h){if(l)return void m1({oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,animatableModel:i,group:e,data:r});h&&e.removeAll();for(var u=0;o>u;u++)a[u]&&yl(e.childAt(u),t,a[u],i,e,r)}}function m1(e){new ha(e.oldChildren,e.newChildren,Ff,Ff,e).add(Vf).update(Vf).remove(v1).execute()}function Ff(e,t){var n=e&&e.name;return n!=null?n:MS+t}function Vf(e,t){var n=this.context,i=e!=null?n.newChildren[e]:null,r=t!=null?n.oldChildren[t]:null;yl(r,n.dataIndex,i,n.animatableModel,n.group,n.data)}function v1(e){var t=this.context,n=t.oldChildren[e];n&&t.group.remove(n)}function Wf(e){return e&&(e.pathData||e.d)}function y1(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function Gf(e,t){return e&&e.hasOwnProperty(t)}function xl(e,t,n){var i,r={},a=e==="toggleSelected";return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();I(s,function(l){var h=l.get("name");if(h!==`
`&&h!==""){var u=o.isSelected(h);r[h]=r.hasOwnProperty(h)?r[h]&&u:u}})}),{name:t.name,selected:r}}function x1(r,t){var n=wr(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var r=new xe({shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[1]+n[3],height:r.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return r}function Hf(e,t){t.dispatchAction({type:"legendToggleSelect",name:e})}function Zf(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function Xf(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function qf(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,ri(t,n,{type:"box",ignoreSize:r})}function Uf(e,t,n,i,r){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)return void n.showPointer(e,t);var o=_1(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&r.seriesIndex==null&&H(r,s[0]),!i&&e.snap&&a.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s,r),n.showTooltip(e,o,l)}}function _1(e,t){var n=t.axis,i=n.dim,r=e,a=[],o=Number.MAX_VALUE,s=-1;return Ct(t.seriesModels,function(l){var h,u,c=l.getData().mapDimension(i,!0);if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,e,n);u=f.dataIndices,h=f.nestestValue}else{if(u=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!u.length)return;h=l.getData().get(c[0],u[0])}if(h!=null&&isFinite(h)){var d=e-h,p=Math.abs(d);o>=p&&((o>p||d>=0&&0>s)&&(o=p,s=d,r=h,a.length=0),Ct(u,function(v){a.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:a,snapToValue:r}}function w1(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function b1(e,t,n,i){var r=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,h=rr(l),u=e.map[h];u||(u=e.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function S1(e,t,n){var i=n.axesInfo=[];Ct(t,function(r,a){var o=r.axisPointerModel.option,s=e[a];s?(!r.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:o.value})})}function M1(e,t,n,i){if(ma(t)||!e.list.length)return void i({type:"hideTip"});var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}function I1(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",a=b0(i)[r]||{},o=b0(i)[r]={};Ct(e,function(h){var u=h.axisPointerModel.option;u.status==="show"&&Ct(u.seriesDataIndices,function(c){var f=c.seriesIndex+" | "+c.dataIndex;o[f]=c})});var s=[],l=[];I(a,function(h,u){!o[u]&&l.push(h)}),I(o,function(h,u){!a[u]&&s.push(h)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function A1(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function jf(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function ma(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Yf(e,t,n){if(!X.node){var i=t.getZr();Vt(i).records||(Vt(i).records={}),C1(i,t);var r=Vt(i).records[e]||(Vt(i).records[e]={});r.handler=n}}function C1(e,t){function n(i,r){e.on(i,function(a){var o=k1(t);kS(Vt(e).records,function(s){s&&r(s,a,o.dispatchAction)}),D1(o.pendings,t)})}Vt(e).initialized||(Vt(e).initialized=!0,n("click",ee(Kf,"click")),n("mousemove",ee(Kf,"mousemove")),n("globalout",T1))}function D1(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function T1(e,t,n){e.handler("leave",null,n)}function Kf(e,t,n,i){t.handler(e,n,i)}function k1(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function _l(e,t){if(!X.node){var n=t.getZr(),i=(Vt(n).records||{})[e];i&&(Vt(n).records[e]=null)}}function ar(){}function $f(e,t,n,i){Qf(Hn(n).lastProp,i)||(Hn(n).lastProp=i,t?ye(n,i,e):(n.stopAnimation(),n.attr(i)))}function Qf(e,t){if(F(e)&&F(t)){var n=!0;return I(t,function(i,r){n=n&&Qf(e[r],i)}),!!n}return e===t}function Jf(e,t){e[t.get("label.show")?"show":"hide"]()}function wl(e){return{position:e.position.slice(),rotation:e.rotation||0}}function ep(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),r!=null&&(a.zlevel=r),a.silent=n)})}function P1(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return n==="line"?(t=i.getLineStyle(),t.fill=null):n==="shadow"&&(t=i.getAreaStyle(),t.stroke=null),t}function L1(e,t,n,i,r){var a=n.get("value"),o=tp(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),s=n.getModel("label"),l=wr(s.get("padding")||0),h=s.getFont(),u=Sn(o,h),c=r.position,f=u.width+l[1]+l[3],d=u.height+l[0]+l[2],p=r.align;p==="right"&&(c[0]-=f),p==="center"&&(c[0]-=f/2);var v=r.verticalAlign;v==="bottom"&&(c[1]-=d),v==="middle"&&(c[1]-=d/2),O1(c,f,d,i);var g=s.get("backgroundColor");g&&g!=="auto"||(g=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:f,height:d,r:s.get("borderRadius")},position:c.slice(),style:{text:o,textFont:h,textFill:s.getTextColor(),textPosition:"inside",fill:g,stroke:s.get("borderColor")||"transparent",lineWidth:s.get("borderWidth")||0,shadowBlur:s.get("shadowBlur"),shadowColor:s.get("shadowColor"),shadowOffsetX:s.get("shadowOffsetX"),shadowOffsetY:s.get("shadowOffsetY")},z2:10}}function O1(e,t,n,i){var r=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function tp(e,t,n,i,r){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:r.precision}),o=r.formatter;if(o){var s={value:il(t,e),seriesData:[]};I(i,function(l){var h=n.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,c=h&&h.getDataParams(u);c&&s.seriesData.push(c)}),ve(o)?a=o.replace("{value}",a):$e(o)&&(a=o(s))}return a}function np(e,t,n){var i=Ot();return $n(i,i,n.rotation),wn(i,i,n.position),ni([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function z1(e,t,n,i,r,a){var o=Tr.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),L1(t,i,r,a,{position:np(i.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function E1(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function R1(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function ip(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}function rp(e){return e.dim==="x"?0:1}function B1(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+e+"s "+t+",top "+e+"s "+t;return O(zS,function(i){return i+"transition:"+n}).join(";")}function N1(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();return i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px"),I0(["decoration","align"],function(r){var a=e.get(r);a&&t.push("text-"+r+":"+a)}),t.join(";")}function F1(e){var t=[],n=e.get("transitionDuration"),i=e.get("backgroundColor"),r=e.getModel("textStyle"),a=e.get("padding");return n&&t.push(B1(n)),i&&(X.canvasSupported?t.push("background-Color:"+i):(t.push("background-Color:#"+zu(i)),t.push("filter:alpha(opacity=70)"))),I0(["width","color","radius"],function(o){var s="border-"+o,l=OS(s),h=e.get(l);h!=null&&t.push(s+":"+h+(o==="color"?"":"px"))}),t.push(N1(r)),a!=null&&t.push("padding:"+wr(a).join("px ")+"px"),t.join(";")+";"}function bl(e,t){if(X.wxa)return null;var n=document.createElement("div"),i=this._zr=t.getZr();this.el=n,this._x=t.getWidth()/2,this._y=t.getHeight()/2,e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(a){if(a=a||window.event,!r._enterable){var o=i.handler;xn(e,a,!0),o.dispatch("mousemove",a)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function Sl(e){this._zr=e.getZr(),this._show=!1,this._hideTimeout}function Ml(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(oe.isInstance(n)&&(n=n.get("tooltip",!0)),typeof n=="string"&&(n={formatter:n}),t=new oe(n,t,t.ecModel))}return t}function ap(e,t){return e.dispatchAction||$(t.dispatchAction,t)}function V1(e,t,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,h=s.height;return a!=null&&(e+l+a>i?e-=l+a:e+=a),o!=null&&(t+h+o>r?t-=h+o:t+=o),[e,t]}function W1(e,t,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return e=Math.min(e+o,i)-o,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function G1(e,t,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=t.width,h=t.height;switch(e){case"inside":o=t.x+l/2-i/2,s=t.y+h/2-r/2;break;case"top":o=t.x+l/2-i/2,s=t.y-r-a;break;case"bottom":o=t.x+l/2-i/2,s=t.y+h+a;break;case"left":o=t.x-i-a,s=t.y+h/2-r/2;break;case"right":o=t.x+l+a,s=t.y+h/2-r/2}return[o,s]}function op(e){return e==="center"||e==="middle"}function va(e){qr(e,"label",["show"])}function H1(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Z1(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Il(e,t,n,i,r,a){var o=[],s=Qt(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,h=Al(t,l,e),u=t.indicesOfNearest(l,h)[0];o[r]=t.get(n,u),o[a]=t.get(i,u);var c=jc(t.get(i,u));return c=Math.min(c,20),c>=0&&(o[a]=+o[a].toFixed(c)),o}function or(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!Z1(t)&&!R(t.coord)&&i){var r=i.dimensions,a=sp(t,n,i,e);if(t=ae(t),t.type&&tu[t.type]&&a.baseAxis&&a.valueAxis){var o=T0(r,a.baseAxis.dim),s=T0(r,a.valueAxis.dim);t.coord=tu[t.type](n,a.baseDataDim,a.valueDataDim,o,s),t.value=t.coord[s]}else{for(var l=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis],h=0;2>h;h++)tu[l[h]]&&(l[h]=Al(n,n.mapDimension(r[h]),l[h]));t.coord=l}}return t}function sp(e,t,n,i){var r={};return e.valueIndex!=null||e.valueDim!=null?(r.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(X1(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function X1(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var r=0;r<i.length;r++){var a=n.getDimensionInfo(i[r]);if(a.name===t)return a.coordDim}}function sr(e,t){return e&&e.containData&&t.coord&&!H1(t)?e.containData(t.coord):!0}function lp(e,t,n,i){return 2>i?e.coord&&e.coord[i]:e.value}function Al(e,t,n){if(n==="average"){var i=0,r=0;return e.each(t,function(a){isNaN(a)||(i+=a,r++)}),i/r}return n==="median"?e.getMedian(t):e.getDataExtent(t,!0)[n==="max"?1:0]}function hp(e,t,n){var i=t.coordinateSystem;e.each(function(r){var a,o=e.getItemModel(r),s=Q(o.get("x"),n.getWidth()),l=Q(o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var h=e.get(i.dimensions[0],r),u=e.get(i.dimensions[1],r);a=i.dataToPoint([h,u])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),e.setItemLayout(r,a)})}function q1(e,t,n){var i;i=e?O(e&&e.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return Z({name:o},s)}):[{name:"value",type:"float"}];var r=new Ue(i,n),a=O(n.get("data"),ee(or,t));return e&&(a=Pe(a,ee(sr,e))),r.initData(a,null,e?lp:function(o){return o.value}),r}function Cl(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}function up(e){return"_"+e+"Type"}function cp(e,t,n){var i=t.getItemVisual(n,"color"),r=t.getItemVisual(n,e),a=t.getItemVisual(n,e+"Size");if(r&&r!=="none"){R(a)||(a=[a,a]);var o=Tn(r,-a[0]/2,-a[1]/2,a[0],a[1],i);return o.name=e,o}}function U1(e){var t=new BS({name:"line"});return Dl(t.shape,e),t}function Dl(e,t){var n=t[0],i=t[1],r=t[2];e.x1=n[0],e.y1=n[1],e.x2=i[0],e.y2=i[1],e.percent=1,r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}function j1(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.childOfName("label");if(t||n||!i.ignore){for(var r=1,a=this.parent;a;)a.scale&&(r/=a.scale[0]),a=a.parent;var o=e.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),h=o.pointAt(s),u=Rr([],h,l);if(Nr(u,u),t){t.attr("position",l);var c=o.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),t.attr("scale",[r*s,r*s])}if(n){n.attr("position",h);var c=o.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),n.attr("scale",[r*s,r*s])}if(!i.ignore){i.attr("position",h);var f,d,p,v=5*r;if(i.__position==="end")f=[u[0]*v+h[0],u[1]*v+h[1]],d=u[0]>.8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if(i.__position==="middle"){var g=s/2,c=o.tangentAt(g),m=[c[1],-c[0]],y=o.pointAt(g);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]),f=[y[0]+m[0]*v,y[1]+m[1]*v],d="center",p="bottom";var x=-Math.atan2(c[1],c[0]);h[0]<l[0]&&(x=Math.PI+x),i.attr("rotation",x)}else f=[-u[0]*v+l[0],-u[1]*v+l[1]],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||p,textAlign:i.__textAlign||d},position:f,scale:[r,r]})}}}}function Tl(e,t,n){V.call(this),this._createLine(e,t,n)}function dp(e){this._ctor=e||Tl,this.group=new V}function Y1(e,t,n,i){var r=t.getItemLayout(n);if(kl(r)){var a=new e._ctor(t,n,i);t.setItemGraphicEl(n,a),e.group.add(a)}}function K1(e,t,n,i,r,a){var o=t.getItemGraphicEl(i);return kl(n.getItemLayout(r))?(o?o.updateData(n,r,a):o=new e._ctor(n,r,a),n.setItemGraphicEl(r,o),void e.group.add(o)):void e.group.remove(o)}function fp(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function pp(e){return isNaN(e[0])||isNaN(e[1])}function kl(e){return!pp(e[0])&&!pp(e[1])}function ya(e){return!isNaN(e)&&!isFinite(e)}function gp(e,t,n,i){var r=1-e,a=i.dimensions[e];return ya(t[r])&&ya(n[r])&&t[e]===n[e]&&i.getAxis(a).containData(t[e])}function $1(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,i=t[1].coord;if(n&&i&&(gp(1,n,i,e)||gp(0,n,i,e)))return!0}return sr(e,t[0])&&sr(e,t[1])}function Pl(e,t,n,i,r){var a,o=i.coordinateSystem,s=e.getItemModel(t),l=Q(s.get("x"),r.getWidth()),h=Q(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,c=e.get(u[0],t),f=e.get(u[1],t);a=o.dataToPoint([c,f])}if(o.type==="cartesian2d"){var d=o.getAxis("x"),p=o.getAxis("y"),u=o.dimensions;ya(e.get(u[0],t))?a[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):ya(e.get(u[1],t))&&(a[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(h)||(a[1]=h)}else a=[l,h];e.setItemLayout(t,a)}function Q1(e,t,n){var i;i=e?O(e&&e.dimensions,function(h){var u=t.getData().getDimensionInfo(t.getData().mapDimension(h))||{};return Z({name:h},u)}):[{name:"value",type:"float"}];var r=new Ue(i,n),a=new Ue(i,n),o=new Ue([],n),s=O(n.get("data"),ee(NS,t,e,n));e&&(s=Pe(s,ee($1,e)));var l=e?lp:function(h){return h.value};return r.initData(O(s,function(h){return h[0]}),null,l),a.initData(O(s,function(h){return h[1]}),null,l),o.initData(O(s,function(h){return h[2]})),o.hasItemOption=!0,{from:r,to:a,line:o}}function xa(e){return!isNaN(e)&&!isFinite(e)}function mp(e,t,n){var i=1-e;return xa(t[i])&&xa(n[i])}function J1(e,t){var n=t.coord[0],i=t.coord[1];return e.type==="cartesian2d"&&n&&i&&(mp(1,n,i,e)||mp(0,n,i,e))?!0:sr(e,{coord:n,x:t.x0,y:t.y0})||sr(e,{coord:i,x:t.x1,y:t.y1})}function vp(e,t,n,i,r){var a,o=i.coordinateSystem,s=e.getItemModel(t),l=Q(s.get(n[0]),r.getWidth()),h=Q(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition)a=i.getMarkerPosition(e.getValues(n,t));else{var u=e.get(n[0],t),c=e.get(n[1],t),f=[u,c];o.clampData&&o.clampData(f,f),a=o.dataToPoint(f,!0)}if(o.type==="cartesian2d"){var d=o.getAxis("x"),p=o.getAxis("y"),u=e.get(n[0],t),c=e.get(n[1],t);xa(u)?a[0]=d.toGlobalCoord(d.getExtent()[n[0]==="x0"?0:1]):xa(c)&&(a[1]=p.toGlobalCoord(p.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(a[0]=l),isNaN(h)||(a[1]=h)}else a=[l,h];return a}function e_(e,t,n){var i,r,a=["x0","y0","x1","y1"];e?(i=O(e&&e.dimensions,function(l){var h=t.getData(),u=h.getDimensionInfo(h.mapDimension(l))||{};return Z({name:l},u)}),r=new Ue(O(a,function(l,h){return{name:l,type:i[h%2].type}}),n)):(i=[{name:"value",type:"float"}],r=new Ue(i,n));var o=O(n.get("data"),ee(FS,t,e,n));e&&(o=Pe(o,ee(J1,e)));var s=e?function(l,h,u,c){return l.coord[Math.floor(c/2)][c%2]}:function(l){return l.value};return r.initData(o,null,s),r.hasItemOption=!0,r}function t_(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),yp(e),kn(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});kn(i,"position")||(i.position=e.controlPosition),i.position!=="none"||kn(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}I(e.data||[],function(r){F(r)&&!R(r)&&(!kn(r,"value")&&kn(r,"name")&&(r.value=r.name),yp(r))})}function yp(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};I(i,function(o,s){a[s]||kn(r,s)||(r[s]=o)}),n.label&&!kn(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function kn(e,t){return e.hasOwnProperty(t)}function n_(e,t){return Yt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function i_(e,t,n,i){var r=Vi(e.get(t).replace(/^path:\/\//,""),ae(i||{}),new ie(n[0],n[1],n[2],n[3]),"center");return r}function xp(e,t,n,i,r,a){var o=t.get("color");if(r)r.setColor(o),n.add(r),a&&a.onUpdate(r);else{var s=e.get("symbol");r=Tn(s,-1,-1,2,2,o),r.setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var l=t.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(l),i=K({rectHover:!0,z2:100},i,!0);var h=e.get("symbolSize");h=h instanceof Array?h.slice():[+h,+h],h[0]/=2,h[1]/=2,i.scale=h;var u=e.get("symbolOffset");if(u){var c=i.position=i.position||[0,0];c[0]+=Q(u[0],h[0]),c[1]+=Q(u[1],h[1])}var f=e.get("symbolRotate");return i.rotation=(f||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function _p(e,t,n,i,r){if(!e.dragging){var a=i.getModel("checkpointStyle"),o=n.dataToCoord(i.getData().get(["value"],t));r||!a.get("animation",!0)?e.attr({position:[o,0]}):(e.stopAnimation(!0),e.animateTo({position:[o,0]},a.get("animationDuration",!0),a.get("animationEasing",!0)))}}function r_(e){return J(ZS,e)>=0}function a_(e,t){e=e.slice();var n=O(e,Ts);t=(t||[]).slice();var i=O(t,Ts);return function(r,a){I(e,function(o,s){for(var l={name:o,capital:n[s]},h=0;h<t.length;h++)l[t[h]]=o+i[h];r.call(a,l)})}}function o_(e,t,n){function i(o,s){return J(s.nodes,o)>=0}function r(o,s){var l=!1;return t(function(h){I(n(o,h)||[],function(u){s.records[h.name][u]&&(l=!0)})}),l}function a(o,s){s.nodes.push(o),t(function(l){I(n(o,l)||[],function(h){s.records[l.name][h]=!0})})}return function(o){function s(u){!i(u,l)&&r(u,l)&&(a(u,l),h=!0)}var l={nodes:[],records:{}};if(t(function(u){l.records[u.name]={}}),!o)return l;a(o,l);var h;do h=!1,e(s);while(h);return l}}function s_(e,t,n){var i=[1/0,-1/0];return gn(n,function(r){var a=r.getData();a&&gn(a.mapDimension(t,!0),function(o){var s=a.getApproximateExtent(o);s[0]<i[0]&&(i[0]=s[0]),s[1]>i[1]&&(i[1]=s[1])})}),i[1]<i[0]&&(i=[NaN,NaN]),l_(e,i),i}function l_(e,t){var n=e.getAxisModel(),i=n.getMin(!0),r=n.get("type")==="category",a=r&&n.getCategories().length;i!=null&&i!=="dataMin"&&typeof i!="function"?t[0]=i:r&&(t[0]=a>0?0:NaN);var o=n.getMax(!0);return o!=null&&o!=="dataMax"&&typeof o!="function"?t[1]=o:r&&(t[1]=a>0?a-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function wp(e,t){var n=e.getAxisModel(),i=e._percentWindow,r=e._valueWindow;if(i){var a=Ms(r,[0,500]);a=Math.min(a,20);var o=t||i[0]===0&&i[1]===100;n.setRange(o?null:+r[0].toFixed(a),o?null:+r[1].toFixed(a))}}function h_(e){var t=e._minMaxSpan={},n=e._dataZoomModel;gn(["min","max"],function(i){t[i+"Span"]=n.get(i+"Span");var r=n.get(i+"ValueSpan");if(r!=null&&(t[i+"ValueSpan"]=r,r=e.getAxisModel().axis.scale.parse(r),r!=null)){var a=e._dataExtent;t[i+"Span"]=jt(a[0]+r,a,[0,100],!0)}})}function bp(e){var t={};return ki(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Sp(e,t){var n=e._rangePropMode,i=e.get("rangeMode");ki([["start","startValue"],["end","endValue"]],function(r,a){var o=t[r[0]]!=null,s=t[r[1]]!=null;o&&!s?n[a]="percent":!o&&s?n[a]="value":i?n[a]=i[a]:o&&(n[a]="percent")})}function Ll(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:0>n?1:t?-1:1}}function _a(e,t){return Math.min(t[1],Math.max(t[0],e))}function u_(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Mp(e){return e==="vertical"?"ns-resize":"ew-resize"}function Ip(e,t){return!!c_(e)[t]}function c_(e){return e[F0]||(e[F0]={})}function Ap(e){this.pointerChecker,this._zr=e,this._opt={};var t=$,n=t(d_,this),i=t(f_,this),r=t(p_,this),a=t(g_,this),o=t(m_,this);Se.call(this),this.setPointerChecker=function(s){this.pointerChecker=s},this.enable=function(s,l){this.disable(),this._opt=Z(ae(l)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),s==null&&(s=!0),(s===!0||s==="move"||s==="pan")&&(e.on("mousedown",n),e.on("mousemove",i),e.on("mouseup",r)),(s===!0||s==="scale"||s==="zoom")&&(e.on("mousewheel",a),e.on("pinch",o))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",i),e.off("mouseup",r),e.off("mousewheel",a),e.off("pinch",o)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function d_(e){if(!(Xo(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function f_(e){if(!Xo(e)&&wa("moveOnMouseMove",e,this._opt)&&this._dragging&&e.gestureEvent!=="pinch"&&!Ip(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,a=t-i,o=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&ui(e.event),Cp(this,"pan","moveOnMouseMove",e,{dx:a,dy:o,oldX:i,oldY:r,newX:t,newY:n})}}function p_(e){Xo(e)||(this._dragging=!1)}function g_(e){var t=wa("zoomOnMouseWheel",e,this._opt),n=wa("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),a=e.offsetX,o=e.offsetY;if(i!==0&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;Ol(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:a,originY:o})}if(n){var h=Math.abs(i),u=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Ol(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:a,originY:o})}}}function m_(e){if(!Ip(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:.9090909090909091;Ol(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function Ol(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(ui(i.event),Cp(e,t,n,i,r))}function Cp(e,t,n,i,r){r.isAvailableBehavior=$(wa,null,n,i),e.trigger(t,r)}function wa(e,t,n){var i=n[e];return!e||i&&(!ve(i)||t.event[i+"Key"])}function v_(e,t){var n=Tp(e),i=t.dataZoomId,r=t.coordId;I(n,function(s){var l=s.dataZoomInfos;l[i]&&J(t.allCoordIds,r)<0&&(delete l[i],s.count--)}),kp(n);var a=n[r];a||(a=n[r]={coordId:r,dataZoomInfos:{},count:0},a.controller=x_(e,a),a.dispatchAction=ee(__,e)),!a.dataZoomInfos[i]&&a.count++,a.dataZoomInfos[i]=t;var o=w_(a.dataZoomInfos);a.controller.enable(o.controlType,o.opt),a.controller.setPointerChecker(t.containsPoint),Vs(a,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function y_(e,t){var n=Tp(e);I(n,function(i){i.controller.dispose();var r=i.dataZoomInfos;r[t]&&(delete r[t],i.count--)}),kp(n)}function Dp(e){return e.type+"\0_"+e.id}function Tp(e){var t=e.getZr();return t[V0]||(t[V0]={})}function x_(e,t){var n=new Ap(e.getZr());return I(["pan","zoom","scrollMove"],function(i){n.on(i,function(r){var a=[];I(t.dataZoomInfos,function(o){if(r.isAvailableBehavior(o.dataZoomModel.option)){var s=(o.getRange||{})[i],l=s&&s(t.controller,r);!o.dataZoomModel.get("disabled",!0)&&l&&a.push({dataZoomId:o.dataZoomId,start:l[0],end:l[1]})}}),a.length&&t.dispatchAction(a)})}),n}function kp(e){I(e,function(t,n){t.count||(t.controller.dispose(),delete e[n])})}function __(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function w_(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return I(e,function(a){var o=a.dataZoomModel,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[n+s]>i[n+t]&&(t=s),r&=o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function Pp(e){return function(t,n,i,r){var a=this._range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,i,r);return lu(l,o,[0,100],"all"),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}function zl(e){return pu(e)}function b_(){if(!Z0&&je){Z0=!0;var e=je.styleSheets;e.length<31?je.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}function hi(e){return parseInt(e,10)}function ba(e,t){b_(),this.root=e,this.storage=t;var n=document.createElement("div"),i=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=i,this._vmlViewport=n,this.resize();var r=t.delFromStorage,a=t.addToStorage;t.delFromStorage=function(o){r.call(t,o),o&&o.onRemove&&o.onRemove(i)},t.addToStorage=function(o){o.onAdd&&o.onAdd(i),a.call(t,o)},this._firstPaint=!0}function S_(e){return function(){dr('In IE8.0 VML mode painter not support method "'+e+'"')}}var M_=2311,Lp=function(){return M_++},Op={};Op=typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:Pi(navigator.userAgent);var X=Op,zp={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Ep={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},lr=Object.prototype.toString,hr=Array.prototype,I_=hr.forEach,A_=hr.filter,ur=hr.slice,C_=hr.map,D_=hr.reduce,El={},Sa=function(){return El.createCanvas()};El.createCanvas=function(){return document.createElement("canvas")};var Ma,Rp="__ec_primitive__";Er.prototype={constructor:Er,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){t!==void 0&&(e=$(e,t));for(var n in this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}};var T_=(Object.freeze||Object)({$override:Iu,clone:ae,merge:K,mergeAll:Eo,extend:H,defaults:Z,createCanvas:Sa,getContext:Au,indexOf:J,inherits:be,mixin:ue,isArrayLike:Tt,each:I,map:O,reduce:Li,filter:Pe,find:$0,bind:$,curry:ee,isArray:R,isFunction:$e,isString:ve,isObject:F,isBuiltInObject:Ro,isTypedArray:gt,isDom:zr,eqNaN:Oi,retrieve:Gt,retrieve2:Ce,retrieve3:vn,slice:Bo,normalizeCssArray:No,assert:jn,trim:Qe,setAsPrimitive:Fo,isPrimitive:Yn,createHashMap:q,concatArray:Q0,noop:kt}),Bp=typeof Float32Array=="undefined"?Array:Float32Array,k_=Go,P_=Ho,Ia=zi,Pn=Tu,L_=(Object.freeze||Object)({create:yn,copy:Cu,clone:Vo,set:J0,add:Wo,scaleAndAdd:Du,sub:Rr,len:Go,length:k_,lenSquare:Ho,lengthSquare:P_,mul:em,div:tm,dot:nm,scale:Br,normalize:Nr,distance:zi,dist:Ia,distanceSquare:Tu,distSquare:Pn,negate:im,lerp:rm,applyTransform:ne,min:Pt,max:Lt});Fr.prototype={constructor:Fr,_dragStart:function(e){var t=e.target;t&&t.draggable&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(Kn(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(r,a,e),this.dispatchToElement(Kn(t,e),"drag",e.event);var o=this.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.dispatchToElement(Kn(s,e),"dragleave",e.event),o&&o!==s&&this.dispatchToElement(Kn(o,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(Kn(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(Kn(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var Np=Array.prototype.slice,Se=function(e){this._$handlers={},this._$eventProcessor=e};Se.prototype={constructor:Se,one:function(e,t,n,i){var r=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;t=ku(this,t),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;return r[e].push({h:n,one:!0,query:t,ctx:i||this}),this},on:function(e,t,n,i){var r=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;t=ku(this,t),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;return r[e].push({h:n,one:!1,query:t,ctx:i||this}),this},isSilent:function(e){var t=this._$handlers;return t[e]&&t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,a=n[e].length;a>r;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var i=arguments,r=i.length;r>3&&(i=Np.call(i,1));for(var a=t.length,o=0;a>o;){var s=t[o];if(n&&n.filter&&s.query!=null&&!n.filter(e,s.query))o++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,i[1]);break;case 3:s.h.call(s.ctx,i[1],i[2]);break;default:s.h.apply(s.ctx,i)}s.one?(t.splice(o,1),a--):o++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var i=arguments,r=i.length;r>4&&(i=Np.call(i,1,i.length-1));for(var a=i[i.length-1],o=t.length,s=0;o>s;){var l=t[s];if(n&&n.filter&&l.query!=null&&!n.filter(e,l.query))s++;else{switch(r){case 1:l.h.call(a);break;case 2:l.h.call(a,i[1]);break;case 3:l.h.call(a,i[1],i[2]);break;default:l.h.apply(a,i)}l.one?(t.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this}};var Rl=typeof window!="undefined"&&!!window.addEventListener,O_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ui=Rl?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},Fp="silent";Lu.prototype.dispose=function(){};var z_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ci=function(e,t,n,i){Se.call(this),this.storage=e,this.painter=t,this.painterRoot=i,n=n||new Lu,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,Fr.call(this),this.setHandlerProxy(n)};ci.prototype={constructor:ci,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(I(z_,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(i=this.findHover(i.x,i.y),r=i.target);var a=this._hovered=this.findHover(t,n),o=a.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),r&&o!==r&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),o&&o!==r&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){this.dispatchToElement(this._hovered,"mouseout",e);var t,n=e.toElement||e.relatedTarget;do n=n&&n.parentNode;while(n&&n.nodeType!=9&&!(t=n===this.painterRoot));!t&&this.trigger("globalout",{event:e})},resize:function(){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){for(var r="on"+t,a=lm(t,e,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(t,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer(function(o){typeof o[r]=="function"&&o[r].call(o,a),o.trigger&&o.trigger(t,a)}))}},findHover:function(e,t,n){for(var i=this.storage.getDisplayList(),r={x:e,y:t},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=um(i[a],e,t))&&(!r.topTarget&&(r.topTarget=i[a]),o!==Fp)){r.target=i[a];break}}return r}},I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ci.prototype[e]=function(t){var n=this.findHover(t.zrX,t.zrY),i=n.target;if(e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ia(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}),ue(ci,Se),ue(ci,Fr);var E_=typeof Float32Array=="undefined"?Array:Float32Array,R_=(Object.freeze||Object)({create:Ot,identity:Ei,copy:qo,mul:_n,translate:wn,rotate:$n,scale:Vr,invert:Uo,clone:cm}),Bl=Ei,Vp=5e-5,di=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},dt=di.prototype;dt.transform=null,dt.needLocalTransform=function(){return bn(this.rotation)||bn(this.position[0])||bn(this.position[1])||bn(this.scale[0]-1)||bn(this.scale[1]-1)};var Ln=[];dt.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;if(!n&&!t)return void(i&&Bl(i));i=i||Ot(),n?this.getLocalTransform(i):Bl(i),t&&(n?_n(i,e.transform,i):qo(i,e.transform)),this.transform=i;var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ln);var a=Ln[0]<0?-1:1,o=Ln[1]<0?-1:1,s=((Ln[0]-a)*r+a)/Ln[0]||0,l=((Ln[1]-o)*r+o)/Ln[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||Ot(),Uo(this.invTransform,i)},dt.getLocalTransform=function(e){return di.getLocalTransform(this,e)},dt.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},dt.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var fi=[],Nl=Ot();dt.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=this.position,r=this.scale;bn(t-1)&&(t=Math.sqrt(t)),bn(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],r[0]=t,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},dt.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(_n(fi,e.invTransform,t),t=fi);var n=this.origin;n&&(n[0]||n[1])&&(Nl[4]=n[0],Nl[5]=n[1],_n(fi,t,Nl),fi[4]-=n[0],fi[5]-=n[1],t=fi),this.setLocalTransform(t)}},dt.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)},dt.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&ne(n,n,i),n},dt.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&ne(n,n,i),n},di.getLocalTransform=function(e,t){t=t||[],Bl(t);var n=e.origin,i=e.scale||[1,1],r=e.rotation||0,a=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),Vr(t,t,i),r&&$n(t,t,r),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=a[0],t[5]+=a[1],t};var Aa={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||1>n?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/i)))},elasticOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||1>n?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*(e-t)*Math.PI/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||1>n?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*n*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/i):n*Math.pow(2,-10*(e-=1))*Math.sin(2*(e-t)*Math.PI/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*e*e*((t+1)*e-t):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Aa.bounceOut(1-e)},bounceOut:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return .5>e?.5*Aa.bounceIn(2*e):.5*Aa.bounceOut(2*e-1)+.5}};jo.prototype={constructor:jo,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=t);var n=(e-this._startTime-this._pausedTime)/this._life;if(!(0>n)){n=Math.min(n,1);var i=this.easing,r=typeof i=="string"?Aa[i]:i,a=typeof r=="function"?r(n):n;return this.fire("frame",a),n==1?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Wp=function(){this.head=null,this.tail=null,this._len=0},cr=Wp.prototype;cr.insert=function(e){var t=new Gp(e);return this.insertEntry(t),t},cr.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++},cr.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},cr.len=function(){return this._len},cr.clear=function(){this.head=this.tail=null,this._len=0};var Gp=function(e){this.value=e,this.next,this.prev},Fl=function(e){this._list=new Wp,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},Vl=Fl.prototype;Vl.put=function(e,t){var n=this._list,i=this._map,r=null;if(i[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Gp(t),o.key=e,n.insertEntry(o),i[e]=o}return r},Vl.get=function(e){var t=this._map[e],n=this._list;return t!=null?(t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value):void 0},Vl.clear=function(){this._list.clear(),this._map={}};var Hp={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]},Zp=new Fl(20),Ca=null,B_=Eu,N_=Ru,F_=(Object.freeze||Object)({parse:lt,lift:Ou,toHex:zu,fastLerp:Eu,fastMapToColor:B_,lerp:Ru,mapToColor:N_,modifyHSL:pm,modifyAlpha:Bu,stringify:ei}),Wl=Array.prototype.slice,Gl=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||gm,this._setter=i||mm,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Gl.prototype={when:function(e,t){var n=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(r==null)continue;e!==0&&n[i].push({time:0,value:ym(r)})}n[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;t>n;n++)e[n].call(this)},start:function(e,t){var n,i=this,r=0,a=function(){r--,r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=_m(this,e,a,this._tracks[o],o,t);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(h,u){l(h,u);for(var c=0;c<i._onframeList.length;c++)i._onframeList[c](h,u)}}return r||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,i=0;i<t.length;i++){var r=t[i];e&&r.onframe(this._target,1),n&&n.removeClip(r)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var Xp=1;typeof window!="undefined"&&(Xp=Math.max(window.devicePixelRatio||1,1));var qp=0,Da=Xp,Hl=function(){};qp===1?Hl=function(){for(var e in arguments)throw new Error(arguments[e])}:qp>1&&(Hl=function(){for(var e in arguments)console.log(arguments[e])});var dr=Hl,Ta=function(){this.animators=[]};Ta.prototype={constructor:Ta,animate:function(e,t){var n,i=!1,r=this,a=this.__zr;if(e){var o=e.split("."),s=r;i=o[0]==="shape";for(var l=0,h=o.length;h>l;l++)s&&(s=s[o[l]]);s&&(n=s)}else n=r;if(!n)return void dr('Property "'+e+'" is not existed in element '+r.id);var u=r.animators,c=new Gl(n,t);return c.during(function(){r.dirty(i)}).done(function(){u.splice(J(u,c),1)}),u.push(c),a&&a.animation.addAnimator(c),c},stopAnimation:function(e){for(var t=this.animators,n=t.length,i=0;n>i;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,n,i,r,a){Hu(this,e,t,n,i,r,a)},animateFrom:function(e,t,n,i,r,a){Hu(this,e,t,n,i,r,a,!0)}};var Nt=function(e){di.call(this,e),Se.call(this,e),Ta.call(this,e),this.id=e.id||Lp()};Nt.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(e,t){if(e==="position"||e==="scale"||e==="origin"){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(F(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},ue(Nt,Ta),ue(Nt,di),ue(Nt,Se);var ka=ne,Pa=Math.min,La=Math.max;ie.prototype={constructor:ie,union:function(e){var t=Pa(e.x,this.x),n=Pa(e.y,this.y);this.width=La(e.x+e.width,this.x+this.width)-t,this.height=La(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:(function(){var e=[],t=[],n=[],i=[];return function(r){if(r){e[0]=n[0]=this.x,e[1]=i[1]=this.y,t[0]=i[0]=this.x+this.width,t[1]=n[1]=this.y+this.height,ka(e,e,r),ka(t,t,r),ka(n,n,r),ka(i,i,r),this.x=Pa(e[0],t[0],n[0],i[0]),this.y=Pa(e[1],t[1],n[1],i[1]);var a=La(e[0],t[0],n[0],i[0]),o=La(e[1],t[1],n[1],i[1]);this.width=a-this.x,this.height=o-this.y}}})(),calculateTransform:function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=Ot();return wn(r,r,[-t.x,-t.y]),Vr(r,r,[n,i]),wn(r,r,[e.x,e.y]),r},intersect:function(e){if(!e)return!1;e instanceof ie||(e=ie.create(e));var t=this,n=t.x,i=t.x+t.width,r=t.y,a=t.y+t.height,o=e.x,s=e.x+e.width,l=e.y,h=e.y+e.height;return!(o>i||n>s||l>a||r>h)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new ie(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},ie.create=function(e){return new ie(e.x,e.y,e.width,e.height)};var V=function(e){e=e||{},Nt.call(this,e);for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};V.prototype={constructor:V,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof V&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,r=J(i,e);return 0>r?this:(i.splice(r,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof V&&e.delChildrenFromStorage(n)),t&&t.refresh(),this)},removeAll:function(){var e,t,n=this._children,i=this.__storage;for(t=0;t<n.length;t++)e=n[t],i&&(i.delFromStorage(e),e instanceof V&&e.delChildrenFromStorage(i)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n];e.call(t,i),i.type==="group"&&i.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof V&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof V&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new ie(0,0,0,0),i=e||this._children,r=[],a=0;a<i.length;a++){var o=i[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),t=t||n.clone(),t.union(n)):(t=t||s.clone(),t.union(s))}}return t||n}},be(V,Nt);var Up=32,fr=7,Zl=function(){this._roots=[],this._displayList=[],this._displayListLen=0};Zl.prototype={constructor:Zl,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;r>i;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,X.canvasSupported&&Gr(n,ju)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i){t=t?t.slice():[];for(var r=i,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.clipPath}if(e.isGroup){for(var o=e._children,s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof V&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(e==null){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof V&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array)for(var t=0,i=e.length;i>t;t++)this.delRoot(e[t]);else{var r=J(this._roots,e);r>=0&&(this.delFromStorage(e),this._roots.splice(r,1),e instanceof V&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:ju};var V_={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Xl=function(e,t,n){return V_.hasOwnProperty(t)?n*=e.dpr:n},Oa=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],en=function(e){this.extendFrom(e,!1)};en.prototype={constructor:en,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){for(var i=this,r=n&&n.style,a=!r,o=0;o<Oa.length;o++){var s=Oa[o],l=s[0];(a||i[l]!==r[l])&&(e[l]=Xl(e,l,i[l]||s[1]))}if((a||i.fill!==r.fill)&&(e.fillStyle=i.fill),(a||i.stroke!==r.stroke)&&(e.strokeStyle=i.stroke),(a||i.opacity!==r.opacity)&&(e.globalAlpha=i.opacity==null?1:i.opacity),(a||i.blend!==r.blend)&&(e.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var h=i.lineWidth;e.lineWidth=h/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||t!==!0&&(t===!1?this.hasOwnProperty(n):e[n]==null)||(this[n]=e[n])},set:function(e,t){typeof e=="string"?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i=t.type==="radial"?Im:Mm,r=i(e,t,n),a=t.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var ql=en.prototype,Ul=0;Ul<Oa.length;Ul++){var jl=Oa[Ul];jl[0]in ql||(ql[jl[0]]=jl[1])}en.getGradient=ql.getGradient;var Yl=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};Yl.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var pr=function(e,t,n){var i;n=n||Da,typeof e=="string"?i=Yu(e,t,n):F(e)&&(i=e,e=i.id),this.id=e,this.dom=i;var r=i.style;r&&(i.onselectstart=Am,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};pr.prototype={constructor:pr,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=Yu("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!=1&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,a&&(a.width=e*n,a.height=t*n,n!=1&&this.ctxBack.scale(n,n))},clear:function(e,o){var n=this.dom,i=this.ctx,r=n.width,a=n.height,o=o||this.clearColor,s=this.motionBlur&&!e,l=this.lastFrameAlpha,h=this.dpr;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,r/h,a/h)),i.clearRect(0,0,r,a),o&&o!=="transparent"){var u;o.colorStops?(u=o.__canvasGradient||en.getGradient(i,o,{x:0,y:0,width:r,height:a}),o.__canvasGradient=u):o.image&&(u=Yl.prototype.getCanvasPattern.call(o,i)),i.save(),i.fillStyle=u||o,i.fillRect(0,0,r,a),i.restore()}if(s){var c=this.domBack;i.save(),i.globalAlpha=l,i.drawImage(c,0,0,r,a),i.restore()}}};var Kl=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)},$l=new Fl(50),za={},Ql=0,W_=5e3,Jl=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,gr="12px sans-serif",eh={};eh.measureText=function(e,t){var n=Au();return n.font=t||gr,n.measureText(e)};var G_={left:1,right:1,center:1},H_={top:1,bottom:1,middle:1},jp=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],th=new ie,Ea=function(){};Ea.prototype={constructor:Ea,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&Zr(n,!0);var i=n.text;if(i!=null&&(i+=""),cc(i,n)){e.save();var r=this.transform;n.transformText?this.setTransform(e):r&&(th.copy(t),th.applyTransform(r),t=th),ac(this,e,i,n,t),e.restore()}}},Le.prototype={constructor:Le,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){e!=="style"?Nt.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new en(e,this),this.dirty(!1),this}},be(Le,Nt),ue(Le,Ea),Oe.prototype={constructor:Oe,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var r=this._image=Ku(i,this._image,this,this.onload);if(r&&Hr(r)){var a=n.x||0,o=n.y||0,s=n.width,l=n.height,h=r.width/r.height;if(s==null&&l!=null?s=l*h:l==null&&s!=null?l=s/h:s==null&&l==null&&(s=r.width,l=r.height),this.setTransform(e),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=s-u,d=l-c;e.drawImage(r,u,c,f,d,a,o,s,l)}else e.drawImage(r,a,o,s,l);n.text!=null&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new ie(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},be(Oe,Le);var Yp=1e5,On=314159,Kp=.01,Z_=.001,nh=new ie(0,0,0,0),ih=new ie(0,0,0,0),rh=function(e,t,n){this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||Da,this._singleCanvas=i,this.root=e;var r=e.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var s=e.width,l=e.height;n.width!=null&&(s=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var h=new pr(e,this,this.dpr);h.__builtin__=!0,h.initContext(),o[On]=h,h.zlevel=On,a.push(On),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var u=this._domRoot=Hm(this._width,this._height);e.appendChild(u)}this._hoverlayer=null,this._hoverElements=[]};rh.prototype={constructor:rh,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();return e?{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}:void 0},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=i===0?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,i=J(n,t);i>=0&&n.splice(i,1),e.__hoverMir=null},clearHover:function(){for(var e=this._hoverElements,t=0;t<e.length;t++){var n=e[t].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){Gr(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(Yp));var i={};n.ctx.save();for(var r=0;t>r;){var a=e[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(e.splice(r,1),o.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(Yp)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;Kl(function(){r._paintList(e,t,n)})}}},_compositeManually:function(){var e=this.getLayer(On).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},_doPaintList:function(e,t){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||t)&&n.push(a)}for(var o=!0,s=0;s<n.length;s++){var a=n[s],l=a.ctx,h={};l.save();var u=t?a.__startIndex:a.__drawIndex,c=!t&&a.incremental&&Date.now,f=c&&Date.now(),d=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,d);else if(u===a.__startIndex){var p=e[u];p.incremental&&p.notClear&&!t||a.clear(!1,d)}u===-1&&(console.error("For some unknown reason. drawIndex is -1"),u=a.__startIndex);for(var v=u;v<a.__endIndex;v++){var g=e[v];if(this._doPaintEl(g,a,t,h),g.__dirty=g.__dirtyText=!1,c){var m=Date.now()-f;if(m>15)break}}a.__drawIndex=v,a.__drawIndex<a.__endIndex&&(o=!1),h.prevElClipPaths&&l.restore(),l.restore()}return X.wxa&&I(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),o},_doPaintEl:function(e,t,n,i){var r=t.ctx,a=e.transform;if(!(!t.__dirty&&!n||e.invisible||e.style.opacity===0||a&&!a[0]&&!a[3]||e.culling&&Vm(e,this._width,this._height))){var o=e.__clipPaths;(!i.prevElClipPaths||Wm(o,i.prevElClipPaths))&&(i.prevElClipPaths&&(t.ctx.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),Gm(o,r),i.prevElClipPaths=o)),e.beforeBrush&&e.beforeBrush(r),e.brush(r,i.prevEl||null),i.prevEl=e,e.afterBrush&&e.afterBrush(r)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=On);var n=this._layers[e];return n||(n=new pr("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]&&K(n,this._layerConfig[e],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,a=null,o=-1,s=this._domRoot;if(n[e])return void dr("ZLevel "+e+" has been used already");if(!Fm(t))return void dr("Layer of zlevel "+e+" is not valid");if(r>0&&e>i[0]){for(o=0;r-1>o&&!(i[o]<e&&i[o+1]>e);o++);a=n[i[o]]}if(i.splice(o+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(t.dom,l.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom)},eachLayer:function(e,t){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__&&e.call(t,n,i)},eachOtherLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__||e.call(t,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(l){r&&(r.__endIndex!==l&&(r.__dirty=!0),r.__endIndex=l)}if(this.eachBuiltinLayer(function(l){l.__dirty=l.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var r=null,a=0,n=0;n<e.length;n++){var o,i=e[n],s=i.zlevel;i.incremental?(o=this.getLayer(s+Z_,this._needsManuallyCompositing),o.incremental=!0,a=1):o=this.getLayer(s+(a>0?Kp:0),this._needsManuallyCompositing),o.__builtin__||dr("ZLevel "+s+" has been used by unkown layer "+o.id),o!==r&&(o.__used=!0,o.__startIndex!==n&&(o.__dirty=!0),o.__startIndex=n,o.__drawIndex=o.incremental?-1:n,t(n),r=o),i.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=n))}t(n),this.eachBuiltinLayer(function(l){!l.__used&&l.getElementCount()>0&&(l.__dirty=!0,l.__startIndex=l.__endIndex=l.__drawIndex=0),l.__dirty&&l.__drawIndex<0&&(l.__drawIndex=l.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?K(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+Kp){var a=this._layers[r];K(a,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(J(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!=e||t!=this._height){n.style.width=e+"px",n.style.height=t+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);I(this._progressiveLayers,function(a){a.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(On).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[On].dom;var t=new pr("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height,r=t.ctx;this.eachLayer(function(h){h.__builtin__?r.drawImage(h.dom,0,0,n,i):h.renderToCanvas&&(t.ctx.save(),h.renderToCanvas(t.ctx),t.ctx.restore())})}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,t,!0,a)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||Xr(s[n])||Xr(o.style[n]))-(Xr(s[r])||0)-(Xr(s[a])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=e.getBoundingRect(),a=e.style,o=a.shadowBlur*t,s=a.shadowOffsetX*t,l=a.shadowOffsetY*t,h=a.hasStroke()?a.lineWidth:0,u=Math.max(h/2,-s+o),c=Math.max(h/2,s+o),f=Math.max(h/2,-l+o),d=Math.max(h/2,l+o),p=r.width+u+c,v=r.height+f+d;n.width=p*t,n.height=v*t,i.scale(t,t),i.clearRect(0,0,p,v),i.dpr=t;var g={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[u-r.x,f-r.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(i);var m=Oe,y=new m({style:{x:0,y:0,image:n}});return g.position!=null&&(y.position=e.position=g.position),g.rotation!=null&&(y.rotation=e.rotation=g.rotation),g.scale!=null&&(y.scale=e.scale=g.scale),y}};var Ra=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,Se.call(this)};Ra.prototype={constructor:Ra,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=J(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=new Date().getTime()-this._pausedTime,t=e-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;i>o;o++){var s=n[o],l=s.step(e,t);l&&(r.push(l),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){function e(){t._running&&(Kl(e),!t._paused&&t._update())}var t=this;this._running=!0,Kl(e)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=t||{};var n=new Gl(e,t.loop,t.getter,t.setter);return this.addAnimator(n),n}},ue(Ra,Se);var ah=function(){this._track=[]};ah.prototype={constructor:ah,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},a=0,o=i.length;o>a;a++){var s=i[a],l=Zo(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(e){for(var t in oh)if(oh.hasOwnProperty(t)){var n=oh[t](this._track,e);if(n)return n}}};var oh={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=dc(i)/dc(r);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Zm(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}},X_=300,Ba=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sh=["touchstart","touchend","touchmove"],q_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},$p=O(Ba,function(e){var t=e.replace("mouse","pointer");return q_[t]?t:e}),Xe={mousemove:function(e){e=xn(this.dom,e),this.trigger("mousemove",e)},mouseout:function(e){e=xn(this.dom,e);var t=e.toElement||e.relatedTarget;if(t!=this.dom)for(;t&&t.nodeType!=9;){if(t===this.dom)return;t=t.parentNode}this.trigger("mouseout",e)},touchstart:function(e){e=xn(this.dom,e),e.zrByTouch=!0,this._lastTouchMoment=new Date,hs(this,e,"start"),Xe.mousemove.call(this,e),Xe.mousedown.call(this,e),us(this)},touchmove:function(e){e=xn(this.dom,e),e.zrByTouch=!0,hs(this,e,"change"),Xe.mousemove.call(this,e),us(this)},touchend:function(e){e=xn(this.dom,e),e.zrByTouch=!0,hs(this,e,"end"),Xe.mouseup.call(this,e),+new Date-this._lastTouchMoment<X_&&Xe.click.call(this,e),us(this)},pointerdown:function(e){Xe.mousedown.call(this,e)},pointermove:function(e){pc(e)||Xe.mousemove.call(this,e)},pointerup:function(e){Xe.mouseup.call(this,e)},pointerout:function(e){pc(e)||Xe.mouseout.call(this,e)}};I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Xe[e]=function(t){t=xn(this.dom,t),this.trigger(e,t)}});var Qp=cs.prototype;Qp.dispose=function(){for(var e=Ba.concat(sh),t=0;t<e.length;t++){var n=e[t];sm(this.dom,fc(n),this._handlers[n])}},Qp.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},ue(cs,Se);var U_=!X.canvasSupported,Na={canvas:rh},zn={},j_="4.0.5",lh=function(e,t,n){n=n||{},this.dom=t,this.id=e;var i=this,r=new Zl,a=n.renderer;if(U_){if(!Na.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&Na[a]||(a="canvas");var o=new Na[a](t,r,n,e);this.storage=r,this.painter=o;var s=X.node||X.worker?null:new cs(o.getViewportRoot());this.handler=new ci(r,o,s,o.root),this.animation=new Ra({stage:{update:$(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,h=r.addToStorage;r.delFromStorage=function(u){l.call(r,u),u&&u.removeSelfFromZr(i)},r.addToStorage=function(u){h.call(r,u),u.addSelfToZr(i)}};lh.prototype={constructor:lh,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,jm(this.id)}};var Y_=(Object.freeze||Object)({version:j_,init:ds,dispose:qm,getInstance:Um,registerPainter:gc}),pi=I,gi=F,K_=R,Jp="series\0",eg=["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"],$_=0,Q_=".",En="___EC__COMPONENT__CONTAINER___",J_=0,Fa=function(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(n,i,r){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(i&&J(i,s)>=0||r&&J(r,s)<0)){var l=n.getShallow(s);l!=null&&(a[e[o][0]]=l)}}return a}},ew=Fa([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),tw={getLineStyle:function(e){var t=ew(this,e),n=this.getLineDash(t.lineWidth);return n&&(t.lineDash=n),t},getLineDash:function(e){e==null&&(e=1);var t=this.get("type"),n=Math.max(e,2),i=4*e;return t==="solid"||t==null?null:t==="dashed"?[i,i]:[n,n]}},nw=Fa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),iw={getAreaStyle:function(e,t){return nw(this,e,t)}},Va=Math.pow,tn=Math.sqrt,Wa=1e-8,tg=1e-4,ng=tn(3),Ga=1/3,xt=yn(),nt=yn(),mi=yn(),Re=Math.min,Be=Math.max,hh=Math.sin,uh=Math.cos,Rn=2*Math.PI,Ha=yn(),Za=yn(),Xa=yn(),ig=[],rg=[],ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_t=[],nn=[],wt=[],bt=[],ag=Math.min,og=Math.max,mr=Math.cos,vr=Math.sin,qa=Math.sqrt,vi=Math.abs,ch=typeof Float32Array!="undefined",qe=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};qe.prototype={constructor:qe,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t){this._ux=vi(1/Da/e)||0,this._uy=vi(1/Da/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(ce.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=vi(e-this._xi)>this._ux||vi(t-this._yi)>this._uy||this._len<5;return this.addData(ce.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,r,a){return this.addData(ce.C,e,t,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,r,a):this._ctx.bezierCurveTo(e,t,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(e,t,n,i){return this.addData(ce.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,r,a){return this.addData(ce.A,e,t,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=mr(r)*n+e,this._yi=vr(r)*n+t,this},arcTo:function(e,t,n,i,r){return this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(ce.R,e,t,n,i),this},closePath:function(){this.addData(ce.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length==t||!ch||(this.data=new Float32Array(t));for(var n=0;t>n;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;t>r;r++)n+=e[r].len();ch&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;t>r;r++)for(var a=e[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,h=this._yi,u=e-l,c=t-h,f=qa(u*u+c*c),d=l,p=h,v=o.length;for(u/=f,c/=f,0>a&&(a=r+a),a%=r,d-=a*u,p-=a*c;u>0&&e>=d||0>u&&d>=e||u==0&&(c>0&&t>=p||0>c&&p>=t);)i=this._dashIdx,n=o[i],d+=u*n,p+=c*n,this._dashIdx=(i+1)%v,u>0&&l>d||0>u&&d>l||c>0&&h>p||0>c&&p>h||s[i%2?"moveTo":"lineTo"](u>=0?ag(d,e):og(d,e),c>=0?ag(p,t):og(p,t));u=d-e,c=p-t,this._dashOffset=-qa(u*u+c*c)},_dashedBezierTo:function(e,t,n,i,r,a){var o,s,l,h,u,c=this._dashSum,f=this._dashOffset,d=this._lineDash,p=this._ctx,v=this._xi,g=this._yi,m=De,y=0,x=this._dashIdx,w=d.length,S=0;for(0>f&&(f=c+f),f%=c,o=0;1>o;o+=.1)s=m(v,e,n,r,o+.1)-m(v,e,n,r,o),l=m(g,t,i,a,o+.1)-m(g,t,i,a,o),y+=qa(s*s+l*l);for(;w>x&&(S+=d[x],!(S>f));x++);for(o=(S-f)/y;1>=o;)h=m(v,e,n,r,o),u=m(g,t,i,a,o),x%2?p.moveTo(h,u):p.lineTo(h,u),o+=d[x]/y,x=(x+1)%w;x%2!==0&&p.lineTo(r,a),s=r-h,l=a-u,this._dashOffset=-qa(s*s+l*l)},_dashedQuadraticTo:function(e,t,n,i){var r=n,a=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,a)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,ch&&(this.data=new Float32Array(e)))},getBoundingRect:function(){_t[0]=_t[1]=wt[0]=wt[1]=Number.MAX_VALUE,nn[0]=nn[1]=bt[0]=bt[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,r=0,a=0;a<e.length;){var o=e[a++];switch(a==1&&(t=e[a],n=e[a+1],i=t,r=n),o){case ce.M:i=e[a++],r=e[a++],t=i,n=r,wt[0]=i,wt[1]=r,bt[0]=i,bt[1]=r;break;case ce.L:Cc(t,n,e[a],e[a+1],wt,bt),t=e[a++],n=e[a++];break;case ce.C:ov(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],wt,bt),t=e[a++],n=e[a++];break;case ce.Q:sv(t,n,e[a++],e[a++],e[a],e[a+1],wt,bt),t=e[a++],n=e[a++];break;case ce.A:var s=e[a++],l=e[a++],h=e[a++],u=e[a++],c=e[a++],f=e[a++]+c,d=(e[a++],1-e[a++]);a==1&&(i=mr(c)*h+s,r=vr(c)*u+l),lv(s,l,h,u,c,f,d,wt,bt),t=mr(f)*h+s,n=vr(f)*u+l;break;case ce.R:i=t=e[a++],r=n=e[a++];var p=e[a++],v=e[a++];Cc(i,r,i+p,r+v,wt,bt);break;case ce.Z:t=i,n=r}Pt(_t,_t,wt),Lt(nn,nn,bt)}return a===0&&(_t[0]=_t[1]=nn[0]=nn[1]=0),new ie(_t[0],_t[1],nn[0]-_t[0],nn[1]-_t[1])},rebuildPath:function(e){for(var t,n,i,r,a,o,s=this.data,l=this._ux,h=this._uy,u=this._len,c=0;u>c;){var f=s[c++];switch(c==1&&(i=s[c],r=s[c+1],t=i,n=r),f){case ce.M:t=i=s[c++],n=r=s[c++],e.moveTo(i,r);break;case ce.L:a=s[c++],o=s[c++],(vi(a-i)>l||vi(o-r)>h||c===u-1)&&(e.lineTo(a,o),i=a,r=o);break;case ce.C:e.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ce.Q:e.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case ce.A:var d=s[c++],p=s[c++],v=s[c++],g=s[c++],m=s[c++],y=s[c++],x=s[c++],w=s[c++],S=v>g?v:g,b=v>g?1:v/g,_=v>g?g/v:1,M=Math.abs(v-g)>.001,A=m+y;M?(e.translate(d,p),e.rotate(x),e.scale(b,_),e.arc(0,0,S,m,A,1-w),e.scale(1/b,1/_),e.rotate(-x),e.translate(-d,-p)):e.arc(d,p,S,m,A,1-w),c==1&&(t=mr(m)*v+d,n=vr(m)*g+p),i=mr(A)*v+d,r=vr(A)*g+p;break;case ce.R:t=i=s[c],n=r=s[c+1],e.rect(s[c++],s[c++],s[c++],s[c++]);break;case ce.Z:e.closePath(),i=t,r=n}}}},qe.CMD=ce;var sg=2*Math.PI,yr=2*Math.PI,rn=qe.CMD,yi=2*Math.PI,rw=1e-4,ke=[-1,-1,-1],it=[-1,-1],lg=Yl.prototype.getCanvasPattern,dh=Math.abs,aw=new qe(!0);U.prototype={constructor:U,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(e,t){var n=this.style,i=this.path||aw,r=n.hasStroke(),a=n.hasFill(),o=n.fill,s=n.stroke,l=a&&!!o.colorStops,h=r&&!!s.colorStops,u=a&&!!o.image,c=r&&!!s.image;if(n.bind(e,this,t),this.setTransform(e),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=n.getGradient(e,o,f)),h&&(f=f||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,s,f))}l?e.fillStyle=this._fillGradient:u&&(e.fillStyle=lg.call(o,e)),h?e.strokeStyle=this._strokeGradient:c&&(e.strokeStyle=lg.call(s,e));var d=n.lineDash,p=n.lineDashOffset,v=!!e.setLineDash,g=this.getGlobalScale();if(i.setScale(g[0],g[1]),this.__dirtyPath||d&&!v&&r?(i.beginPath(e),d&&!v&&(i.setLineDash(d),i.setLineDashOffset(p)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a)if(n.fillOpacity!=null){var m=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,i.fill(e),e.globalAlpha=m}else i.fill(e);if(d&&v&&(e.setLineDash(d),e.lineDashOffset=p),r)if(n.strokeOpacity!=null){var m=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,i.stroke(e),e.globalAlpha=m}else i.stroke(e);d&&v&&e.setLineDash([]),n.text!=null&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new qe},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var i=this.path;i||(i=this.path=new qe),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()}if(this._rect=e,t.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){r.copy(e);var a=t.lineWidth,o=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r.height+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path.data;if(r.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),yv(a,o/s,e,t)))return!0}if(r.hasFill())return vv(a,e,t)}return!1},dirty:function(e){e==null&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){e==="shape"?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):Le.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(F(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&dh(e[0]-1)>1e-10&&dh(e[3]-1)>1e-10?Math.sqrt(dh(e[0]*e[3]-e[2]*e[1])):1}},U.extend=function(e){var t=function(i){U.call(this,i),e.style&&this.style.extendFrom(e.style,!1);var r=e.shape;if(r){this.shape=this.shape||{};var a=this.shape;for(var o in r)!a.hasOwnProperty(o)&&r.hasOwnProperty(o)&&(a[o]=r[o])}e.init&&e.init.call(this,i)};be(t,U);for(var n in e)n!=="style"&&n!=="shape"&&(t.prototype[n]=e[n]);return t},be(U,Le);var xi=qe.CMD,ow=[[],[],[]],hg=Math.sqrt,sw=Math.atan2,lw=function(e,t){var n,i,r,a,o,s,l=e.data,h=xi.M,u=xi.C,c=xi.L,f=xi.R,d=xi.A,p=xi.Q;for(r=0,a=0;r<l.length;){switch(n=l[r++],a=r,i=0,n){case h:i=1;break;case c:i=1;break;case u:i=3;break;case p:i=2;break;case d:var v=t[4],g=t[5],m=hg(t[0]*t[0]+t[1]*t[1]),y=hg(t[2]*t[2]+t[3]*t[3]),x=sw(-t[1]/y,t[0]/m);l[r]*=m,l[r++]+=v,l[r]*=y,l[r++]+=g,l[r++]*=m,l[r++]*=y,l[r++]+=x,l[r++]+=x,r+=2,a=r;break;case f:s[0]=l[r++],s[1]=l[r++],ne(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ne(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;i>o;o++){var s=ow[o];s[0]=l[r++],s[1]=l[r++],ne(s,s,t),l[a++]=s[0],l[a++]=s[1]}}},fh=Math.sqrt,Ua=Math.sin,ja=Math.cos,Ya=Math.PI,ug=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},ph=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(ug(e)*ug(t))},cg=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ph(e,t))},hw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,uw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,pe=function(e){Le.call(this,e)};pe.prototype={constructor:pe,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&Zr(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;i!=null&&(i+=""),cc(i,n)&&(this.setTransform(e),ac(this,e,i,n,null,t),this.restoreTransform(e))},getBoundingRect:function(){var e=this.style;if(this.__dirty&&Zr(e,!0),!this._rect){var t=e.text;t!=null?t+="":t="";var n=Sn(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.rich);if(n.x+=e.x||0,n.y+=e.y||0,ls(e.textStroke,e.textStrokeWidth)){var i=e.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},be(pe,Le);var gh=U.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}}),an=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],mh=function(e){return X.browser.ie&&X.browser.version>=11?function(){var t,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var a=n[r],o=a&&a.shape,s=a&&a.type;if(o&&(s==="sector"&&o.startAngle===o.endAngle||s==="rect"&&(!o.width||!o.height))){for(var l=0;l<an.length;l++)an[l][2]=i[an[l][0]],i[an[l][0]]=an[l][1];t=!0;break}}if(e.apply(this,arguments),t)for(var l=0;l<an.length;l++)i[an[l][0]]=an[l][2]}:e},xr=U.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:mh(U.prototype.brush),buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,h=Math.cos(o),u=Math.sin(o);e.moveTo(h*r+n,u*r+i),e.lineTo(h*a+n,u*a+i),e.arc(n,i,a,o,s,!l),e.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),r!==0&&e.arc(n,i,r,s,o,l),e.closePath()}}),cw=U.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)}}),dw=function(e,t){for(var n=e.length,i=[],r=0,a=1;n>a;a++)r+=zi(e[a-1],e[a]);var o=r/2;o=n>o?n:o;for(var a=0;o>a;a++){var s,l,h,u=a/(o-1)*(t?n:n-1),c=Math.floor(u),f=u-c,d=e[c%n];t?(s=e[(c-1+n)%n],l=e[(c+1)%n],h=e[(c+2)%n]):(s=e[c===0?c:c-1],l=e[c>n-2?n-1:c+1],h=e[c>n-3?n-1:c+2]);var p=f*f,v=f*p;i.push([Lc(s[0],d[0],l[0],h[0],f,p,v),Lc(s[1],d[1],l[1],h[1],f,p,v)])}return i},fw=function(e,t,n,i){var r,a,o,s,l=[],h=[],u=[],c=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=e.length;d>f;f++)Pt(o,o,e[f]),Lt(s,s,e[f]);Pt(o,o,i[0]),Lt(s,s,i[1])}for(var f=0,d=e.length;d>f;f++){var p=e[f];if(n)r=e[f?f-1:d-1],a=e[(f+1)%d];else{if(f===0||f===d-1){l.push(Vo(e[f]));continue}r=e[f-1],a=e[f+1]}Rr(h,a,r),Br(h,h,t);var v=zi(p,r),g=zi(p,a),m=v+g;m!==0&&(v/=m,g/=m),Br(u,h,-v),Br(c,h,g);var y=Wo([],p,u),x=Wo([],p,c);i&&(Lt(y,y,o),Pt(y,y,s),Lt(x,x,o),Pt(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l},Ka=U.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){Oc(e,t,!0)}}),$a=U.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){Oc(e,t,!1)}}),xe=U.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width,a=t.height;t.r?ic(e,t):e.rect(n,i,r,a),e.closePath()}}),on=U.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,o=t.percent;o!==0&&(e.moveTo(n,i),1>o&&(r=n*(1-o)+r*o,a=i*(1-o)+a*o),e.lineTo(r,a))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}}),Ne=[],dg=U.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,h=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,i),l==null||h==null?(1>u&&(Ac(n,o,r,u,Ne),o=Ne[1],r=Ne[2],Ac(i,s,a,u,Ne),s=Ne[1],a=Ne[2]),e.quadraticCurveTo(o,s,r,a)):(1>u&&(Sc(n,o,l,r,u,Ne),o=Ne[1],l=Ne[2],r=Ne[3],Sc(i,s,h,a,u,Ne),s=Ne[1],h=Ne[2],a=Ne[3]),e.bezierCurveTo(o,s,l,h,r,a)))},pointAt:function(e){return zc(this.shape,e,!1)},tangentAt:function(e){var t=zc(this.shape,e,!0);return Nr(t,t)}}),fg=U.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),h=Math.sin(a);e.moveTo(l*r+n,h*r+i),e.arc(n,i,r,a,o,!s)}}),pw=U.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1])},buildPath:function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),U.prototype.getBoundingRect.call(this)}}),St=function(e){this.colorStops=e||[]};St.prototype={constructor:St,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var _i=function(e,t,n,i,r,a){this.x=e==null?0:e,this.y=t==null?0:t,this.x2=n==null?1:n,this.y2=i==null?0:i,this.type="linear",this.global=a||!1,St.call(this,r)};_i.prototype={constructor:_i},be(_i,St);var Qa=function(e,t,n,i,r){this.x=e==null?.5:e,this.y=t==null?.5:t,this.r=n==null?.5:n,this.type="radial",this.global=r||!1,St.call(this,i)};Qa.prototype={constructor:Qa},be(Qa,St),ut.prototype.incremental=!0,ut.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},ut.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},ut.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},ut.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},ut.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},ut.prototype.brush=function(e){for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.beforeBrush&&n.beforeBrush(e),n.brush(e,t===this._cursor?null:this._displayables[t-1]),n.afterBrush&&n.afterBrush(e)}this._cursor=t;for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.beforeBrush&&n.beforeBrush(e),n.brush(e,t===0?null:this._temporaryDisplayables[t-1]),n.afterBrush&&n.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var gw=[];ut.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ie(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(gw)),e.union(i)}this._rect=e}return this._rect},ut.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(e,t))return!0}return!1},be(ut,Le);var wi=Math.round,Ja=Math.max,eo=Math.min,to={},mw=wv,pg=q(),gg=0,_r=(Object.freeze||Object)({extendShape:Mn,extendPath:bv,makePath:Vi,makeImage:Ec,mergePath:mw,resizePath:Bc,subPixelOptimizeLine:Wi,subPixelOptimizeRect:ms,subPixelOptimize:In,setElementHoverStyle:$r,isInEmphasis:xs,setHoverStyle:yt,setAsHoverStyleTrigger:_s,setLabelStyle:Gi,setTextStyle:We,setText:kv,getFont:bs,updateProps:ye,initProps:Ut,getTransform:Zc,applyTransform:ni,transformDirection:Xc,groupTransition:qc,clipPointsByRect:Lv,clipRectByRect:Ov,createIcon:Jr,Group:V,Image:Oe,Text:pe,Circle:gh,Sector:xr,Ring:cw,Polygon:Ka,Polyline:$a,Rect:xe,Line:on,BezierCurve:dg,Arc:fg,IncrementalDisplayable:ut,CompoundPath:pw,LinearGradient:_i,RadialGradient:Qa,BoundingRect:ie}),vw=["textStyle","color"],yw={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(vw):null)},getFont:function(){return bs({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return Sn(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},xw=Fa([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),_w={getItemStyle:function(e,t){var n=xw(this,e,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var e=this.get("borderType");return e==="solid"||e==null?null:e==="dashed"?[5,5]:[1,1]}},no=ue,mg=ht();oe.prototype={constructor:oe,init:null,mergeOption:function(e){K(this.option,e,!0)},get:function(e,t){return e==null?this.option:Uc(this.option,this.parsePath(e),!t&&Ss(this,e))},getShallow:function(e,t){var n=this.option,i=n==null?n:n[e],r=!t&&Ss(this,e);return i==null&&r&&(i=r.getShallow(e)),i},getModel:function(e,t){var n,i=e==null?this.option:Uc(this.option,e=this.parsePath(e));return t=t||(n=Ss(this,e))&&n.getModel(e),new oe(i,t,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var e=this.constructor;return new e(ae(this.option))},setReadOnly:function(){},parsePath:function(e){return typeof e=="string"&&(e=e.split(".")),e},customizeGetParent:function(e){mg(this).getParent=e},isAnimationEnabled:function(){if(!X.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},Fi(oe),xc(oe),no(oe,tw),no(oe,iw),no(oe,yw),no(oe,_w);var ww=0,vg=1e-4,bw=9007199254740991,Sw=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Mw=(Object.freeze||Object)({linearMap:jt,parsePercent:Q,round:Ee,asc:ta,getPrecision:jc,getPrecisionSafe:na,getPixelPrecision:Ms,getPercentWithPrecision:Yc,MAX_SAFE_INTEGER:bw,remRadian:Is,isRadianAroundZero:Hi,parseDate:ia,quantity:Kc,nice:As,quantile:Bv,reformIntervals:Nv,isNumeric:Fv}),wr=No,Iw=/([&<>"'])/g,Aw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yg=["a","b","c","d","e","f","g"],vh=function(e,t){return"{"+e+(t==null?"":t)+"}"},xg=Qu,Cw=Sn,Dw=(Object.freeze||Object)({addCommas:Zi,toCamelCase:Qc,normalizeCssArray:wr,encodeHTML:Ge,formatTpl:Cs,formatTplSimple:Vv,getTooltipMarker:ra,formatTime:Ds,capitalFirst:Ts,truncateText:xg,getTextRect:Cw}),io=I,Tw=["left","right","top","bottom","width","height"],ro=[["width","left","right"],["height","top","bottom"]],yh=ks,kw=(ee(ks,"vertical"),ee(ks,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),Pw=ht(),te=oe.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){oe.call(this,e,t,n,i),this.uid=ea("ec_cpt_model")},init:function(e,t,n){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?Xi(e):{},r=t.getTheme();K(e,r.get(this.mainType)),K(e,this.getDefaultOption()),n&&ri(e,i,n)},mergeOption:function(e){K(this.option,e,!0);var t=this.layoutMode;t&&ri(this.option,e,t)},optionUpdated:function(){},getDefaultOption:function(){var e=Pw(this);if(!e.defaultOption){for(var t=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var r={},a=t.length-1;a>=0;a--)r=K(r,t[a],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});Yr(te,{registerWhenExtend:!0}),zv(te),Ev(te,Gv),ue(te,kw);var _g="";typeof navigator!="undefined"&&(_g=navigator.platform||"");var Lw={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:_g.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},xh=ht(),_h={clearColorPalette:function(){xh(this).colorIdx=0,xh(this).colorNameMap={}},getColorFromPalette:function(e,t,n){t=t||this;var i=xh(t),r=i.colorIdx||0,a=i.colorNameMap=i.colorNameMap||{};if(a.hasOwnProperty(e))return a[e];var o=Ve(this.get("color",!0)),s=this.get("colorLayer",!0),l=n!=null&&s?Hv(s,n):o;if(l=l||o,l&&l.length){var h=l[r];return e&&(a[e]=h),i.colorIdx=(r+1)%l.length,h}}},Ow={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis")[0],a=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),ai(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),ai(a)&&(i.set("y",a),t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",r),ai(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),ai(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),ai(o)&&(i.set("angle",o),t.firstCategoryDimIndex=1)},geo:function(e,t){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,a=r.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var h=r.getComponent("parallelAxis",s),u=o[l];n.set(u,h),ai(h)&&t.firstCategoryDimIndex==null&&(i.set(u,h),t.firstCategoryDimIndex=l)})}},Bn="original",br="arrayRows",ao="objectRows",oo="keyedColumns",wg="unknown",so="typedArray",bg="column",wh="row";ct.seriesDataToSource=function(e){return new ct({data:e,sourceFormat:gt(e)?so:Bn,fromDataset:!1})},xc(ct);var bi=ht(),bh="\0_ec_inner",Sh=oe.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new oe(n),this._optionManager=i},setOption:function(e,t){jn(!(bh in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||e==="recreate"){var i=n.mountOption(e==="recreate");this.option&&e!=="recreate"?(this.restoreData(),this.mergeOption(i)):ey.call(this,i),t=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),t=!0)}if(!e||e==="recreate"||e==="media"){var a=n.getMediaOption(this,this._api);a.length&&I(a,function(o){this.mergeOption(o,t=!0)},this)}return t},mergeOption:function(e){function t(a,o){var s=Ve(e[a]),l=mc(i.get(a),s);Km(l),I(l,function(u){var c=u.option;F(c)&&(u.keyInfo.mainType=a,u.keyInfo.subType=ny(a,c,u.exist))});var h=ty(i,o);n[a]=[],i.set(a,[]),I(l,function(u,c){var f=u.exist,d=u.option;if(jn(F(d)||f,"Empty component definition"),d){var p=te.getClass(a,u.keyInfo.subType,!0);if(f&&f instanceof p)f.name=u.keyInfo.name,f.mergeOption(d,this),f.optionUpdated(d,!1);else{var v=H({dependentModels:h,componentIndex:c},u.keyInfo);f=new p(d,this,this,v),H(f,v),f.init(d,this,this,v),f.optionUpdated(null,!0)}}else f.mergeOption({},this),f.optionUpdated({},!1);i.get(a)[c]=f,n[a][c]=f.option},this),a==="series"&&Ps(this,i.get("series"))}var n=this.option,i=this._componentsMap,r=[];qv(this),I(e,function(a,o){a!=null&&(te.hasClass(o)?o&&r.push(o):n[o]=n[o]==null?ae(a):K(n[o],a,!0))}),te.topologicalTravel(r,te.getAllClassMainTypes(),t,this),this._seriesIndicesMap=q(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=ae(this.option);return I(e,function(t,n){if(te.hasClass(n)){for(var t=Ve(t),i=t.length-1;i>=0;i--)Ur(t[i])&&t.splice(i,1);e[n]=t}}),delete e[bh],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);return n?n[t||0]:void 0},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n=e.index,i=e.id,r=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;if(n!=null)R(n)||(n=[n]),o=Pe(O(n,function(h){return a[h]}),function(h){return!!h});else if(i!=null){var s=R(i);o=Pe(a,function(h){return s&&J(i,h.id)>=0||!s&&h.id===i})}else if(r!=null){var l=R(r);o=Pe(a,function(h){return l&&J(r,h.name)>=0||!l&&h.name===r})}else o=a.slice();return rd(o,e)},findComponents:function(e){function t(s){var l=r+"Index",h=r+"Id",u=r+"Name";return!s||s[l]==null&&s[h]==null&&s[u]==null?null:{mainType:r,index:s[l],id:s[h],name:s[u]}}function n(s){return e.filter?Pe(s,e.filter):s}var i=e.query,r=e.mainType,a=t(i),o=a?this.queryComponents(a):this._componentsMap.get(r);return n(rd(o,e))},eachComponent:function(e,t,n){var i=this._componentsMap;if(typeof e=="function")n=t,t=e,i.each(function(a,o){I(a,function(s,l){t.call(n,o,s,l)})});else if(ve(e))I(i.get(e),t,n);else if(F(e)){var r=this.findComponents(e);I(r,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return Pe(t,function(n){return n.name===e})},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return Pe(t,function(n){return n.subType===e})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){I(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)},this)},eachRawSeries:function(e,t){I(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){I(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)},this)},eachRawSeriesByType:function(e,t,n){return I(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return this._seriesIndicesMap.get(e.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){var n=Pe(this._componentsMap.get("series"),e,t);Ps(this,n)},restoreData:function(e){var t=this._componentsMap;Ps(this,t.get("series"));var n=[];t.each(function(i,r){n.push(r)}),te.topologicalTravel(n,te.getAllClassMainTypes(),function(i){I(t.get(i),function(r){(i!=="series"||!Qv(r,e))&&r.restoreData()})})}});ue(Sh,_h);var zw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],Mh={};Et.prototype={constructor:Et,create:function(e,t){var n=[];I(Mh,function(i){var r=i.create(e,t);n=n.concat(r||[])}),this._coordinateSystems=n},update:function(e,t){I(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Et.register=function(e,t){Mh[e]=t},Et.get=function(e){return Mh[e]};var lo=I,Nn=ae,ho=O,Sg=K,Ew=/^(min|max)?(.+)$/;Ls.prototype={constructor:Ls,setOption:function(e,t){e&&I(Ve(e.series),function(r){r&&r.data&&gt(r.data)&&Fo(r.data)}),e=Nn(e,!0);var n=this._optionBackup,i=iy.call(this,e,t,!n);this._newBaseOption=i.baseOption,n?(sy(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=ho(t.timelineOptions,Nn),this._mediaList=ho(t.mediaList,Nn),this._mediaDefault=Nn(t.mediaDefault),this._currentMediaIndices=[],Nn(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Nn(n[i.getCurrentIndex()],!0))}return t},getMediaOption:function(){var e=this._api.getWidth(),t=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],a=[];if(!n.length&&!i)return a;for(var o=0,s=n.length;s>o;o++)ry(n[o].query,e,t)&&r.push(o);return!r.length&&i&&(r=[-1]),r.length&&!oy(r,this._currentMediaIndices)&&(a=ho(r,function(l){return Nn(l===-1?i.option:n[l].option)})),this._currentMediaIndices=r,a}};var ft=I,Sr=F,Mg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Rw=function(e,t){ft(Rt(e.series),function(i){Sr(i)&&ly(i)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ft(n,function(i){ft(Rt(e[i]),function(r){r&&(de(r,"axisLabel"),de(r.axisPointer,"label"))})}),ft(Rt(e.parallel),function(i){var r=i&&i.parallelAxisDefault;de(r,"axisLabel"),de(r&&r.axisPointer,"label")}),ft(Rt(e.calendar),function(i){Ie(i,"itemStyle"),de(i,"dayLabel"),de(i,"monthLabel"),de(i,"yearLabel")}),ft(Rt(e.radar),function(i){de(i,"name")}),ft(Rt(e.geo),function(i){Sr(i)&&(Je(i),ft(Rt(i.regions),function(r){Je(r)}))}),ft(Rt(e.timeline),function(i){Je(i),Ie(i,"label"),Ie(i,"itemStyle"),Ie(i,"controlStyle",!0);var r=i.data;R(r)&&I(r,function(a){F(a)&&(Ie(a,"label"),Ie(a,"itemStyle"))})}),ft(Rt(e.toolbox),function(i){Ie(i,"iconStyle"),ft(i.feature,function(r){Ie(r,"iconStyle")})}),de(od(e.axisPointer),"label"),de(od(e.tooltip).axisPointer,"label")},Bw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Nw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ig=function(e,t){Rw(e,t),e.series=Ve(e.series),I(e.series,function(n){if(F(n)){var i=n.type;if((i==="pie"||i==="gauge")&&n.clockWise!=null&&(n.clockwise=n.clockWise),i==="gauge"){var r=hy(n,"pointer.color");r!=null&&uy(n,"itemStyle.normal.color",r)}sd(n)}}),e.dataRange&&(e.visualMap=e.dataRange),I(Nw,function(n){var i=e[n];i&&(R(i)||(i=[i]),I(i,function(r){sd(r)}))})},Fw=function(e){var t=q();e.eachSeries(function(n){var i=n.get("stack");if(i){var r=t.get(i)||t.set(i,[]),a=n.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:n};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&a.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}}),t.each(cy)},Ih=ld.prototype;Ih.pure=!1,Ih.persistent=!0,Ih.getSource=function(){return this._source};var Vw={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:zs},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i<n.length;i++){var r=n[i];t.push(r?r[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:hd,getItem:ud,appendData:zs},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];t.push(r?r[e]:null)}return t},appendData:function(e){var t=this._data;I(e,function(n,i){for(var r=t[i]||(t[i]=[]),a=0;a<(n||[]).length;a++)r.push(n[a])})}},original:{count:hd,getItem:ud,appendData:zs},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,i=0;i<this._dimSize;i++)t[i]=this._data[n+i];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}},Ww={arrayRows:Es,objectRows:function(e,t,n,i){return n!=null?e[i]:e},keyedColumns:Es,original:function(e,t,n){var i=Ni(e);return n!=null&&i instanceof Array?i[n]:i},typedArray:Es},Gw={arrayRows:cd,objectRows:function(e,t){return Rs(e[t],this._dimensionInfos[t])},keyedColumns:cd,original:function(e,t,n,i){var r=e&&(e.value==null?e:e.value);return!this._rawData.pure&&Ym(e)&&(this.hasItemOption=!0),Rs(r instanceof Array?r[i]:r,this._dimensionInfos[t])},typedArray:function(e,t,n,i){return e[i]}},Hw=/\{@(.+?)\}/g,Ah={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"color"),l=this.ecModel.getComponent("tooltip"),h=l&&l.get("renderMode"),u=yc(h),c=this.mainType,f=c==="series";return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:a,dataIndex:r,data:o,dataType:t,value:i,color:s,marker:ra({color:s,renderMode:u}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,r){t=t||"normal";var a=this.getData(n),o=a.getItemModel(e),s=this.getDataParams(e,n);i!=null&&s.value instanceof Array&&(s.value=s.value[i]);var l=o.get(t==="normal"?[r||"label","formatter"]:[t,r||"label","formatter"]);if(typeof l=="function")return s.status=t,l(s);if(typeof l=="string"){var h=Cs(l,s);return h.replace(Hw,function(u,c){var f=c.length;return c.charAt(0)==="["&&c.charAt(f-1)==="]"&&(c=+c.slice(1,f-1)),An(a,e,c)})}},getRawValue:function(e,t){return An(this.getData(t),e)},formatTooltip:function(){}},sn=dd.prototype;sn.perform=function(e){function t(m){return!(m>=1)&&(m=1),m}var n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=t(this._modBy),s=this._modDataCount||0,l=t(e&&e.modBy),h=e&&e.modDataCount||0;(o!==l||s!==h)&&(a="reset");var u;(this._dirty||a==="reset")&&(this._dirty=!1,u=fy(this,i)),this._modBy=l,this._modDataCount=h;var c=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(u||d>f)){var p=this._progress;if(R(p))for(var v=0;v<p.length;v++)fd(this,p[v],f,d,l,h);else fd(this,p,f,d,l,h)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var Ag=(function(){function e(){return n>i?i++:null}function t(){var l=i%o*r+Math.ceil(i/o),h=i>=n?null:a>l?l:i;return i++,h}var n,i,r,a,o,s={reset:function(l,h,u,c){i=l,n=h,r=u,a=c,o=Math.ceil(a/r),s.next=r>1&&a>0?t:e}};return s})();sn.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},sn.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},sn.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},sn.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},sn.getUpstream=function(){return this._upstream},sn.getDownstream=function(){return this._downstream},sn.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e};var Mr=ht(),Fn=te.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Ui({count:gy,reset:my}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),ed(this);var i=this.getInitialData(e,n);gd(i,this),this.dataTask.context.data=i,Mr(this).dataBeforeProcessed=i,pd(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?Xi(e):{},r=this.subType;te.hasClass(r)&&(r+="Series"),K(e,t.getTheme().get(this.subType)),K(e,this.getDefaultOption()),qr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ri(e,i,n)},mergeOption:function(e,t){e=K(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&ri(this.option,e,n),ed(this);var i=this.getInitialData(e,t);gd(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Mr(this).dataBeforeProcessed=i,pd(this)},fillDataTextStyle:function(e){if(e&&!gt(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&qr(e[n],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=Bs(this);if(t){var n=t.context.data;return e==null?n:n.getLinkedData(e)}return Mr(this).data},setData:function(e){var t=Bs(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}Mr(this).data=e},getSource:function(){return Xv(this)},getRawData:function(){return Mr(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,i){function r(A){function C(z,B){var W=c.getDimensionInfo(B);if(W&&W.otherDims.tooltip!==!1){var G=W.type,re="sub"+o.seriesIndex+"at"+u,he=ra({color:g,type:"subItem",renderMode:i,markerId:re}),P=typeof he=="string"?he:he.content,me=(D?P+Ge(W.displayName||"-")+": ":"")+Ge(G==="ordinal"?z+"":G==="time"?t?"":Ds("yyyy/MM/dd hh:mm:ss",z):Zi(z));me&&T.push(me),l&&(h[re]=g,++u)}}var D=Li(A,function(z,B,W){var G=c.getDimensionInfo(W);return z|=G&&G.tooltip!==!1&&G.displayName!=null},0),T=[];f.length?I(f,function(z){C(An(c,e,z),z)}):I(A,C);var k=D?l?`
`:"<br/>":"",E=k+T.join(k||", ");return{renderMode:i,content:E,style:h}}function a(A){return{renderMode:i,content:Ge(Zi(A)),style:h}}var o=this;i=i||"html";var s=i==="html"?"<br/>":`
`,l=i==="richText",h={},u=0,c=this.getData(),f=c.mapDimension("defaultedTooltip",!0),d=f.length,p=this.getRawValue(e),v=R(p),g=c.getItemVisual(e,"color");F(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||"transparent";var m=d>1||v&&!d?r(p):a(d?An(c,e,f[0]):v?p[0]:p),y=m.content,x=o.seriesIndex+"at"+u,w=ra({color:g,type:"item",renderMode:i,markerId:x});h[x]=g,++u;var S=c.getName(e),b=this.name;fs(this)||(b=""),b=b?Ge(b)+(t?": ":s):"";var _=typeof w=="string"?w:w.content,M=t?_+b+y:b+_+(S?Ge(S)+": "+y:y);return{html:M,markers:h}},isAnimationEnabled:function(){if(X.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,r=_h.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});ue(Fn,Ah),ue(Fn,_h);var Mt=function(){this.group=new V,this.uid=ea("viewComponent")};Mt.prototype={constructor:Mt,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var Ch=Mt.prototype;Ch.updateView=Ch.updateLayout=Ch.updateVisual=function(){},Fi(Mt),Yr(Mt,{registerWhenExtend:!0});var Dh=function(){var e=ht();return function(t){var n=e(t),i=t.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i.large,s=n.progressiveRender=i.progressiveRender;return!!(r^o||a^s)&&"reset"}},Cg=ht(),Zw=Dh();He.prototype={type:"chart",init:function(){},render:function(){},highlight:function(e,t,n,i){md(e.getData(),i,"emphasis")},downplay:function(e,t,n,i){md(e.getData(),i,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var Th=He.prototype;Th.updateView=Th.updateLayout=Th.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},Fi(He,["dispose"]),Yr(He,{registerWhenExtend:!0}),He.markUpdateMethod=function(e,t){Cg(e).updateMethod=t};var Xw={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},uo="\0__throttleOriginMethod",Dg="\0__throttleRate",Tg="\0__throttleType",qw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=(e.visualColorAccessPath||"itemStyle.color").split("."),r=e.get(i)||e.getColorFromPalette(e.name,null,t.getSeriesCount());if(n.setVisual("color",r),!t.isSeriesFiltered(e)){typeof r!="function"||r instanceof St||n.each(function(o){n.setItemVisual(o,"color",r(e.getDataParams(o)))});var a=function(o,s){var l=o.getItemModel(s),h=l.get(i,!0);h!=null&&o.setItemVisual(s,"color",h)};return{dataEach:n.hasItemOption?a:null}}}},kg={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}},Uw=function(e,t){function n(v,g){if(typeof v!="string")return v;var m=v;return I(g,function(y,x){m=m.replace(new RegExp("\\{\\s*"+x+"\\s*\\}","g"),y)}),m}function i(v){var g=o.get(v);if(g==null){for(var m=v.split("."),y=kg.aria,x=0;x<m.length;++x)y=y[m[x]];return y}return g}function r(){var v=t.getModel("title").option;return v&&v.length&&(v=v[0]),v&&v.text}function a(v){return kg.series.typeNames[v]||"自定义图"}var o=t.getModel("aria");if(o.get("show")){if(o.get("description"))return void e.setAttribute("aria-label",o.get("description"));var s=0;t.eachSeries(function(){++s},this);var l,h=o.get("data.maxCount")||10,u=o.get("series.maxCount")||10,c=Math.min(s,u);if(!(1>s)){var f=r();l=f?n(i("general.withTitle"),{title:f}):i("general.withoutTitle");var d=[],p=s>1?"series.multiple.prefix":"series.single.prefix";l+=n(i(p),{seriesCount:s}),t.eachSeries(function(v,g){if(c>g){var m,y=v.get("name"),x="series."+(s>1?"multiple":"single")+".";m=i(y?x+"withName":x+"withoutName"),m=n(m,{seriesId:v.seriesIndex,seriesName:v.get("name"),seriesType:a(v.subType)});var w=v.getData();window.data=w,m+=w.count()>h?n(i("data.partialData"),{displayCnt:h}):i("data.allData");for(var S=[],b=0;b<w.count();b++)if(h>b){var _=w.getName(b),M=An(w,b);S.push(n(i(_?"data.withName":"data.withoutName"),{name:_,value:M}))}m+=S.join(i("data.separator.middle"))+i("data.separator.end"),d.push(m)}}),l+=d.join(i("series.multiple.separator.middle"))+i("series.multiple.separator.end"),e.setAttribute("aria-label",l)}}},co=Math.PI,jw=function(e,t){t=t||{},Z(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new xe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),i=new fg({shape:{startAngle:-co/2,endAngle:-co/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),r=new xe({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:3*co/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*co/2}).delay(300).start("circularInOut");var a=new V;return a.add(i),a.add(r),a.add(n),a.resize=function(){var o=e.getWidth()/2,s=e.getHeight()/2;i.setShape({cx:o,cy:s});var l=i.shape.r;r.setShape({x:o-l,y:s-l,width:2*l,height:2*l}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},a.resize(),a},rt=aa.prototype;rt.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},rt.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=o!=null?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},rt.getPipeline=function(e){return this._pipelineMap.get(e)},rt.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),a=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),s=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},rt.restorePipelines=function(e){var t=this,n=t._pipelineMap=q();e.eachSeries(function(i){var r=i.getProgressive(),a=i.uid;n.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:r&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),oa(t,i,i.dataTask)})},rt.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;I(this._allHandlers,function(i){var r=e.get(i.uid)||e.set(i.uid,[]);i.reset&&wy(this,i,r,t,n),i.overallReset&&by(this,i,r,t,n)},this)},rt.prepareView=function(e,t,n,i){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=n,a.api=i,r.__block=!e.incrementalPrepareRender,oa(this,t,r)},rt.performDataProcessorTasks=function(e,t){yd(this,this._dataProcessorHandlers,e,t,{block:!0})},rt.performVisualTasks=function(e,t,n){yd(this,this._visualHandlers,e,t,n)},rt.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t|=n.dataTask.perform()}),this.unfinished|=t},rt.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)})};var Pg=rt.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},Yw=xd(0);aa.wrapStageHandler=function(e,t){return $e(e)&&(e={overallReset:e,seriesType:ky(e)}),e.uid=ea("stageHandler"),t&&(e.visualType=t),e};var fo,Ir={},Lg={};_d(Ir,Sh),_d(Lg,ad),Ir.eachSeriesByType=Ir.eachRawSeriesByType=function(e){fo=e},Ir.eachComponent=function(e){e.mainType==="series"&&e.subType&&(fo=e.subType)};var Og=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Kw={color:Og,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Og]},Me="#eee",po=function(){return{axisLine:{lineStyle:{color:Me}},axisTick:{lineStyle:{color:Me}},axisLabel:{textStyle:{color:Me}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Me}}}},kh=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],zg={color:kh,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:Me},crossStyle:{color:Me}}},legend:{textStyle:{color:Me}},textStyle:{color:Me},title:{textStyle:{color:Me}},toolbox:{iconStyle:{normal:{borderColor:Me}}},dataZoom:{textStyle:{color:Me}},visualMap:{textStyle:{color:Me}},timeline:{lineStyle:{color:Me},itemStyle:{normal:{color:kh[1]}},label:{normal:{textStyle:{color:Me}}},controlStyle:{normal:{color:Me,borderColor:Me}}},timeAxis:po(),logAxis:po(),valueAxis:po(),categoryAxis:po(),line:{symbol:"circle"},graph:{color:kh},gauge:{title:{textStyle:{color:Me}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};zg.categoryAxis.splitLine.show=!1,te.extend({type:"dataset",defaultOption:{seriesLayoutBy:bg,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){Zv(this)}}),Mt.extend({type:"dataset"});var $w=U.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,i=t.cx,r=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(i-a,r),e.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),e.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),e.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),e.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),e.closePath()}}),ln=/[\s,]+/;Ws.prototype.parse=function(e,t){t=t||{};var n=wd(e);if(!n)throw new Error("Illegal svg");var i=new V;this._root=i;var r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),o=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(o)&&(o=null),Ze(n,i,null,!0);for(var s=n.firstChild;s;)this._parseNode(s,i),s=s.nextSibling;var l,h;if(r){var u=Qe(r).split(ln);u.length>=4&&(l={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(l&&a!=null&&o!=null&&(h=zy(l,a,o),!t.ignoreViewBox)){var c=i;i=new V,i.add(c),c.scale=h.scale.slice(),c.position=h.position.slice()}return t.ignoreRootClip||a==null||o==null||i.setClipPath(new xe({shape:{x:0,y:0,width:a,height:o}})),{root:i,width:a,height:o,viewBoxRect:l,viewBoxTransform:h}},Ws.prototype._parseNode=function(e,t){var n=e.nodeName.toLowerCase();n==="defs"?this._isDefine=!0:n==="text"&&(this._isText=!0);var i;if(this._isDefine){var r=Jw[n];if(r){var a=r.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=a)}}else{var r=Qw[n];r&&(i=r.call(this,e,t),t.add(i))}for(var s=e.firstChild;s;)s.nodeType===1&&this._parseNode(s,i),s.nodeType===3&&this._isText&&this._parseText(s,i),s=s.nextSibling;n==="defs"?this._isDefine=!1:n==="text"&&(this._isText=!1)},Ws.prototype._parseText=function(e,t){if(e.nodeType===1){var n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new pe({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});et(t,r),Ze(e,r,this._defs);var a=r.style.fontSize;a&&9>a&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var o=r.getBoundingRect();return this._textX+=o.width,t.add(r),r};var Qw={g:function(e,t){var n=new V;return et(t,n),Ze(e,n,this._defs),n},rect:function(e,t){var n=new xe;return et(t,n),Ze(e,n,this._defs),n.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)}),n},circle:function(e,t){var n=new gh;return et(t,n),Ze(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new on;return et(t,n),Ze(e,n,this._defs),n.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)}),n},ellipse:function(e,t){var n=new $w;return et(t,n),Ze(e,n,this._defs),n.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)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=bd(n));var i=new Ka({shape:{points:n||[]}});return et(t,i),Ze(e,i,this._defs),i},polyline:function(e,t){var n=new U;et(t,n),Ze(e,n,this._defs);var i=e.getAttribute("points");i&&(i=bd(i));var r=new $a({shape:{points:i||[]}});return r},image:function(e,t){var n=new Oe;return et(t,n),Ze(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,i=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new V;return et(t,o),Ze(e,o,this._defs),o},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,o=new V;return et(t,o),Ze(e,o,this._defs),this._textX+=r,this._textY+=a,o},path:function(e,t){var n=e.getAttribute("d")||"",i=Pc(n);return et(t,i),Ze(e,i,this._defs),i}},Jw={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),a=new _i(t,n,i,r);return Py(e,a),a},radialgradient:function(){}},Si={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-align":"textAlign","alignment-baseline":"textBaseline"},eb=/url\(\s*#(.*?)\)/,tb=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Eg=/([^\s:;]+)\s*:\s*([^:;]+)/g,Rg=q(),Bg={registerMap:function(e,t,n){var i;return R(t)?i=t:t.svg?i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),i=[{type:"geoJSON",source:t,specialAreas:n}]),I(i,function(r){var a=r.type;a==="geoJson"&&(a=r.type="geoJSON");var o=nb[a];o(r)}),Rg.set(e,i)},retrieveMap:function(e){return Rg.get(e)}},nb={geoJSON:function(e){var t=e.source;e.geoJSON=ve(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=wd(e.source)}},ib=jn,we=I,rb=$e,Ar=F,Ph=te.parseClassType,ab="4.2.0",ob={zrender:"4.0.5"},sb=1,Ng=1e3,Fg=5e3,Vg=1e3,Wg=2e3,Gg=3e3,lb=4e3,hb=5e3,Lh={PROCESSOR:{FILTER:Ng,STATISTIC:Fg},VISUAL:{LAYOUT:Vg,GLOBAL:Wg,CHART:Gg,COMPONENT:lb,BRUSH:hb}},It="__flagInMainProcess",hn="__optionUpdated",Hg=/^[a-zA-Z0-9_]+$/;ji.prototype.on=oi("on"),ji.prototype.off=oi("off"),ji.prototype.one=oi("one"),ue(ji,Se);var j=Yi.prototype;j._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[hn]){var t=this[hn].silent;this[It]=!0,Ki(this),un.update.call(this),this[It]=!1,this[hn]=!1,sa.call(this,t),la.call(this,t)}else if(e.unfinished){var n=sb,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Ad(this,i),e.performVisualTasks(i),Hs(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},j.getDom=function(){return this._dom},j.getZr=function(){return this._zr},j.setOption=function(e,t,n){var i;if(Ar(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[It]=!0,!this._model||t){var r=new Ls(this._api),a=this._theme,o=this._model=new Sh(null,null,a,r);o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(e,Zg),n?(this[hn]={silent:i},this[It]=!1):(Ki(this),un.update.call(this),this._zr.flush(),this[hn]=!1,this[It]=!1,sa.call(this,i),la.call(this,i))},j.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},j.getModel=function(){return this._model},j.getOption=function(){return this._model&&this._model.getOption()},j.getWidth=function(){return this._zr.getWidth()},j.getHeight=function(){return this._zr.getHeight()},j.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},j.getRenderedCanvas=function(e){if(X.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},j.getSvgDataUrl=function(){if(X.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return I(t,function(n){n.stopAnimation(!0)}),e.painter.pathToDataUrl()}},j.getDataURL=function(e){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;we(t,function(o){n.eachComponent({mainType:o},function(s){var l=r._componentsMap[s.__viewId];l.group.ignore||(i.push(l),l.group.ignore=!0)})});var a=this._zr.painter.getType()==="svg"?this.getSvgDataUrl():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return we(i,function(o){o.group.ignore=!1}),a},j.getConnectedDataURL=function(e){if(X.canvasSupported){var t=this.group,n=Math.min,i=Math.max,r=1/0;if(yo[t]){var a=r,o=r,s=-r,l=-r,h=[],u=e&&e.pixelRatio||1;I(Vn,function(v){if(v.group===t){var g=v.getRenderedCanvas(ae(e)),m=v.getDom().getBoundingClientRect();a=n(m.left,a),o=n(m.top,o),s=i(m.right,s),l=i(m.bottom,l),h.push({dom:g,left:m.left,top:m.top})}}),a*=u,o*=u,s*=u,l*=u;var c=s-a,f=l-o,d=Sa();d.width=c,d.height=f;var p=ds(d);return we(h,function(v){var g=new Oe({style:{x:v.left*u-a,y:v.top*u-o,image:v.dom}});p.add(g)}),p.refreshImmediately(),d.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},j.convertToPixel=ee(Md,"convertToPixel"),j.convertFromPixel=ee(Md,"convertFromPixel"),j.containPixel=function(e,t){var n,i=this._model;return e=ps(i,e),I(e,function(r,a){a.indexOf("Models")>=0&&I(r,function(o){var s=o.coordinateSystem;if(s&&s.containPoint)n|=!!s.containPoint(t);else if(a==="seriesModels"){var l=this._chartsMap[o.__viewId];l&&l.containPoint&&(n|=l.containPoint(t,o))}},this)},this),!!n},j.getVisual=function(e,t){var n=this._model;e=ps(n,e,{defaultMainType:"series"});var i=e.seriesModel,r=i.getData(),a=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?r.indexOfRawIndex(e.dataIndex):null;return a!=null?r.getItemVisual(a,t):r.getVisual(t)},j.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},j.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var un={prepareAndUpdate:function(e){Ki(this),un.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(t){a.restoreData(t,e),a.performSeriesTasks(t),r.create(t,n),a.performDataProcessorTasks(t,e),Ad(this,t),r.update(t,n),Gs(t),a.performVisualTasks(t,e),Td(this,t,n,e);var o=t.get("backgroundColor")||"transparent";if(X.canvasSupported)i.setBackgroundColor(o);else{var s=lt(o);o=ei(s,"rgb"),s[3]===0&&(o="transparent")}Zs(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var r=[];t.eachComponent(function(o,s){var l=n.getViewOfComponentModel(s);if(l&&l.__alive)if(l.updateTransform){var h=l.updateTransform(s,t,i,e);h&&h.update&&r.push(l)}else r.push(l)});var a=q();t.eachSeries(function(o){var s=n._chartsMap[o.__viewId];if(s.updateTransform){var l=s.updateTransform(o,t,i,e);l&&l.update&&a.set(o.uid,1)}else a.set(o.uid,1)}),Gs(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),Hs(n,t,i,e,a),Zs(t,this._api)}},updateView:function(e){var t=this._model;t&&(He.markUpdateMethod(e,"updateView"),Gs(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),Td(this,this._model,this._api,e),Zs(t,this._api))},updateVisual:function(e){un.update.call(this,e)},updateLayout:function(e){un.update.call(this,e)}};j.resize=function(e){this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[It]=!0,n&&Ki(this),un.update.call(this),this[It]=!1,sa.call(this,i),la.call(this,i)}},j.showLoading=function(e,t){if(Ar(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),zh[e]){var n=zh[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},j.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},j.makeActionFromEvent=function(e){var t=H({},e);return t.type=mo[e.type],t},j.dispatchAction=function(e,t){if(Ar(t)||(t={silent:!!t}),go[e.type]&&this._model){if(this[It])return void this._pendingActions.push(e);Cd.call(this,e,t.silent),t.flush?this._zr.flush(!0):t.flush!==!1&&X.browser.weChat&&this._throttledZrFlush(),sa.call(this,t.silent),la.call(this,t.silent)}},j.appendData=function(e){var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);i.appendData(e),this._scheduler.unfinished=!0},j.on=oi("on"),j.off=oi("off"),j.one=oi("one");var ub=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];j._initEvents=function(){we(ub,function(e){this._zr.on(e,function(t){var n,i=this.getModel(),r=t.target,a=e==="globalout";if(a)n={};else if(r&&r.dataIndex!=null){var o=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=o&&o.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=H({},r.eventData));if(n){var s=n.componentType,l=n.componentIndex;(s==="markLine"||s==="markPoint"||s==="markArea")&&(s="series",l=n.seriesIndex);var h=s&&l!=null&&i.getComponent(s,l),u=h&&this[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:h,view:u},this.trigger(e,n)}},this)},this),we(mo,function(e,t){this._messageCenter.on(t,function(n){this.trigger(t,n)},this)},this)},j.isDisposed=function(){return this._disposed},j.clear=function(){this.setOption({series:[]},!0)},j.dispose=function(){if(!this._disposed){this._disposed=!0,vc(this.getDom(),Eh,"");var e=this._api,t=this._model;we(this._componentsViews,function(n){n.dispose(t,e)}),we(this._chartsViews,function(n){n.dispose(t,e)}),this._zr.dispose(),delete Vn[this.id]}},ue(Yi,Se),Xs.prototype={constructor:Xs,normalizeQuery:function(e){var t={},n={},i={};if(ve(e)){var r=Ph(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};I(e,function(s,l){for(var h=!1,u=0;u<a.length;u++){var c=a[u],f=l.lastIndexOf(c);if(f>0&&f===l.length-c.length){var d=l.slice(0,f);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=s,h=!0)}}o.hasOwnProperty(l)&&(n[l]=s,h=!0),h||(i[l]=s)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t){function n(u,c,f,d){return u[f]==null||c[d||f]===u[f]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,h=t.dataQuery;return n(l,o,"mainType")&&n(l,o,"subType")&&n(l,o,"index","componentIndex")&&n(l,o,"name")&&n(l,o,"id")&&n(h,a,"name")&&n(h,a,"dataIndex")&&n(h,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a))},afterTrigger:function(){this.eventInfo=null}};var go={},mo={},Oh=[],Zg=[],Xg=[],vo=[],qg={},zh={},Vn={},yo={},cb=new Date-0,db=new Date-0,Eh="_echarts_instance_",fb=Pd;Qi(Wg,qw),Kt(Ig),Cn(Fg,Fw),Ld("default",jw),Te({type:"highlight",event:"highlight",update:"highlight"},kt),Te({type:"downplay",event:"downplay",update:"downplay"},kt),Us("light",Kw),Us("dark",zg);var pb={};ha.prototype={constructor:ha,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e,t=this._old,n=this._new,i={},r={},a=[],o=[];for(Rd(t,i,a,"_oldKeyGetter",this),Rd(n,r,o,"_newKeyGetter",this),e=0;e<t.length;e++){var s=a[e],l=r[s];if(l!=null){var h=l.length;h?(h===1&&(r[s]=null),l=l.unshift()):r[s]=null,this._update&&this._update(l,e)}else this._remove&&this._remove(e)}for(var e=0;e<o.length;e++){var s=o[e];if(r.hasOwnProperty(s)){var l=r[s];if(l==null)continue;if(l.length)for(var u=0,h=l.length;h>u;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}};var Ug=q(["tooltip","label","itemName","itemId","seriesName"]),xo=F,_o="undefined",gb="e\0\0",mb={float:typeof Float64Array===_o?Array:Float64Array,int:typeof Int32Array===_o?Array:Int32Array,ordinal:Array,number:Array,time:Array},jg=typeof Uint32Array===_o?Array:Uint32Array,vb=typeof Uint16Array===_o?Array:Uint16Array,yb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],xb=["_extent","_approximateExtent","_rawExtent"],Ue=function(e,t){e=e||["x","y"];for(var n={},i=[],r={},a=0;a<e.length;a++){var o=e[a];ve(o)&&(o={name:o});var s=o.name;o.type=o.type||"float",o.coordDim||(o.coordDim=s,o.coordDimIndex=0),o.otherDims=o.otherDims||{},i.push(s),n[s]=o,o.index=a,o.createInvertedIndices&&(r[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=$y(this),this._invertedIndicesMap=r,this._calculationInfo={}},L=Ue.prototype;L.type="list",L.hasItemOption=!0,L.getDimension=function(e){return isNaN(e)||(e=this.dimensions[e]||e),e},L.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},L.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},L.mapDimension=function(e,t){var n=this._dimensionsSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return t===!0?(i||[]).slice():i&&i[t]},L.initData=function(e,t,n){var i=ct.isInstance(e)||Tt(e);i&&(e=new ld(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=Gw[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},L.getProvider=function(){return this._rawData},L.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var i=t.count();t.persistent||(i+=n),this._initDataFromProvider(n,i)},L._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,h=this._nameList,u=this._idList,c=this._rawExtent,f=this._nameRepeatCount={},d=this._chunkCount,p=d-1,v=0;s>v;v++){var g=o[v];c[g]||(c[g]=$s());var m=l[g];m.otherDims.itemName===0&&(n=this._nameDimIdx=v),m.otherDims.itemId===0&&(this._idDimIdx=v);var y=mb[m.type];a[g]||(a[g]=[]);var x=a[g][p];if(x&&x.length<i){for(var w=new y(Math.min(t-p*i,i)),S=0;S<x.length;S++)w[S]=x[S];a[g][p]=w}for(var b=d*i;t>b;b+=i)a[g].push(new y(Math.min(t-b,i)));this._chunkCount=a[g].length}for(var _=new Array(s),M=e;t>M;M++){_=r.getItem(M,_);for(var A=Math.floor(M/i),C=M%i,b=0;s>b;b++){var g=o[b],D=a[g][A],T=this._dimValueGetter(_,g,M,b);D[C]=T;var k=c[g];T<k[0]&&(k[0]=T),T>k[1]&&(k[1]=T)}if(!r.pure){var E=h[M];if(_&&E==null){if(_.name!=null)h[M]=E=_.name;else if(n!=null){var z=o[n],B=a[z][A];if(B){E=B[C];var W=l[z].ordinalMeta;W&&W.categories.length&&(E=W.categories[E])}}}var G=_==null?null:_.id;G==null&&E!=null&&(f[E]=f[E]||0,G=E,f[E]>0&&(G+="__ec__"+f[E]),f[E]++),G!=null&&(u[M]=G)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},tx(this)}},L.count=function(){return this._count},L.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;i>r;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else for(var n=ua(this),e=new n(this.count()),r=0;r<e.length;r++)e[r]=r;return e},L.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize,a=n[e][i],o=a[r];return o},L.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize,a=n[i];return a[r]},L._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),i=t%this._chunkSize,r=this._storage[e][n];return r[i]},L.getValues=function(e,t){var n=[];R(e)||(t=e,e=this.dimensions);for(var i=0,r=e.length;r>i;i++)n.push(this.get(e[i],t));return n},L.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=this._dimensionInfos,i=0,r=t.length;r>i;i++)if(n[t[i]].type!=="ordinal"&&isNaN(this.get(t[i],e)))return!1;return!0},L.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=$s();if(!t)return n;var i,r=this.count(),a=!this._indices;if(a)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();i=n;for(var o=i[0],s=i[1],l=0;r>l;l++){var h=this._getFast(e,this.getRawIndex(l));o>h&&(o=h),h>s&&(s=h)}return i=[o,s],this._extent[e]=i,i},L.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},L.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},L.getCalculationInfo=function(e){return this._calculationInfo[e]},L.setCalculationInfo=function(e,t){xo(e)?H(this._calculationInfo,e):this._calculationInfo[e]=t},L.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var i=0,r=this.count();r>i;i++){var a=this.get(e,i);isNaN(a)||(n+=a)}return n},L.getMedian=function(e){var t=[];this.each(e,function(r){isNaN(r)||t.push(r)});var n=[].concat(t).sort(function(r,a){return r-a}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},L.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n[t];return i==null||isNaN(i)?-1:i},L.indexOfName=function(e){for(var t=0,n=this.count();n>t;t++)if(this.getName(t)===e)return t;return-1},L.indexOfRawIndex=function(e){if(!this._indices)return e;if(e>=this._rawCount||0>e)return-1;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;r>=i;){var a=(i+r)/2|0;if(t[a]<e)i=a+1;else{if(!(t[a]>e))return a;r=a-1}}return-1},L.indicesOfNearest=function(e,t,n){var i=this._storage,r=i[e],a=[];if(!r)return a;n==null&&(n=1/0);for(var o=Number.MAX_VALUE,s=-1,l=0,h=this.count();h>l;l++){var u=t-this.get(e,l),c=Math.abs(u);n>=u&&o>=c&&((o>c||u>=0&&0>s)&&(o=c,s=u,a.length=0),a.push(l))}return a},L.getRawIndex=Ji,L.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];t.push(this.get(i,e))}return t},L.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||Nd(this,this._nameDimIdx,t)||""},L.getId=function(e){return Ys(this,this.getRawIndex(e))},L.each=function(e,t,n,i){if(this._count){typeof e=="function"&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=O(Ks(e),this.getDimension,this);for(var r=e.length,a=0;a<this.count();a++)switch(r){case 0:t.call(n,a);break;case 1:t.call(n,this.get(e[0],a),a);break;case 2:t.call(n,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var o=0,s=[];r>o;o++)s[o]=this.get(e[o],a);s[o]=a,t.apply(n,s)}}},L.filterSelf=function(e,t,n,i){if(this._count){typeof e=="function"&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=O(Ks(e),this.getDimension,this);for(var r=this.count(),a=ua(this),o=new a(r),s=[],l=e.length,h=0,u=e[0],c=0;r>c;c++){var f,d=this.getRawIndex(c);if(l===0)f=t.call(n,c);else if(l===1){var p=this._getFast(u,d);f=t.call(n,p,c)}else{for(var v=0;l>v;v++)s[v]=this._getFast(u,d);s[v]=c,f=t.apply(n,s)}f&&(o[h++]=d)}return r>h&&(this._indices=o),this._count=h,this._extent={},this.getRawIndex=this._indices?er:Ji,this}},L.selectRange=function(e){if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var i=t.length;if(i){var r=this.count(),a=ua(this),o=new a(r),s=0,l=t[0],h=e[l][0],u=e[l][1],c=!1;if(!this._indices){var f=0;if(i===1){for(var d=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var v=d[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;g>m;m++){var y=v[m];(y>=h&&u>=y||isNaN(y))&&(o[s++]=f),f++}c=!0}else if(i===2){for(var d=this._storage[l],x=this._storage[t[1]],w=e[t[1]][0],S=e[t[1]][1],p=0;p<this._chunkCount;p++)for(var v=d[p],b=x[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;g>m;m++){var y=v[m],_=b[m];(y>=h&&u>=y||isNaN(y))&&(_>=w&&S>=_||isNaN(_))&&(o[s++]=f),f++}c=!0}}if(!c)if(i===1)for(var m=0;r>m;m++){var M=this.getRawIndex(m),y=this._getFast(l,M);(y>=h&&u>=y||isNaN(y))&&(o[s++]=M)}else for(var m=0;r>m;m++){for(var A=!0,M=this.getRawIndex(m),p=0;i>p;p++){var C=t[p],y=this._getFast(n,M);(y<e[C][0]||y>e[C][1])&&(A=!1)}A&&(o[s++]=this.getRawIndex(m))}return r>s&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?er:Ji,this}}},L.mapArray=function(e,t,n,i){typeof e=="function"&&(i=n,n=t,t=e,e=[]),n=n||i||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},L.map=function(e,t,n,i){n=n||i||this,e=O(Ks(e),this.getDimension,this);var r=Fd(this,e);r._indices=this._indices,r.getRawIndex=r._indices?er:Ji;for(var a=r._storage,o=[],s=this._chunkSize,l=e.length,h=this.count(),u=[],c=r._rawExtent,f=0;h>f;f++){for(var d=0;l>d;d++)u[d]=this.get(e[d],f);u[l]=f;var p=t&&t.apply(n,u);if(p!=null){typeof p!="object"&&(o[0]=p,p=o);for(var v=this.getRawIndex(f),g=Math.floor(v/s),m=v%s,y=0;y<p.length;y++){var x=e[y],w=p[y],S=c[x],b=a[x];b&&(b[g][m]=w),w<S[0]&&(S[0]=w),w>S[1]&&(S[1]=w)}}}return r},L.downSample=function(e,t,n,i){for(var r=Fd(this,[e]),a=r._storage,o=[],s=Math.floor(1/t),l=a[e],h=this.count(),u=this._chunkSize,c=r._rawExtent[e],f=new(ua(this))(h),d=0,p=0;h>p;p+=s){s>h-p&&(s=h-p,o.length=s);for(var v=0;s>v;v++){var g=this.getRawIndex(p+v),m=Math.floor(g/u),y=g%u;o[v]=l[m][y]}var x=n(o),w=this.getRawIndex(Math.min(p+i(o,x)||0,h-1)),S=Math.floor(w/u),b=w%u;l[S][b]=x,x<c[0]&&(c[0]=x),x>c[1]&&(c[1]=x),f[d++]=w}return r._count=d,r._indices=f,r.getRawIndex=er,r},L.getItemModel=function(e){var t=this.hostModel;return new oe(this.getRawDataItem(e),t,t&&t.ecModel)},L.diff=function(e){var t=this;return new ha(e?e.getIndices():[],this.getIndices(),function(n){return Ys(e,n)},function(n){return Ys(t,n)})},L.getVisual=function(e){var t=this._visual;return t&&t[e]},L.setVisual=function(e,t){if(xo(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},L.setLayout=function(e,t){if(xo(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},L.getLayout=function(e){return this._layout[e]},L.getItemLayout=function(e){return this._itemLayouts[e]},L.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?H(this._itemLayouts[e]||{},t):t},L.clearItemLayouts=function(){this._itemLayouts.length=0},L.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],r=i&&i[t];return r!=null||n?r:this.getVisual(t)},L.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,xo(t))for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a],r[a]=!0);else i[t]=n,r[t]=!0},L.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var _b=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};L.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,t.type==="group"&&t.traverse(_b,t)),this._graphicEls[e]=t},L.getItemGraphicEl=function(e){return this._graphicEls[e]},L.eachItemGraphicEl=function(e,t){I(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},L.cloneShallow=function(e){if(!e){var t=O(this.dimensions,this.getDimensionInfo,this);e=new Ue(t,this.hostModel)}if(e._storage=this._storage,Bd(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?er:Ji,e},L.wrapMethod=function(e,t){var n=this[e];typeof n=="function"&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(Bo(arguments)))})},L.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],L.CHANGABLE_METHODS=["filterSelf","selectRange"];var Rh=function(e,t){return t=t||{},Vd(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})};fe.prototype.parse=function(e){return e},fe.prototype.getSetting=function(e){return this._setting[e]},fe.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},fe.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},fe.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},fe.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},fe.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},fe.prototype.getExtent=function(){return this._extent.slice()},fe.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},fe.prototype.isBlank=function(){return this._isBlank},fe.prototype.setBlank=function(e){this._isBlank=e},fe.prototype.getLabel=null,Fi(fe),Yr(fe,{registerWhenExtend:!0}),tr.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&O(n,ox);return new tr({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})};var Yg=tr.prototype;Yg.getOrdinal=function(e){return Zd(this).get(e)},Yg.parseAndCollect=function(e){var t,n=this._needCollect;if(typeof e!="string"&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=Zd(this);return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t};var Bh=fe.prototype,Nh=fe.extend({type:"ordinal",init:function(e,t){(!e||R(e))&&(e=new tr({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return typeof e=="string"?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),Bh.contain.call(this,e)&&this._ordinalMeta.categories[e]!=null},normalize:function(e){return Bh.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(Bh.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push(n),n++;return e},getLabel:function(e){return this.isBlank()?void 0:this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:kt,niceExtent:kt});Nh.create=function(){return new Nh};var Fh=Ee,Vh=Ee,Ft=fe.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),Ft.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xd(e)},getTicks:function(){return lx(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(e,t){if(e==null)return"";var n=t&&t.precision;return n==null?n=na(e)||0:n==="auto"&&(n=this._intervalPrecision),e=Vh(e,n,!0),Zi(e)},niceTicks:function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var a=sx(i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(t[0]!==0){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=Vh(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=Vh(Math.ceil(t[1]/r)*r))}});Ft.create=function(){return new Ft};var Wh="__ec_stack_",Kg=.5,wb=typeof Float32Array!="undefined"?Float32Array:Array,bb={seriesType:"bar",plan:Dh(),reset:function(e){function t(c,f){for(var d,p=new wb(2*c.count),v=[],g=[],m=0;(d=c.next())!=null;)g[h]=f.get(o,d),g[1-h]=f.get(s,d),v=i.dataToPoint(g,null,v),p[m++]=v[0],p[m++]=v[1];f.setLayout({largePoints:p,barWidth:u,valueAxisStart:Jd(r,a,!1),valueAxisHorizontal:l})}if($d(e)&&Qd(e)){var n=e.getData(),i=e.coordinateSystem,r=i.getBaseAxis(),a=i.getOtherAxis(r),o=n.mapDimension(a.dim),s=n.mapDimension(r.dim),l=a.isHorizontal(),h=l?0:1,u=Kd(el([e]),r,e).width;return u>Kg||(u=Kg),{progress:t}}}},Sb=Ft.prototype,$g=Math.ceil,Qg=Math.floor,Mi=1e3,Ii=60*Mi,Cr=60*Ii,se=24*Cr,Mb=function(e,t,n,i){for(;i>n;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},Gh=Ft.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return Ds(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=se,t[1]+=se),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-se}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Ee(Qg(t[0]/i)*i)),e.fixMax||(t[1]=Ee($g(t[1]/i)*i))},niceTicks:function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0],a=r/e;t!=null&&t>a&&(a=t),n!=null&&a>n&&(a=n);var o=Hh.length,s=Mb(Hh,a,0,o),l=Hh[Math.min(s,o-1)],h=l[1];if(l[0]==="year"){var u=r/h,c=As(u/e,!0);h*=c}var f=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,d=[Math.round($g((i[0]-f)/h)*h+f),Math.round(Qg((i[1]-f)/h)*h+f)];Ud(d,i),this._stepLvl=l,this._interval=h,this._niceExtent=d},parse:function(e){return+ia(e)}});I(["contain","normalize"],function(e){Gh.prototype[e]=function(t){return Sb[e].call(this,this.parse(t))}});var Hh=[["hh:mm:ss",Mi],["hh:mm:ss",5*Mi],["hh:mm:ss",10*Mi],["hh:mm:ss",15*Mi],["hh:mm:ss",30*Mi],[`hh:mm
MM-dd`,Ii],[`hh:mm
MM-dd`,5*Ii],[`hh:mm
MM-dd`,10*Ii],[`hh:mm
MM-dd`,15*Ii],[`hh:mm
MM-dd`,30*Ii],[`hh:mm
MM-dd`,Cr],[`hh:mm
MM-dd`,2*Cr],[`hh:mm
MM-dd`,6*Cr],[`hh:mm
MM-dd`,12*Cr],[`MM-dd
yyyy`,se],[`MM-dd
yyyy`,2*se],[`MM-dd
yyyy`,3*se],[`MM-dd
yyyy`,4*se],[`MM-dd
yyyy`,5*se],[`MM-dd
yyyy`,6*se],["week",7*se],[`MM-dd
yyyy`,10*se],["week",14*se],["week",21*se],["month",31*se],["week",42*se],["month",62*se],["week",70*se],["quarter",95*se],["month",31*se*4],["month",31*se*5],["half-year",380*se/2],["month",31*se*8],["month",31*se*10],["year",380*se]];Gh.create=function(e){return new Gh({useUTC:e.ecModel.get("useUTC")})};var wo=fe.prototype,bo=Ft.prototype,Ib=na,Ab=Ee,Cb=Math.floor,Db=Math.ceil,So=Math.pow,At=Math.log,Zh=fe.extend({type:"log",base:10,$constructor:function(){fe.apply(this,arguments),this._originalScale=new Ft},getTicks:function(){var e=this._originalScale,t=this._extent,n=e.getExtent();return O(bo.getTicks.call(this),function(i){var r=Ee(So(this.base,i));return r=i===t[0]&&e.__fixMin?da(r,n[0]):r,r=i===t[1]&&e.__fixMax?da(r,n[1]):r},this)},getLabel:bo.getLabel,scale:function(e){return e=wo.scale.call(this,e),So(this.base,e)},setExtent:function(e,t){var n=this.base;e=At(e)/At(n),t=At(t)/At(n),bo.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=wo.getExtent.call(this);t[0]=So(e,t[0]),t[1]=So(e,t[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(t[0]=da(t[0],i[0])),n.__fixMax&&(t[1]=da(t[1],i[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=At(e[0])/At(t),e[1]=At(e[1])/At(t),wo.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||0>=n)){var i=Kc(n),r=e/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var a=[Ee(Db(t[0]/i)*i),Ee(Cb(t[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(e){bo.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});I(["contain","normalize"],function(e){Zh.prototype[e]=function(t){return t=At(t)/At(this.base),wo[e].call(this,t)}}),Zh.create=function(){return new Zh};var Xh={getMin:function(e){var t=this.option,n=e||t.rangeStart==null?t.min:t.rangeStart;return this.axis&&n!=null&&n!=="dataMin"&&typeof n!="function"&&!Oi(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||t.rangeEnd==null?t.max:t.rangeEnd;return this.axis&&n!=null&&n!=="dataMax"&&typeof n!="function"&&!Oi(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return e.rangeStart!=null||e.rangeEnd!=null?!1:!e.scale},getCoordSysModel:kt,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},Tb=Mn({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),kb=Mn({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),Pb=Mn({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,h=Math.asin(s/o),u=Math.cos(h)*o,c=Math.sin(h),f=Math.cos(h),d=.6*o,p=.7*o;e.moveTo(n-u,l+s),e.arc(n,l,o,Math.PI-h,2*Math.PI+h),e.bezierCurveTo(n+u-c*d,l+s+f*d,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-u+c*d,l+s+f*d,n-u,l+s),e.closePath()}}),Lb=Mn({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),Ob={line:on,rect:xe,roundRect:xe,square:xe,circle:gh,diamond:kb,pin:Pb,arrow:Lb,triangle:Tb},zb={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},qh={};I(Ob,function(e,t){qh[t]=new e});var Eb=Mn({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var e=this.style,t=this.shape;t.symbolType==="pin"&&e.textPosition==="inside"&&(e.textPosition=["50%","40%"],e.textAlign="center",e.textVerticalAlign="middle")},buildPath:function(e,t,n){var i=t.symbolType,r=qh[i];t.symbolType!=="none"&&(r||(i="rect",r=qh[i]),zb[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n))}}),Rb={isDimensionStacked:Qt,enableDataStack:Gd,getStackedDimension:Hd},Bb=(Object.freeze||Object)({createList:vx,getLayoutRect:Yt,dataStack:Rb,createScale:yx,mixinAxisModelCommonMethods:xx,completeDimensions:Vd,createDimensions:Rh,createSymbol:Tn}),Nb=1e-8;fa.prototype={constructor:fa,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],i=[-t,-t],r=[],a=[],o=this.geometries,s=0;s<o.length;s++)if(o[s].type==="polygon"){var l=o[s].exterior;av(l,r,a),Pt(n,n,r),Lt(i,i,a)}return s===0&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new ie(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;r>i;i++)if(n[i].type==="polygon"){var a=n[i].exterior,o=n[i].interiors;if(tf(a,e[0],e[1])){for(var s=0;s<(o?o.length:0);s++)if(tf(o[s]))continue e;return!0}}return!1},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new ie(e,t,n,i),s=r.calculateTransform(o),l=this.geometries,h=0;h<l.length;h++)if(l[h].type==="polygon"){for(var u=l[h].exterior,c=l[h].interiors,f=0;f<u.length;f++)ne(u[f],u[f],s);for(var d=0;d<(c?c.length:0);d++)for(var f=0;f<c[d].length;f++)ne(c[d][f],c[d][f],s)}r=this._rect,r.copy(o),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(e){e==null&&(e=this.name);var t=new fa(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var Jg=function(e){return _x(e),O(Pe(e.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=i.coordinates,a=[];i.type==="Polygon"&&a.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),i.type==="MultiPolygon"&&I(r,function(s){s[0]&&a.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})});var o=new fa(n.name,a,n.cp);return o.properties=n,o})},Dr=ht(),e0=[0,1],Wn=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};Wn.prototype={constructor:Wn,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&i>=e},containData:function(e){return this.contain(this.dataToCoord(e))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return Ms(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),cf(n,i.count())),jt(e,e0,n,t)},coordToData:function(e,t){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),cf(n,i.count()));var r=jt(e,n,e0,t);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Sx(this,t),i=n.ticks,r=O(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this),a=t.get("alignWithLabel");return kx(this,r,n.tickCategoryInterval,a,e.clamp),r},getViewLabels:function(){return bx(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return Dx(this)}};var Fb=Jg,t0={};I(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(e){t0[e]=T_[e]});var n0={};I(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(e){n0[e]=_r[e]});var Mo=function(e){this._axes={},this._dimList=[],this.name=e||""};Mo.prototype={constructor:Mo,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return O(this._dimList,Px,this)},getAxesByScale:function(e){return e=e.toLowerCase(),Pe(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,i=e instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[t](e[a])}return i}},ir.prototype={constructor:ir,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(e[0])),n[1]=r.toGlobalCoord(r.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),i=this.getAxis("y");return t=t||[],t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=i.coordToData(i.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis(e.dim==="x"?"y":"x")}},be(ir,Mo);var Io=function(e,t,n,i,r){Wn.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom"};Io.prototype={constructor:Io,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return e==="top"||e==="bottom"},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},be(Io,Wn);var i0={show:!0,zlevel: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:"#333",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:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Gn={};Gn.categoryAxis=K({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i0),Gn.valueAxis=K({boundaryGap:[0,0],splitNumber:5},i0),Gn.timeAxis=Z({scale:!0,min:"dataMin",max:"dataMax"},Gn.valueAxis),Gn.logAxis=Z({scale:!0,logBase:10},Gn.valueAxis);var Vb=["value","category","time","log"],r0=function(e,t,n,i){I(Vb,function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(a,o){var s=this.layoutMode,l=s?Xi(a):{},h=o.getTheme();K(a,h.get(r+"Axis")),K(a,this.getDefaultOption()),a.type=n(e,a),s&&ri(a,l,s)},optionUpdated:function(){var a=this.option;a.type==="category"&&(this.__ordinalMeta=tr.createByAxisModel(this))},getCategories:function(a){var o=this.option;return o.type==="category"?a?o.data:this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:Eo([{},Gn[r+"Axis"],i],!0)})}),te.registerSubTypeDefaulter(e+"Axis",ee(n,e))},Ai=te.extend({type:"cartesian2dAxis",axis:null,init:function(){Ai.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Ai.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Ai.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});K(Ai.prototype,Xh);var a0={offset:0};r0("x",Ai,df,a0),r0("y",Ai,df,a0),te.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Ae=si.prototype;Ae.type="grid",Ae.axisPointerEnabled=!0,Ae.getRect=function(){return this._rect},Ae.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),I(n.x,function(r){tl(r.scale,r.model)}),I(n.y,function(r){tl(r.scale,r.model)});var i={};I(n.x,function(r){ff(n,"y",r,i)}),I(n.y,function(r){ff(n,"x",r,i)}),this.resize(this.model,t)},Ae.resize=function(e,t,n){function i(){I(a,function(o){var s=o.isHorizontal(),l=s?[0,r.width]:[0,r.height],h=o.inverse?1:0;o.setExtent(l[h],l[1-h]),Lx(o,s?r.x:r.y)})}var r=Yt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=r;var a=this._axesList;i(),!n&&e.get("containLabel")&&(I(a,function(o){if(!o.model.get("axisLabel.inside")){var s=px(o);if(s){var l=o.isHorizontal()?"height":"width",h=o.model.get("axisLabel.margin");r[l]-=s[l]+h,o.position==="top"?r.y+=s.height+h:o.position==="left"&&(r.x+=s.width+h)}}}),i())},Ae.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null){if(t==null){for(var i in n)if(n.hasOwnProperty(i))return n[i]}return n[t]}},Ae.getAxes=function(){return this._axesList.slice()},Ae.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}F(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},Ae.getCartesians=function(){return this._coordsList.slice()},Ae.convertToPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},Ae.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},Ae._findConvertTarget=function(e,t){var n,i,r=t.seriesModel,a=t.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=t.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,J(l,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){var h=s.coordinateSystem;h===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},Ae.containPoint=function(e){var t=this._coordsList[0];return t?t.containPoint(e):void 0},Ae._initCartesian=function(e,t){function n(o){return function(s,l){if(rl(s,e,t)){var h=s.get("position");o==="x"?h!=="top"&&h!=="bottom"&&(h="bottom",i[h]&&(h=h==="top"?"bottom":"top")):h!=="left"&&h!=="right"&&(h="left",i[h]&&(h=h==="left"?"right":"left")),i[h]=!0;var u=new Io(o,nl(s),[0,0],s.get("type"),h),c=u.type==="category";u.onBand=c&&s.get("boundaryGap"),u.inverse=s.get("inverse"),s.axis=u,u.model=s,u.grid=this,u.index=l,this._axesList.push(u),r[o][l]=u,a[o]++}}}var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};return t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),a.x&&a.y?(this._axesMap=r,void I(r.x,function(o,s){I(r.y,function(l,h){var u="x"+s+"y"+h,c=new ir(u);c.grid=this,c.model=e,this._coordsMap[u]=c,this._coordsList.push(c),c.addAxis(o),c.addAxis(l)},this)},this)):(this._axesMap={},void(this._axesList=[]))},Ae._updateScale=function(e,t){function n(i,r){I(i.mapDimension(r.dim,!0),function(a){r.scale.unionExtentFromData(i,Hd(i,a))})}I(this._axesList,function(i){i.scale.setExtent(1/0,-1/0)}),e.eachSeries(function(i){if(mf(i)){var r=gf(i,e),a=r[0],o=r[1];if(!rl(a,t,e)||!rl(o,t,e))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),h=s.getAxis("x"),u=s.getAxis("y");l.type==="list"&&(n(l,h,i),n(l,u,i))}},this)},Ae.getTooltipAxes=function(e){var t=[],n=[];return I(this.getCartesians(),function(i){var r=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(r);J(t,r)<0&&t.push(r),J(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}};var Wb=["xAxis","yAxis"];si.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,r){var a=new si(i,e,t);a.name="grid_"+r,a.resize(i,t,!0),i.coordinateSystem=a,n.push(a)}),e.eachSeries(function(i){if(mf(i)){var r=gf(i,e),a=r[0],o=r[1],s=a.getCoordSysModel(),l=s.coordinateSystem;i.coordinateSystem=l.getCartesian(a.componentIndex,o.componentIndex)}}),n},si.dimensions=si.prototype.dimensions=ir.prototype.dimensions,Et.register("cartesian2d",si);var Gb=Fn.extend({type:"series.__base_bar__",getInitialData:function(){return ca(this.getSource(),this)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});Gb.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e}});var Hb=Fa([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Zb={getBarItemStyle:function(e){var t=Hb(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}},Xb=["itemStyle","barBorderWidth"];H(oe.prototype,Zb),zd({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var i=e.get("coordinateSystem");return(i==="cartesian2d"||i==="polar")&&(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t,n=this.group,i=e.getData(),r=this._data,a=e.coordinateSystem,o=a.getBaseAxis();a.type==="cartesian2d"?t=o.isHorizontal():a.type==="polar"&&(t=o.dim==="angle");var s=e.isAnimationEnabled()?e:null;i.diff(r).add(function(l){if(i.hasValue(l)){var h=i.getItemModel(l),u=s0[a.type](i,l,h),c=o0[a.type](i,l,h,u,t,s);i.setItemGraphicEl(l,c),n.add(c),_f(c,i,l,h,u,e,t,a.type==="polar")}}).update(function(l,h){var u=r.getItemGraphicEl(h);if(!i.hasValue(l))return void n.remove(u);var c=i.getItemModel(l),f=s0[a.type](i,l,c);u?ye(u,{shape:f},s,l):u=o0[a.type](i,l,c,f,t,s,!0),i.setItemGraphicEl(l,u),n.add(u),_f(u,i,l,c,f,e,t,a.type==="polar")}).remove(function(l){var h=r.getItemGraphicEl(l);a.type==="cartesian2d"?h&&yf(l,s,h):h&&xf(l,s,h)}).execute(),this._data=i},_renderLarge:function(e){this._clear(),wf(e,this.group)},_incrementalRenderLarge:function(e,t){wf(t,this.group,!0)},dispose:kt,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?n.eachItemGraphicEl(function(i){i.type==="sector"?xf(i.dataIndex,e,i):yf(i.dataIndex,e,i)}):t.removeAll(),this._data=null}});var o0={cartesian2d:function(e,t,n,i,r,a,o){var s=new xe({shape:H({},i)});if(a){var l=s.shape,h=r?"height":"width",u={};l[h]=0,u[h]=i[h],_r[o?"updateProps":"initProps"](s,{shape:u},a,t)}return s},polar:function(e,t,n,i,r,a,o){var s=i.startAngle<i.endAngle,l=new xr({shape:Z({clockwise:s},i)});if(a){var h=l.shape,u=r?"r":"endAngle",c={};h[u]=r?0:i.startAngle,c[u]=i[u],_r[o?"updateProps":"initProps"](l,{shape:c},a,t)}return l}},s0={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=zx(n,i),a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(e,t){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},qb=U.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,i=this.__startPoint,r=this.__valueIdx,a=0;a<n.length;a+=2)i[this.__valueIdx]=n[a+r],e.moveTo(i[0],i[1]),e.lineTo(n[a],n[a+1])}}),cn=Math.PI,Tr=function(e,t){this.opt=t,this.axisModel=e,Z(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new V;var n=new V({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};Tr.prototype={constructor:Tr,hasBuilder:function(e){return!!l0[e]},add:function(e){l0[e].call(this)},getGroup:function(){return this.group}};var l0={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(ne(r,r,i),ne(a,a,i));var o=H({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new on(Wi({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:o,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1})));var s=t.get("axisLine.symbol"),l=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if(typeof h=="number"&&(h=[h,h]),s!=null){typeof s=="string"&&(s=[s,s]),(typeof l=="string"||typeof l=="number")&&(l=[l,l]);var u=l[0],c=l[1];I([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(f,d){if(s[d]!=="none"&&s[d]!=null){var p=Tn(s[d],-u/2,-c/2,u,c,o.stroke,!0),v=f.r+f.offset,g=[r[0]+v*Math.cos(e.rotation),r[1]-v*Math.sin(e.rotation)];p.attr({rotation:f.rotate,position:g,silent:!0}),this.group.add(p)}},this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=Nx(this,e,t),i=Fx(this,e,t);Bx(e,i,n)},axisName:function(){var e=this.opt,t=this.axisModel,n=Gt(e.axisName,t.get("name"));if(n){var i,r=t.get("nameLocation"),a=e.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=this.axisModel.axis.getExtent(),h=l[0]>l[1]?-1:1,u=[r==="start"?l[0]-h*s:r==="end"?l[1]+h*s:(l[0]+l[1])/2,If(r)?e.labelOffset+a*s:0],c=t.get("nameRotate");c!=null&&(c=c*cn/180);var f;If(r)?i=h0(e.rotation,c!=null?c:e.rotation,a):(i=Rx(e,r,c||0,l),f=e.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(i.rotation)),!isFinite(f)&&(f=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},v=p.ellipsis,g=Gt(e.nameTruncateMaxWidth,p.maxWidth,f),m=v!=null&&g!=null?xg(n,g,d,v,{minChar:2,placeholder:p.placeholder}):n,y=t.get("tooltip",!0),x=t.mainType,w={componentType:x,name:n,$vars:["name"]};w[x+"Index"]=t.componentIndex;var S=new pe({anid:"name",__fullText:n,__truncatedText:m,position:u,rotation:i.rotation,silent:Sf(t),z2:1,tooltip:y&&y.show?H({content:n,formatter:function(){return n},formatterParams:w},y):null});We(S.style,o,{text:m,textFont:d,textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),t.get("triggerEvent")&&(S.eventData=bf(t),S.eventData.targetType="axisName",S.eventData.name=n),this._dumbGroup.add(S),S.updateTransform(),this.group.add(S),S.decomposeTransform()}}},h0=Tr.innerTextLayout=function(e,t,n){var i,r,a=Is(t-e);return Hi(a)?(r=n>0?"top":"bottom",i="center"):Hi(a-cn)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&cn>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},Ci=I,Uh=ee,dn=$t({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&Xx(e),dn.superApply(this,"render",arguments),Af(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i){Af(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),dn.superApply(this,"remove",arguments)},dispose:function(e,t){Cf(this,t),dn.superApply(this,"dispose",arguments)}}),u0=[];dn.registerAxisPointerClass=function(e,t){u0[e]=t},dn.getAxisPointerClass=function(e){return e&&u0[e]};var Ub=["axisLine","axisTickLabel","axisName"],jb=["splitArea","splitLine"],jh=dn.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new V,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),o=ll(a,e),s=new Tr(e,o);I(Ub,s.add,s),this._axisGroup.add(s.getGroup()),I(jb,function(l){e.get(l+".show")&&this["_"+l](e,a)},this),qc(r,this._axisGroup,e),jh.superCall(this,"render",e,t,n,i)}},remove:function(){this._splitAreaColors=null},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),r=i.getModel("lineStyle"),a=r.get("color");a=R(a)?a:[a];for(var o=t.coordinateSystem.getRect(),s=n.isHorizontal(),l=0,h=n.getTicksCoords({tickModel:i}),u=[],c=[],f=r.getLineStyle(),d=0;d<h.length;d++){var p=n.toGlobalCoord(h[d].coord);s?(u[0]=p,u[1]=o.y,c[0]=p,c[1]=o.y+o.height):(u[0]=o.x,u[1]=p,c[0]=o.x+o.width,c[1]=p);var v=l++%a.length,g=h[d].tickValue;this._axisGroup.add(new on(Wi({anid:g!=null?"line_"+h[d].tickValue:null,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:Z({stroke:a[v]},f),silent:!0})))}}},_splitArea:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),r=i.getModel("areaStyle"),a=r.get("color"),o=t.coordinateSystem.getRect(),s=n.getTicksCoords({tickModel:i,clamp:!0});if(s.length){var l=a.length,h=this._splitAreaColors,u=q(),c=0;if(h)for(var f=0;f<s.length;f++){var d=h.get(s[f].tickValue);if(d!=null){c=(d+(l-1)*f)%l;break}}var p=n.toGlobalCoord(s[0].coord),v=r.getAreaStyle();a=R(a)?a:[a];for(var f=1;f<s.length;f++){var g,m,y,x,w=n.toGlobalCoord(s[f].coord);n.isHorizontal()?(g=p,m=o.y,y=w-g,x=o.height,p=g+y):(g=o.x,m=p,y=o.width,x=w-m,p=m+x);var S=s[f-1].tickValue;S!=null&&u.set(S,c),this._axisGroup.add(new xe({anid:S!=null?"area_"+S:null,shape:{x:g,y:m,width:y,height:x},style:Z({fill:a[c]},v),silent:!0})),c=(c+1)%l}this._splitAreaColors=u}}}});jh.extend({type:"xAxis"}),jh.extend({type:"yAxis"}),$t({type:"grid",render:function(e){this.group.removeAll(),e.get("show")&&this.group.add(new xe({shape:e.coordinateSystem.getRect(),style:Z({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),Kt(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}),$i(ee(ux,"bar")),$i(bb),Qi({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}}),Fn.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return ca(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});var pt=li.prototype,Yb=li.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};pt._createSymbol=function(e,t,n,i,r){this.removeAll();var a=t.getItemVisual(n,"color"),o=Tn(e,-1,-1,2,2,a,r);o.attr({z2:100,culling:!0,scale:hl(i)}),o.drift=Ux,this._symbolType=e,this.add(o)},pt.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},pt.getSymbolPath=function(){return this.childAt(0)},pt.getScale=function(){return this.childAt(0).scale},pt.highlight=function(){this.childAt(0).trigger("emphasis")},pt.downplay=function(){this.childAt(0).trigger("normal")},pt.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},pt.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":"pointer"},pt.updateData=function(e,t,n){this.silent=!1;var i=e.getItemVisual(t,"symbol")||"circle",r=e.hostModel,a=Yb(e,t),o=i!==this._symbolType;if(o){var s=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(i,e,t,a,s)}else{var l=this.childAt(0);l.silent=!1,ye(l,{scale:hl(a)},r,t)}if(this._updateCommon(e,t,a,n),o){var l=this.childAt(0),h=n&&n.fadeIn,u={scale:l.scale.slice()};h&&(u.style={opacity:l.style.opacity}),l.scale=[0,0],h&&(l.style.opacity=0),Ut(l,u,r,t)}this._seriesModel=r};var Kb=["itemStyle"],$b=["emphasis","itemStyle"],Qb=["label"],Jb=["emphasis","label"];pt._updateCommon=function(e,t,n,i){function r(b){return S?e.getName(b):pa(e,b)}var a=this.childAt(0),o=e.hostModel,s=e.getItemVisual(t,"color");a.type!=="image"&&a.useStyle({strokeNoScale:!0});var l=i&&i.itemStyle,h=i&&i.hoverItemStyle,u=i&&i.symbolRotate,c=i&&i.symbolOffset,f=i&&i.labelModel,d=i&&i.hoverLabelModel,p=i&&i.hoverAnimation,v=i&&i.cursorStyle;if(!i||e.hasItemOption){var g=i&&i.itemModel?i.itemModel:e.getItemModel(t);l=g.getModel(Kb).getItemStyle(["color"]),h=g.getModel($b).getItemStyle(),u=g.getShallow("symbolRotate"),c=g.getShallow("symbolOffset"),f=g.getModel(Qb),d=g.getModel(Jb),p=g.getShallow("hoverAnimation"),v=g.getShallow("cursor")}else h=H({},h);var m=a.style;a.attr("rotation",(u||0)*Math.PI/180||0),c&&a.attr("position",[Q(c[0],n[0]),Q(c[1],n[1])]),v&&a.attr("cursor",v),a.setColor(s,i&&i.symbolInnerColor),a.setStyle(l);var y=e.getItemVisual(t,"opacity");y!=null&&(m.opacity=y);var x=e.getItemVisual(t,"liftZ"),w=a.__z2Origin;x!=null?w==null&&(a.__z2Origin=a.z2,a.z2+=x):w!=null&&(a.z2=w,a.__z2Origin=null);var S=i&&i.useNameLabel;Gi(m,h,f,d,{labelFetcher:o,labelDataIndex:t,defaultText:r,isRectText:!0,autoColor:s}),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),a.hoverStyle=h,yt(a),a.__symbolOriginalScale=hl(n),p&&o.isAnimationEnabled()&&a.on("mouseover",jx).on("mouseout",Yx).on("emphasis",Df).on("normal",Tf)},pt.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,!(t&&t.keepLabel)&&(n.style.text=null),ye(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},be(li,V);var Di=ul.prototype;Di.updateData=function(e,t){t=kf(t);var n=this.group,i=e.hostModel,r=this._data,a=this._symbolCtor,o=Pf(e);r||n.removeAll(),e.diff(r).add(function(s){var l=e.getItemLayout(s);if(cl(e,l,s,t)){var h=new a(e,s,o);h.attr("position",l),e.setItemGraphicEl(s,h),n.add(h)}}).update(function(s,l){var h=r.getItemGraphicEl(l),u=e.getItemLayout(s);return cl(e,u,s,t)?(h?(h.updateData(e,s,o),ye(h,{position:u},i)):(h=new a(e,s),h.attr("position",u)),n.add(h),void e.setItemGraphicEl(s,h)):void n.remove(h)}).remove(function(s){var l=r.getItemGraphicEl(s);l&&l.fadeOut(function(){n.remove(l)})}).execute(),this._data=e},Di.isPersistent=function(){return!0},Di.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl(function(t,n){var i=e.getItemLayout(n);t.attr("position",i)})},Di.incrementalPrepareUpdate=function(e){this._seriesScope=Pf(e),this._data=null,this.group.removeAll()},Di.incrementalUpdate=function(e,t,n){function i(s){s.isGroup||(s.incremental=s.useHoverLayer=!0)}n=kf(n);for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(cl(t,a,r,n)){var o=new this._symbolCtor(t,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),t.setItemGraphicEl(r,o)}}},Di.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)})}):t.removeAll()};var eS=function(e,t,n,i,r,a,o,s){for(var l=$x(e,t),h=[],u=[],c=[],f=[],d=[],p=[],v=[],g=dl(r,t,o),m=dl(a,e,s),y=0;y<l.length;y++){var x=l[y],w=!0;switch(x.cmd){case"=":var S=e.getItemLayout(x.idx),b=t.getItemLayout(x.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=b.slice()),h.push(S),u.push(b),c.push(n[x.idx]),f.push(i[x.idx1]),v.push(t.getRawIndex(x.idx1));break;case"+":var _=x.idx;h.push(r.dataToPoint([t.get(g.dataDimsForPoint[0],_),t.get(g.dataDimsForPoint[1],_)])),u.push(t.getItemLayout(_).slice()),c.push(fl(g,r,t,_)),f.push(i[_]),v.push(t.getRawIndex(_));break;case"-":var _=x.idx,M=e.getRawIndex(_);M!==_?(h.push(e.getItemLayout(_)),u.push(a.dataToPoint([e.get(m.dataDimsForPoint[0],_),e.get(m.dataDimsForPoint[1],_)])),c.push(n[_]),f.push(fl(m,a,e,_)),v.push(M)):w=!1}w&&(d.push(x),p.push(p.length))}p.sort(function(E,z){return v[E]-v[z]});for(var A=[],C=[],D=[],T=[],k=[],y=0;y<p.length;y++){var _=p[y];A[y]=h[_],C[y]=u[_],D[y]=c[_],T[y]=f[_],k[y]=d[_]}return{current:A,next:C,stackedOnCurrent:D,stackedOnNext:T,status:k}},c0=Pt,d0=Lt,f0=Du,Ao=Cu,Yh=[],at=[],ot=[],tS=U.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:mh(U.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,r=n.length,a=gl(n,t.smoothConstraint);if(t.connectNulls){for(;r>0&&Bt(n[r-1]);r--);for(;r>i&&Bt(n[i]);i++);}for(;r>i;)i+=pl(e,n,i,r,r,1,a.min,a.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),nS=U.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:mh(U.prototype.brush),buildPath:function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,a=n.length,o=t.smoothMonotone,s=gl(n,t.smoothConstraint),l=gl(i,t.smoothConstraint);if(t.connectNulls){for(;a>0&&Bt(n[a-1]);a--);for(;a>r&&Bt(n[r]);r++);}for(;a>r;){var h=pl(e,n,r,a,a,1,s.min,s.max,t.smooth,o,t.connectNulls);pl(e,i,r+h-1,h,a,-1,l.min,l.max,t.stackedOnSmooth,o,t.connectNulls),r+=h+1,e.closePath()}}});He.extend({type:"line",init:function(){var e=new V,t=new ul;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,r=this.group,a=e.getData(),o=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=a.mapArray(a.getItemLayout),h=i.type==="polar",u=this._coordSys,c=this._symbolDraw,f=this._polyline,d=this._polygon,p=this._lineGroup,v=e.get("animation"),g=!s.isEmpty(),m=s.get("origin"),y=dl(i,a,m),x=e1(i,a,y),w=e.get("showSymbol"),S=w&&!h&&r1(e,a,i),b=this._data;b&&b.eachItemGraphicEl(function(T,k){T.__temp&&(r.remove(T),b.setItemGraphicEl(k,null))}),w||c.remove(),r.add(p);var _=!h&&e.get("step");f&&u.type===i.type&&_===this._step?(g&&!d?d=this._newPolygon(l,x,i,v):d&&!g&&(p.remove(d),d=this._polygon=null),p.setClipPath(ga(i,!1,!1,e)),w&&c.updateData(a,{isIgnore:S,clipShape:ga(i,!1,!0,e)}),a.eachItemGraphicEl(function(T){T.stopAnimation(!0)}),Lf(this._stackedOnPoints,x)&&Lf(this._points,l)||(v?this._updateAnimation(a,x,i,n,_,m):(_&&(l=Jt(l,i,_),x=Jt(x,i,_)),f.setShape({points:l}),d&&d.setShape({points:l,stackedOnPoints:x})))):(w&&c.updateData(a,{isIgnore:S,clipShape:ga(i,!1,!0,e)}),_&&(l=Jt(l,i,_),x=Jt(x,i,_)),f=this._newPolyline(l,i,v),g&&(d=this._newPolygon(l,x,i,v)),p.setClipPath(ga(i,!0,!1,e)));var M=i1(a,i)||a.getVisual("color");f.useStyle(Z(o.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"}));var A=e.get("smooth");if(A=Of(e.get("smooth")),f.setShape({smooth:A,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),d){var C=a.getCalculationInfo("stackedOnSeries"),D=0;d.useStyle(Z(s.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel"})),C&&(D=Of(C.get("smooth"))),d.setShape({smooth:A,stackedOnSmooth:D,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=_,this._valueOrigin=m},dispose:function(){},highlight:function(e,t,n,i){var r=e.getData(),a=jr(r,i);if(!(a instanceof Array)&&a!=null&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new li(r,a),o.position=s,o.setZ(e.get("zlevel"),e.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else He.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var r=e.getData(),a=jr(r,i);if(a!=null&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else He.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new tS({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new nS({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,i,r,a){var o=this._polyline,s=this._polygon,l=e.hostModel,h=eS(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),u=h.current,c=h.stackedOnCurrent,f=h.next,d=h.stackedOnNext;r&&(u=Jt(h.current,n,r),c=Jt(h.stackedOnCurrent,n,r),f=Jt(h.next,n,r),d=Jt(h.stackedOnNext,n,r)),o.shape.__points=h.current,o.shape.points=u,ye(o,{shape:{points:f}},l),s&&(s.setShape({points:u,stackedOnPoints:c}),ye(s,{shape:{points:f,stackedOnPoints:d}},l));for(var p=[],v=h.status,g=0;g<v.length;g++){var m=v[g].cmd;if(m==="="){var y=e.getItemGraphicEl(v[g].idx1);y&&p.push({el:y,ptIdx:g})}}o.animators&&o.animators.length&&o.animators[0].during(function(){for(var x=0;x<p.length;x++){var w=p[x].el;w.attr("position",o.shape.__points[p[x].ptIdx])}})},remove:function(){var e=this.group,t=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),t&&t.eachItemGraphicEl(function(n,i){n.__temp&&(e.remove(n),t.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var iS=function(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(i,r){function a(c,f){if(typeof l=="function"){var d=i.getRawValue(f),p=i.getDataParams(f);c.setItemVisual(f,"symbolSize",l(d,p))}if(c.hasItemOption){var v=c.getItemModel(f),g=v.getShallow("symbol",!0),m=v.getShallow("symbolSize",!0),y=v.getShallow("symbolKeepAspect",!0);g!=null&&c.setItemVisual(f,"symbol",g),m!=null&&c.setItemVisual(f,"symbolSize",m),y!=null&&c.setItemVisual(f,"symbolKeepAspect",y)}}var o=i.getData(),s=i.get("symbol")||t,l=i.get("symbolSize"),h=i.get("symbolKeepAspect");if(o.setVisual({legendSymbol:n||s,symbol:s,symbolSize:l,symbolKeepAspect:h}),!r.isSeriesFiltered(i)){var u=typeof l=="function";return{dataEach:o.hasItemOption||u?a:null}}}}},rS=function(e){return{seriesType:e,plan:Dh(),reset:function(t){function n(u,c){for(var f=u.end-u.start,d=o&&new Float32Array(f*l),p=u.start,v=0,g=[],m=[];p<u.end;p++){var y;if(l===1){var x=c.get(s[0],p);y=!isNaN(x)&&r.dataToPoint(x,null,m)}else{var x=g[0]=c.get(s[0],p),w=g[1]=c.get(s[1],p);y=!isNaN(x)&&!isNaN(w)&&r.dataToPoint(g,null,m)}o?(d[v++]=y?y[0]:NaN,d[v++]=y?y[1]:NaN):c.setItemLayout(p,y&&y.slice()||[NaN,NaN])}o&&c.setLayout("symbolPoints",d)}var i=t.getData(),r=t.coordinateSystem,a=t.pipelineContext,o=a.large;if(r){var s=O(r.dimensions,function(u){return i.mapDimension(u)}).slice(0,2),l=s.length,h=i.getCalculationInfo("stackResultDimension");return Qt(i,s[0])&&(s[0]=h),Qt(i,s[1])&&(s[1]=h),l&&{progress:n}}}}},aS={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},oS=function(e){return Math.round(e.length/2)},sS=function(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(t){var n=t.getData(),i=t.get("sampling"),r=t.coordinateSystem;if(r.type==="cartesian2d"&&i){var a=r.getBaseAxis(),o=r.getOtherAxis(a),s=a.getExtent(),l=s[1]-s[0],h=Math.round(n.count()/l);if(h>1){var u;typeof i=="string"?u=aS[i]:typeof i=="function"&&(u=i),u&&t.setData(n.downSample(n.mapDimension(o.dim),1/h,u,oS))}}}}};Qi(iS("line","circle","line")),$i(rS("line")),Cn(Lh.PROCESSOR.STATISTIC,sS("line"));var lS=function(e,t,n){t=R(t)&&{coordDimensions:t}||H({},t);var i=e.getSource(),r=Rh(i,t),a=new Ue(r,e);return a.initData(i,n),a},hS={updateSelectedMap:function(e){this._targetList=R(e)?e.slice():[],this._selectTargetMap=Li(e||[],function(t,n){return t.set(n.name,n),t},q())},select:function(e,t){var n=t!=null?this._targetList[t]:this._selectTargetMap.get(e),i=this.get("selectedMode");i==="single"&&this._selectTargetMap.each(function(r){r.selected=!1}),n&&(n.selected=!0)},unSelect:function(e,t){var n=t!=null?this._targetList[t]:this._selectTargetMap.get(e);n&&(n.selected=!1)},toggleSelected:function(e,t){var n=t!=null?this._targetList[t]:this._selectTargetMap.get(e);return n!=null?(this[n.selected?"unSelect":"select"](e,t),n.selected):void 0},isSelected:function(e,t){var n=t!=null?this._targetList[t]:this._selectTargetMap.get(e);return n&&n.selected}},Co=Od({type:"series.pie",init:function(e){Co.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){Co.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return lS(this,["value"])},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],i=0,r=e.count();r>i;i++)n.push({name:e.getName(i),value:e.get(t,i),selected:dy(e,i,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=Co.superCall(this,"getDataParams",e),i=[];return t.each(t.mapDimension("value"),function(r){i.push(r)}),n.percent=Yc(i,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){qr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});ue(Co,hS);var p0=ml.prototype;p0.updateData=function(e,t,n){function i(){a.stopAnimation(!0),a.animateTo({shape:{r:l.r+o.get("hoverOffset")}},300,"elasticOut")}function r(){a.stopAnimation(!0),a.animateTo({shape:{r:l.r}},300,"elasticOut")}var a=this.childAt(0),o=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),h=H({},l);if(h.label=null,n){a.setShape(h);var u=o.getShallow("animationType");u==="scale"?(a.shape.r=l.r0,Ut(a,{shape:{r:l.r}},o,t)):(a.shape.endAngle=l.startAngle,ye(a,{shape:{endAngle:l.endAngle}},o,t))}else ye(a,{shape:h},o,t);var c=e.getItemVisual(t,"color");a.useStyle(Z({lineJoin:"bevel",fill:c},s.getModel("itemStyle").getItemStyle())),a.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle();var f=s.getShallow("cursor");f&&a.attr("cursor",f),Ef(this,e.getItemLayout(t),o.isSelected(null,t),o.get("selectedOffset"),o.get("animation")),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),s.get("hoverAnimation")&&o.isAnimationEnabled()&&a.on("mouseover",i).on("mouseout",r).on("emphasis",i).on("normal",r),this._updateLabel(e,t),yt(this)},p0._updateLabel=function(e,t){var n=this.childAt(1),i=this.childAt(2),r=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=o.label,f=e.getItemVisual(t,"color");ye(n,{shape:{points:s.linePoints||[[s.x,s.y],[s.x,s.y],[s.x,s.y]]}},r,t),ye(i,{style:{x:s.x,y:s.y}},r,t),i.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var l=a.getModel("label"),h=a.getModel("emphasis.label"),u=a.getModel("labelLine"),c=a.getModel("emphasis.labelLine"),f=e.getItemVisual(t,"color");Gi(i.style,i.hoverStyle={},l,h,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:f,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!h.get("show"),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!c.get("show"),n.setStyle({stroke:f,opacity:e.getItemVisual(t,"opacity")}),n.setStyle(u.getModel("lineStyle").getLineStyle()),n.hoverStyle=c.getModel("lineStyle").getLineStyle();var d=u.get("smooth");d&&d===!0&&(d=.4),n.setShape({smooth:d})},be(ml,V);var uS=(He.extend({type:"pie",init:function(){var e=new V;this._sectorGroup=e},render:function(e,t,n,i){if(!i||i.from!==this.uid){var r=e.getData(),a=this._data,o=this.group,s=t.get("animation"),l=!a,h=e.get("animationType"),u=ee(o1,this.uid,e,s,n),c=e.get("selectedMode");if(r.diff(a).add(function(v){var g=new ml(r,v);l&&h!=="scale"&&g.eachChild(function(m){m.stopAnimation(!0)}),c&&g.on("click",u),r.setItemGraphicEl(v,g),o.add(g)}).update(function(v,g){var m=a.getItemGraphicEl(g);m.updateData(r,v),m.off("click"),c&&m.on("click",u),o.add(m),r.setItemGraphicEl(v,m)}).remove(function(v){var g=a.getItemGraphicEl(v);o.remove(g)}).execute(),s&&l&&r.count()>0&&h!=="scale"){var f=r.getItemLayout(0),d=Math.max(n.getWidth(),n.getHeight())/2,p=$(o.removeClipPath,o);o.setClipPath(this._createClipPath(f.cx,f.cy,d,f.startAngle,f.clockwise,p,e))}else o.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(e,t,n,i,r,a,o){var s=new xr({shape:{cx:e,cy:t,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return Ut(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},o,a),s},containPoint:function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,a=e[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),function(e,t){I(t,function(n){n.update="updateView",Te(n,function(i,r){var a={};return r.eachComponent({mainType:"series",subType:e,query:i},function(o){o[n.method]&&o[n.method](i.name,i.dataIndex);var s=o.getData();s.each(function(l){var h=s.getName(l);a[h]=o.isSelected(h)||!1})}),{name:i.name,selected:a}})})}),cS=function(e){return{getTargetSeries:function(t){var n={},i=q();return t.eachSeriesByType(e,function(r){r.__paletteScope=n,i.set(r.uid,r)}),i},reset:function(t){var n=t.getRawData(),i={},r=t.getData();r.each(function(a){var o=r.getRawIndex(a);i[o]=a}),n.each(function(a){var o=i[a],s=o!=null&&r.getItemVisual(o,"color",!0);if(s)n.setItemVisual(a,"color",s);else{var l=n.getItemModel(a),h=l.get("itemStyle.color")||t.getColorFromPalette(n.getName(a)||a+"",t.__paletteScope,n.count());n.setItemVisual(a,"color",h),o!=null&&r.setItemVisual(o,"color",h)}})}}},dS=function(e,t,n,i){var r,a,o=e.getData(),s=[],l=!1;o.each(function(h){var u,c,f,d,p=o.getItemLayout(h),v=o.getItemModel(h),g=v.getModel("label"),m=g.get("position")||v.get("emphasis.label.position"),y=v.getModel("labelLine"),x=y.get("length"),w=y.get("length2"),S=(p.startAngle+p.endAngle)/2,b=Math.cos(S),_=Math.sin(S);r=p.cx,a=p.cy;var M=m==="inside"||m==="inner";if(m==="center")u=p.cx,c=p.cy,d="center";else{var A=(M?(p.r+p.r0)/2*b:p.r*b)+r,C=(M?(p.r+p.r0)/2*_:p.r*_)+a;if(u=A+3*b,c=C+3*_,!M){var D=A+b*(x+t-p.r),T=C+_*(x+t-p.r),k=D+(0>b?-1:1)*w,E=T;u=k+(0>b?-5:5),c=E,f=[[A,C],[D,T],[k,E]]}d=M?"center":b>0?"left":"right"}var z=g.getFont(),B=g.get("rotate")?0>b?-S+Math.PI:-S:0,W=e.getFormattedLabel(h,"normal")||o.getName(h),G=Sn(W,z,d,"top");l=!!B,p.label={x:u,y:c,position:m,height:G.height,len:x,len2:w,linePoints:f,textAlign:d,verticalAlign:"middle",rotation:B,inside:M},M||s.push(p.label)}),!l&&e.get("avoidLabelOverlap")&&s1(s,r,a,t,n,i)},Do=2*Math.PI,g0=Math.PI/180,fS=function(e,t,n){t.eachSeriesByType(e,function(i){var r=i.getData(),a=r.mapDimension("value"),o=i.get("center"),s=i.get("radius");R(s)||(s=[0,s]),R(o)||(o=[o,o]);var l=n.getWidth(),h=n.getHeight(),u=Math.min(l,h),c=Q(o[0],l),f=Q(o[1],h),d=Q(s[0],u/2),p=Q(s[1],u/2),v=-i.get("startAngle")*g0,g=i.get("minAngle")*g0,m=0;r.each(a,function(k){!isNaN(k)&&m++});var y=r.getSum(a),x=Math.PI/(y||m)*2,w=i.get("clockwise"),S=i.get("roseType"),b=i.get("stillShowZeroSum"),_=r.getDataExtent(a);_[0]=0;var M=Do,A=0,C=v,D=w?1:-1;if(r.each(a,function(k,E){var z;if(isNaN(k))return void r.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:c,cy:f,r0:d,r:S?NaN:p});z=S!=="area"?y===0&&b?x:k*x:Do/m,g>z?(z=g,M-=g):A+=k;var B=C+D*z;r.setItemLayout(E,{angle:z,startAngle:C,endAngle:B,clockwise:w,cx:c,cy:f,r0:d,r:S?jt(k,_,[d,p]):p}),C=B}),Do>M&&m)if(.001>=M){var T=Do/m;r.each(a,function(k,E){if(!isNaN(k)){var z=r.getItemLayout(E);z.angle=T,z.startAngle=v+D*E*T,z.endAngle=v+D*(E+1)*T}})}else x=M/A,C=v,r.each(a,function(k,E){if(!isNaN(k)){var z=r.getItemLayout(E),B=z.angle===g?g:k*x;z.startAngle=C,z.endAngle=C+D*B,C+=D*B}});dS(i,p,l,h)})},pS=function(e){return{seriesType:e,reset:function(t,n){var i=n.findComponents({mainType:"legend"});if(i&&i.length){var r=t.getData();r.filterSelf(function(a){for(var o=r.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}};uS("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),Qi(cS("pie")),$i(ee(fS,"pie")),Cn(pS("pie"));var gS=function(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:$(l1,e)}}},mS=function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:$(h1,e)}}},vS=function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:$(u1,e)}}},yS=function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:$(function(r){var a=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s}),size:$(c1,e)}}},xS=function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(i,r){return e.dataToPoint(i,r)}}}},_S=["itemStyle"],wS=["emphasis","itemStyle"],bS=["label"],SS=["emphasis","label"],MS="e\0\0",IS={cartesian2d:gS,geo:mS,singleAxis:vS,polar:yS,calendar:xS};Fn.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(){return ca(this.getSource(),this)},getDataParams:function(e,t,n){var i=Fn.prototype.getDataParams.apply(this,arguments);return n&&(i.info=n.info),i}}),He.extend({type:"custom",_data:null,render:function(e,t,n,i){var r=this._data,a=e.getData(),o=this.group,s=Nf(e,a,t,n);a.diff(r).add(function(l){vl(null,l,s(l,i),e,o,a)}).update(function(l,h){var u=r.getItemGraphicEl(h);vl(u,l,s(l,i),e,o,a)}).remove(function(l){var h=r.getItemGraphicEl(l);h&&o.remove(h)}).execute(),this._data=a},incrementalPrepareRender:function(){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,i,r){function a(u){u.isGroup||(u.incremental=!0,u.useHoverLayer=!0)}for(var o=t.getData(),s=Nf(t,o,n,i),l=e.start;l<e.end;l++){var h=vl(null,l,s(l,r),t,this.group,o);h.traverse(a)}},dispose:kt,filterForExposedEvent:function(e,t,n){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1}}),Dn({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),$t({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),a=e.getModel("subtextStyle"),o=e.get("textAlign"),s=e.get("textBaseline"),l=new pe({style:We({},r,{text:e.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),h=l.getBoundingRect(),u=e.get("subtext"),c=new pe({style:We({},a,{text:u,textFill:a.getTextColor(),y:h.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!f&&!p,c.silent=!d&&!p,f&&l.on("click",function(){window.open(f,"_"+e.get("target"))}),d&&c.on("click",function(){window.open(d,"_"+e.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(c);var v=i.getBoundingRect(),g=e.getBoxLayoutParams();g.width=v.width,g.height=v.height;var m=Yt(g,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));o||(o=e.get("left")||e.get("right"),o==="middle"&&(o="center"),o==="right"?m.x+=m.width:o==="center"&&(m.x+=m.width/2)),s||(s=e.get("top")||e.get("bottom"),s==="center"&&(s="middle"),s==="bottom"?m.y+=m.height:s==="middle"&&(m.y+=m.height/2),s=s||"top"),i.attr("position",[m.x,m.y]);var y={textAlign:o,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),v=i.getBoundingRect();var x=m.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var S=new xe({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v.height+x[0]+x[2],r:e.get("borderRadius")},style:w,silent:!0});ms(S),i.add(S)}}});var m0=Dn({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{}},mergeOption:function(e){m0.superCall(this,"mergeOption",e)},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries(function(a){var o=a.name;n.push(o);var s;if(a.legendDataProvider){var l=a.legendDataProvider(),h=l.mapArray(l.getName);e.isSeriesFiltered(a)||(n=n.concat(h)),h.length?t=t.concat(h):s=!0}else s=!0;s&&fs(a)&&t.push(a.name)}),this._availableNames=n;var i=this.get("data")||t,r=O(i,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new oe(a,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(e){var t=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;I(i,function(r){t[r.get("name")]=!1})}t[e]=!0},unSelect:function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&J(this._availableNames,e)>=0},defaultOption:{zlevel:0,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,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});Te("legendToggleSelect","legendselectchanged",ee(xl,"toggleSelected")),Te("legendSelect","legendselected",ee(xl,"select")),Te("legendUnSelect","legendunselected",ee(xl,"unSelect"));var Ti=ee,AS=I,Kh=V,CS=$t({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new Kh),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(e,t,n){if(this.resetInner(),e.get("show",!0)){var i=e.get("align");i&&i!=="auto"||(i=e.get("left")==="right"&&e.get("orient")==="vertical"?"right":"left"),this.renderInner(i,e,t,n);var r=e.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},o=e.get("padding"),s=Yt(r,a,o),l=this.layoutInner(e,i,s),h=Yt(Z({width:l.width,height:l.height},r),a,o);this.group.attr("position",[h.x-l.x,h.y-l.y]),this.group.add(this._backgroundEl=x1(l,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(e,t,n,i){var r=this.getContentGroup(),a=q(),o=t.get("selectedMode"),s=[];n.eachRawSeries(function(l){!l.get("legendHoverLink")&&s.push(l.id)}),AS(t.getData(),function(l,h){var u=l.get("name");if(!this.newlineDisabled&&(u===""||u===`
`))return void r.add(new Kh({newline:!0}));var c=n.getSeriesByName(u)[0];if(!a.get(u))if(c){var f=c.getData(),d=f.getVisual("color");typeof d=="function"&&(d=d(c.getDataParams(0)));var p=f.getVisual("legendSymbol")||"roundRect",v=f.getVisual("symbol"),g=this._createItem(u,h,l,t,p,v,e,d,o);g.on("click",Ti(Hf,u,i)).on("mouseover",Ti(Zf,c.name,null,i,s)).on("mouseout",Ti(Xf,c.name,null,i,s)),a.set(u,!0)}else n.eachRawSeries(function(m){if(!a.get(u)&&m.legendDataProvider){var y=m.legendDataProvider(),x=y.indexOfName(u);if(0>x)return;var w=y.getItemVisual(x,"color"),S="roundRect",b=this._createItem(u,h,l,t,S,null,e,w,o);b.on("click",Ti(Hf,u,i)).on("mouseover",Ti(Zf,null,u,i,s)).on("mouseout",Ti(Xf,null,u,i,s)),a.set(u,!0)}},this)},this)},_createItem:function(e,t,n,i,r,a,o,s,l){var h=i.get("itemWidth"),u=i.get("itemHeight"),c=i.get("inactiveColor"),f=i.get("symbolKeepAspect"),d=i.isSelected(e),p=new Kh,v=n.getModel("textStyle"),g=n.get("icon"),m=n.getModel("tooltip"),y=m.parentModel;if(r=g||r,p.add(Tn(r,0,0,h,u,d?s:c,f==null?!0:f)),!g&&a&&(a!==r||a==="none")){var x=.8*u;a==="none"&&(a="circle"),p.add(Tn(a,(h-x)/2,(u-x)/2,x,x,d?s:c,f==null?!0:f))}var w=o==="left"?h+5:-5,S=o,b=i.get("formatter"),_=e;typeof b=="string"&&b?_=b.replace("{name}",e!=null?e:""):typeof b=="function"&&(_=b(e)),p.add(new pe({style:We({},v,{text:_,x:w,y:u/2,textFill:d?v.getTextColor():c,textAlign:S,textVerticalAlign:"middle"})}));var M=new xe({shape:p.getBoundingRect(),invisible:!0,tooltip:m.get("show")?H({content:e,formatter:y.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:e,$vars:["name"]}},m.option):null});return p.add(M),p.eachChild(function(A){A.silent=!0}),M.silent=!l,this.getContentGroup().add(p),yt(p),p.__legendDataIndex=t,p},layoutInner:function(e,t,n){var i=this.getContentGroup();yh(e.get("orient"),i,e.get("itemGap"),n.width,n.height);var r=i.getBoundingRect();return i.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()}}),DS=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var i=0;i<t.length;i++)if(!t[i].isSelected(n.name))return!1;return!0})};Cn(DS),te.registerSubTypeDefaulter("legend",function(){return"plain"});var v0=m0.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},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},init:function(e,t,n,i){var r=Xi(e);v0.superCall(this,"init",e,t,n,i),qf(this,e,r)},mergeOption:function(e,t){v0.superCall(this,"mergeOption",e,t),qf(this,this.option,e)},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),y0=V,To=["width","height"],x0=["x","y"],$h=CS.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){$h.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new y0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new y0),this._showController},resetInner:function(){$h.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,i){function r(h,u){var c=h+"DataIndex",f=Jr(t.get("pageIcons",!0)[t.getOrient().name][u],{onclick:$(a._pageGo,a,c,t,i)},{x:-s[0]/2,y:-s[1]/2,width:s[0],height:s[1]});f.name=h,o.add(f)}var a=this;$h.superCall(this,"renderInner",e,t,n,i);var o=this._controllerGroup,s=t.get("pageIconSize",!0);R(s)||(s=[s,s]),r("pagePrev",0);var l=t.getModel("pageTextStyle");o.add(new pe({name:"pageText",style:{textFill:l.getTextColor(),font:l.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),r("pageNext",1)},layoutInner:function(e,t,n){var i=this.getContentGroup(),r=this._containerGroup,a=this._controllerGroup,o=e.getOrient().index,s=To[o],l=To[1-o],h=x0[1-o];yh(e.get("orient"),i,e.get("itemGap"),o?n.width:null,o?null:n.height),yh("horizontal",a,e.get("pageButtonItemGap",!0));var u=i.getBoundingRect(),c=a.getBoundingRect(),f=this._showController=u[s]>n[s],d=[-u.x,-u.y];d[o]=i.position[o];var p=[0,0],v=[-c.x,-c.y],g=Ce(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var m=e.get("pageButtonPosition",!0);m==="end"?v[o]+=n[s]-c[s]:p[o]+=c[s]+g}v[1-o]+=u[l]/2-c[l]/2,i.attr("position",d),r.attr("position",p),a.attr("position",v);var y=this.group.getBoundingRect(),y={x:0,y:0};if(y[s]=f?n[s]:u[s],y[l]=Math.max(u[l],c[l]),y[h]=Math.min(0,c[h]+v[1-o]),r.__rectSize=n[s],f){var x={x:0,y:0};x[s]=Math.max(n[s]-c[s]-g,0),x[l]=y[l],r.setClipPath(new xe({shape:x})),r.__rectSize=x[s]}else a.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ye(i,{position:w.contentPosition},f?e:!1),this._updatePageInfoView(e,w),y},_pageGo:function(e,t,n){var i=this._getPageInfo(t)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;I(["pagePrev","pageNext"],function(l){var h=t[l+"DataIndex"]!=null,u=n.childOfName(l);u&&(u.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),u.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,o=a!=null?a+1:0,s=t.pageCount;i&&r&&i.setStyle("text",ve(r)?r.replace("{current}",o).replace("{total}",s):r({current:o,total:s}))},_getPageInfo:function(e){function t(_){var M=_.getBoundingRect().clone();return M[d]+=_.position[u],M}var n,i,r,a,o=e.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),h=this._containerGroup.__rectSize,u=e.getOrient().index,c=To[u],f=To[1-u],d=x0[u],p=s.position.slice();this._showController?s.eachChild(function(_){_.__legendDataIndex===o&&(a=_)}):a=s.childAt(0);var v=h?Math.ceil(l[c]/h):0;if(a){var g=a.getBoundingRect(),m=a.position[u]+g[d];p[u]=-m-l[d],n=Math.floor(v*(m+g[d]+h/2)/l[c]),n=l[c]&&v?Math.max(0,Math.min(v-1,n)):-1;var y={x:0,y:0};y[c]=h,y[f]=l[f],y[d]=-p[u]-l[d];var x,w=s.children();if(s.eachChild(function(_,M){var A=t(_);A.intersect(y)&&(x==null&&(x=M),r=_.__legendDataIndex),M===w.length-1&&A[d]+A[c]<=y[d]+y[c]&&(r=null)}),x!=null){var S=w[x],b=t(S);if(y[d]=b[d]+b[c]-y[c],0>=x&&b[d]>=y[d])i=null;else{for(;x>0&&t(w[x-1]).intersect(y);)x--;i=w[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:n,pageCount:v,pagePrevDataIndex:i,pageNextDataIndex:r}}});Te("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})});var _0=function(e,t){var n,i=[],r=e.seriesIndex;if(r==null||!(n=t.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=jr(a,e);if(o==null||0>o||R(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)i=l.dataToPoint(a.getValues(O(l.dimensions,function(u){return a.mapDimension(u)}),o,!0))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),i=[h.x+h.width/2,h.y+h.height/2]}return{point:i,el:s}},Ct=I,w0=ee,b0=ht(),TS=function(e,t,n){var i=e.currTrigger,r=[e.x,e.y],a=e,o=e.dispatchAction||$(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ma(r)&&(r=_0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ma(r),h=a.axesInfo,u=s.axesInfo,c=i==="leave"||ma(r),f={},d={},p={list:[],map:{}},v={showPointer:w0(w1,d),showTooltip:w0(b1,p)};Ct(s.coordSysMap,function(m,y){var x=l||m.containPoint(r);Ct(s.coordSysAxesInfo[y],function(w){var S=w.axis,b=A1(h,w);if(!c&&x&&(!h||b)){var _=b&&b.value;_!=null||l||(_=S.pointToData(r)),_!=null&&Uf(w,_,v,!1,f)}})});var g={};return Ct(u,function(m,y){var x=m.linkGroup;x&&!d[y]&&Ct(x.axesInfo,function(w,S){var b=d[S];if(w!==m&&b){var _=b.value;x.mapper&&(_=m.axis.scale.parse(x.mapper(_,jf(w),jf(m)))),g[m.key]=_}})}),Ct(g,function(m,y){Uf(u[y],m,v,!0,f)}),S1(d,u,f),M1(p,r,e,o),I1(u,o,n),f}},Vt=(Dn({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}}),ht()),kS=I,S0=$t({type:"axisPointer",render:function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Yf("axisPointer",n,function(a,o,s){r!=="none"&&(a==="leave"||r.indexOf(a)>=0)&&s({type:"updateAxisPointer",currTrigger:a,x:o&&o.offsetX,y:o&&o.offsetY})})},remove:function(e,t){_l(t.getZr(),"axisPointer"),S0.superApply(this._model,"remove",arguments)},dispose:function(e,t){_l("axisPointer",t),S0.superApply(this._model,"dispose",arguments)}}),Hn=ht(),M0=ae,Qh=$;ar.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a==="hide")return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var c=ee($f,t,u);this.updatePointerEl(o,l,c,t),this.updateLabelEl(o,l,c,t)}else o=this._group=new V,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);ep(o,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),i=e.axis,r=i.type==="category",a=t.get("snap");if(!a&&!r)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=ol(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},makeElOption:function(){},createPointerEl:function(e,t){var n=t.pointer;if(n){var i=Hn(e).pointerEl=new _r[n.type](M0(t.pointer));e.add(i)}},createLabelEl:function(e,t,n,i){if(t.label){var r=Hn(e).labelEl=new xe(M0(t.label));e.add(r),Jf(r,i)}},updatePointerEl:function(e,t,n){var i=Hn(e).pointerEl;i&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,i){var r=Hn(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{shape:t.label.shape,position:t.label.position}),Jf(r,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide")return i&&n.remove(i),void(this._handle=null);var o;this._handle||(o=!0,i=this._handle=Jr(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(h){ui(h.event)},onmousedown:Qh(this._onHandleDragMove,this,0,0),drift:Qh(this._onHandleDragMove,this),ondragend:Qh(this._onHandleDragEnd,this)}),n.add(i)),ep(i,t,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(r.getItemStyle(null,s));var l=r.get("size");R(l)||(l=[l,l]),i.attr("scale",[l[0]/2,l[1]/2]),Vs(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,o)}},_moveHandleToValue:function(e,t){$f(this._axisPointerModel,!t&&this._moveAnimation,this._handle,wl(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(wl(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(wl(i)),Hn(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_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"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},ar.prototype.constructor=ar,Fi(ar);var PS=ar.extend({makeElOption:function(e,t,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=ip(o,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!=="none"){var u=P1(i),c=LS[s](a,h,l,u);c.style=u,e.graphicKey=c.type,e.pointer=c}var f=ll(o.model,n);z1(t,e,f,n,i,r)},getHandleTransform:function(e,t,n){var i=ll(t.axis.grid.model,t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:np(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n){var i=n.axis,r=i.grid,a=i.getGlobalExtent(!0),o=ip(r,i).getOtherAxis(i).getGlobalExtent(),s=i.dim==="x"?0:1,l=e.position;l[s]+=t[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var h=(o[1]+o[0])/2,u=[h,h];u[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:e.rotation,cursorPoint:u,tooltipOption:c[s]}}}),LS={line:function(e,t,n,i){var r=E1([t,n[0]],[t,n[1]],rp(e));return Wi({shape:r,style:i}),{type:"Line",shape:r}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:R1([t-i/2,n[0]],[i,r],rp(e))}}};dn.registerAxisPointerClass("CartesianAxisPointer",PS),Kt(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!R(t)&&(e.axisPointer.link=[t])}}),Cn(Lh.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Vx(e,t)}),Te({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},TS),Dn({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var I0=I,OS=Qc,zS=["","-webkit-","-moz-","-o-"],ES="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";bl.prototype={constructor:bl,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;n.position!=="absolute"&&t.position!=="absolute"&&(n.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el;t.style.cssText=ES+F1(e)+";left:"+this._x+"px;top:"+this._y+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=e==null?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(e+=n.offsetLeft,t+=n.offsetTop);var r=this.el.style;r.left=e+"px",r.top=t+"px",this._x=e,this._y=t},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}},Sl.prototype={constructor:Sl,_enterable:!0,update:function(){},show:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);for(var i={},r=e,a="{marker",o="|}",s=r.indexOf(a);s>=0;){var l=r.indexOf(o),h=r.substr(s+a.length,l-s-a.length);i["marker"+h]=h.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[h],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[h]},r=r.substr(l+1),s=r.indexOf("{marker")}this.el=new pe({style:{rich:i,text:e,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){this.el&&this.el.attr("position",[e,t])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout($(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var A0=$,kr=I,C0=Q,RS=new xe({shape:{x:-1,y:-1,width:2,height:2}});$t({type:"tooltip",init:function(e,t){if(!X.node){var n=e.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=yc(i);var r;this._renderMode==="html"?(r=new bl(t.getDom(),t),this._newLine="<br/>"):(r=new Sl(t),this._newLine=`
`),this._tooltipContent=r}},render:function(e,t,n){if(!X.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");Yf("itemTooltip",this._api,A0(function(n,i,r){t!=="none"&&(t.indexOf(n)>=0?this._tryShow(i,r):n==="leave"&&this._hide(r))},this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(this._lastX!=null&&this._lastY!=null&&e.get("triggerOn")!=="none"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!X.node){var r=ap(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&i.x!=null&&i.y!=null){var o=RS;o.position=[i.x,i.y],o.update(),o.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:o},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,i))return;var s=_0(i,t),l=s.point[0],h=s.point[1];l!=null&&h!=null&&this._tryShow({offsetX:l,offsetY:h,position:i.position,target:s.el,event:{}},r)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(ap(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,a=i.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(r!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),e=Ml([l.getItemModel(a),s,(s.coordinateSystem||{}).model,e]);if(e.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,e):n&&n.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=$(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],a=[],o=[],s=Ml([t.tooltipOption,i]),l=this._renderMode,h=this._newLine,u={};kr(e,function(f){kr(f.dataByAxis,function(d){var p=n.getComponent(d.axisDim+"Axis",d.axisIndex),v=d.value,g=[];if(p&&v!=null){var m=tp(v,p.axis,n,d.seriesDataIndices,d.valueLabelOpt);I(d.seriesDataIndices,function(x){var w=n.getSeriesByIndex(x.seriesIndex),S=x.dataIndexInside,b=w&&w.getDataParams(S);if(b.axisDim=d.axisDim,b.axisIndex=d.axisIndex,b.axisType=d.axisType,b.axisId=d.axisId,b.axisValue=il(p.axis,v),b.axisValueLabel=m,b){o.push(b);var _,M=w.formatTooltip(S,!0,null,l);if(F(M)){_=M.html;var A=M.markers;K(u,A)}else _=M;g.push(_)}});var y=m;a.push(l!=="html"?g.join(h):(y?Ge(y)+h:"")+g.join(h))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var c=t.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(s,c,r[0],r[1],this._tooltipContent,o):this._showTooltipContent(s,a,o,Math.random(),r[0],r[1],c,void 0,u)})},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),o=t.dataModel||a,s=t.dataIndex,l=t.dataType,h=o.getData(),u=Ml([h.getItemModel(s),o,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(c==null||c==="item"){var f,d,p=o.getDataParams(s,l),v=o.formatTooltip(s,!1,l,this._renderMode);F(v)?(f=v.html,d=v.markers):(f=v,d=null);var g="item_"+o.name+"_"+s;this._showOrMove(u,function(){this._showTooltipContent(u,f,p,g,e.offsetX,e.offsetY,e.position,e.target,d)}),n({type:"showTip",dataIndexInside:s,dataIndex:h.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if(typeof i=="string"){var r=i;i={content:r,formatter:r}}var a=new oe(i,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,a,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var h=this._tooltipContent,u=e.get("formatter");o=o||e.get("position");var c=t;if(u&&typeof u=="string")c=Cs(u,n,!0);else if(typeof u=="function"){var f=A0(function(d,p){d===this._ticket&&(h.setContent(p,l,e),this._updatePosition(e,o,r,a,h,n,s))},this);this._ticket=i,c=u(n,i,f)}h.setContent(c,l,e),h.show(e),this._updatePosition(e,o,r,a,h,n,s)}},_updatePosition:function(e,t,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var h=r.getSize(),u=e.get("align"),c=e.get("verticalAlign"),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),typeof t=="function"&&(t=t([n,i],a,r.el,f,{viewSize:[s,l],contentSize:h.slice()})),R(t))n=C0(t[0],s),i=C0(t[1],l);else if(F(t)){t.width=h[0],t.height=h[1];var d=Yt(t,{width:s,height:l});n=d.x,i=d.y,u=null,c=null}else if(typeof t=="string"&&o){var p=G1(t,f,h);n=p[0],i=p[1]}else{var p=V1(n,i,r,s,l,u?null:20,c?null:20);n=p[0],i=p[1]}if(u&&(n-=op(u)?h[0]/2:u==="right"?h[0]:0),c&&(i-=op(c)?h[1]/2:c==="bottom"?h[1]:0),e.get("confine")){var p=W1(n,i,r,s,l);n=p[0],i=p[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&kr(t,function(i,r){var a=i.dataByAxis||{},o=e[r]||{},s=o.dataByAxis||[];n&=a.length===s.length,n&&kr(a,function(l,h){var u=s[h]||{},c=l.seriesDataIndices||[],f=u.seriesDataIndices||[];n&=l.value===u.value&&l.axisType===u.axisType&&l.axisId===u.axisId&&c.length===f.length,n&&kr(c,function(d,p){var v=f[p];n&=d.seriesIndex===v.seriesIndex&&d.dataIndex===v.dataIndex})})}),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){X.node||(this._tooltipContent.hide(),_l("itemTooltip",t))}}),Te({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Te({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var D0=Zi,Jh=Ge,ko=Dn({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n),this.mergeOption(e,n,i.createdBySelf,!0)},isAnimationEnabled:function(){if(X.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t,n,i){var r=this.constructor,a=this.mainType+"Model";n||t.eachSeries(function(o){var s=o.get(this.mainType,!0),l=o[a];return s&&s.data?(l?l.mergeOption(s,t,!0):(i&&va(s),I(s.data,function(h){h instanceof Array?(va(h[0]),va(h[1])):va(h)}),l=new r(s,this,t),H(l,{mainType:this.mainType,seriesIndex:o.seriesIndex,name:o.name,createdBySelf:!0}),l.__hostSeries=o),void(o[a]=l)):void(o[a]=null)},this)},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),i=R(n)?O(n,D0).join(", "):D0(n),r=t.getName(e),a=Jh(this.name);return(n!=null||r)&&(a+="<br />"),r&&(a+=Jh(r),n!=null&&(a+=" : ")),n!=null&&(a+=Jh(i)),a},getData:function(){return this._data},setData:function(e){this._data=e}});ue(ko,Ah),ko.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var T0=J,eu=ee,tu={min:eu(Il,"min"),max:eu(Il,"max"),average:eu(Il,"average")},nu=$t({type:"marker",init:function(){this.markerGroupMap=q()},render:function(e,t,n){var i=this.markerGroupMap;i.each(function(a){a.__keep=!1});var r=this.type+"Model";t.eachSeries(function(a){var o=a[r];o&&this.renderSeries(a,o,t,n)},this),i.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});nu.extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries(function(i){var r=i.markPointModel;r&&(hp(r.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout(r))},this)},renderSeries:function(e,t,n,i){var r=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new ul),h=q1(r,e,t);t.setData(h),hp(t.getData(),e,i),h.each(function(u){var c=h.getItemModel(u),f=c.getShallow("symbolSize");typeof f=="function"&&(f=f(t.getRawValue(u),t.getDataParams(u))),h.setItemVisual(u,{symbolSize:f,color:c.get("itemStyle.color")||o.getVisual("color"),symbol:c.getShallow("symbol")})}),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl(function(u){u.traverse(function(c){c.dataModel=t})}),l.__keep=!0,l.group.silent=t.get("silent")||e.get("silent")}}),Kt(function(e){e.markPoint=e.markPoint||{}}),ko.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var k0=on.prototype,iu=dg.prototype,BS=Mn({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(Cl(t)?k0:iu).buildPath(e,t)},pointAt:function(e){return Cl(this.shape)?k0.pointAt.call(this,e):iu.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,n=Cl(t)?[t.x2-t.x1,t.y2-t.y1]:iu.tangentAt.call(this,e);return Nr(n,n)}}),ru=["fromSymbol","toSymbol"],fn=Tl.prototype;fn.beforeUpdate=j1,fn._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),a=U1(r);a.shape.percent=0,Ut(a,{shape:{percent:1}},i,t),this.add(a);var o=new pe({name:"label"});this.add(o),I(ru,function(s){var l=cp(s,e,t);this.add(l),this[up(s)]=e.getItemVisual(t,s)},this),this._updateCommonStl(e,t,n)},fn.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),a=e.getItemLayout(t),o={shape:{}};Dl(o.shape,a),ye(r,o,i,t),I(ru,function(s){var l=e.getItemVisual(t,s),h=up(s);if(this[h]!==l){this.remove(this.childOfName(s));var u=cp(s,e,t);this.add(u)}this[h]=l},this),this._updateCommonStl(e,t,n)},fn._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),a=n&&n.lineStyle,o=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var h=e.getItemModel(t);a=h.getModel("lineStyle").getLineStyle(),o=h.getModel("emphasis.lineStyle").getLineStyle(),s=h.getModel("label"),l=h.getModel("emphasis.label")}var u=e.getItemVisual(t,"color"),c=vn(e.getItemVisual(t,"opacity"),a.opacity,1);r.useStyle(Z({strokeNoScale:!0,fill:"none",stroke:u,opacity:c},a)),r.hoverStyle=o,I(ru,function(S){var b=this.childOfName(S);b&&(b.setColor(u),b.setStyle({opacity:c}))},this);var f,d,p=s.getShallow("show"),v=l.getShallow("show"),g=this.childOfName("label");if((p||v)&&(f=u||"#000",d=i.getFormattedLabel(t,"normal",e.dataType),d==null)){var m=i.getRawValue(t);d=m==null?e.getName(t):isFinite(m)?Ee(m):m}var y=p?d:null,x=v?Ce(i.getFormattedLabel(t,"emphasis",e.dataType),d):null,w=g.style;(y!=null||x!=null)&&(We(g.style,s,{text:y},{autoColor:f}),g.__textAlign=w.textAlign,g.__verticalAlign=w.textVerticalAlign,g.__position=s.get("position")||"middle"),g.hoverStyle=x!=null?{text:x,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},g.ignore=!p&&!v,yt(this)},fn.highlight=function(){this.trigger("emphasis")},fn.downplay=function(){this.trigger("normal")},fn.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},fn.setLinePoints=function(e){var t=this.childOfName("line");Dl(t.shape,e),t.dirty()},be(Tl,V);var Zn=dp.prototype;Zn.isPersistent=function(){return!0},Zn.updateData=function(e){var t=this,n=t.group,i=t._lineData;t._lineData=e,i||n.removeAll();var r=fp(e);e.diff(i).add(function(a){Y1(t,e,a,r)}).update(function(a,o){K1(t,i,e,o,a,r)}).remove(function(a){n.remove(i.getItemGraphicEl(a))}).execute()},Zn.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},Zn.incrementalPrepareUpdate=function(e){this._seriesScope=fp(e),this._lineData=null,this.group.removeAll()},Zn.incrementalUpdate=function(e,t){function n(o){o.isGroup||(o.incremental=o.useHoverLayer=!0)}for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(kl(r)){var a=new this._ctor(t,i,this._seriesScope);a.traverse(n),this.group.add(a),t.setItemGraphicEl(i,a)}}},Zn.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},Zn._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var NS=function(e,t,n,i){var r=e.getData(),a=i.type;if(!R(i)&&(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null)){var o,s,l;if(i.yAxis!=null||i.xAxis!=null)s=i.yAxis!=null?"y":"x",o=t.getAxis(s),l=Gt(i.yAxis,i.xAxis);else{var h=sp(i,r,t,e);s=h.valueDataDim,o=h.valueAxis,l=Al(r,s,a)}var u=s==="x"?0:1,c=1-u,f=ae(i),d={};f.type=null,f.coord=[],d.coord=[],f.coord[c]=-1/0,d.coord[c]=1/0;var p=n.get("precision");p>=0&&typeof l=="number"&&(l=+l.toFixed(Math.min(p,20))),f.coord[u]=d.coord[u]=l,i=[f,d,{type:a,valueIndex:i.valueIndex,value:l}]}return i=[or(e,i[0]),or(e,i[1]),H({},i[2])],i[2].type=i[2].type||"",K(i[2],i[0]),K(i[2],i[1]),i};nu.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries(function(i){var r=i.markLineModel;if(r){var a=r.getData(),o=r.__from,s=r.__to;o.each(function(l){Pl(o,l,!0,i,n),Pl(s,l,!1,i,n)}),a.each(function(l){a.setItemLayout(l,[o.getItemLayout(l),s.getItemLayout(l)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},renderSeries:function(e,t,n,i){function r(g,m,y){var x=g.getItemModel(m);Pl(g,m,y,e,i),g.setItemVisual(m,{symbolSize:x.get("symbolSize")||v[y?0:1],symbol:x.get("symbol",!0)||p[y?0:1],color:x.get("itemStyle.color")||s.getVisual("color")})}var a=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,h=l.get(o)||l.set(o,new dp);this.group.add(h.group);var u=Q1(a,e,t),c=u.from,f=u.to,d=u.line;t.__from=c,t.__to=f,t.setData(d);var p=t.get("symbol"),v=t.get("symbolSize");R(p)||(p=[p,p]),typeof v=="number"&&(v=[v,v]),u.from.each(function(g){r(c,g,!0),r(f,g,!1)}),d.each(function(g){var m=d.getItemModel(g).get("lineStyle.color");d.setItemVisual(g,{color:m||c.getItemVisual(g,"color")}),d.setItemLayout(g,[c.getItemLayout(g),f.getItemLayout(g)]),d.setItemVisual(g,{fromSymbolSize:c.getItemVisual(g,"symbolSize"),fromSymbol:c.getItemVisual(g,"symbol"),toSymbolSize:f.getItemVisual(g,"symbolSize"),toSymbol:f.getItemVisual(g,"symbol")})}),h.updateData(d),u.line.eachItemGraphicEl(function(g){g.traverse(function(m){m.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||e.get("silent")}}),Kt(function(e){e.markLine=e.markLine||{}}),ko.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var FS=function(e,t,n,i){var r=or(e,i[0]),a=or(e,i[1]),o=Gt,s=r.coord,l=a.coord;s[0]=o(s[0],-1/0),s[1]=o(s[1],-1/0),l[0]=o(l[0],1/0),l[1]=o(l[1],1/0);var h=Eo([{},r,a]);return h.coord=[r.coord,a.coord],h.x0=r.x,h.y0=r.y,h.x1=a.x,h.y1=a.y,h},P0=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];nu.extend({type:"markArea",updateTransform:function(e,t,n){t.eachSeries(function(i){var r=i.markAreaModel;if(r){var a=r.getData();a.each(function(o){var s=O(P0,function(h){return vp(a,o,h,i,n)});a.setItemLayout(o,s);var l=a.getItemGraphicEl(o);l.setShape("points",s)})}},this)},renderSeries:function(e,t,n,i){var r=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new V});this.group.add(l.group),l.__keep=!0;var h=e_(r,e,t);t.setData(h),h.each(function(u){h.setItemLayout(u,O(P0,function(c){return vp(h,u,c,e,i)})),h.setItemVisual(u,{color:o.getVisual("color")})}),h.diff(l.__data).add(function(u){var c=new Ka({shape:{points:h.getItemLayout(u)}});h.setItemGraphicEl(u,c),l.group.add(c)}).update(function(u,c){var f=l.__data.getItemGraphicEl(c);ye(f,{shape:{points:h.getItemLayout(u)}},t,u),l.group.add(f),h.setItemGraphicEl(u,f)}).remove(function(u){var c=l.__data.getItemGraphicEl(u);l.group.remove(c)}).execute(),h.eachItemGraphicEl(function(u,c){var f=h.getItemModel(c),d=f.getModel("label"),p=f.getModel("emphasis.label"),v=h.getItemVisual(c,"color");u.useStyle(Z(f.getModel("itemStyle").getItemStyle(),{fill:Bu(v,.4),stroke:v})),u.hoverStyle=f.getModel("emphasis.itemStyle").getItemStyle(),Gi(u.style,u.hoverStyle,d,p,{labelFetcher:t,labelDataIndex:c,defaultText:h.getName(c)||"",isRectText:!0,autoColor:v}),yt(u,{}),u.dataModel=t}),l.__data=h,l.group.silent=t.get("silent")||e.get("silent")}}),Kt(function(e){e.markArea=e.markArea||{}});var VS=function(e){var t=e&&e.timeline;R(t)||(t=t?[t]:[]),I(t,function(n){n&&t_(n)})};te.registerSubTypeDefaulter("timeline",function(){return"slider"}),Te({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),Z({currentIndex:n.option.currentIndex},e)}),Te({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)});var L0=te.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,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:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(){L0.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){e==null&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),0>e&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,i=this._names=[];if(n==="category"){var r=[];I(t,function(s,l){var h,u=Ni(s);F(s)?(h=ae(s),h.value=l):h=l,r.push(h),ve(u)||u!=null&&!isNaN(u)||(u=""),i.push(u+"")}),t=r}var a={category:"ordinal",time:"time"}[n]||"number",o=this._data=new Ue([{name:"value",type:a}],this);o.initData(t,i)},getData:function(){return this._data},getCategories:function(){return this.get("axisType")==="category"?this._names.slice():void 0}}),WS=L0.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});ue(WS,Ah);var GS=Mt.extend({type:"timeline"}),Po=function(e,t,n,i){Wn.call(this,e,t,n),this.type=i||"value",this.model=null};Po.prototype={constructor:Po,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},be(Po,Wn);var pn=$,au=I,ou=Math.PI;GS.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),o=this._axis=this._createAxis(i,e);e.formatTooltip=function(s){return Ge(o.scale.getLabel(s))},au(["AxisLine","AxisTick","Control","CurrentPointer"],function(s){this["_render"+s](i,r,o,e)},this),this._renderAxisLabel(i,a,o,e),this._position(i,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),i=e.get("orient"),r=n_(e,t);n==null||n==="auto"?n=i==="horizontal"?r.y+r.height/2<t.getHeight()/2?"-":"+":r.x+r.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]);var a={horizontal:"center",vertical:n>=0||n==="+"?"left":"right"},o={horizontal:n>=0||n==="+"?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:ou/2},l=i==="vertical"?r.height:r.width,h=e.getModel("controlStyle"),u=h.get("show",!0),c=u?h.get("itemSize"):0,f=u?h.get("itemGap"):0,d=c+f,p=e.get("label.rotate")||0;p=p*ou/180;var v,g,m,y,x=h.get("position",!0),w=u&&h.get("showPlayBtn",!0),S=u&&h.get("showPrevBtn",!0),b=u&&h.get("showNextBtn",!0),_=0,M=l;return x==="left"||x==="bottom"?(w&&(v=[0,0],_+=d),S&&(g=[_,0],_+=d),b&&(m=[M-c,0],M-=d)):(w&&(v=[M-c,0],M-=d),S&&(g=[0,0],_+=d),b&&(m=[M-c,0],M-=d)),y=[_,M],e.get("inverse")&&y.reverse(),{viewRect:r,mainLength:l,orient:i,rotation:s[i],labelRotation:p,labelPosOpt:n,labelAlign:e.get("label.align")||a[i],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||o[i],playPosition:v,prevBtnPosition:g,nextBtnPosition:m,axisExtent:y,controlSize:c,controlGap:f}},_position:function(e){function t(m){var y=m.position;m.origin=[u[0][0]-y[0],u[1][0]-y[1]]}function n(m){return[[m.x,m.x+m.width],[m.y,m.y+m.height]]}function i(m,y,x,w,S){m[w]+=x[w][S]-y[w][S]}var r=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ot(),l=o.x,h=o.y+o.height;wn(s,s,[-l,-h]),$n(s,s,-ou/2),wn(s,s,[l,h]),o=o.clone(),o.applyTransform(s)}var u=n(o),c=n(r.getBoundingRect()),f=n(a.getBoundingRect()),d=r.position,p=a.position;p[0]=d[0]=u[0][0];var v=e.labelPosOpt;if(isNaN(v)){var g=v==="+"?0:1;i(d,c,u,1,g),i(p,f,u,1,1-g)}else{var g=v>=0?0:1;i(d,c,u,1,g),p[1]=d[1]+v}r.attr("position",d),a.attr("position",p),r.rotation=a.rotation=e.rotation,t(r),t(a)},_createAxis:function(e,t){var n=t.getData(),i=t.get("axisType"),r=nl(t,i);r.getTicks=function(){return n.mapArray(["value"],function(s){return s})};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),r.niceTicks();var o=new Po("value",r,e.axisExtent,i);return o.model=t,o},_createGroup:function(e){var t=this["_"+e]=new V;return this.group.add(t),t},_renderAxisLine:function(e,t,n,i){var r=n.getExtent();i.get("lineStyle.show")&&t.add(new on({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,i){var r=i.getData(),a=n.scale.getTicks();au(a,function(o){var s=n.dataToCoord(o),l=r.getItemModel(o),h=l.getModel("itemStyle"),u=l.getModel("emphasis.itemStyle"),c={position:[s,0],onclick:pn(this._changeTimeline,this,o)},f=xp(l,h,t,c);yt(f,u.getItemStyle()),l.get("tooltip")?(f.dataIndex=o,f.dataModel=i):f.dataIndex=f.dataModel=null},this)},_renderAxisLabel:function(e,t,n,i){var r=n.getLabelModel();if(r.get("show")){var a=i.getData(),o=n.getViewLabels();au(o,function(s){var l=s.tickValue,h=a.getItemModel(l),u=h.getModel("label"),c=h.getModel("emphasis.label"),f=n.dataToCoord(s.tickValue),d=new pe({position:[f,0],rotation:e.labelRotation-e.rotation,onclick:pn(this._changeTimeline,this,l),silent:!1});We(d.style,u,{text:s.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),yt(d,We({},c))},this)}},_renderControl:function(e,t,n,i){function r(f,d,p,v){if(f){var g={position:f,origin:[a/2,0],rotation:v?-o:0,rectHover:!0,style:s,onclick:p},m=i_(i,d,h,g);t.add(m),yt(m,l)}}var a=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-a/2,a,a],u=i.getPlayState(),c=i.get("inverse",!0);r(e.nextBtnPosition,"controlStyle.nextIcon",pn(this._changeTimeline,this,c?"-":"+")),r(e.prevBtnPosition,"controlStyle.prevIcon",pn(this._changeTimeline,this,c?"+":"-")),r(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),pn(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(h){h.draggable=!0,h.drift=pn(s._handlePointerDrag,s),h.ondragend=pn(s._handlePointerDragend,s),_p(h,a,n,i,!0)},onUpdate:function(h){_p(h,a,n,i)}};this._currentPointer=xp(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=ta(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var a=this._findNearestTick(n),o=this.model;(t||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){function e(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(pn(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return ni(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],function(a,o){var s=r.dataToCoord(a),l=Math.abs(s-e);i>l&&(i=l,t=o)}),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();e==="+"?e=t+1:e==="-"&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}}),Kt(VS),te.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var HS=["x","y","z","radius","angle","single"],ZS=["cartesian2d","polar","singleAxis"],O0=a_(HS,["axisIndex","axis","index","id"]),gn=I,z0=ta,su=function(e,t,n,i){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};su.prototype={constructor:su,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries(function(n){if(r_(n.get("coordinateSystem"))){var i=this._dimName,r=t.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&e.push(n)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n=this._dimName,i=this.ecModel,r=this.getAxisModel(),a=n==="x"||n==="y";a?(t="gridIndex",e=n==="x"?"y":"x"):(t="polarIndex",e=n==="angle"?"radius":"angle");var o;return i.eachComponent(e+"Axis",function(s){(s.get(t)||0)===(r.get(t)||0)&&(o=s)}),o},getMinMaxSpan:function(){return ae(this._minMaxSpan)},calculateDataWindow:function(e){var t=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[e.start,e.end],s=[];return gn(["startValue","endValue"],function(l){s.push(e[l]!=null?i.parse(e[l]):null)}),gn([0,1],function(l){var h=s[l],u=o[l];r[l]==="percent"?(u==null&&(u=a[l]),h=i.parse(jt(u,a,t,!0))):u=jt(h,t,a,!0),s[l]=h,o[l]=u}),{valueWindow:z0(s),percentWindow:z0(o)}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=s_(this,this._dimName,t);var n=this.calculateDataWindow(e.option);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,h_(this),wp(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,wp(this,!0))},filterData:function(e){function t(o){return o>=a[0]&&o<=a[1]}if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;r!=="none"&&gn(i,function(o){var s=o.getData(),l=s.mapDimension(n,!0);l.length&&(r==="weakFilter"?s.filterSelf(function(h){for(var u,c,f,d=0;d<l.length;d++){var p=s.get(l[d],h),v=!isNaN(p),g=p<a[0],m=p>a[1];if(v&&!g&&!m)return!0;v&&(f=!0),g&&(u=!0),m&&(c=!0)}return f&&u&&c}):gn(l,function(h){if(r==="empty")o.setData(s.map(h,function(c){return t(c)?c:NaN}));else{var u={};u[h]=a,s.selectRange(u)}}),gn(l,function(h){s.setApproximateExtent(a,h)}))})}}};var ki=I,Xn=O0,E0=Dn({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var i=bp(e);this.mergeDefaultAndTheme(e,n),this.doInit(i)},mergeOption:function(e){var t=bp(e);K(this.option,e,!0),this.doInit(t)},doInit:function(e){var t=this.option;X.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),Sp(this,e),ki([["start","startValue"],["end","endValue"]],function(n,i){this._rangePropMode[i]==="value"&&(t[n[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(t,n,i,r){var a=this.dependentModels[t.axis][n],o=a.__dzAxisProxy||(a.__dzAxisProxy=new su(t.name,n,this,r));e[t.name+"_"+n]=o},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();Xn(function(n){var i=n.axisIndex;e[i]=Ve(e[i])},this),t==="axisIndex"?this._autoSetAxisIndex():t==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;Xn(function(i){e[i.axisIndex]!=null&&(t=!0)},this);var n=e.orient;return n==null&&t?"orient":t?void 0:(n==null&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),n=this.option,i=this.dependentModels;if(e){var r=t==="vertical"?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],e=!1):ki(i.singleAxis,function(a){e&&a.get("orient",!0)===t&&(n.singleAxisIndex=[a.componentIndex],e=!1)})}e&&Xn(function(a){if(e){var o=[],s=this.dependentModels[a.axis];if(s.length&&!o.length)for(var l=0,h=s.length;h>l;l++)s[l].get("type")==="category"&&o.push(l);n[a.axisIndex]=o,o.length&&(e=!1)}},this),e&&this.ecModel.eachSeries(function(a){this._isSeriesHasAllAxesTypeOf(a,"value")&&Xn(function(o){var s=n[o.axisIndex],l=a.get(o.axisIndex),h=a.get(o.axisId),u=a.ecModel.queryComponents({mainType:o.axis,index:l,id:h})[0];l=u.componentIndex,J(s,l)<0&&s.push(l)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){!e&&(e=t.name)},this),this.option.orient=e==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return Xn(function(i){var r=e.get(i.axisIndex),a=this.dependentModels[i.axis][r];a&&a.get("type")===t||(n=!1)},this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return Xn(function(t){if(e==null){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}},this),e},eachTargetAxis:function(e,t){var n=this.ecModel;Xn(function(i){ki(this.get(i.axisIndex),function(r){e.call(t,i,r,this,n)},this)},this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e,t){var n=this.option;ki([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=e[i[0]],n[i[1]]=e[i[1]])},this),!t&&Sp(this,e)},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();return e?e.getDataPercentWindow():void 0},getValueRange:function(e,t){if(e!=null||t!=null)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}}),R0=Mt.extend({type:"dataZoom",render:function(e,t,n){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){function e(r,a,o,s){for(var l,h=0;h<o.length;h++)if(o[h].model===r){l=o[h];break}l||o.push(l={model:r,axisModels:[],coordIndex:s}),l.axisModels.push(a)}var t=this.dataZoomModel,n=this.ecModel,i={};return t.eachTargetAxis(function(r,a){var o=n.getComponent(r.axis,a);if(o){var s=o.getCoordSysModel();s&&e(s,o,i[s.mainType]||(i[s.mainType]=[]),s.componentIndex)}},this),i}}),lu=(E0.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),function(e,t,n,i,r,a){t[0]=_a(t[0],n),t[1]=_a(t[1],n),e=e||0;var o=n[1]-n[0];r!=null&&(r=_a(r,[0,o])),a!=null&&(a=Math.max(a,r!=null?r:0)),i==="all"&&(r=a=Math.abs(t[1]-t[0]),i=0);var s=Ll(t,i);t[i]+=e;var l=r||0,h=n.slice();s.sign<0?h[0]+=l:h[1]-=l,t[i]=_a(t[i],h);var u=Ll(t,i);r!=null&&(u.sign!==s.sign||u.span<r)&&(t[1-i]=t[i]+s.sign*r);var u=Ll(t,i);return a!=null&&u.span>a&&(t[1-i]=t[i]+u.sign*a),t}),Lo=xe,qn=jt,hu=ta,Wt=$,uu=I,B0=7,XS=1,cu=30,Pr="horizontal",N0="vertical",qS=5,US=["line","bar","candlestick","scatter"],du=R0.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){return du.superApply(this,"render",arguments),Vs(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(i&&i.type==="dataZoom"&&i.from===this.uid||this._buildView(),void this._updateView())},remove:function(){du.superApply(this,"remove",arguments),vd(this,"_dispatchZoomAction")},dispose:function(){du.superApply(this,"dispose",arguments),vd(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new V;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},r=this._orient===Pr?{right:i.width-n.x-n.width,top:i.height-cu-B0,width:n.width,height:cu}:{right:B0,top:n.y,width:cu,height:n.height},a=Xi(e.option);I(["right","top","width","height"],function(s){a[s]==="ph"&&(a[s]=r[s])});var o=Yt(a,i,e.padding);this._location={x:o.x,y:o.y},this._size=[o.width,o.height],this._orient===N0&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==Pr||r?n===Pr&&r?{scale:o?[-1,1]:[-1,-1]}:n!==N0||r?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=e.getBoundingRect([a]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new Lo({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new Lo({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:$(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():e.otherDim;if(r!=null){var a=i.getDataExtent(r),o=.3*(a[1]-a[0]);a=[a[0]-o,a[1]+o];var s,l=[0,t[1]],h=[0,t[0]],u=[[t[0],0],[0,0]],c=[],f=h[1]/(i.count()-1),d=0,p=Math.round(i.count()/t[0]);i.each([r],function(g,m){if(p>0&&m%p)return void(d+=f);var y=g==null||isNaN(g)||g==="",x=y?0:qn(g,a,l,!0);y&&!s&&m?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!y&&s&&(u.push([d,0]),c.push([d,0])),u.push([d,x]),c.push([d,x]),d+=f,s=y});var v=this.dataZoomModel;this._displayables.barGroup.add(new Ka({shape:{points:u},style:Z({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new $a({shape:{points:c},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(t!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(r,a){var o=e.getAxisProxy(r.name,a).getTargetSeriesModels();I(o,function(s){if(!(n||t!==!0&&J(US,s.get("type"))<0)){var l,h=i.getComponent(r.axis,a).axis,u=u_(r.name),c=s.coordinateSystem;u!=null&&c.getOtherAxis&&(l=c.getOtherAxis(h).inverse),u=s.getData().mapDimension(u),n={thisAxis:h,series:s,thisDim:r.name,otherDim:u,otherAxisInverse:l}}},this)},this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(e.filler=new Lo({draggable:!0,cursor:Mp(this._orient),drift:Wt(this._onDragMove,this,"all"),onmousemove:function(o){ui(o.event)},ondragstart:Wt(this._showDataInfo,this,!0),ondragend:Wt(this._onDragEnd,this),onmouseover:Wt(this._showDataInfo,this,!0),onmouseout:Wt(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new Lo(ms({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:XS,fill:"rgba(0,0,0,0)"}}))),uu([0,1],function(o){var s=Jr(a.get("handleIcon"),{cursor:Mp(this._orient),draggable:!0,drift:Wt(this._onDragMove,this,o),onmousemove:function(c){ui(c.event)},ondragend:Wt(this._onDragEnd,this),onmouseover:Wt(this._showDataInfo,this,!0),onmouseout:Wt(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),l=s.getBoundingRect();this._handleHeight=Q(a.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle());var h=a.get("handleColor");h!=null&&(s.style.fill=h),i.add(t[o]=s);var u=a.textStyleModel;this.group.add(n[o]=new pe({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[qn(e[0],[0,100],t,!0),qn(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];lu(t,i,r,n.get("zoomLock")?"all":e,a.minSpan!=null?qn(a.minSpan,o,r,!0):null,a.maxSpan!=null?qn(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=hu([qn(i[0],r,o,!0),qn(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,i=hu(n.slice()),r=this._size;uu([0,1],function(a){var o=t.handles[a],s=this._handleHeight;o.attr({scale:[s/2,s/2],position:[n[a],r[1]/2-s/2]})},this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){function t(f){var d=Zc(i.handles[f].parent,this.group),p=Xc(f===0?"right":"left",d),v=this._handleWidth/2+qS,g=ni([c[f]+(f===0?-v:v),this._size[1]/2],d);r[f].setStyle({x:g[0],y:g[1],textVerticalAlign:a===Pr?"middle":p,textAlign:a===Pr?p:"center",text:o[f]})}var n=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,o=["",""];if(n.get("showDetail")){var s=n.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,h=this._range,u=e?s.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var c=hu(this._handleEnds.slice());t.call(this,0),t.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");(r==null||r==="auto")&&(r=t.getPixelPrecision());var a=e==null||isNaN(e)?"":t.type==="category"||t.type==="time"?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(r,20));return $e(i)?i(e,a):ve(i)?i.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n){this._dragging=!0;var i=this._displayables.barGroup.getLocalTransform(),r=ni([t,n],i,!0),a=this._updateInterval(e,r[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(uu(this.getTargetCoordInfo(),function(i){if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}}),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});E0.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var F0="\0_ec_interaction_mutex";Te({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),ue(Ap,Se);var V0="\0_ec_dataZoom_roams",jS=$,W0=R0.extend({type:"dataZoom.inside",init:function(){this._range},render:function(e,t,n){W0.superApply(this,"render",arguments),this._range=e.getPercentRange(),I(this.getTargetCoordInfo(),function(i,r){var a=O(i,function(o){return Dp(o.model)});I(i,function(o){var s=o.model,l={};I(["pan","zoom","scrollMove"],function(h){l[h]=jS(YS[h],this,o,r)},this),v_(n,{coordId:Dp(s),allCoordIds:a,containsPoint:function(h,u,c){return s.coordinateSystem.containPoint([u,c])},dataZoomId:e.id,dataZoomModel:e,getRange:l})},this)},this)},dispose:function(){y_(this.api,this.dataZoomModel.id),W0.superApply(this,"dispose",arguments),this._range=null}}),YS={zoom:function(e,t,n,i){var r=this._range,a=r.slice(),o=e.axisModels[0];if(o){var s=fu[t](null,[i.originX,i.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],h=Math.max(1/i.scale,0);a[0]=(a[0]-l)*h+l,a[1]=(a[1]-l)*h+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return lu(0,a,[0,100],0,u.minSpan,u.maxSpan),this._range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:Pp(function(e,t,n,i,r,a){var o=fu[i]([a.oldX,a.oldY],[a.newX,a.newY],t,r,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:Pp(function(e,t,n,i,r,a){var o=fu[i]([0,0],[a.scrollDelta,a.scrollDelta],t,r,n);return o.signal*(e[1]-e[0])*a.scrollDelta})},fu={grid:function(e,t,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=h[1]-h[0],o.pixelStart=h[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};Cn({getTargetSeries:function(e){var t=q();return e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r,a){var o=a.getAxisProxy(i.name,r);I(o.getTargetSeriesModels(),function(s){t.set(s.uid,s)})})}),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r,a){a.getAxisProxy(i.name,r).reset(a,t)}),n.eachTargetAxis(function(i,r,a){a.getAxisProxy(i.name,r).filterData(a,t)})}),e.eachComponent("dataZoom",function(n){var i=n.findRepresentativeAxisProxy(),r=i.getDataPercentWindow(),a=i.getDataValueWindow();n.setRawRange({start:r[0],end:r[1],startValue:a[0],endValue:a[1]},!0)})}}),Te("dataZoom",function(e,t){var n=o_($(t.eachComponent,t,"dataZoom"),O0,function(r,a){return r.get(a.axisIndex)}),i=[];t.eachComponent({mainType:"dataZoom",query:e},function(r){i.push.apply(i,n(r).nodes)}),I(i,function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})});var pu,G0="urn:schemas-microsoft-com:vml",H0=typeof window=="undefined"?null:window,Z0=!1,je=H0&&H0.document;if(je&&!X.canvasSupported)try{!je.namespaces.zrvml&&je.namespaces.add("zrvml",G0),pu=function(e){return je.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){pu=function(t){return je.createElement("<"+t+' xmlns="'+G0+'" class="zrvml">')}}var Un=qe.CMD,Y=Math.round,Lr=Math.sqrt,KS=Math.abs,X0=Math.cos,q0=Math.sin,gu=Math.max;if(!X.canvasSupported){var ge=",",mu="progid:DXImageTransform.Microsoft",le=21600,Fe=le/2,$S=1e5,QS=1e3,vu=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=le+","+le,e.coordorigin="0,0"},JS=function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},U0=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},Dt=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},Or=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},yu=function(e,t,n){return(parseFloat(e)||0)*$S+(parseFloat(t)||0)*QS+n},j0=function(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e},Y0=function(e,t,n){var i=lt(t);n=+n,isNaN(n)&&(n=1),i&&(e.color=U0(i[0],i[1],i[2]),e.opacity=n*i[3])},eM=function(e){var t=lt(e);return[U0(t[0],t[1],t[2]),t[3]]},tM=function(e,t,n){var i=t.fill;if(i!=null)if(i instanceof St){var r,a=0,o=[0,0],s=0,l=1,h=n.getBoundingRect(),u=h.width,c=h.height;if(i.type==="linear"){r="gradient";var f=n.transform,d=[i.x*u,i.y*c],p=[i.x2*u,i.y2*c];f&&(ne(d,d,f),ne(p,p,f));var v=p[0]-d[0],g=p[1]-d[1];a=180*Math.atan2(v,g)/Math.PI,0>a&&(a+=360),1e-6>a&&(a=0)}else{r="gradientradial";var d=[i.x*u,i.y*c],f=n.transform,m=n.scale,y=u,x=c;o=[(d[0]-h.x)/y,(d[1]-h.y)/x],f&&ne(d,d,f),y/=m[0]*le,x/=m[1]*le;var w=gu(y,x);s=0/w,l=2*i.r/w-s}var S=i.colorStops.slice();S.sort(function(B,W){return B.offset-W.offset});for(var b=S.length,_=[],M=[],A=0;b>A;A++){var C=S[A],D=eM(C.color);M.push(C.offset*l+s+" "+D[0]),(A===0||A===b-1)&&_.push(D)}if(b>=2){var T=_[0][0],k=_[1][0],E=_[0][1]*t.opacity,z=_[1][1]*t.opacity;e.type=r,e.method="none",e.focus="100%",e.angle=a,e.color=T,e.color2=k,e.colors=M.join(","),e.opacity=z,e.opacity2=E}r==="radial"&&(e.focusposition=o.join(","))}else Y0(e,i,t.opacity)},nM=function(e,t){t.lineDash!=null&&(e.dashstyle=t.lineDash.join(" ")),t.stroke==null||t.stroke instanceof St||Y0(e,t.stroke,t.opacity)},Oo=function(e,t,n,i){var r=t=="fill",a=e.getElementsByTagName(t)[0];n[t]!=null&&n[t]!=="none"&&(r||!r&&n.lineWidth)?(e[r?"filled":"stroked"]="true",n[t]instanceof St&&Or(e,a),a||(a=zl(t)),r?tM(a,n,i):nM(a,n),Dt(e,a)):(e[r?"filled":"stroked"]="false",Or(e,a))},Ye=[[],[],[]],iM=function(e,t){var n,i,r,a,o,s,l=Un.M,h=Un.C,u=Un.L,c=Un.A,f=Un.Q,d=[],p=e.data,v=e.len();for(a=0;v>a;){switch(r=p[a++],i="",n=0,r){case l:i=" m ",n=1,o=p[a++],s=p[a++],Ye[0][0]=o,Ye[0][1]=s;break;case u:i=" l ",n=1,o=p[a++],s=p[a++],Ye[0][0]=o,Ye[0][1]=s;break;case f:case h:i=" c ",n=3;var g,m,G=p[a++],re=p[a++],y=p[a++],x=p[a++];r===f?(g=y,m=x,y=(y+2*G)/3,x=(x+2*re)/3,G=(o+2*G)/3,re=(s+2*re)/3):(g=p[a++],m=p[a++]),Ye[0][0]=G,Ye[0][1]=re,Ye[1][0]=y,Ye[1][1]=x,Ye[2][0]=g,Ye[2][1]=m,o=g,s=m;break;case c:var w=0,S=0,b=1,_=1,M=0;t&&(w=t[4],S=t[5],b=Lr(t[0]*t[0]+t[1]*t[1]),_=Lr(t[2]*t[2]+t[3]*t[3]),M=Math.atan2(-t[1]/_,t[0]/b));var A=p[a++],C=p[a++],D=p[a++],T=p[a++],k=p[a++]+M,E=p[a++]+k+M;a++;var z=p[a++],B=A+X0(k)*D,W=C+q0(k)*T,G=A+X0(E)*D,re=C+q0(E)*T,he=z?" wa ":" at ";Math.abs(B-G)<1e-4&&(Math.abs(E-k)>.01?z&&(B+=270/le):Math.abs(W-C)<1e-4?z&&A>B||!z&&B>A?re-=270/le:re+=270/le:z&&C>W||!z&&W>C?G+=270/le:G-=270/le),d.push(he,Y(((A-D)*b+w)*le-Fe),ge,Y(((C-T)*_+S)*le-Fe),ge,Y(((A+D)*b+w)*le-Fe),ge,Y(((C+T)*_+S)*le-Fe),ge,Y((B*b+w)*le-Fe),ge,Y((W*_+S)*le-Fe),ge,Y((G*b+w)*le-Fe),ge,Y((re*_+S)*le-Fe)),o=G,s=re;break;case Un.R:var P=Ye[0],me=Ye[1];P[0]=p[a++],P[1]=p[a++],me[0]=P[0]+p[a++],me[1]=P[1]+p[a++],t&&(ne(P,P,t),ne(me,me,t)),P[0]=Y(P[0]*le-Fe),me[0]=Y(me[0]*le-Fe),P[1]=Y(P[1]*le-Fe),me[1]=Y(me[1]*le-Fe),d.push(" m ",P[0],ge,P[1]," l ",me[0],ge,P[1]," l ",me[0],ge,me[1]," l ",P[0],ge,me[1]);break;case Un.Z:d.push(" x ")}if(n>0){d.push(i);for(var Ke=0;n>Ke;Ke++){var zo=Ye[Ke];t&&ne(zo,zo,t),d.push(Y(zo[0]*le-Fe),ge,Y(zo[1]*le-Fe),n-1>Ke?ge:"")}}}return d.join("")};U.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=zl("shape"),vu(n),this._vmlEl=n),Oo(n,"fill",t,this),Oo(n,"stroke",t,this);var i=this.transform,r=i!=null,a=n.getElementsByTagName("stroke")[0];if(a){var o=t.lineWidth;if(r&&!t.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];o*=Lr(KS(s))}a.weight=o+"px"}var l=this.path||(this.path=new qe);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),n.path=iM(l,this.transform),n.style.zIndex=yu(this.zlevel,this.z,this.z2),Dt(e,n),t.text!=null?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},U.prototype.onRemove=function(e){Or(e,this._vmlEl),this.removeRectText(e)},U.prototype.onAdd=function(e){Dt(e,this._vmlEl),this.appendRectText(e)};var rM=function(e){return typeof e=="object"&&e.tagName&&e.tagName.toUpperCase()==="IMG"};Oe.prototype.brushVML=function(e){var t,n,i=this.style,r=i.image;if(rM(r)){var a=r.src;if(a===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var o=r.runtimeStyle,s=o.width,l=o.height;o.width="auto",o.height="auto",t=r.width,n=r.height,o.width=s,o.height=l,this._imageSrc=a,this._imageWidth=t,this._imageHeight=n}r=a}else r===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(r){var h=i.x||0,u=i.y||0,c=i.width,f=i.height,d=i.sWidth,p=i.sHeight,v=i.sx||0,g=i.sy||0,m=d&&p,y=this._vmlEl;y||(y=je.createElement("div"),vu(y),this._vmlEl=y);var x,w=y.style,S=!1,b=1,_=1;if(this.transform&&(x=this.transform,b=Lr(x[0]*x[0]+x[1]*x[1]),_=Lr(x[2]*x[2]+x[3]*x[3]),S=x[1]||x[2]),S){var M=[h,u],A=[h+c,u],C=[h,u+f],D=[h+c,u+f];ne(M,M,x),ne(A,A,x),ne(C,C,x),ne(D,D,x);var T=gu(M[0],A[0],C[0],D[0]),k=gu(M[1],A[1],C[1],D[1]),E=[];E.push("M11=",x[0]/b,ge,"M12=",x[2]/_,ge,"M21=",x[1]/b,ge,"M22=",x[3]/_,ge,"Dx=",Y(h*b+x[4]),ge,"Dy=",Y(u*_+x[5])),w.padding="0 "+Y(T)+"px "+Y(k)+"px 0",w.filter=mu+".Matrix("+E.join("")+", SizingMethod=clip)"}else x&&(h=h*b+x[4],u=u*_+x[5]),w.filter="",w.left=Y(h)+"px",w.top=Y(u)+"px";var z=this._imageEl,B=this._cropEl;z||(z=je.createElement("div"),this._imageEl=z);var W=z.style;if(m){if(t&&n)W.width=Y(b*t*c/d)+"px",W.height=Y(_*n*f/p)+"px";else{var G=new Image,re=this;G.onload=function(){G.onload=null,t=G.width,n=G.height,W.width=Y(b*t*c/d)+"px",W.height=Y(_*n*f/p)+"px",re._imageWidth=t,re._imageHeight=n,re._imageSrc=r},G.src=r}B||(B=je.createElement("div"),B.style.overflow="hidden",this._cropEl=B);var he=B.style;he.width=Y((c+v*c/d)*b),he.height=Y((f+g*f/p)*_),he.filter=mu+".Matrix(Dx="+-v*c/d*b+",Dy="+-g*f/p*_+")",B.parentNode||y.appendChild(B),z.parentNode!=B&&B.appendChild(z)}else W.width=Y(b*c)+"px",W.height=Y(_*f)+"px",y.appendChild(z),B&&B.parentNode&&(y.removeChild(B),this._cropEl=null);var P="",me=i.opacity;1>me&&(P+=".Alpha(opacity="+Y(100*me)+") "),P+=mu+".AlphaImageLoader(src="+r+", SizingMethod=scale)",W.filter=P,y.style.zIndex=yu(this.zlevel,this.z,this.z2),Dt(e,y),i.text!=null&&this.drawRectText(e,this.getBoundingRect())}},Oe.prototype.onRemove=function(e){Or(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},Oe.prototype.onAdd=function(e){Dt(e,this._vmlEl),this.appendRectText(e)};var mn,xu="normal",_u={},wu=0,aM=100,oM=document.createElement("div"),sM=function(e){var t=_u[e];if(!t){wu>aM&&(wu=0,_u={});var n,i=oM.style;try{i.font=e,n=i.fontFamily.split(",")[0]}catch(r){}t={style:i.fontStyle||xu,variant:i.fontVariant||xu,weight:i.fontWeight||xu,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},_u[e]=t,wu++}return t};Tm("measureText",function(e,t){var n=je;mn||(mn=n.createElement("div"),mn.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",je.body.appendChild(mn));try{mn.style.font=t}catch(i){}return mn.innerHTML="",mn.appendChild(n.createTextNode(e)),{width:mn.offsetWidth}});for(var bu=new ie,lM=function(e,t,n,i){var r=this.style;this.__dirty&&Zr(r,!0);var a=r.text;if(a!=null&&(a+=""),a){if(r.rich){var o=is(a,r);a=[];for(var s=0;s<o.lines.length;s++){for(var l=o.lines[s].tokens,h=[],u=0;u<l.length;u++)h.push(l[u].text);a.push(h.join(""))}a=a.join(`
`)}var c,f,d=r.textAlign,p=r.textVerticalAlign,v=sM(r.font),g=v.style+" "+v.variant+" "+v.weight+" "+v.size+'px "'+v.family+'"';n=n||Sn(a,g,d,p);var m=this.transform;if(m&&!i&&(bu.copy(t),bu.applyTransform(m),t=bu),i)c=t.x,f=t.y;else{var y=r.textPosition,x=r.textDistance;if(y instanceof Array)c=t.x+j0(y[0],t.width),f=t.y+j0(y[1],t.height),d=d||"left";else{var w=$u(y,t,x);c=w.x,f=w.y,d=d||w.textAlign,p=p||w.textVerticalAlign}}c=Ri(c,n.width,d),f=Bi(f,n.height,p),f+=n.height/2;var S,b,_,M=zl,A=this._textVmlEl;A?(_=A.firstChild,S=_.nextSibling,b=S.nextSibling):(A=M("line"),S=M("path"),b=M("textpath"),_=M("skew"),b.style["v-text-align"]="left",vu(A),S.textpathok=!0,b.on=!0,A.from="0 0",A.to="1000 0.05",Dt(A,_),Dt(A,S),Dt(A,b),this._textVmlEl=A);var C=[c,f],D=A.style;m&&i?(ne(C,C,m),_.on=!0,_.matrix=m[0].toFixed(3)+ge+m[2].toFixed(3)+ge+m[1].toFixed(3)+ge+m[3].toFixed(3)+",0,0",_.offset=(Y(C[0])||0)+","+(Y(C[1])||0),_.origin="0 0",D.left="0px",D.top="0px"):(_.on=!1,D.left=Y(c)+"px",D.top=Y(f)+"px"),b.string=JS(a);try{b.style.font=g}catch(T){}Oo(A,"fill",{fill:r.textFill,opacity:r.opacity},this),Oo(A,"stroke",{stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),A.style.zIndex=yu(this.zlevel,this.z,this.z2),Dt(e,A)}},hM=function(e){Or(e,this._textVmlEl),this._textVmlEl=null},uM=function(e){Dt(e,this._textVmlEl)},K0=[Ea,Le,Oe,U,pe],Su=0;Su<K0.length;Su++){var Mu=K0[Su].prototype;Mu.drawRectText=lM,Mu.removeRectText=hM,Mu.appendRectText=uM}pe.prototype.brushVML=function(e){var t=this.style;t.text!=null?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},pe.prototype.onRemove=function(e){this.removeRectText(e)},pe.prototype.onAdd=function(e){this.appendRectText(e)}}ba.prototype={constructor:ba,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();return e?{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}:void 0},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var i=e[n];i.invisible||i.ignore?(i.__alreadyNotVisible||i.onRemove(t),i.__alreadyNotVisible=!0):(i.__alreadyNotVisible&&i.onAdd(t),i.__alreadyNotVisible=!1,i.__dirty&&(i.beforeBrush&&i.beforeBrush(),(i.brushVML||i.brush).call(i,t),i.afterBrush&&i.afterBrush())),i.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(n,i){var n=n==null?this._getWidth():n,i=i==null?this._getHeight():i;if(this._width!=n||this._height!=i){this._width=n,this._height=i;var r=this._vmlViewport.style;r.width=n+"px",r.height=i+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||hi(t.width))-hi(t.paddingLeft)-hi(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||hi(t.height))-hi(t.paddingTop)-hi(t.paddingBottom)|0}},I(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){ba.prototype[e]=S_(e)}),gc("vml",ba),N.version=ab,N.dependencies=ob,N.PRIORITY=Lh,N.init=Wy,N.connect=Gy,N.disConnect=Pd,N.disconnect=fb,N.dispose=Hy,N.getInstanceByDom=qs,N.getInstanceById=Zy,N.registerTheme=Us,N.registerPreprocessor=Kt,N.registerProcessor=Cn,N.registerPostUpdate=Xy,N.registerAction=Te,N.registerCoordinateSystem=qy,N.getCoordinateSystemDimensions=Uy,N.registerLayout=$i,N.registerVisual=Qi,N.registerLoading=Ld,N.extendComponentModel=Dn,N.extendComponentView=$t,N.extendSeriesModel=Od,N.extendChartView=zd,N.setCanvasCreator=jy,N.registerMap=Yy,N.getMap=Ky,N.dataTool=pb,N.zrender=Y_,N.number=Mw,N.format=Dw,N.throttle=Fs,N.helper=Bb,N.matrix=R_,N.vector=L_,N.color=F_,N.parseGeoJSON=Jg,N.parseGeoJson=Fb,N.util=t0,N.graphic=n0,N.List=Ue,N.Model=oe,N.Axis=Wn,N.env=X}),layui.define("echartsTheme",function(N){echarts.registerTheme("walden",layui.echartsTheme),N("echarts",echarts)});