//>>built
/*
 ZRender, a high performance 2d drawing library.

 Copyright (c) 2013, Baidu Inc.
 All rights reserved.

 LICENSE
 https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
(function(G,Wd){"object"===typeof exports&&"undefined"!==typeof module?Wd(exports):"function"===typeof define&&define.amd?define(["exports"],Wd):Wd(G.echarts={})})(this,function(G){function Wd(a){var b={},c=a.match(/Firefox\/([\d.]+)/),d=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),e=a.match(/Edge\/([\d.]+)/);a=/micromessenger/i.test(a);c&&(b.firefox=!0,b.version=c[1]);d&&(b.ie=!0,b.version=d[1]);e&&(b.edge=!0,b.version=e[1]);a&&(b.weChat=!0);return{browser:b,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,
svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!b.ie&&!b.edge,pointerEventsSupported:"onpointerdown"in window&&(b.edge||b.ie&&11<=b.version)}}function wk(a,b){"createCanvas"===a&&(We=null);Wg[a]=b}function U(a){if(null==a||"object"!=typeof a)return a;var b=a,c=Xd.call(a);if("[object Array]"===c){if(!a[Dc]){b=[];c=0;for(var d=a.length;c<d;c++)b[c]=U(a[c])}}else if(xk[c]){if(!a[Dc])if(b=a.constructor,a.constructor.from)b=b.from(a);else for(b=new b(a.length),
c=0,d=a.length;c<d;c++)b[c]=U(a[c])}else if(!yk[c]&&!a[Dc]&&!Xe(a))for(d in b={},a)a.hasOwnProperty(d)&&(b[d]=U(a[d]));return b}function T(a,b,c){if(!O(b)||!O(a))return c?U(b):a;for(var d in b)if(b.hasOwnProperty(d)){var e=a[d],f=b[d];!O(f)||!O(e)||E(f)||E(e)||Xe(f)||Xe(e)||Xg(f)||Xg(e)||f[Dc]||e[Dc]?!c&&d in a||(a[d]=U(b[d],!0)):T(e,f,c)}return a}function Yg(a,b){for(var c=a[0],d=1,e=a.length;d<e;d++)c=T(c,a[d],b);return c}function P(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}
function J(a,b,c){for(var d in b)b.hasOwnProperty(d)&&(c?null!=b[d]:null==a[d])&&(a[d]=b[d]);return a}function zk(){We||(We=Ye().getContext("2d"));return We}function V(a,b){if(a){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c}return-1}function na(a,b){function c(){}var d=a.prototype;c.prototype=b.prototype;a.prototype=new c;for(var e in d)a.prototype[e]=d[e];a.prototype.constructor=a;a.superClass=b}function ba(a,b,c){a="prototype"in a?a.prototype:a;b="prototype"in
b?b.prototype:b;J(a,b,c)}function Db(a){if(a)return"string"==typeof a?!1:"number"==typeof a.length}function w(a,b,c){if(a&&b)if(a.forEach&&a.forEach===gq)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,e=a.length;d<e;d++)b.call(c,a[d],d,a);else for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d,a)}function C(a,b,c){if(a&&b){if(a.map&&a.map===hq)return a.map(b,c);for(var d=[],e=0,f=a.length;e<f;e++)d.push(b.call(c,a[e],e,a));return d}}function Yd(a,b,c,d){if(a&&b){if(a.reduce&&a.reduce===iq)return a.reduce(b,
c,d);for(var e=0,f=a.length;e<f;e++)c=b.call(d,c,a[e],e,a);return c}}function Ea(a,b,c){if(a&&b){if(a.filter&&a.filter===jq)return a.filter(b,c);for(var d=[],e=0,f=a.length;e<f;e++)b.call(c,a[e],e,a)&&d.push(a[e]);return d}}function K(a,b){var c=Zd.call(arguments,2);return function(){return a.apply(b,c.concat(Zd.call(arguments)))}}function M(a){var b=Zd.call(arguments,1);return function(){return a.apply(this,b.concat(Zd.call(arguments)))}}function E(a){return"[object Array]"===Xd.call(a)}function Ya(a){return"function"===
typeof a}function va(a){return"[object String]"===Xd.call(a)}function O(a){var b=typeof a;return"function"===b||!!a&&"object"==b}function Xg(a){return!!yk[Xd.call(a)]}function lb(a){return!!xk[Xd.call(a)]}function Xe(a){return"object"===typeof a&&"number"===typeof a.nodeType&&"object"===typeof a.ownerDocument}function $d(a){return a!==a}function Za(a){for(var b=0,c=arguments.length;b<c;b++)if(null!=arguments[b])return arguments[b]}function Fa(a,b){return null!=a?a:b}function cd(a,b,c){return null!=
a?a:null!=b?b:c}function Zg(){return Function.call.apply(Zd,arguments)}function $g(a){if("number"===typeof a)return[a,a,a,a];var b=a.length;return 2===b?[a[0],a[1],a[0],a[1]]:3===b?[a[0],a[1],a[2],a[1]]:a}function dd(a,b){if(!a)throw Error(b);}function ah(a){return null==a?null:"function"===typeof a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function bh(a){a[Dc]=!0}function Ze(a){function b(e,f){c?d.set(e,f):d.set(f,e)}var c=E(a),d=this;a instanceof Ze?a.each(b):a&&w(a,b)}function Q(a){return new Ze(a)}
function Yb(){}function Ec(a,b){var c=new Ak(2);null==a&&(a=0);null==b&&(b=0);c[0]=a;c[1]=b;return c}function Bk(a,b){a[0]=b[0];a[1]=b[1];return a}function ch(a){var b=new Ak(2);b[0]=a[0];b[1]=a[1];return b}function dh(a,b,c){a[0]=b[0]+c[0];a[1]=b[1]+c[1];return a}function Ck(a,b,c,d){a[0]=b[0]+c[0]*d;a[1]=b[1]+c[1]*d;return a}function $e(a,b,c){a[0]=b[0]-c[0];a[1]=b[1]-c[1];return a}function eh(a){return Math.sqrt(fh(a))}function fh(a){return a[0]*a[0]+a[1]*a[1]}function af(a,b,c){a[0]=b[0]*c;a[1]=
b[1]*c;return a}function bf(a,b){var c=eh(b);0===c?(a[0]=0,a[1]=0):(a[0]=b[0]/c,a[1]=b[1]/c);return a}function ae(a,b){return Math.sqrt((a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1]))}function Dk(a,b){return(a[0]-b[0])*(a[0]-b[0])+(a[1]-b[1])*(a[1]-b[1])}function qa(a,b,c){var d=b[0];b=b[1];a[0]=c[0]*d+c[2]*b+c[4];a[1]=c[1]*d+c[3]*b+c[5];return a}function Eb(a,b,c){a[0]=Math.min(b[0],c[0]);a[1]=Math.min(b[1],c[1]);return a}function Fb(a,b,c){a[0]=Math.max(b[0],c[0]);a[1]=Math.max(b[1],c[1]);return a}
function cf(){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 ed(a,b){return{target:a,topTarget:b&&b.topTarget}}function Ek(){}function fd(){var a=new kq(6);be(a);return a}function be(a){a[0]=1;a[1]=0;a[2]=0;a[3]=1;a[4]=0;a[5]=0;return a}function gh(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];return a}function gd(a,b,c){var d=b[1]*c[0]+b[3]*c[1],e=b[0]*c[2]+b[2]*
c[3],f=b[1]*c[2]+b[3]*c[3],g=b[0]*c[4]+b[2]*c[5]+b[4],h=b[1]*c[4]+b[3]*c[5]+b[5];a[0]=b[0]*c[0]+b[2]*c[1];a[1]=d;a[2]=e;a[3]=f;a[4]=g;a[5]=h;return a}function df(a,b,c){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4]+c[0];a[5]=b[5]+c[1];return a}function ef(a,b,c){var d=b[0],e=b[2],f=b[4],g=b[1],h=b[3];b=b[5];var k=Math.sin(c);c=Math.cos(c);a[0]=d*c+g*k;a[1]=-d*k+g*c;a[2]=e*c+h*k;a[3]=-e*k+c*h;a[4]=c*f+k*b;a[5]=c*b-k*f;return a}function hh(a,b,c){var d=c[0];c=c[1];a[0]=b[0]*d;a[1]=b[1]*c;a[2]=b[2]*
d;a[3]=b[3]*c;a[4]=b[4]*d;a[5]=b[5]*c;return a}function ih(a,b){var c=b[0],d=b[2],e=b[4],f=b[1],g=b[3];b=b[5];var h=c*g-f*d;if(!h)return null;h=1/h;a[0]=g*h;a[1]=-f*h;a[2]=-d*h;a[3]=c*h;a[4]=(d*b-g*e)*h;a[5]=(f*e-c*b)*h;return a}function Fc(a){return 5E-5<a||-5E-5>a}function jh(a){this._target=a.target;this._life=a.life||1E3;this._delay=a.delay||0;this._initialized=!1;this.loop=null==a.loop?!1:a.loop;this.gap=a.gap||0;this.easing=a.easing||"Linear";this.onframe=a.onframe;this.ondestroy=a.ondestroy;
this.onrestart=a.onrestart;this._pausedTime=0;this._paused=!1}function $a(a){a=Math.round(a);return 0>a?0:255<a?255:a}function ce(a){return 0>a?0:1<a?1:a}function kh(a){return a.length&&"%"===a.charAt(a.length-1)?$a(parseFloat(a)/100*255):$a(parseInt(a,10))}function hd(a){return a.length&&"%"===a.charAt(a.length-1)?ce(parseFloat(a)/100):ce(parseFloat(a))}function lh(a,b,c){0>c?c+=1:1<c&&--c;return 1>6*c?a+(b-a)*c*6:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}function Zb(a,b,c){return a+(b-a)*c}function ab(a,
b,c,d,e){a[0]=b;a[1]=c;a[2]=d;a[3]=e;return a}function mh(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];return a}function id(a,b){ff&&mh(ff,b);ff=Fk.put(a,ff||b.slice())}function Gb(a,b){if(a){b=b||[];var c=Fk.get(a);if(c)return mh(b,c);a+="";var d=a.replace(/ /g,"").toLowerCase();if(d in Gk)return mh(b,Gk[d]),id(a,b),b;if("#"===d.charAt(0)){if(4===d.length){c=parseInt(d.substr(1),16);if(!(0<=c&&4095>=c)){ab(b,0,0,0,1);return}ab(b,(c&3840)>>4|(c&3840)>>8,c&240|(c&240)>>4,c&15|(c&15)<<4,1);id(a,b);
return b}if(7===d.length){c=parseInt(d.substr(1),16);if(0<=c&&16777215>=c)return ab(b,(c&16711680)>>16,(c&65280)>>8,c&255,1),id(a,b),b;ab(b,0,0,0,1)}}else{var e=d.indexOf("("),f=d.indexOf(")");if(-1!==e&&f+1===d.length)switch(c=d.substr(0,e),d=d.substr(e+1,f-(e+1)).split(","),e=1,c){case "rgba":if(4!==d.length){ab(b,0,0,0,1);return}e=hd(d.pop());case "rgb":if(3!==d.length){ab(b,0,0,0,1);return}ab(b,kh(d[0]),kh(d[1]),kh(d[2]),e);id(a,b);return b;case "hsla":if(4!==d.length){ab(b,0,0,0,1);return}d[3]=
hd(d[3]);nh(d,b);id(a,b);return b;case "hsl":if(3!==d.length){ab(b,0,0,0,1);return}nh(d,b);id(a,b);return b;default:return}ab(b,0,0,0,1)}}}function nh(a,b){var c=(parseFloat(a[0])%360+360)%360/360,d=hd(a[1]),e=hd(a[2]);d=.5>=e?e*(d+1):e+d-e*d;e=2*e-d;b=b||[];ab(b,$a(255*lh(e,d,c+1/3)),$a(255*lh(e,d,c)),$a(255*lh(e,d,c-1/3)),1);4===a.length&&(b[3]=a[3]);return b}function Hk(a,b){var c=Gb(a);if(c){for(var d=0;3>d;d++)c[d]=0>b?c[d]*(1-b)|0:(255-c[d])*b+c[d]|0,255<c[d]?c[d]=255:0>a[d]&&(c[d]=0);return jd(c,
4===c.length?"rgba":"rgb")}}function Ik(a){if(a=Gb(a))return(16777216+(a[0]<<16)+(a[1]<<8)+ +a[2]).toString(16).slice(1)}function Jk(a,b,c){if(b&&b.length&&0<=a&&1>=a){c=c||[];var d=a*(b.length-1),e=Math.floor(d);a=b[e];b=b[Math.ceil(d)];d-=e;c[0]=$a(Zb(a[0],b[0],d));c[1]=$a(Zb(a[1],b[1],d));c[2]=$a(Zb(a[2],b[2],d));c[3]=ce(Zb(a[3],b[3],d));return c}}function Kk(a,b,c){if(b&&b.length&&0<=a&&1>=a){a*=b.length-1;var d=Math.floor(a),e=Math.ceil(a),f=Gb(b[d]);b=Gb(b[e]);var g=a-d;f=jd([$a(Zb(f[0],b[0],
g)),$a(Zb(f[1],b[1],g)),$a(Zb(f[2],b[2],g)),ce(Zb(f[3],b[3],g))],"rgba");return c?{color:f,leftIndex:d,rightIndex:e,value:a}:f}}function Lk(a,b){if((a=Gb(a))&&null!=b)return a[3]=ce(b),jd(a,"rgba")}function jd(a,b){if(a&&a.length){var c=a[0]+","+a[1]+","+a[2];if("rgba"===b||"hsva"===b||"hsla"===b)c+=","+a[3];return b+"("+c+")"}}function lq(a,b){return a[b]}function mq(a,b,c){a[b]=c}function Mk(a,b,c,d,e){var f=a.length;if(1==e)for(e=0;e<f;e++){var g=a[e];d[e]=(b[e]-g)*c+g}else for(g=f&&a[0].length,
e=0;e<f;e++)for(var h=0;h<g;h++){var k=a[e][h];d[e][h]=(b[e][h]-k)*c+k}}function Nk(a,b,c){var d=a.length,e=b.length;if(d!==e)if(d>e)a.length=e;else for(;d<e;d++)a.push(1===c?b[d]:oh.call(b[d]));e=a[0]&&a[0].length;for(d=0;d<a.length;d++)if(1===c)isNaN(a[d])&&(a[d]=b[d]);else for(var f=0;f<e;f++)isNaN(a[d][f])&&(a[d][f]=b[d][f])}function nq(a,b,c){if(a===b)return!0;var d=a.length;if(d!==b.length)return!1;if(1===c)for(c=0;c<d;c++){if(a[c]!==b[c])return!1}else{var e=a[0].length;for(c=0;c<d;c++)for(var f=
0;f<e;f++)if(a[c][f]!==b[c][f])return!1}return!0}function Ok(a,b,c,d,e,f,g,h,k){var l=a.length;if(1==k)for(k=0;k<l;k++)h[k]=ph(a[k],b[k],c[k],d[k],e,f,g);else{var m=a[0].length;for(k=0;k<l;k++)for(var n=0;n<m;n++)h[k][n]=ph(a[k][n],b[k][n],c[k][n],d[k][n],e,f,g)}}function ph(a,b,c,d,e,f,g){a=.5*(c-a);d=.5*(d-b);return(2*(b-c)+a+d)*g+(-3*(b-c)-2*a-d)*f+a*e+b}function oq(a){if(Db(a)){var b=a.length;if(Db(a[0])){for(var c=[],d=0;d<b;d++)c.push(oh.call(a[d]));return c}return oh.call(a)}return a}function Pk(a){a[0]=
Math.floor(a[0]);a[1]=Math.floor(a[1]);a[2]=Math.floor(a[2]);return"rgba("+a.join(",")+")"}function pq(a){a=a[a.length-1].value;return Db(a&&a[0])?2:1}function qq(a,b,c,d,e,f){var g=a._getter,h=a._setter,k="spline"===b,l=d.length;if(l){var m=Db(d[0].value),n=!1,p=!1,q=m?pq(d):0;d.sort(function(fa,la){return fa.time-la.time});var r=d[l-1].time;for(var t=[],u=[],v=d[0].value,x=!0,y=0;y<l;y++){t.push(d[y].time/r);var z=d[y].value;m&&nq(z,v,q)||!m&&z===v||(x=!1);v=z;if("string"==typeof z){var A=Gb(z);
A?(z=A,n=!0):p=!0}u.push(z)}if(f||!x){d=u[l-1];for(y=0;y<l-1;y++)m?Nk(u[y],d,q):!isNaN(u[y])||isNaN(d)||p||n||(u[y]=d);m&&Nk(g(a._target,e),d,q);var B=0,N=0,ia,I,bb,ra,Aa,Na;if(n)var X=[0,0,0,0];a=new jh({target:a._target,life:r,loop:a._loop,delay:a._delay,onframe:function(fa,la){if(0>la)var H=0;else if(la<N){for(H=ia=Math.min(B+1,l-1);0<=H&&!(t[H]<=la);H--);H=Math.min(H,l-2)}else{for(H=B;H<l&&!(t[H]>la);H++);H=Math.min(H-1,l-2)}B=H;N=la;var gf=t[H+1]-t[H];if(0!==gf)if(I=(la-t[H])/gf,k)if(ra=u[H],
bb=u[0===H?H:H-1],Aa=u[H>l-2?l-1:H+1],Na=u[H>l-3?l-1:H+2],m)Ok(bb,ra,Aa,Na,I,I*I,I*I*I,g(fa,e),q);else{if(n)H=Ok(bb,ra,Aa,Na,I,I*I,I*I*I,X,1),H=Pk(X);else{if(p)return.5<I?Aa:ra;H=ph(bb,ra,Aa,Na,I,I*I,I*I*I)}h(fa,e,H)}else if(m)Mk(u[H],u[H+1],I,g(fa,e),q);else{if(n)Mk(u[H],u[H+1],I,X,1),H=Pk(X);else{if(p)return.5<I?u[H+1]:u[H];la=u[H];H=(u[H+1]-la)*I+la}h(fa,e,H)}},ondestroy:c});b&&"spline"!==b&&(a.easing=b);return a}}}function ca(a,b,c,d){0>c&&(a+=c,c=-c);0>d&&(b+=d,d=-d);this.x=a;this.y=b;this.width=
c;this.height=d}function Qk(a,b,c,d){var e=b+1;if(e===c)return 1;if(0>d(a[e++],a[b])){for(;e<c&&0>d(a[e],a[e-1]);)e++;c=b;d=e;for(d--;c<d;){var f=a[c];a[c++]=a[d];a[d--]=f}}else for(;e<c&&0<=d(a[e],a[e-1]);)e++;return e-b}function Rk(a,b,c,d,e){for(d===b&&d++;d<c;d++){for(var f=a[d],g=b,h=d,k;g<h;)k=g+h>>>1,0>e(f,a[k])?h=k:g=k+1;h=d-g;switch(h){case 3:a[g+3]=a[g+2];case 2:a[g+2]=a[g+1];case 1:a[g+1]=a[g];break;default:for(;0<h;)a[g+h]=a[g+h-1],h--}a[g]=f}}function qh(a,b,c,d,e,f){var g=0,h=0,k=1;
if(0<f(a,b[c+e])){for(h=d-e;k<h&&0<f(a,b[c+e+k]);)g=k,k=(k<<1)+1,0>=k&&(k=h);k>h&&(k=h);g+=e;k+=e}else{for(h=e+1;k<h&&0>=f(a,b[c+e-k]);)g=k,k=(k<<1)+1,0>=k&&(k=h);k>h&&(k=h);d=g;g=e-k;k=e-d}for(g++;g<k;)e=g+(k-g>>>1),0<f(a,b[c+e])?g=e+1:k=e;return k}function rh(a,b,c,d,e,f){var g=0,h=0,k=1;if(0>f(a,b[c+e])){for(h=e+1;k<h&&0>f(a,b[c+e-k]);)g=k,k=(k<<1)+1,0>=k&&(k=h);k>h&&(k=h);d=g;g=e-k;k=e-d}else{for(h=d-e;k<h&&0<=f(a,b[c+e+k]);)g=k,k=(k<<1)+1,0>=k&&(k=h);k>h&&(k=h);g+=e;k+=e}for(g++;g<k;)e=g+(k-
g>>>1),0>f(a,b[c+e])?k=e:g=e+1;return k}function rq(a,b){function c(k){var l=g[k],m=h[k],n=g[k+1],p=h[k+1];h[k]=m+p;k===e-3&&(g[k+1]=g[k+2],h[k+1]=h[k+2]);e--;k=rh(a[n],a,l,m,0,b);l+=k;m-=k;if(0!==m&&(p=qh(a[l+m-1],a,n,p,p-1,b),0!==p))if(m<=p){var q=l;l=m;m=p;for(p=p=0;p<l;p++)f[p]=a[q+p];k=0;a[q++]=a[n++];if(0===--m)for(p=0;p<l;p++)a[q+p]=f[k+p];else if(1===l){for(p=0;p<m;p++)a[q+p]=a[n+p];a[q+m]=f[k]}else{for(var r=d,t,u,v;;){u=t=0;v=!1;do if(0>b(a[n],f[k])){if(a[q++]=a[n++],u++,t=0,0===--m){v=
!0;break}}else if(a[q++]=f[k++],t++,u=0,1===--l){v=!0;break}while((t|u)<r);if(v)break;do{t=rh(a[n],f,k,l,0,b);if(0!==t){for(p=0;p<t;p++)a[q+p]=f[k+p];q+=t;k+=t;l-=t;if(1>=l){v=!0;break}}a[q++]=a[n++];if(0===--m){v=!0;break}u=qh(f[k],a,n,m,0,b);if(0!==u){for(p=0;p<u;p++)a[q+p]=a[n+p];q+=u;n+=u;m-=u;if(0===m){v=!0;break}}a[q++]=f[k++];if(1===--l){v=!0;break}r--}while(7<=t||7<=u);if(v)break;0>r&&(r=0);r+=2}d=r;1>d&&(d=1);if(1===l){for(p=0;p<m;p++)a[q+p]=a[n+p];a[q+m]=f[k]}else{if(0===l)throw Error();
for(p=0;p<l;p++)a[q+p]=f[k+p]}}}else{for(k=k=0;k<p;k++)f[k]=a[n+k];q=l+m-1;r=p-1;n=n+p-1;u=t=0;a[n--]=a[q--];if(0===--m)for(t=n-(p-1),k=0;k<p;k++)a[t+k]=f[k];else if(1===p){n-=m;u=n+1;t=q-m+1;for(k=m-1;0<=k;k--)a[u+k]=a[t+k];a[n]=f[r]}else{for(v=d;;){var x=0,y=0,z=!1;do if(0>b(f[r],a[q])){if(a[n--]=a[q--],x++,y=0,0===--m){z=!0;break}}else if(a[n--]=f[r--],y++,x=0,1===--p){z=!0;break}while((x|y)<v);if(z)break;do{x=m-rh(f[r],a,l,m,m-1,b);if(0!==x){n-=x;q-=x;m-=x;u=n+1;t=q+1;for(k=x-1;0<=k;k--)a[u+k]=
a[t+k];if(0===m){z=!0;break}}a[n--]=f[r--];if(1===--p){z=!0;break}y=p-qh(a[q],f,0,p,p-1,b);if(0!==y){n-=y;r-=y;p-=y;u=n+1;t=r+1;for(k=0;k<y;k++)a[u+k]=f[t+k];if(1>=p){z=!0;break}}a[n--]=a[q--];if(0===--m){z=!0;break}v--}while(7<=x||7<=y);if(z)break;0>v&&(v=0);v+=2}d=v;1>d&&(d=1);if(1===p){n-=m;u=n+1;t=q-m+1;for(k=m-1;0<=k;k--)a[u+k]=a[t+k];a[n]=f[r]}else{if(0===p)throw Error();t=n-(p-1);for(k=0;k<p;k++)a[t+k]=f[k]}}}}var d=7,e=0,f=[];var g=[];var h=[];this.mergeRuns=function(){for(;1<e;){var k=e-
2;if(1<=k&&h[k-1]<=h[k]+h[k+1]||2<=k&&h[k-2]<=h[k]+h[k-1])h[k-1]<h[k+1]&&k--;else if(h[k]>h[k+1])break;c(k)}};this.forceMergeRuns=function(){for(;1<e;){var k=e-2;0<k&&h[k-1]<h[k+1]&&k--;c(k)}};this.pushRun=function(k,l){g[e]=k;h[e]=l;e+=1}}function hf(a,b,c,d){c||(c=0);d||(d=a.length);var e=d-c;if(!(2>e)){var f=0;if(32>e)f=Qk(a,c,d,b),Rk(a,c,d,c+f,b);else{var g=new rq(a,b),h;f=e;for(h=0;32<=f;)h|=f&1,f>>=1;h=f+h;do{f=Qk(a,c,d,b);if(f<h){var k=e;k>h&&(k=h);Rk(a,c,c+k,c+f,b);f=k}g.pushRun(c,f);g.mergeRuns();
e-=f;c+=f}while(0!==e);g.forceMergeRuns()}}}function Sk(a,b){return a.zlevel===b.zlevel?a.z===b.z?a.z2-b.z2:a.z-b.z:a.zlevel-b.zlevel}function sq(a,b,c){var d=null==b.x?0:b.x,e=null==b.x2?1:b.x2,f=null==b.y?0:b.y,g=null==b.y2?0:b.y2;b.global||(d=d*c.width+c.x,e=e*c.width+c.x,f=f*c.height+c.y,g=g*c.height+c.y);d=isNaN(d)?0:d;e=isNaN(e)?1:e;f=isNaN(f)?0:f;g=isNaN(g)?0:g;return a.createLinearGradient(d,f,e,g)}function tq(a,b,c){var d=c.width,e=c.height,f=Math.min(d,e),g=null==b.x?.5:b.x,h=null==b.y?
.5:b.y,k=null==b.r?.5:b.r;b.global||(g=g*d+c.x,h=h*e+c.y,k*=f);return a.createRadialGradient(g,h,0,g,h,k)}function uq(){return!1}function Tk(a,b,c){var d=Ye(),e=b.getWidth();b=b.getHeight();var f=d.style;f&&(f.position="absolute",f.left=0,f.top=0,f.width=e+"px",f.height=b+"px",d.setAttribute("data-zr-dom-id",a));d.width=e*c;d.height=b*c;return d}function Uk(a,b,c,d,e){if(a){if("string"===typeof a){if(b&&b.__zrImageSrc===a||!c)return b;var f=sh.get(a);c={hostEl:c,cb:d,cbPayload:e};f?(b=f.image)&&b.width&&
b.height||f.pending.push(c):(!b&&(b=new Image),b.onload=vq,sh.put(a,b.__cachedImgObj={image:b,pending:[c]}),b.src=b.__zrImageSrc=a);return b}return a}return b}function vq(){var a=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var b=0;b<a.pending.length;b++){var c=a.pending[b],d=c.cb;d&&d(this,c.cbPayload);c.hostEl.dirty()}a.pending.length=0}function cb(a,b){b=b||"12px sans-serif";var c=a+":"+b;if(jf[c])return jf[c];a=(a+"").split("\n");for(var d=0,e=0,f=a.length;e<f;e++)d=Math.max(wq.measureText(a[e],
b).width,d);5E3<th&&(th=0,jf={});th++;return jf[c]=d}function kd(a,b,c,d,e,f,g){f?(e=Vk(a,{rich:f,truncate:g,font:b,textAlign:c,textPadding:e}),f=e.outerWidth,e=e.outerHeight,c=kf(0,f,c),d=lf(0,e,d),d=new ca(c,d,f,e)):(f=Wk(a,b,e,g),a=cb(a,b),e&&(a+=e[1]+e[3]),e=f.outerHeight,c=kf(0,a,c),d=lf(0,e,d),d=new ca(c,d,a,e),d.lineHeight=f.lineHeight);return d}function kf(a,b,c){"right"===c?a-=b:"center"===c&&(a-=b/2);return a}function lf(a,b,c){"middle"===c?a-=b/2:"bottom"===c&&(a-=b);return a}function Xk(a,
b,c,d,e){if(!b)return"";a=(a+"").split("\n");e=Yk(b,c,d,e);b=0;for(c=a.length;b<c;b++)a[b]=Zk(a[b],e);return a.join("\n")}function Yk(a,b,c,d){d=P({},d);d.font=b;c=Fa(c,"...");d.maxIterations=Fa(d.maxIterations,2);var e=d.minChar=Fa(d.minChar,0);d.cnCharWidth=cb("\u56fd",b);var f=d.ascCharWidth=cb("a",b);d.placeholder=Fa(d.placeholder,"");b=a=Math.max(0,a-1);for(var g=0;g<e&&b>=f;g++)b-=f;e=cb(c);e>b&&(c="",e=0);d.ellipsis=c;d.ellipsisWidth=e;d.contentWidth=a-e;d.containerWidth=a;return d}function Zk(a,
b){var c=b.containerWidth,d=b.font,e=b.contentWidth;if(!c)return"";var f=cb(a,d);if(f<=c)return a;for(c=0;;c++){if(f<=e||c>=b.maxIterations){a+=b.ellipsis;break}if(0===c){f=a;for(var g=e,h=b.ascCharWidth,k=b.cnCharWidth,l=0,m=0,n=f.length;m<n&&l<g;m++){var p=f.charCodeAt(m);l+=0<=p&&127>=p?h:k}f=m}else f=0<f?Math.floor(a.length*e/f):0;a=a.substr(0,f);f=cb(a,d)}""===a&&(a=b.placeholder);return a}function Wk(a,b,c,d){null!=a&&(a+="");var e=cb("\u56fd",b),f=a?a.split("\n"):[],g=f.length*e,h=g;c&&(h+=
c[0]+c[2]);if(a&&d){a=d.outerHeight;var k=d.outerWidth;if(null!=a&&h>a)a="",f=[];else if(null!=k)for(b=Yk(k-(c?c[1]+c[3]:0),b,d.ellipsis,{minChar:d.minChar,placeholder:d.placeholder}),c=0,d=f.length;c<d;c++)f[c]=Zk(f[c],b)}return{lines:f,height:g,outerHeight:h,lineHeight:e}}function Vk(a,b){var c={lines:[],width:0,height:0};null!=a&&(a+="");if(!a)return c;for(var d=uh.lastIndex=0,e;null!=(e=uh.exec(a));){var f=e.index;f>d&&vh(c,a.substring(d,f));vh(c,e[2],e[1]);d=uh.lastIndex}d<a.length&&vh(c,a.substring(d,
a.length));a=c.lines;e=d=0;f=[];var g=b.textPadding,h=b.truncate,k=h&&h.outerWidth,l=h&&h.outerHeight;g&&(null!=k&&(k-=g[1]+g[3]),null!=l&&(l-=g[0]+g[2]));for(var m=0;m<a.length;m++){for(var n=a[m],p=0,q=0,r=0;r<n.tokens.length;r++){var t=n.tokens[r],u=t.styleName&&b.rich[t.styleName]||{},v=t.textPadding=u.textPadding,x=t.font=u.font||b.font,y=t.textHeight=Fa(u.textHeight,cb("\u56fd",x));v&&(y+=v[0]+v[2]);t.height=y;t.lineHeight=cd(u.textLineHeight,b.textLineHeight,y);t.textAlign=u&&u.textAlign||
b.textAlign;t.textVerticalAlign=u&&u.textVerticalAlign||"middle";if(null!=l&&d+t.lineHeight>l)return{lines:[],width:0,height:0};t.textWidth=cb(t.text,x);var z=u.textWidth,A=null==z||"auto"===z;if("string"===typeof z&&"%"===z.charAt(z.length-1))t.percentWidth=z,f.push(t),z=0;else{if(A){z=t.textWidth;var B=u.textBackgroundColor;if(B=B&&B.image)"string"===typeof B&&(B=(B=sh.get(B))&&B.image),B&&B.width&&B.height&&(z=Math.max(z,B.width*y/B.height))}v=v?v[1]+v[3]:0;z+=v;y=null!=k?k-q:null;null!=y&&y<z&&
(!A||y<v?(t.text="",t.textWidth=z=0):(t.text=Xk(t.text,y-v,x,h.ellipsis,{minChar:h.minChar}),t.textWidth=cb(t.text,x),z=t.textWidth+v))}q+=t.width=z;u&&(p=Math.max(p,t.lineHeight))}n.width=q;n.lineHeight=p;d+=p;e=Math.max(e,q)}c.outerWidth=c.width=Fa(b.textWidth,e);c.outerHeight=c.height=Fa(b.textHeight,d);g&&(c.outerWidth+=g[1]+g[3],c.outerHeight+=g[0]+g[2]);for(m=0;m<f.length;m++)t=f[m],t.width=parseInt(t.percentWidth,10)/100*e;return c}function vh(a,b,c){var d=""===b;b=b.split("\n");a=a.lines;
for(var e=0;e<b.length;e++){var f=b[e],g={styleName:c,text:f,isLineHolder:!f&&!d};if(e)a.push({tokens:[g]});else{var h=(a[a.length-1]||(a[0]={tokens:[]})).tokens,k=h.length;1===k&&h[0].isLineHolder?h[0]=g:(f||!k||d)&&h.push(g)}}}function $k(a,b){var c=b.x,d=b.y,e=b.width,f=b.height,g=b.r,h,k,l;0>e&&(c+=e,e=-e);0>f&&(d+=f,f=-f);"number"===typeof g?b=h=k=l=g:g instanceof Array?1===g.length?b=h=k=l=g[0]:2===g.length?(b=k=g[0],h=l=g[1]):3===g.length?(b=g[0],h=l=g[1],k=g[2]):(b=g[0],h=g[1],k=g[2],l=g[3]):
b=h=k=l=0;b+h>e&&(g=b+h,b*=e/g,h*=e/g);k+l>e&&(g=k+l,k*=e/g,l*=e/g);h+k>f&&(g=h+k,h*=f/g,k*=f/g);b+l>f&&(g=b+l,b*=f/g,l*=f/g);a.moveTo(c+b,d);a.lineTo(c+e-h,d);0!==h&&a.arc(c+e-h,d+h,h,-Math.PI/2,0);a.lineTo(c+e,d+f-k);0!==k&&a.arc(c+e-k,d+f-k,k,0,Math.PI/2);a.lineTo(c+l,d+f);0!==l&&a.arc(c+l,d+f-l,l,Math.PI/2,Math.PI);a.lineTo(c,d+b);0!==b&&a.arc(c+b,d+b,b,Math.PI,1.5*Math.PI)}function wh(a){al(a);w(a.rich,al);return a}function al(a){if(a){var b=(b=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,
(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" "))&&ah(b)||a.textFont||a.font;a.font=b;b=a.textAlign;"middle"===b&&(b="center");a.textAlign=null==b||xq[b]?b:"left";b=a.textVerticalAlign||a.textBaseline;"center"===b&&(b="middle");a.textVerticalAlign=null==b||yq[b]?b:"top";a.textPadding&&(a.textPadding=$g(a.textPadding))}}function bl(a,b,c,d,e){var f=Y(b,"font",d.font||"12px sans-serif"),g=d.textPadding,h=a.__textCotentBlock;if(!h||a.__dirty)h=a.__textCotentBlock=Wk(c,f,g,d.truncate);var k=
h.outerHeight,l=h.lines;h=h.lineHeight;var m=cl(k,d,e),n=m.baseX,p=m.baseY,q=m.textAlign;m=m.textVerticalAlign;dl(b,d,e,n,p);m=lf(p,k,m);e=n;p=m;var r=d.textBackgroundColor||d.textBorderWidth&&d.textBorderColor;if(r||g)c=cb(c,f),g&&(c+=g[1]+g[3]),f=kf(n,c,q),r&&xh(a,b,d,f,m,c,k),g&&(e=el(n,q,g),p+=g[0]);Y(b,"textAlign",q||"left");Y(b,"textBaseline","middle");Y(b,"shadowBlur",d.textShadowBlur||0);Y(b,"shadowColor",d.textShadowColor||"transparent");Y(b,"shadowOffsetX",d.textShadowOffsetX||0);Y(b,"shadowOffsetY",
d.textShadowOffsetY||0);p+=h/2;g=d.textStrokeWidth;a=yh(d.textStroke,g);d=fl(d.textFill);a&&(Y(b,"lineWidth",g),Y(b,"strokeStyle",a));d&&Y(b,"fillStyle",d);for(g=0;g<l.length;g++)a&&b.strokeText(l[g],e,p),d&&b.fillText(l[g],e,p),p+=h}function gl(a,b,c,d,e){var f=a.__textCotentBlock;if(!f||a.__dirty)f=a.__textCotentBlock=Vk(c,d);c=f;f=c.width;var g=c.outerWidth,h=c.outerHeight,k=d.textPadding,l=cl(h,d,e),m=l.baseX,n=l.baseY,p=l.textAlign;l=l.textVerticalAlign;dl(b,d,e,m,n);m=kf(m,g,p);p=lf(n,h,l);
e=m;n=p;k&&(e+=k[3],n+=k[0]);k=e+f;(d.textBackgroundColor||d.textBorderWidth&&d.textBorderColor)&&xh(a,b,d,m,p,g,h);for(g=0;g<c.lines.length;g++){l=c.lines[g];h=l.tokens;m=h.length;p=l.lineHeight;l=l.width;for(var q=0,r=e,t=k,u=m-1,v;q<m&&(v=h[q],!v.textAlign||"left"===v.textAlign);)zh(a,b,v,d,p,n,r,"left"),l-=v.width,r+=v.width,q++;for(;0<=u&&(v=h[u],"right"===v.textAlign);)zh(a,b,v,d,p,n,t,"right"),l-=v.width,t-=v.width,u--;for(r+=(f-(r-e)-(k-t)-l)/2;q<=u;)v=h[q],zh(a,b,v,d,p,n,r+v.width/2,"center"),
r+=v.width,q++;n+=p}}function dl(a,b,c,d,e){if(c&&b.textRotation){var f=b.textOrigin;"center"===f?(d=c.width/2+c.x,e=c.height/2+c.y):f&&(d=f[0]+c.x,e=f[1]+c.y);a.translate(d,e);a.rotate(-b.textRotation);a.translate(-d,-e)}}function zh(a,b,c,d,e,f,g,h){var k=d.rich[c.styleName]||{},l=c.textVerticalAlign,m=f+e/2;"top"===l?m=f+c.height/2:"bottom"===l&&(m=f+e-c.height/2);!c.isLineHolder&&(k.textBackgroundColor||k.textBorderWidth&&k.textBorderColor)&&xh(a,b,k,"right"===h?g-c.width:"center"===h?g-c.width/
2:g,m-c.height/2,c.width,c.height);if(a=c.textPadding)g=el(g,h,a),m-=c.height/2-a[2]-c.textHeight/2;Y(b,"shadowBlur",cd(k.textShadowBlur,d.textShadowBlur,0));Y(b,"shadowColor",k.textShadowColor||d.textShadowColor||"transparent");Y(b,"shadowOffsetX",cd(k.textShadowOffsetX,d.textShadowOffsetX,0));Y(b,"shadowOffsetY",cd(k.textShadowOffsetY,d.textShadowOffsetY,0));Y(b,"textAlign",h);Y(b,"textBaseline","middle");Y(b,"font",c.font||"12px sans-serif");h=yh(k.textStroke||d.textStroke,n);a=fl(k.textFill||
d.textFill);var n=Fa(k.textStrokeWidth,d.textStrokeWidth);h&&(Y(b,"lineWidth",n),Y(b,"strokeStyle",h),b.strokeText(c.text,g,m));a&&(Y(b,"fillStyle",a),b.fillText(c.text,g,m))}function xh(a,b,c,d,e,f,g){var h=c.textBackgroundColor,k=c.textBorderWidth,l=c.textBorderColor,m=va(h);Y(b,"shadowBlur",c.textBoxShadowBlur||0);Y(b,"shadowColor",c.textBoxShadowColor||"transparent");Y(b,"shadowOffsetX",c.textBoxShadowOffsetX||0);Y(b,"shadowOffsetY",c.textBoxShadowOffsetY||0);if(m||k&&l)b.beginPath(),(c=c.textBorderRadius)?
$k(b,{x:d,y:e,width:f,height:g,r:c}):b.rect(d,e,f,g),b.closePath();m?(Y(b,"fillStyle",h),b.fill()):O(h)&&(m=h.image,(m=Uk(m,null,a,zq,h))&&m&&m.width&&m.height&&b.drawImage(m,d,e,f,g));k&&l&&(Y(b,"lineWidth",k),Y(b,"strokeStyle",l),b.stroke())}function zq(a,b){b.image=a}function cl(a,b,c){var d=b.x||0,e=b.y||0;a=b.textAlign;var f=b.textVerticalAlign;if(c){e=b.textPosition;if(e instanceof Array)d=c.x+hl(e[0],c.width),e=c.y+hl(e[1],c.height);else{d=b.textDistance;var g=c.x,h=c.y,k=c.height,l=c.width,
m=k/2;c="left";var n="top";switch(e){case "left":g-=d;h+=m;c="right";n="middle";break;case "right":g+=d+l;h+=m;n="middle";break;case "top":g+=l/2;h-=d;c="center";n="bottom";break;case "bottom":g+=l/2;h+=k+d;c="center";break;case "inside":g+=l/2;h+=m;c="center";n="middle";break;case "insideLeft":g+=d;h+=m;n="middle";break;case "insideRight":g+=l-d;h+=m;c="right";n="middle";break;case "insideTop":g+=l/2;h+=d;c="center";break;case "insideBottom":g+=l/2;h+=k-d;c="center";n="bottom";break;case "insideTopLeft":g+=
d;h+=d;break;case "insideTopRight":g+=l-d;h+=d;c="right";break;case "insideBottomLeft":g+=d;h+=k-d;n="bottom";break;case "insideBottomRight":g+=l-d,h+=k-d,c="right",n="bottom"}d=g;e=h;a=a||c;f=f||n}if(b=b.textOffset)d+=b[0],e+=b[1]}return{baseX:d,baseY:e,textAlign:a,textVerticalAlign:f}}function Y(a,b,c){a[b]=il(a,b,c);return a[b]}function yh(a,b){return null==a||0>=b||"transparent"===a||"none"===a?null:a.image||a.colorStops?"#000":a}function fl(a){return null==a||"none"===a?null:a.image||a.colorStops?
"#000":a}function hl(a,b){return"string"===typeof a?0<=a.lastIndexOf("%")?parseFloat(a)/100*b:parseFloat(a):a}function el(a,b,c){return"right"===b?a-c[1]:"center"===b?a+c[3]/2-c[1]/2:a+c[3]}function Ia(a){a=a||{};Hb.call(this,a);for(var b in a)a.hasOwnProperty(b)&&"style"!==b&&(this[b]=a[b]);this.style=new Gc(a.style,this);this._rect=null;this.__clipPaths=[]}function $b(a){Ia.call(this,a)}function Ah(a,b,c,d){c=c||{};d||!R.canvasSupported?jl(a,b,c):R.browser.firefox&&null!=b.layerX&&b.layerX!==b.offsetX?
(c.zrX=b.layerX,c.zrY=b.layerY):null!=b.offsetX?(c.zrX=b.offsetX,c.zrY=b.offsetY):jl(a,b,c);return c}function jl(a,b,c){a=a.getBoundingClientRect?a.getBoundingClientRect():{left:0,top:0};c.zrX=b.clientX-a.left;c.zrY=b.clientY-a.top}function Hc(a,b,c){b=b||window.event;if(null!=b.zrX)return b;var d=b.type;d&&0<=d.indexOf("touch")?(d="touchend"!=d?b.targetTouches[0]:b.changedTouches[0])&&Ah(a,d,b,c):(Ah(a,b,b,c),b.zrDelta=b.wheelDelta?b.wheelDelta/120:-(b.detail||0)/3);a=b.button;null==b.which&&void 0!==
a&&Aq.test(b.type)&&(b.which=a&1?1:a&2?3:a&4?2:0);return b}function kl(a){var b=a[1][0]-a[0][0];a=a[1][1]-a[0][1];return Math.sqrt(b*b+a*a)}function ll(a){return"mousewheel"===a&&R.browser.firefox?"DOMMouseScroll":a}function Bh(a,b,c){var d=a._gestureMgr;"start"===c&&d.clear();var e=d.recognize(b,a.handler.findHover(b.zrX,b.zrY,null).target,a.dom);"end"===c&&d.clear();e&&(c=e.type,b.gestureEvent=c,a.handler.dispatchToElement({target:e.target},c,e.event))}function Ch(a){a._touching=!0;clearTimeout(a._touchTimer);
a._touchTimer=setTimeout(function(){a._touching=!1},700)}function ml(a){a=a.pointerType;return"pen"===a||"touch"===a}function Bq(a){function b(c,d){return function(){if(!d._touching)return c.apply(d,arguments)}}w(Dh,function(c){a._handlers[c]=K(Ja[c],a)});w(nl,function(c){a._handlers[c]=K(Ja[c],a)});w(mf,function(c){a._handlers[c]=b(Ja[c],a)})}function Eh(a){function b(c,d){w(c,function(e){var f=ll(e);e=d._handlers[e];Fh?a.addEventListener(f,e):a.attachEvent("on"+f,e)},d)}this._$handlers={};this.dom=
a;this._touching=!1;this._gestureMgr=new Gh;this._handlers={};Bq(this);R.pointerEventsSupported?b(nl,this):(R.touchEventsSupported&&b(Dh,this),b(mf,this))}function Hh(a,b){a=new Ih(ol++,a,b);return Ic[a.id]=a}function Ka(a){return a instanceof Array?a:null==a?[]:[a]}function de(a,b,c){if(a){a[b]=a[b]||{};a.emphasis=a.emphasis||{};a.emphasis[b]=a.emphasis[b]||{};for(var d=0,e=c.length;d<e;d++){var f=c[d];!a.emphasis[b].hasOwnProperty(f)&&a[b].hasOwnProperty(f)&&(a.emphasis[b][f]=a[b][f])}}}function nf(a){return!ld(a)||
Cq(a)||a instanceof Date?a:a.value}function Jh(a,b){b=(b||[]).slice();var c=C(a||[],function(d,e){return{exist:d}});md(b,function(d,e){if(ld(d)){for(var f=0;f<c.length;f++)if(!c[f].option&&null!=d.id&&c[f].exist.id===d.id+""){c[f].option=d;b[e]=null;return}for(f=0;f<c.length;f++){var g=c[f].exist;if(!(c[f].option||null!=g.id&&null!=d.id||null==d.name||of(d)||of(g))&&g.name===d.name+""){c[f].option=d;b[e]=null;break}}}});md(b,function(d,e){if(ld(d)){for(e=0;e<c.length;e++){var f=c[e].exist;if(!c[e].option&&
!of(f)&&null==d.id){c[e].option=d;break}}e>=c.length&&c.push({option:d})}});return c}function pl(a){var b=Q();md(a,function(c,d){(d=c.exist)&&b.set(d.id,c)});md(a,function(c,d){d=c.option;dd(!d||null==d.id||!b.get(d.id)||b.get(d.id)===c,"id duplicates: "+(d&&d.id));d&&null!=d.id&&b.set(d.id,c);!c.keyInfo&&(c.keyInfo={})});md(a,function(c,d){var e=c.exist,f=c.option,g=c.keyInfo;if(ld(f)){g.name=null!=f.name?f.name+"":e?e.name:"series\x00"+d;if(e)g.id=e.id;else if(null!=f.id)g.id=f.id+"";else{d=0;do g.id=
"\x00"+g.name+"\x00"+d++;while(b.get(g.id))}b.set(g.id,c)}})}function Kh(a){a=a.name;return!(!a||!a.indexOf("series\x00"))}function of(a){return ld(a)&&a.id&&0===(a.id+"").indexOf("\x00_ec_\x00")}function pf(a,b){if(null!=b.dataIndexInside)return b.dataIndexInside;if(null!=b.dataIndex)return E(b.dataIndex)?C(b.dataIndex,function(c){return a.indexOfRawIndex(c)}):a.indexOfRawIndex(b.dataIndex);if(null!=b.name)return E(b.name)?C(b.name,function(c){return a.indexOfName(c)}):a.indexOfName(b.name)}function db(){var a=
"__\x00ec_inner_"+Dq++ +"_"+Math.random().toFixed(5);return function(b){return b[a]||(b[a]={})}}function Lh(a,b,c){if(va(b)){var d={};d[b+"Index"]=0;b=d}d=c&&c.defaultMainType;!d||b&&b.hasOwnProperty(d+"Index")||b&&b.hasOwnProperty(d+"Id")||b&&b.hasOwnProperty(d+"Name")||(b[d+"Index"]=0);var e={};md(b,function(f,g){f=b[g];if("dataIndex"===g||"dataIndexInside"===g)e[g]=f;else{var h=g.match(/^(\w+)(Index|Id|Name)$/)||[];g=h[1];h=(h[2]||"").toLowerCase();if(!(!g||!h||null==f||"index"===h&&"none"===f||
c&&c.includeMainTypes&&0>V(c.includeMainTypes,g))){var k={mainType:g};if("index"!==h||"all"!==f)k[h]=f;f=a.queryComponents(k);e[g+"Models"]=f;e[g+"Model"]=f[0]}}});return e}function ql(a,b,c){a.setAttribute?a.setAttribute(b,c):a[b]=c}function ac(a){var b={main:"",sub:""};a&&(a=a.split("."),b.main=a[0]||"",b.sub=a[1]||"");return b}function ee(a,b){a.$constructor=a;a.extend=function(c){var d=this,e=function(){c.$constructor?c.$constructor.apply(this,arguments):d.apply(this,arguments)};P(e.prototype,
c);e.extend=this.extend;e.superCall=Eq;e.superApply=Fq;na(e,this);e.superClass=d;return e}}function rl(a){var b=["__\x00is_clz",Gq++,Math.random().toFixed(3)].join("_");a.prototype[b]=!0;a.isInstance=function(c){return!(!c||!c[b])}}function Eq(a,b){var c=Zg(arguments,2);return this.superClass.prototype[b].apply(a,c)}function Fq(a,b,c){return this.superClass.prototype[b].apply(a,c)}function qf(a,b){b=b||{};var c={};a.registerClass=function(e,f){if(f){var g=f;dd(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(g),
'componentType "'+g+'" illegal');f=ac(f);f.sub?"___EC__COMPONENT__CONTAINER___"!==f.sub&&(g=c[f.main],g&&g.___EC__COMPONENT__CONTAINER___||(g=c[f.main]={},g.___EC__COMPONENT__CONTAINER___=!0),g[f.sub]=e):c[f.main]=e}return e};a.getClass=function(e,f,g){var h=c[e];h&&h.___EC__COMPONENT__CONTAINER___&&(h=f?h[f]:null);if(g&&!h)throw Error(f?"Component "+e+"."+(f||"")+" not exists. Load it first.":e+".type should be specified.");return h};a.getClassesByMainType=function(e){e=ac(e);var f=[];(e=c[e.main])&&
e.___EC__COMPONENT__CONTAINER___?w(e,function(g,h){"___EC__COMPONENT__CONTAINER___"!==h&&f.push(g)}):f.push(e);return f};a.hasClass=function(e){e=ac(e);return!!c[e.main]};a.getAllClassMainTypes=function(){var e=[];w(c,function(f,g){e.push(g)});return e};a.hasSubTypes=function(e){e=ac(e);return(e=c[e.main])&&e.___EC__COMPONENT__CONTAINER___};a.parseClassType=ac;if(b.registerWhenExtend){var d=a.extend;d&&(a.extend=function(e){var f=d.call(this,e);return a.registerClass(f,e.type)})}return a}function oa(a,
b,c,d,e){var f=1-e;return f*f*(f*a+3*e*b)+e*e*(e*d+3*f*c)}function sl(a,b,c,d,e){var f=1-e;return 3*(((b-a)*f+2*(c-b)*e)*f+(d-c)*e*e)}function tl(a,b,c,d,e){var f=6*c-12*b+6*a;c=9*b+3*d-3*a-9*c;b=3*b-3*a;a=0;if(-1E-8<c&&1E-8>c){if(1E-8<f||-1E-8>f)b=-b/f,0<=b&&1>=b&&(e[a++]=b)}else b=f*f-4*c*b,-1E-8<b&&1E-8>b?e[0]=-f/(2*c):0<b&&(d=bc(b),b=(-f+d)/(2*c),f=(-f-d)/(2*c),0<=b&&1>=b&&(e[a++]=b),0<=f&&1>=f&&(e[a++]=f));return a}function ul(a,b,c,d,e,f){var g=(b-a)*e+a,h=(c-b)*e+b;c=(d-c)*e+c;b=(h-g)*e+g;
h=(c-h)*e+h;e=(h-b)*e+b;f[0]=a;f[1]=g;f[2]=b;f[3]=e;f[4]=e;f[5]=h;f[6]=c;f[7]=d}function Oa(a,b,c,d){var e=1-d;return e*(e*a+2*d*b)+d*d*c}function vl(a,b,c,d){return 2*((1-d)*(b-a)+d*(c-b))}function wl(a,b,c){c=a+c-2*b;return 0===c?.5:(a-b)/c}function xl(a,b,c,d,e){var f=(b-a)*d+a;b=(c-b)*d+b;d=(b-f)*d+f;e[0]=a;e[1]=f;e[2]=d;e[3]=d;e[4]=b;e[5]=c}function nd(a,b,c,d,e,f,g){if(0===e)return!1;var h=0;if(g>b+e&&g>d+e||g<b-e&&g<d-e||f>a+e&&f>c+e||f<a-e&&f<c-e)return!1;if(a!==c)h=(b-d)/(a-c);else return Math.abs(f-
a)<=e/2;a=h*f-g+(a*d-c*b)/(a-c);return a*a/(h*h+1)<=e/2*e/2}function cc(a){a%=yl;0>a&&(a+=yl);return a}function Ib(a,b,c,d,e,f){if(f>b&&f>d||f<b&&f<d||d===b)return 0;var g=d<b?1:-1;f=(f-b)/(d-b);if(1===f||0===f)g=d<b?.5:-.5;a=f*(c-a)+a;return a===e?Infinity:a>e?g:0}function zl(a,b,c,d,e){for(var f=0,g=0,h=0,k=0,l=0,m=0;m<a.length;){var n=a[m++];n===dc.M&&1<m&&(c||(f+=Ib(g,h,k,l,d,e)));1==m&&(g=a[m],h=a[m+1],k=g,l=h);switch(n){case dc.M:k=a[m++];l=a[m++];g=k;h=l;break;case dc.L:if(c){if(nd(g,h,a[m],
a[m+1],b,d,e))return!0}else f+=Ib(g,h,a[m],a[m+1],d,e)||0;g=a[m++];h=a[m++];break;case dc.C:if(c){var p=a[m++],q=a[m++],r=a[m++],t=a[m++],u=a[m],v=a[m+1];if(0===b)var x=!1;else{var y=b;if(e>h+y&&e>q+y&&e>t+y&&e>v+y||e<h-y&&e<q-y&&e<t-y&&e<v-y||d>g+y&&d>p+y&&d>r+y&&d>u+y||d<g-y&&d<p-y&&d<r-y&&d<u-y)var z=!1;else{var A=void 0,B=void 0,N=void 0,ia=void 0,I=void 0,bb=g,ra=h,Aa=p,Na=q,X=r,fa=t,la=u,H=v,gf=e,rf=.005,ec=Infinity;mb[0]=d;mb[1]=gf;for(var fe=0;1>fe;fe+=.05)Pa[0]=oa(bb,Aa,X,la,fe),Pa[1]=oa(ra,
Na,fa,H,fe),B=Jc(mb,Pa),B<ec&&(I=fe,ec=B);ec=Infinity;for(var Al=0;32>Al&&!(1E-4>rf);Al++)ia=I-rf,N=I+rf,Pa[0]=oa(bb,Aa,X,la,ia),Pa[1]=oa(ra,Na,fa,H,ia),B=Jc(Pa,mb),0<=ia&&B<ec?(I=ia,ec=B):(od[0]=oa(bb,Aa,X,la,N),od[1]=oa(ra,Na,fa,H,N),A=Jc(od,mb),1>=N&&A<ec?(I=N,ec=A):rf*=.5);z=bc(ec)<=y/2}x=z}if(x)return!0}else{var Hq=f;var Mh=void 0,ge=void 0,Iq=g,eb=h,Jq=a[m++],fc=a[m++],Kq=a[m++],Kc=a[m++],Lq=a[m],gc=a[m+1],Mq=d;if(e>eb&&e>fc&&e>Kc&&e>gc||e<eb&&e<fc&&e<Kc&&e<gc)var Nh=0;else{var hc=Ba,nb=gc+
3*(fc-Kc)-eb,Ca=3*(Kc-2*fc+eb),he=3*(fc-eb),Bl=eb-e,fb=Ca*Ca-3*nb*he,ic=Ca*he-9*nb*Bl,Nq=he*he-3*Ca*Bl,jc=0;if(-1E-8<fb&&1E-8>fb&&-1E-8<ic&&1E-8>ic)if(-1E-8<Ca&&1E-8>Ca)hc[0]=0;else{var Da=-he/Ca;0<=Da&&1>=Da&&(hc[jc++]=Da)}else{var sf=ic*ic-4*fb*Nq;if(-1E-8<sf&&1E-8>sf){var Cl=ic/fb;Da=-Ca/nb+Cl;var Lc=-Cl/2;0<=Da&&1>=Da&&(hc[jc++]=Da);0<=Lc&&1>=Lc&&(hc[jc++]=Lc)}else if(0<sf){var Dl=bc(sf),ie=fb*Ca+1.5*nb*(-ic+Dl),je=fb*Ca+1.5*nb*(-ic-Dl);ie=0>ie?-tf(-ie,uf):tf(ie,uf);je=0>je?-tf(-je,uf):tf(je,
uf);Da=(-Ca-(ie+je))/(3*nb);0<=Da&&1>=Da&&(hc[jc++]=Da)}else{var Oq=(2*fb*Ca-3*nb*ic)/(2*bc(fb*fb*fb)),Oh=Math.acos(Oq)/3,Ph=bc(fb),Qh=Math.cos(Oh);Da=(-Ca-2*Ph*Qh)/(3*nb);Lc=(-Ca+Ph*(Qh+El*Math.sin(Oh)))/(3*nb);var Rh=(-Ca+Ph*(Qh-El*Math.sin(Oh)))/(3*nb);0<=Da&&1>=Da&&(hc[jc++]=Da);0<=Lc&&1>=Lc&&(hc[jc++]=Lc);0<=Rh&&1>=Rh&&(hc[jc++]=Rh)}}var Fl=jc;if(0===Fl)Nh=0;else{for(var Mc=0,ke=-1,Sh=0;Sh<Fl;Sh++){var pd=Ba[Sh],ob=0===pd||1===pd?.5:1;if(!(oa(Iq,Jq,Kq,Lq,pd)<Mq)){if(0>ke){ke=tl(eb,fc,Kc,gc,Qa);
if(Qa[1]<Qa[0]&&1<ke){var Pq=Qa[0];Qa[0]=Qa[1];Qa[1]=Pq}ge=oa(eb,fc,Kc,gc,Qa[0]);1<ke&&(Mh=oa(eb,fc,Kc,gc,Qa[1]))}Mc=2==ke?pd<Qa[0]?Mc+(ge<eb?ob:-ob):pd<Qa[1]?Mc+(Mh<ge?ob:-ob):Mc+(gc<Mh?ob:-ob):pd<Qa[0]?Mc+(ge<eb?ob:-ob):Mc+(gc<ge?ob:-ob)}}Nh=Mc}}f=Hq+(Nh||0)}g=a[m++];h=a[m++];break;case dc.Q:if(c){var Th=a[m++],Uh=a[m++],Vh=a[m],Wh=a[m+1];if(0===b)var Gl=!1;else{var La=b;if(e>h+La&&e>Uh+La&&e>Wh+La||e<h-La&&e<Uh-La&&e<Wh-La||d>g+La&&d>Th+La&&d>Vh+La||d<g-La&&d<Th-La&&d<Vh-La)var Hl=!1;else{var le=
void 0,Xh=g,Yh=h,Zh=Th,$h=Uh,ai=Vh,bi=Wh,Qq=e,vf=.005,kc=Infinity;mb[0]=d;mb[1]=Qq;for(var me=0;1>me;me+=.05){Pa[0]=Oa(Xh,Zh,ai,me);Pa[1]=Oa(Yh,$h,bi,me);var ne=Jc(mb,Pa);ne<kc&&(le=me,kc=ne)}kc=Infinity;for(var Il=0;32>Il&&!(1E-4>vf);Il++){var wf=le-vf,xf=le+vf;Pa[0]=Oa(Xh,Zh,ai,wf);Pa[1]=Oa(Yh,$h,bi,wf);ne=Jc(Pa,mb);if(0<=wf&&ne<kc)le=wf,kc=ne;else{od[0]=Oa(Xh,Zh,ai,xf);od[1]=Oa(Yh,$h,bi,xf);var Jl=Jc(od,mb);1>=xf&&Jl<kc?(le=xf,kc=Jl):vf*=.5}}Hl=bc(kc)<=La/2}Gl=Hl}if(Gl)return!0}else{var Rq=f;var Kl=
g,Jb=h,Ll=a[m++],qd=a[m++],Ml=a[m],Nc=a[m+1],Nl=d;if(e>Jb&&e>qd&&e>Nc||e<Jb&&e<qd&&e<Nc)var yf=0;else{var zf=Ba,rd=Jb-2*qd+Nc,lc=2*(qd-Jb),Ol=Jb-e,oe=0;if(-1E-8<rd&&1E-8>rd){if(1E-8<lc||-1E-8>lc){var gb=-Ol/lc;0<=gb&&1>=gb&&(zf[oe++]=gb)}}else{var Af=lc*lc-4*rd*Ol;if(-1E-8<Af&&1E-8>Af)gb=-lc/(2*rd),0<=gb&&1>=gb&&(zf[oe++]=gb);else if(0<Af){var Pl=bc(Af);gb=(-lc+Pl)/(2*rd);var ci=(-lc-Pl)/(2*rd);0<=gb&&1>=gb&&(zf[oe++]=gb);0<=ci&&1>=ci&&(zf[oe++]=ci)}}var Ql=oe;if(0===Ql)yf=0;else{var Bf=wl(Jb,qd,
Nc);if(0<=Bf&&1>=Bf){for(var Cf=0,Rl=Oa(Jb,qd,Nc,Bf),sd=0;sd<Ql;sd++){var Oc=0===Ba[sd]||1===Ba[sd]?.5:1,di=Oa(Kl,Ll,Ml,Ba[sd]);di<Nl||(Cf=Ba[sd]<Bf?Cf+(Rl<Jb?Oc:-Oc):Cf+(Nc<Rl?Oc:-Oc))}yf=Cf}else Oc=0===Ba[0]||1===Ba[0]?.5:1,di=Oa(Kl,Ll,Ml,Ba[0]),yf=di<Nl?0:Nc<Jb?Oc:-Oc}}f=Rq+(yf||0)}g=a[m++];h=a[m++];break;case dc.A:var td=a[m++],Df=a[m++],ei=a[m++],Kb=a[m++],mc=a[m++],Ef=a[m++];m++;var Sl=1-a[m++],Lb=Math.cos(mc)*ei+td,Mb=Math.sin(mc)*Kb+Df;1<m?f+=Ib(g,h,Lb,Mb,d,e):(k=Lb,l=Mb);var Tl=(d-td)*Kb/
ei+td;if(c){var nc=mc,Nb=mc+Ef,Ff=Tl,Gf=e;if(0===b)var Hf=!1;else{var Ul=b;Ff-=td;Gf-=Df;var Vl=Math.sqrt(Ff*Ff+Gf*Gf);if(Vl-Ul>Kb||Vl+Ul<Kb)Hf=!1;else if(1E-4>Math.abs(nc-Nb)%pe)Hf=!0;else{if(Sl){var Sq=nc;nc=cc(Nb);Nb=cc(Sq)}else nc=cc(nc),Nb=cc(Nb);nc>Nb&&(Nb+=pe);var ud=Math.atan2(Gf,Ff);0>ud&&(ud+=pe);Hf=ud>=nc&&ud<=Nb||ud+pe>=nc&&ud+pe<=Nb}}if(Hf)return!0}else{var Tq=f;var If=void 0,fi=td,Ob=mc,pb=mc+Ef,gi=Sl,hi=Tl,vd=e;vd-=Df;if(vd>Kb||vd<-Kb)var Jf=0;else{var Kf=Math.sqrt(Kb*Kb-vd*vd);Ba[0]=
-Kf;Ba[1]=Kf;var Wl=Math.abs(Ob-pb);if(1E-4>Wl)Jf=0;else if(1E-4>Wl%wd)Ob=0,pb=wd,Jf=hi>=Ba[0]+fi&&hi<=Ba[1]+fi?gi?1:-1:0;else{gi?(Kf=Ob,Ob=cc(pb),pb=cc(Kf)):(Ob=cc(Ob),pb=cc(pb));Ob>pb&&(pb+=wd);for(var Xl=0,ii=0;2>ii;ii++){var Yl=Ba[ii];if(Yl+fi>hi){var Pb=Math.atan2(vd,Yl);If=gi?1:-1;0>Pb&&(Pb=wd+Pb);if(Pb>=Ob&&Pb<=pb||Pb+wd>=Ob&&Pb+wd<=pb)Pb>Math.PI/2&&Pb<1.5*Math.PI&&(If=-If),Xl+=If}}Jf=Xl}}f=Tq+Jf}g=Math.cos(mc+Ef)*ei+td;h=Math.sin(mc+Ef)*Kb+Df;break;case dc.R:k=g=a[m++];l=h=a[m++];var Uq=a[m++],
Vq=a[m++];Lb=k+Uq;Mb=l+Vq;if(c){if(nd(k,l,Lb,l,b,d,e)||nd(Lb,l,Lb,Mb,b,d,e)||nd(Lb,Mb,k,Mb,b,d,e)||nd(k,Mb,k,l,b,d,e))return!0}else f+=Ib(Lb,l,Lb,Mb,d,e),f+=Ib(k,Mb,k,l,d,e);break;case dc.Z:if(c){if(nd(g,h,k,l,b,d,e))return!0}else f+=Ib(g,h,k,l,d,e);g=k;h=l}}c||1E-4>Math.abs(h-l)||(f+=Ib(g,h,k,l,d,e)||0);return 0!==f}function W(a){Ia.call(this,a);this.path=null}function Zl(a,b,c,d,e,f,g,h,k,l,m){k*=Lf/180;var n=Mf(k)*(a-c)/2+Nf(k)*(b-d)/2,p=-1*Nf(k)*(a-c)/2+Mf(k)*(b-d)/2,q=n*n/(g*g)+p*p/(h*h);1<q&&
(g*=ji(q),h*=ji(q));q=(e===f?-1:1)*ji((g*g*h*h-g*g*p*p-h*h*n*n)/(g*g*p*p+h*h*n*n))||0;e=q*g*p/h;q=q*-h*n/g;a=(a+c)/2+Mf(k)*e-Nf(k)*q;b=(b+d)/2+Nf(k)*e+Mf(k)*q;d=$l([1,0],[(n-e)/g,(p-q)/h]);c=[(n-e)/g,(p-q)/h];n=[(-1*n-e)/g,(-1*p-q)/h];p=$l(c,n);-1>=ki(c,n)&&(p=Lf);1<=ki(c,n)&&(p=0);0===f&&0<p&&(p-=2*Lf);1===f&&0>p&&(p+=2*Lf);m.addData(l,a,b,g,h,d,p,k,f)}function Wq(a){if(!a)return[];var b=a.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(a=0;a<li.length;a++)b=b.replace(new RegExp(li[a],
"g"),"|"+li[a]);b=b.split("|");var c=0,d=0,e=new qb,f=qb.CMD;for(a=1;a<b.length;a++){var g=b[a],h=g.charAt(0),k=0;g=g.slice(1).replace(/e,-/g,"e-").split(",");0<g.length&&""===g[0]&&g.shift();for(var l=0;l<g.length;l++)g[l]=parseFloat(g[l]);for(;k<g.length&&!isNaN(g[k])&&!isNaN(g[0]);){l=c;var m=d;switch(h){case "l":c+=g[k++];d+=g[k++];var n=f.L;e.addData(n,c,d);break;case "L":c=g[k++];d=g[k++];n=f.L;e.addData(n,c,d);break;case "m":c+=g[k++];d+=g[k++];n=f.M;e.addData(n,c,d);h="l";break;case "M":c=
g[k++];d=g[k++];n=f.M;e.addData(n,c,d);h="L";break;case "h":c+=g[k++];n=f.L;e.addData(n,c,d);break;case "H":c=g[k++];n=f.L;e.addData(n,c,d);break;case "v":d+=g[k++];n=f.L;e.addData(n,c,d);break;case "V":d=g[k++];n=f.L;e.addData(n,c,d);break;case "C":n=f.C;e.addData(n,g[k++],g[k++],g[k++],g[k++],g[k++],g[k++]);c=g[k-2];d=g[k-1];break;case "c":n=f.C;e.addData(n,g[k++]+c,g[k++]+d,g[k++]+c,g[k++]+d,g[k++]+c,g[k++]+d);c+=g[k-2];d+=g[k-1];break;case "S":var p=c;var q=d;n=e.len();l=e.data;v===f.C&&(p+=c-
l[n-4],q+=d-l[n-3]);n=f.C;l=g[k++];m=g[k++];c=g[k++];d=g[k++];e.addData(n,p,q,l,m,c,d);break;case "s":p=c;q=d;n=e.len();l=e.data;v===f.C&&(p+=c-l[n-4],q+=d-l[n-3]);n=f.C;l=c+g[k++];m=d+g[k++];c+=g[k++];d+=g[k++];e.addData(n,p,q,l,m,c,d);break;case "Q":l=g[k++];m=g[k++];c=g[k++];d=g[k++];n=f.Q;e.addData(n,l,m,c,d);break;case "q":l=g[k++]+c;m=g[k++]+d;c+=g[k++];d+=g[k++];n=f.Q;e.addData(n,l,m,c,d);break;case "T":p=c;q=d;n=e.len();l=e.data;v===f.Q&&(p+=c-l[n-4],q+=d-l[n-3]);c=g[k++];d=g[k++];n=f.Q;e.addData(n,
p,q,c,d);break;case "t":p=c;q=d;n=e.len();l=e.data;v===f.Q&&(p+=c-l[n-4],q+=d-l[n-3]);c+=g[k++];d+=g[k++];n=f.Q;e.addData(n,p,q,c,d);break;case "A":p=g[k++];q=g[k++];var r=g[k++];var t=g[k++];var u=g[k++];l=c;m=d;c=g[k++];d=g[k++];n=f.A;Zl(l,m,c,d,t,u,p,q,r,n,e);break;case "a":p=g[k++],q=g[k++],r=g[k++],t=g[k++],u=g[k++],l=c,m=d,c+=g[k++],d+=g[k++],n=f.A,Zl(l,m,c,d,t,u,p,q,r,n,e)}}if("z"===h||"Z"===h)n=f.Z,e.addData(n);var v=n}e.toStatic();return e}function am(a,b){var c=Wq(a);b=b||{};b.buildPath=
function(d){if(d.setData){d.setData(c.data);var e=d.getContext();e&&d.rebuildPath(e)}else c.rebuildPath(d)};b.applyTransform=function(d){var e=c.data,f,g,h=xd.M,k=xd.C,l=xd.L,m=xd.R,n=xd.A,p=xd.Q;for(g=f=0;f<e.length;){var q=e[f++];g=f;var r=0;switch(q){case h:r=1;break;case l:r=1;break;case k:r=3;break;case p:r=2;break;case n:g=d[4];q=d[5];var t=bm(d[0]*d[0]+d[1]*d[1]),u=bm(d[2]*d[2]+d[3]*d[3]),v=Xq(-d[1]/u,d[0]/t);e[f]*=t;e[f++]+=g;e[f]*=u;e[f++]+=q;e[f++]*=t;e[f++]*=u;e[f++]+=v;e[f++]+=v;g=f+=
2;break;case m:x[0]=e[f++],x[1]=e[f++],qa(x,x,d),e[g++]=x[0],e[g++]=x[1],x[0]+=e[f++],x[1]+=e[f++],qa(x,x,d),e[g++]=x[0],e[g++]=x[1]}for(q=0;q<r;q++){var x=Yq[q];x[0]=e[f++];x[1]=e[f++];qa(x,x,d);e[g++]=x[0];e[g++]=x[1]}}this.dirty(!0)};return b}function cm(a,b,c,d,e,f,g){a=.5*(c-a);d=.5*(d-b);return(2*(b-c)+a+d)*g+(-3*(b-c)-2*a-d)*f+a*e+b}function dm(a,b,c){var d=b.points,e=b.smooth;if(d&&2<=d.length){if(e&&"spline"!==e){var f=d,g=b.smoothConstraint;b=[];var h=[],k=[],l=[];if(g){var m=[Infinity,
Infinity];var n=[-Infinity,-Infinity];for(var p=0,q=f.length;p<q;p++)Eb(m,m,f[p]),Fb(n,n,f[p]);Eb(m,m,g[0]);Fb(n,n,g[1])}p=0;for(q=f.length;p<q;p++){var r=f[p];if(c){var t=f[p?p-1:q-1];var u=f[(p+1)%q]}else if(0===p||p===q-1){b.push(ch(f[p]));continue}else t=f[p-1],u=f[p+1];$e(h,u,t);af(h,h,e);t=ae(r,t);u=ae(r,u);var v=t+u;0!==v&&(t/=v,u/=v);af(k,h,-t);af(l,h,u);t=dh([],r,k);r=dh([],r,l);g&&(Fb(t,t,m),Eb(t,t,n),Fb(r,r,m),Eb(r,r,n));b.push(t);b.push(r)}c&&b.push(b.shift());a.moveTo(d[0][0],d[0][1]);
f=d.length;for(e=0;e<(c?f:f-1);e++)m=b[2*e],n=b[2*e+1],g=d[(e+1)%f],a.bezierCurveTo(m[0],m[1],n[0],n[1],g[0],g[1])}else{if("spline"===e){b=d.length;e=[];m=0;for(f=1;f<b;f++)m+=ae(d[f-1],d[f]);m/=2;m=m<b?b:m;for(f=0;f<m;f++)n=f/(m-1)*(c?b:b-1),l=Math.floor(n),n-=l,h=d[l%b],c?(g=d[(l-1+b)%b],k=d[(l+1)%b],l=d[(l+2)%b]):(g=d[0===l?l:l-1],k=d[l>b-2?b-1:l+1],l=d[l>b-3?b-1:l+2]),p=n*n,q=n*p,e.push([cm(g[0],h[0],k[0],l[0],n,p,q),cm(g[1],h[1],k[1],l[1],n,p,q)]);d=e}a.moveTo(d[0][0],d[0][1]);e=1;for(b=d.length;e<
b;e++)a.lineTo(d[e][0],d[e][1])}c&&a.closePath()}}function em(a,b,c){var d=a.cpy2;return null===a.cpx2||null===d?[(c?sl:oa)(a.x1,a.cpx1,a.cpx2,a.x2,b),(c?sl:oa)(a.y1,a.cpy1,a.cpy2,a.y2,b)]:[(c?vl:Oa)(a.x1,a.cpx1,a.x2,b),(c?vl:Oa)(a.y1,a.cpy1,a.y2,b)]}function hb(a){Ia.call(this,a);this._displayables=[];this._temporaryDisplayables=[];this._cursor=0;this.notClear=!0}function Pc(a){return W.extend(a)}function mi(a,b,c,d){a=new W(am(a,b));b=a.getBoundingRect();c&&("center"===d&&(c=fm(c,b)),gm(a,c));return a}
function hm(a,b,c){var d=new $b({style:{image:a,x:b.x,y:b.y,width:b.width,height:b.height},onload:function(e){"center"===c&&d.setStyle(fm(b,{width:e.width,height:e.height}))}});return d}function fm(a,b){var c=b.width/b.height;b=a.height*c;b<=a.width?c=a.height:(b=a.width,c=b/c);return{x:a.x+a.width/2-b/2,y:a.y+a.height/2-c/2,width:b,height:c}}function gm(a,b){a.applyTransform&&(b=a.getBoundingRect().calculateTransform(b),a.applyTransform(b))}function qe(a){var b=a.shape,c=a.style.lineWidth;yd(2*b.x1)===
yd(2*b.x2)&&(b.x1=b.x2=Qc(b.x1,c,!0));yd(2*b.y1)===yd(2*b.y2)&&(b.y1=b.y2=Qc(b.y1,c,!0));return a}function ni(a){var b=a.shape,c=a.style.lineWidth,d=b.x,e=b.y,f=b.width,g=b.height;b.x=Qc(b.x,c,!0);b.y=Qc(b.y,c,!0);b.width=Math.max(Qc(d+f,c,!1)-b.x,0===f?0:1);b.height=Math.max(Qc(e+g,c,!1)-b.y,0===g?0:1);return a}function Qc(a,b,c){a=yd(2*a);return 0===(a+yd(b))%2?a/2:(a+(c?1:-1))/2}function im(a){return"string"===typeof a?Hk(a,-.1):a}function jm(a){if(a.__hoverStlDirty){var b=a.style.stroke,c=a.style.fill,
d=a.__hoverStl;d.fill=d.fill||(null!=c&&"none"!=c?im(c):null);d.stroke=d.stroke||(null!=b&&"none"!=b?im(b):null);b={};for(var e in d)null!=d[e]&&(b[e]=a.style[e]);a.__normalStl=b;a.__hoverStlDirty=!1}}function km(a){if(!a.__isHover){jm(a);if(a.useHoverLayer)a.__zr&&a.__zr.addHover(a,a.__hoverStl);else{var b=a.style,c=b.insideRollbackOpt;if(c){var d=b.insideRollback;d&&(b.textFill=d.textFill,b.textStroke=d.textStroke,b.textStrokeWidth=d.textStrokeWidth)}b.extendFrom(a.__hoverStl);c&&(lm(b,b.insideOriginalTextPosition,
c),null==b.textFill&&(b.textFill=c.autoColor));a.dirty(!1);a.z2+=1}a.__isHover=!0}}function mm(a){if(a.__isHover){var b=a.__normalStl;a.useHoverLayer?a.__zr&&a.__zr.removeHover(a):(b&&a.setStyle(b),--a.z2);a.__isHover=!1}}function nm(a){"group"===a.type?a.traverse(function(b){"group"!==b.type&&km(b)}):km(a)}function om(a){"group"===a.type?a.traverse(function(b){"group"!==b.type&&mm(b)}):mm(a)}function pm(a,b){a.__hoverStl=a.hoverStyle||b||{};a.__hoverStlDirty=!0;a.__isHover&&jm(a)}function Zq(a){this.__hoverSilentOnTouch&&
a.zrByTouch||!this.__isEmphasis&&nm(this)}function $q(a){this.__hoverSilentOnTouch&&a.zrByTouch||!this.__isEmphasis&&om(this)}function ar(){this.__isEmphasis=!0;nm(this)}function br(){this.__isEmphasis=!1;om(this)}function rb(a,b,c){a.__hoverSilentOnTouch=c&&c.hoverSilentOnTouch;"group"===a.type?a.traverse(function(d){"group"!==d.type&&pm(d,b)}):pm(a,b);a.on("mouseover",Zq).on("mouseout",$q);a.on("emphasis",ar).on("normal",br)}function Rc(a,b,c,d,e,f,g){e=e||Of;var h=e.labelFetcher,k=e.labelDataIndex,
l=e.labelDimIndex,m=c.getShallow("show"),n=d.getShallow("show"),p;if(m||n)h&&(p=h.getFormattedLabel(k,"normal",null,l)),null==p&&(p=Ya(e.defaultText)?e.defaultText(k,e):e.defaultText);m=m?p:null;h=n?Fa(h?h.getFormattedLabel(k,"emphasis",null,l):null,p):null;if(null!=m||null!=h)Ra(a,c,f,e),Ra(b,d,g,e,!0);a.text=m;b.text=h}function Ra(a,b,c,d,e){qm(a,b,d,e);c&&P(a,c);a.host&&a.host.dirty&&a.host.dirty(!1);return a}function qm(a,b,c,d){c=c||Of;if(c.isRectText){var e=b.getShallow("position")||(d?null:
"inside");"outside"===e&&(e="top");a.textPosition=e;a.textOffset=b.getShallow("offset");e=b.getShallow("rotate");null!=e&&(e*=Math.PI/180);a.textRotation=e;a.textDistance=Fa(b.getShallow("distance"),d?null:5)}e=(e=b.ecModel)&&e.option.textStyle;for(var f,g=b;g&&g!==g.ecModel;){var h=(g.option||Of).rich;if(h){f=f||{};for(var k in h)h.hasOwnProperty(k)&&(f[k]=1)}g=g.parentModel}if(f){var l={};for(var m in f)f.hasOwnProperty(m)&&(k=b.getModel(["rich",m]),rm(l[m]={},k,e,c,d))}a.rich=l;rm(a,b,e,c,d,!0);
c.forceRich&&!c.textStyle&&(c.textStyle={});return a}function rm(a,b,c,d,e,f){c=!e&&c||Of;a.textFill=Pf(b.getShallow("color"),d)||c.color;a.textStroke=Pf(b.getShallow("textBorderColor"),d)||c.textBorderColor;a.textStrokeWidth=Fa(b.getShallow("textBorderWidth"),c.textBorderWidth);e||(f&&(e=a.textPosition,a.insideRollback=lm(a,e,d),a.insideOriginalTextPosition=e,a.insideRollbackOpt=d),null==a.textFill&&(a.textFill=d.autoColor));a.fontStyle=b.getShallow("fontStyle")||c.fontStyle;a.fontWeight=b.getShallow("fontWeight")||
c.fontWeight;a.fontSize=b.getShallow("fontSize")||c.fontSize;a.fontFamily=b.getShallow("fontFamily")||c.fontFamily;a.textAlign=b.getShallow("align");a.textVerticalAlign=b.getShallow("verticalAlign")||b.getShallow("baseline");a.textLineHeight=b.getShallow("lineHeight");a.textWidth=b.getShallow("width");a.textHeight=b.getShallow("height");a.textTag=b.getShallow("tag");f&&d.disableBox||(a.textBackgroundColor=Pf(b.getShallow("backgroundColor"),d),a.textPadding=b.getShallow("padding"),a.textBorderColor=
Pf(b.getShallow("borderColor"),d),a.textBorderWidth=b.getShallow("borderWidth"),a.textBorderRadius=b.getShallow("borderRadius"),a.textBoxShadowColor=b.getShallow("shadowColor"),a.textBoxShadowBlur=b.getShallow("shadowBlur"),a.textBoxShadowOffsetX=b.getShallow("shadowOffsetX"),a.textBoxShadowOffsetY=b.getShallow("shadowOffsetY"));a.textShadowColor=b.getShallow("textShadowColor")||c.textShadowColor;a.textShadowBlur=b.getShallow("textShadowBlur")||c.textShadowBlur;a.textShadowOffsetX=b.getShallow("textShadowOffsetX")||
c.textShadowOffsetX;a.textShadowOffsetY=b.getShallow("textShadowOffsetY")||c.textShadowOffsetY}function Pf(a,b){return"auto"!==a?a:b&&b.autoColor?b.autoColor:null}function lm(a,b,c){var d=c.useInsideStyle;if(null==a.textFill&&!1!==d&&(!0===d||c.isRectText&&b&&"string"===typeof b&&0<=b.indexOf("inside"))){var e={textFill:null,textStroke:a.textStroke,textStrokeWidth:a.textStrokeWidth};a.textFill="#fff";null==a.textStroke&&(a.textStroke=c.autoColor,null==a.textStrokeWidth&&(a.textStrokeWidth=2))}return e}
function sm(a,b){b=b||b.getModel("textStyle");return ah([a.fontStyle||b&&b.getShallow("fontStyle")||"",a.fontWeight||b&&b.getShallow("fontWeight")||"",(a.fontSize||b&&b.getShallow("fontSize")||12)+"px",a.fontFamily||b&&b.getShallow("fontFamily")||"sans-serif"].join(" "))}function tm(a,b,c,d,e,f){"function"===typeof e&&(f=e,e=null);if(d&&d.isAnimationEnabled()){var g=a?"Update":"";a=d.getShallow("animationDuration"+g);var h=d.getShallow("animationEasing"+g);g=d.getShallow("animationDelay"+g);"function"===
typeof g&&(g=g(e,d.getAnimationDelayParams?d.getAnimationDelayParams(b,e):null));"function"===typeof a&&(a=a(e));0<a?b.animateTo(c,a,g||0,h,f,!!f):(b.stopAnimation(),b.attr(c),f&&f())}else b.stopAnimation(),b.attr(c),f&&f()}function da(a,b,c,d,e){tm(!0,a,b,c,d,e)}function ib(a,b,c,d,e){tm(!1,a,b,c,d,e)}function um(a,b){for(var c=be([]);a&&a!==b;)gd(c,a.getLocalTransform(),c),a=a.parent;return c}function re(a,b,c){b&&!Db(b)&&(b=zd.getLocalTransform(b));c&&(b=ih([],b));return qa([],a,b)}function vm(a,
b,c){var d=0===b[4]||0===b[5]||0===b[0]?1:Math.abs(2*b[4]/b[0]),e=0===b[4]||0===b[5]||0===b[2]?1:Math.abs(2*b[4]/b[2]);a=["left"===a?-d:"right"===a?d:0,"top"===a?-e:"bottom"===a?e:0];a=re(a,b,c);return Math.abs(a[0])>Math.abs(a[1])?0<a[0]?"right":"left":0<a[1]?"bottom":"top"}function wm(a,b,c,d){function e(g){var h={position:ch(g.position),rotation:g.rotation};g.shape&&(h.shape=P({},g.shape));return h}if(a&&b){var f=function(g){var h={};g.traverse(function(k){!k.isGroup&&k.anid&&(h[k.anid]=k)});return h}(a);
b.traverse(function(g){if(!g.isGroup&&g.anid){var h=f[g.anid];if(h){var k=e(g);g.attr(e(h));da(g,k,c,g.dataIndex)}}})}}function Qf(a,b,c){b=P({rectHover:!0},b);var d=b.style={strokeNoScale:!0};c=c||{x:-1,y:-1,width:2,height:2};if(a)return 0===a.indexOf("image://")?(d.image=a.slice(8),J(d,c),new $b(b)):mi(a.replace("path://",""),b,c,"center")}function Z(a,b,c){this.parentModel=b;this.ecModel=c;this.option=a}function xm(a,b,c){for(var d=0;d<b.length&&(!b[d]||(a=a&&"object"===typeof a?a[b[d]]:null,null!=
a));d++);null==a&&c&&(a=c.get(b));return a}function oi(a,b){var c=ym(a).getParent;return c?c.call(a,b):a.parentModel}function Rf(a){return[a||"",cr++,Math.random().toFixed(5)].join("_")}function ma(a,b,c,d){var e=b[1]-b[0],f=c[1]-c[0];if(0===e)return 0===f?c[0]:(c[0]+c[1])/2;if(d)if(0<e){if(a<=b[0])return c[0];if(a>=b[1])return c[1]}else{if(a>=b[0])return c[0];if(a<=b[1])return c[1]}else{if(a===b[0])return c[0];if(a===b[1])return c[1]}return(a-b[0])/e*f+c[0]}function F(a,b){switch(a){case "center":case "middle":a=
"50%";break;case "left":case "top":a="0%";break;case "right":case "bottom":a="100%"}return"string"===typeof a?a.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(a)/100*b:parseFloat(a):null==a?NaN:+a}function ea(a,b,c){null==b&&(b=10);b=Math.min(Math.max(0,b),20);a=(+a).toFixed(b);return c?a:+a}function Ad(a){a.sort(function(b,c){return b-c});return a}function zm(a){a=+a;if(isNaN(a))return 0;for(var b=1,c=0;Math.round(a*b)/b!==a;)b*=10,c++;return c}function oc(a){a=a.toString();var b=a.indexOf("e");
if(0<b)return a=+a.slice(b+1),0>a?-a:0;b=a.indexOf(".");return 0>b?0:a.length-1-b}function pi(a,b){var c=Math.log,d=Math.LN10;a=Math.floor(c(a[1]-a[0])/d);b=Math.round(c(Math.abs(b[1]-b[0]))/d);b=Math.min(Math.max(-a+b,0),20);return isFinite(b)?b:20}function Am(a,b,c){if(!a[b])return 0;var d=Yd(a,function(n,p){return n+(isNaN(p)?0:p)},0);if(0===d)return 0;var e=Math.pow(10,c),f=C(a,function(n){return(isNaN(n)?0:n)/d*e*100});a=100*e;var g=C(f,function(n){return Math.floor(n)});c=Yd(g,function(n,p){return n+
p},0);for(f=C(f,function(n,p){return n-g[p]});c<a;){for(var h=Number.NEGATIVE_INFINITY,k=null,l=0,m=f.length;l<m;++l)f[l]>h&&(h=f[l],k=l);++g[k];f[k]=0;++c}return g[b]/e}function qi(a){var b=2*Math.PI;return(a%b+b)%b}function se(a){return-1E-4<a&&1E-4>a}function Sf(a){if(a instanceof Date)return a;if("string"===typeof a){a=dr.exec(a);if(!a)return new Date(NaN);if(a[8]){var b=+a[4]||0;"Z"!==a[8].toUpperCase()&&(b-=a[8].slice(0,3));return new Date(Date.UTC(+a[1],+(a[2]||1)-1,+a[3]||1,b,+(a[5]||0),+a[6]||
0,+a[7]||0))}return new Date(+a[1],+(a[2]||1)-1,+a[3]||1,+a[4]||0,+(a[5]||0),+a[6]||0,+a[7]||0)}return null==a?new Date(NaN):new Date(Math.round(a))}function Bm(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))}function ri(a,b){var c=Math.floor(Math.log(a)/Math.LN10),d=Math.pow(10,c);a/=d;a=(b?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)*d;return-20<=c?+a.toFixed(0>c?-c:0):a}function Sc(a){if(isNaN(a))return"-";a=(a+"").split(".");return a[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,
"$1,")+(1<a.length?"."+a[1]:"")}function Cm(a,b){a=(a||"").toLowerCase().replace(/-(.)/g,function(c,d){return d.toUpperCase()});b&&a&&(a=a.charAt(0).toUpperCase()+a.slice(1));return a}function sa(a){return null==a?"":(a+"").replace(er,function(b,c){return fr[c]})}function si(a,b,c){E(b)||(b=[b]);var d=b.length;if(!d)return"";for(var e=b[0].$vars||[],f=0;f<e.length;f++){var g=Dm[f];a=a.replace("{"+g+"}","{"+g+0+"}")}for(f=0;f<d;f++)for(g=0;g<e.length;g++){var h=b[f][e[g]];a=a.replace("{"+Dm[g]+(null==
f?"":f)+"}",c?sa(h):h)}return a}function Tf(a,b){a=va(a)?{color:a,extraCssText:b}:a||{};var c=a.color,d=a.type;b=a.extraCssText;return c?"subItem"===d?'\x3cspan style\x3d"display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+sa(c)+";"+(b||"")+'"\x3e\x3c/span\x3e':'\x3cspan style\x3d"display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+sa(c)+";"+(b||"")+'"\x3e\x3c/span\x3e':
""}function Bd(a,b){a+="";return"0000".substr(0,b-a.length)+a}function ti(a,b,c){if("week"===a||"month"===a||"quarter"===a||"half-year"===a||"year"===a)a="MM-dd\nyyyy";b=Sf(b);var d=c?"UTC":"";c=b["get"+d+"FullYear"]();var e=b["get"+d+"Month"]()+1,f=b["get"+d+"Date"](),g=b["get"+d+"Hours"](),h=b["get"+d+"Minutes"](),k=b["get"+d+"Seconds"]();b=b["get"+d+"Milliseconds"]();return a=a.replace("MM",Bd(e,2)).replace("M",e).replace("yyyy",c).replace("yy",c%100).replace("dd",Bd(f,2)).replace("d",f).replace("hh",
Bd(g,2)).replace("h",g).replace("mm",Bd(h,2)).replace("m",h).replace("ss",Bd(k,2)).replace("s",k).replace("SSS",Bd(b,3))}function ui(a){return a?a.charAt(0).toUpperCase()+a.substr(1):a}function te(a,b,c,d,e){var f=0,g=0;null==d&&(d=Infinity);null==e&&(e=Infinity);var h=0;b.eachChild(function(k,l){var m=k.position,n=k.getBoundingRect();l=(l=b.childAt(l+1))&&l.getBoundingRect();if("horizontal"===a){l=n.width+(l?-l.x+n.x:0);var p=f+l;p>d||k.newline?(f=0,p=l,g+=h+c,h=n.height):h=Math.max(h,n.height)}else{l=
n.height+(l?-l.y+n.y:0);var q=g+l;q>e||k.newline?(f+=h+c,g=0,q=l,h=n.width):h=Math.max(h,n.width)}k.newline||(m[0]=f,m[1]=g,"horizontal"===a?f=p+c:g=q+c)})}function Qb(a,b,c){c=ue(c||0);var d=b.width;b=b.height;var e=F(a.left,d),f=F(a.top,b),g=F(a.right,d),h=F(a.bottom,b),k=F(a.width,d),l=F(a.height,b),m=c[2]+c[0],n=c[1]+c[3],p=a.aspect;isNaN(k)&&(k=d-g-n-e);isNaN(l)&&(l=b-h-m-f);null!=p&&(isNaN(k)&&isNaN(l)&&(p>d/b?k=.8*d:l=.8*b),isNaN(k)&&(k=p*l),isNaN(l)&&(l=k/p));isNaN(e)&&(e=d-g-k-n);isNaN(f)&&
(f=b-h-l-m);switch(a.left||a.right){case "center":e=d/2-k/2-c[3];break;case "right":e=d-k-n}switch(a.top||a.bottom){case "middle":case "center":f=b/2-l/2-c[0];break;case "bottom":f=b-l-m}e=e||0;f=f||0;isNaN(k)&&(k=d-n-e-(g||0));isNaN(l)&&(l=b-m-f-(h||0));a=new ca(e+c[3],f+c[0],k,l);a.margin=c;return a}function Tc(a,b,c){function d(k,l){var m={},n=0,p={},q=0;Uf(k,function(t){p[t]=a[t]});Uf(k,function(t){b.hasOwnProperty(t)&&(m[t]=p[t]=b[t]);e(m,t)&&n++;e(p,t)&&q++});if(g[l])return e(b,k[1])?p[k[2]]=
null:e(b,k[2])&&(p[k[1]]=null),p;if(2!==q&&n){if(!(2<=n))for(l=0;l<k.length;l++){var r=k[l];if(!m.hasOwnProperty(r)&&a.hasOwnProperty(r)){m[r]=a[r];break}}return m}return p}function e(k,l){return null!=k[l]&&"auto"!==k[l]}function f(k,l,m){Uf(k,function(n){l[n]=m[n]})}!O(c)&&(c={});var g=c.ignoreSize;!E(g)&&(g=[g,g]);c=d(Vf[0],0);var h=d(Vf[1],1);f(Vf[0],a,c);f(Vf[1],a,h)}function Cd(a,b){b&&a&&Uf(Em,function(c){b.hasOwnProperty(c)&&(a[c]=b[c])});return a}function Fm(a){var b=a.get("coordinateSystem"),
c={coordSysName:b,coordSysDims:[],axisMap:Q(),categoryAxisMap:Q()};if(b=gr[b])return b(a,c,c.axisMap,c.categoryAxisMap),c}function Dd(a){return"category"===a.get("type")}function jb(a){this.fromDataset=a.fromDataset;this.data=a.data||("keyedColumns"===a.sourceFormat?{}:[]);this.sourceFormat=a.sourceFormat||"unknown";this.seriesLayoutBy=a.seriesLayoutBy||"column";this.dimensionsDefine=a.dimensionsDefine;this.encodeDefine=a.encodeDefine&&Q(a.encodeDefine);this.startIndex=a.startIndex||0;this.dimensionsDetectCount=
a.dimensionsDetectCount}function Gm(a){var b=a.option,c=b.data,d=lb(c)?"typedArray":"original",e=!1,f=b.seriesLayoutBy,g=b.sourceHeader,h=b.dimensions;var k=a.option;k=k.data?void 0:a.ecModel.getComponent("dataset",k.datasetIndex||0);if(k){var l=k.option;c=l.source;d=Ed(k).sourceFormat;e=!0;f=f||l.seriesLayoutBy;null==g&&(g=l.sourceHeader);h=h||l.dimensions}g=hr(c,d,f,g,h);b=b.encode;!b&&k&&(b=ir(a,k,c,d,f,g));Ed(a).source=new jb({data:c,fromDataset:e,seriesLayoutBy:f,sourceFormat:d,dimensionsDefine:g.dimensionsDefine,
startIndex:g.startIndex,dimensionsDetectCount:g.dimensionsDetectCount,encodeDefine:b})}function hr(a,b,c,d,e){if(!a)return{dimensionsDefine:Hm(e)};var f;if("arrayRows"===b){"auto"===d||null==d?Im(function(l){null!=l&&"-"!==l&&(va(l)?null==f&&(f=1):f=0)},c,a,10):f=d?1:0;e||1!==f||(e=[],Im(function(l,m){e[m]=null!=l?l:""},c,a));var g=e?e.length:"row"===c?a.length:a[0]?a[0].length:null}else if("objectRows"===b){if(!e){e=jr(a);var h=!0}}else"keyedColumns"===b?e||(e=[],h=!0,w(a,function(l,m){e.push(m)})):
"original"===b&&(a=nf(a[0]),g=E(a)&&a.length||1);var k;h&&w(e,function(l,m){"name"===(O(l)?l.name:l)&&(k=m)});return{startIndex:f,dimensionsDefine:Hm(e),dimensionsDetectCount:g,potentialNameDimIndex:k}}function Hm(a){if(a){var b=Q();return C(a,function(c,d){c=P({},O(c)?c:{name:c});if(null==c.name)return c;c.name+="";null==c.displayName&&(c.displayName=c.name);(d=b.get(c.name))?c.name+="-"+d.count++:b.set(c.name,{count:1});return c})}}function Im(a,b,c,d){null==d&&(d=Infinity);if("row"===b)for(b=0;b<
c.length&&b<d;b++)a(c[b]?c[b][0]:null,b);else for(c=c[0]||[],b=0;b<c.length&&b<d;b++)a(c[b],b)}function jr(a){for(var b=0,c;b<a.length&&!(c=a[b++]););if(c){var d=[];w(c,function(e,f){d.push(f)});return d}}function ir(a,b,c,d,e,f){var g=Fm(a),h={},k=[],l=[],m=a.subType,n=Q(["pie","map","funnel"]),p=Q("line bar pictorialBar scatter effectScatter candlestick boxplot".split(" "));if(g&&null!=p.get(m)){c=Ed(a.ecModel).datasetMap;e=b.uid+"_"+e;var q=c.get(e)||c.set(e,{categoryWayDim:1,valueWayDim:0});w(g.coordSysDims,
function(t){if(null==g.firstCategoryDimIndex){var u=q.valueWayDim++;h[t]=u;l.push(u)}else g.categoryAxisMap.get(t)?(h[t]=0,k.push(0)):(u=q.categoryWayDim++,h[t]=u,l.push(u))})}else if(null!=n.get(m)){var r;for(b=0;5>b&&null==r;b++)Jm(c,d,e,f.dimensionsDefine,f.startIndex,b)||(r=b);null!=r&&(h.value=r,e=f.potentialNameDimIndex||Math.max(r-1,0),l.push(e),k.push(e))}k.length&&(h.itemName=k);l.length&&(h.seriesName=l);return h}function Jm(a,b,c,d,e,f){function g(l){if(null!=l&&isFinite(l)&&""!==l)return!1;
if(va(l)&&"-"!==l)return!0}var h;if(lb(a))return!1;if(d){var k=d[f];k=O(k)?k.name:k}if("arrayRows"===b)if("row"===c)for(a=a[f],b=0;b<(a||[]).length&&5>b;b++){if(null!=(h=g(a[e+b])))return h}else for(b=0;b<a.length&&5>b;b++){if((k=a[e+b])&&null!=(h=g(k[f])))return h}else if("objectRows"===b){if(!k)return;for(b=0;b<a.length&&5>b;b++)if((e=a[b])&&null!=(h=g(e[k])))return h}else if("keyedColumns"===b){if(!k)return;a=a[k];if(!a||lb(a))return!1;for(b=0;b<a.length&&5>b;b++)if(null!=(h=g(a[b])))return h}else if("original"===
b)for(b=0;b<a.length&&5>b;b++){e=a[b];h=nf(e);if(!E(h))break;if(null!=(h=g(h[f])))return h}return!1}function kr(a,b){var c=a.color&&!a.colorLayer;w(b,function(d,e){"colorLayer"===e&&c||aa.hasClass(e)||("object"===typeof d?a[e]=a[e]?T(a[e],d,!1):U(d):null==a[e]&&(a[e]=d))})}function lr(a){this.option={};this.option["\x00_ec_inner"]=1;this._componentsMap=Q({series:[]});this._seriesIndicesMap;kr(a,this._theme.option);T(a,mr,!1);this.mergeOption(a)}function nr(a,b){E(b)||(b=b?[b]:[]);var c={};w(b,function(d){c[d]=
(a.get(d)||[]).slice()});return c}function vi(a,b){a._seriesIndicesMap=Q(a._seriesIndices=C(b,function(c){return c.componentIndex})||[])}function Km(a,b){return b.hasOwnProperty("subType")?Ea(a,function(c){return c.subType===b.subType}):a}function Lm(a){w(or,function(b){this[b]=K(a[b],a)},this)}function sb(){this._coordinateSystems=[]}function wi(a){this._api=a;this._timelineOptions=[];this._mediaList=[];this._currentMediaIndices=[]}function pr(a,b,c){var d=[],e=[],f,g=a.timeline;if(a.baseOption)var h=
a.baseOption;if(g||a.options)h=h||{},d=(a.options||[]).slice();a.media&&(h=h||{},Wf(a.media,function(k){k&&k.option&&(k.query?e.push(k):f||(f=k))}));h||(h=a);h.timeline||(h.timeline=g);Wf([h].concat(d).concat(C(e,function(k){return k.option})),function(k){Wf(b,function(l){l(k,c)})});return{baseOption:h,timelineOptions:d,mediaDefault:f,mediaList:e}}function qr(a,b,c){var d={width:b,height:c,aspectratio:b/c},e=!0;w(a,function(f,g){var h=g.match(rr);h&&h[1]&&h[2]&&(g=h[1],h=h[2].toLowerCase(),h=d[h],
("min"===g?h>=f:"max"===g?h<=f:h===f)||(e=!1))});return e}function sr(a,b){return a.join(",")===b.join(",")}function tr(a,b){b=b||{};Wf(b,function(c,d){if(null!=c){var e=a[d];aa.hasClass(d)?(c=Ka(c),e=Ka(e),c=Jh(e,c),a[d]=Xf(c,function(f){return f.option&&f.exist?Mm(f.exist,f.option,!0):f.exist||f.option})):a[d]=Mm(e,c,!0)}})}function xi(a){var b=a&&a.itemStyle;if(b)for(var c=0,d=Nm.length;c<d;c++){var e=Nm[c],f=b.normal,g=b.emphasis;f&&f[e]&&(a[e]=a[e]||{},a[e].normal?T(a[e].normal,f[e]):a[e].normal=
f[e],f[e]=null);g&&g[e]&&(a[e]=a[e]||{},a[e].emphasis?T(a[e].emphasis,g[e]):a[e].emphasis=g[e],g[e]=null)}}function wa(a,b,c){if(a&&a[b]&&(a[b].normal||a[b].emphasis)){var d=a[b].normal,e=a[b].emphasis;d&&(c?(a[b].normal=a[b].emphasis=null,J(a[b],d)):a[b]=d);e&&(a.emphasis=a.emphasis||{},a.emphasis[b]=e)}}function ve(a){wa(a,"itemStyle");wa(a,"lineStyle");wa(a,"areaStyle");wa(a,"label");wa(a,"labelLine");wa(a,"upperLabel");wa(a,"edgeLabel")}function ja(a,b){a=we(a)&&a[b];var c=we(a)&&a.textStyle;
if(c)for(var d=0,e=Om.length;d<e;d++)b=Om[d],c.hasOwnProperty(b)&&(a[b]=c[b])}function Sa(a){a&&(ve(a),ja(a,"label"),a.emphasis&&ja(a.emphasis,"label"))}function ur(a){if(we(a)){xi(a);ve(a);ja(a,"label");ja(a,"upperLabel");ja(a,"edgeLabel");a.emphasis&&(ja(a.emphasis,"label"),ja(a.emphasis,"upperLabel"),ja(a.emphasis,"edgeLabel"));var b=a.markPoint;b&&(xi(b),Sa(b));if(b=a.markLine)xi(b),Sa(b);(b=a.markArea)&&Sa(b);var c=a.data;if("graph"===a.type){c=c||a.nodes;var d=a.links||a.edges;if(d&&!lb(d))for(b=
0;b<d.length;b++)Sa(d[b]);w(a.categories,function(e){ve(e)})}if(c&&!lb(c))for(b=0;b<c.length;b++)Sa(c[b]);if((b=a.markPoint)&&b.data)for(c=b.data,b=0;b<c.length;b++)Sa(c[b]);if((b=a.markLine)&&b.data)for(c=b.data,b=0;b<c.length;b++)E(c[b])?(Sa(c[b][0]),Sa(c[b][1])):Sa(c[b]);"gauge"===a.type?(ja(a,"axisLabel"),ja(a,"title"),ja(a,"detail")):"treemap"===a.type?(wa(a.breadcrumb,"itemStyle"),w(a.levels,function(e){ve(e)})):"tree"===a.type&&ve(a.leaves)}}function Rb(a){return E(a)?a:a?[a]:[]}function Pm(a){return(E(a)?
a[0]:a)||{}}function Qm(a){w(vr,function(b){b[0]in a&&!(b[1]in a)&&(a[b[1]]=a[b[0]])})}function wr(a){w(a,function(b,c){var d=[],e=[NaN,NaN],f=b.data,g=b.isStackedByIndex,h=f.map([b.stackResultDimension,b.stackedOverDimension],function(k,l,m){k=f.get(b.stackedDimension,m);if(isNaN(k))return e;var n,p;g?p=f.getRawIndex(m):n=f.get(b.stackedByDimension,m);m=NaN;for(l=c-1;0<=l;l--){var q=a[l];g||(p=q.data.rawIndexOf(q.stackedByDimension,n));if(0<=p&&(q=q.data.getByRawIndex(q.stackResultDimension,p),0<=
k&&0<q||0>=k&&0>q)){k+=q;m=q;break}}d[0]=k;d[1]=m;return d});f.hostModel.setData(h);b.data=h})}function Rm(a,b){jb.isInstance(a)||(a=jb.seriesDataToSource(a));this._source=a;var c=this._data=a.data,d=a.sourceFormat;"typedArray"===d&&(this._offset=0,this._dimSize=b,this._data=c);P(this,xr["arrayRows"===d?d+"_"+a.seriesLayoutBy:d])}function Sm(){return this._data.length}function Tm(a){return this._data[a]}function yi(a){for(var b=0;b<a.length;b++)this._data.push(a[b])}function zi(a,b,c,d){return null!=
c?a[c]:a}function Um(a,b,c,d){return Ai(a[d],this._dimensionInfos[b])}function Ai(a,b){var c=b&&b.type;if("ordinal"===c)return(b=b&&b.ordinalMeta)?b.parseAndCollect(a):a;"time"===c&&"number"!==typeof a&&null!=a&&"-"!==a&&(a=+Sf(a));return null==a||""===a?NaN:+a}function Uc(a,b,c){if(a){var d=a.getRawDataItem(b);if(null!=d){var e=a.getProvider().getSource().sourceFormat;if(a=a.getDimensionInfo(c)){var f=a.name;var g=a.index}return yr[e](d,b,g,f)}}}function zr(a,b,c){if(a){var d=a.getProvider().getSource().sourceFormat;
if("original"===d||"objectRows"===d)if(a=a.getRawDataItem(b),"original"!==d||O(a)||(a=null),a)return a[c]}}function Fd(a){a=a||{};this._reset=a.reset;this._plan=a.plan;this._count=a.count;this._onDirty=a.onDirty;this._dirty=!0;this.context}function Vm(a,b,c,d,e,f){Wm.reset(c,d,e,f);a._callingProgress=b;a._callingProgress({start:c,end:d,count:d-c,next:Wm.next},a.context)}function Ar(a,b){a._dueIndex=a._outputDueEnd=a._dueEnd=0;a._settedOutputEnd=null;var c;if(!b&&a._reset){if((c=a._reset(a.context))&&
c.progress){var d=c.forceFirstProgress;c=c.progress}E(c)&&!c.length&&(c=null)}a._progress=c;a._modBy=a._modDataCount=null;(a=a._downstream)&&a.dirty();return d}function Xm(a){var b=a.name;Kh(a)||(a.name=Br(a)||b)}function Br(a){var b=a.getRawData();a=b.mapDimension("seriesName",!0);var c=[];w(a,function(d){d=b.getDimensionInfo(d);d.displayName&&c.push(d.displayName)});return c.join(" ")}function Cr(a){return a.model.getRawData().count()}function Dr(a){a=a.model;a.setData(a.getRawData().cloneShallow());
return Er}function Er(a,b){a.end>b.outputData.count()&&b.model.getRawData().cloneShallow(b.outputData)}function Ym(a,b){w(a.CHANGABLE_METHODS,function(c){a.wrapMethod(c,M(Fr,b))})}function Fr(a){(a=Bi(a))&&a.setOutputEnd(this.count())}function Bi(a){var b=(a.ecModel||{}).scheduler;if(b=b&&b.getPipeline(a.uid)){if(b=b.currentTask){var c=b.agentStubMap;c&&(b=c.get(a.uid))}return b}}function Ga(){this.group=new L;this.uid=Rf("viewChart");this.renderTask=new Fd({plan:Gr,reset:Hr});this.renderTask.context=
{view:this}}function Ci(a,b){if(a&&(a.trigger(b),"group"===a.type))for(var c=0;c<a.childCount();c++)Ci(a.childAt(c),b)}function Zm(a,b,c){b=pf(a,b);null!=b?w(Ka(b),function(d){Ci(a.getItemGraphicEl(d),c)}):a.eachItemGraphicEl(function(d){Ci(d,c)})}function Gr(a){return Ir(a.model)}function Hr(a){var b=a.model,c=a.ecModel,d=a.api,e=a.payload,f=b.pipelineContext.progressiveRender;a=a.view;var g=e&&$m(e).updateMethod;f=f?"incrementalPrepareRender":g&&a[g]?g:"render";if("render"!==f)a[f](b,c,d,e);return Jr[f]}
function Di(a,b,c){function d(){g=(new Date).getTime();h=null;a.apply(l,m||[])}var e,f=0,g=0,h=null,k,l,m,n;b=b||0;var p=function(){e=(new Date).getTime();l=this;m=arguments;var q=n||b,r=n||c;n=null;k=e-(r?f:g)-q;clearTimeout(h);r?h=setTimeout(d,q):0<=k?d():h=setTimeout(d,-k);f=e};p.clear=function(){h&&(clearTimeout(h),h=null)};p.debounceNextCall=function(q){n=q};return p}function Ei(a,b,c,d){var e=a[b];if(e){var f=e["\x00__throttleOriginMethod"]||e,g=e["\x00__throttleType"];if(e["\x00__throttleRate"]!==
c||g!==d){if(null==c||!d)return a[b]=f;e=a[b]=Di(f,c,"debounce"===d);e["\x00__throttleOriginMethod"]=f;e["\x00__throttleType"]=d;e["\x00__throttleRate"]=c}return e}}function an(a,b){var c=a[b];c&&c["\x00__throttleOriginMethod"]&&(a[b]=c["\x00__throttleOriginMethod"])}function Yf(a,b,c,d){this.ecInstance=a;this.api=b;this.unfinished;c=this._dataProcessorHandlers=c.slice();d=this._visualHandlers=d.slice();this._allHandlers=c.concat(d);this._stageTaskMap=Q()}function bn(a,b,c,d,e){e=e||{};var f;w(b,
function(g,h){if(!e.visualType||e.visualType===g.visualType){var k=a._stageTaskMap.get(g.uid);h=k.seriesTaskMap;if(k=k.overallTask){var l;h=k.agentStubMap;h.each(function(n){!e.setDirty||e.dirtyMap&&!e.dirtyMap.get(n.__pipeline.id)||(n.dirty(),l=!0)});l&&k.dirty();cn(k,d);var m=a.getPerformArgs(k,e.block);h.each(function(n){n.perform(m)});f|=k.perform(m)}else h&&h.each(function(n,p){!e.setDirty||e.dirtyMap&&!e.dirtyMap.get(n.__pipeline.id)||n.dirty();p=a.getPerformArgs(n,e.block);p.skip=!g.performRawSeries&&
c.isSeriesFiltered(n.context.model);cn(n,d);f|=n.perform(p)})}});a.unfinished|=f}function Kr(a,b,c,d,e){function f(l){var m=l.uid;m=g.get(m)||g.set(m,new Fd({plan:Lr,reset:Mr,count:Nr}));m.context={model:l,ecModel:d,api:e,useClearVisual:b.isVisual&&!b.isLayout,plan:b.plan,reset:b.reset,scheduler:a};Zf(a,l,m)}var g=c.seriesTaskMap||(c.seriesTaskMap=Q());c=b.seriesType;var h=b.getTargetSeries;b.createOnAllSeries?d.eachRawSeries(f):c?d.eachRawSeriesByType(c,f):h&&h(d,e).each(f);var k=a._pipelineMap;
g.each(function(l,m){k.get(m)||(l.dispose(),g.removeKey(m))})}function Or(a,b,c,d,e){function f(p){var q=p.uid,r=h.get(q);r||(r=h.set(q,new Fd({reset:Pr,onDirty:Qr})),g.dirty());r.context={model:p,overallProgress:l,modifyOutputEnd:m};r.agent=g;r.__block=l;Zf(a,p,r)}var g=c.overallTask=c.overallTask||new Fd({reset:Rr});g.context={ecModel:d,api:e,overallReset:b.overallReset,scheduler:a};var h=g.agentStubMap=g.agentStubMap||Q();c=b.seriesType;var k=b.getTargetSeries,l=!0,m=b.modifyOutputEnd;c?d.eachRawSeriesByType(c,
f):k?k(d,e).each(f):(l=!1,w(d.getSeries(),f));var n=a._pipelineMap;h.each(function(p,q){n.get(q)||(p.dispose(),g.dirty(),h.removeKey(q))})}function Rr(a){a.overallReset(a.ecModel,a.api,a.payload)}function Pr(a,b){return a.overallProgress&&Sr}function Sr(){this.agent.dirty();this.getDownstream().dirty()}function Qr(){this.agent&&this.agent.dirty()}function Lr(a){return a.plan&&a.plan(a.model,a.ecModel,a.api,a.payload)}function Mr(a){a.useClearVisual&&a.data.clearAllVisual();a=a.resetDefines=Ka(a.reset(a.model,
a.ecModel,a.api,a.payload));return 1<a.length?C(a,function(b,c){return dn(c)}):Tr}function dn(a){return function(b,c){var d=c.data;if((c=c.resetDefines[a])&&c.dataEach)for(var e=b.start;e<b.end;e++)c.dataEach(d,e);else c&&c.progress&&c.progress(b,d)}}function Nr(a){return a.data.count()}function Zf(a,b,c){a=a._pipelineMap.get(b.uid);!a.head&&(a.head=c);a.tail&&a.tail.pipe(c);a.tail=c;c.__idxInPipeline=a.count++;c.__pipeline=a}function en(a,b){for(var c in b.prototype)a[c]=Yb}function Gd(a){return function(b,
c,d){b=b&&b.toLowerCase();tb.prototype[a].call(this,b,c,d)}}function xe(){this._$handlers={}}function ye(a,b,c){function d(e,f){return e.__prio-f.__prio}c=c||{};"string"===typeof b&&(b=$f[b]);this._dom=a;a=this._zr=Hh(a,{renderer:c.renderer||"canvas",devicePixelRatio:c.devicePixelRatio,width:c.width,height:c.height});this._throttledZrFlush=Di(K(a.flush,a),17);(b=U(b))&&fn(b,!0);this._theme=b;this._chartsViews=[];this._chartsMap={};this._componentsViews=[];this._componentsMap={};this._coordSysMgr=
new sb;b=this._api=Ur(this);hf(ag,d);hf(Fi,d);this._scheduler=new Yf(this,b,Fi,ag);this._$handlers={};this._messageCenter=new xe;this._initEvents();this.resize=K(this.resize,this);this._pendingActions=[];a.animation.on("frame",this._onframe,this);Vr(a,this);bh(this)}function gn(a,b,c){var d=this._model,e=this._coordSysMgr.getCoordinateSystems(),f;b=Lh(d,b);for(var g=0;g<e.length;g++){var h=e[g];if(h[a]&&null!=(f=h[a](d,b,c)))return f}}function ze(a){var b=a._model,c=a._scheduler;c.restorePipelines(b);
c.prepareStageTasks();hn(a,"component",b,c);hn(a,"chart",b,c);c.plan()}function jn(a,b,c,d,e){function f(l){l&&l.__alive&&l[b]&&l[b](l.__model,g,a._api,c)}var g=a._model;if(d){var h={};h[d+"Id"]=c[d+"Id"];h[d+"Index"]=c[d+"Index"];h[d+"Name"]=c[d+"Name"];h={mainType:d,query:h};e&&(h.subType=e);var k=c.excludeSeriesId;null!=k&&(k=Q(Ka(k)));g&&g.eachComponent(h,function(l){k&&null!=k.get(l.id)||f(a["series"===d?"_chartsMap":"_componentsMap"][l.__viewId])},a)}else pa(a._componentsViews.concat(a._chartsViews),
f)}function kn(a,b){var c=a._chartsMap,d=a._scheduler;b.eachSeries(function(e){d.updateStreamModes(e,c[e.__viewId])})}function ln(a,b){var c=a.type,d=a.escapeConnect,e=bg[c],f=e.actionInfo,g=(f.update||"update").split(":"),h=g.pop();g=null!=g[0]&&mn(g[0]);this.__flagInMainProcess=!0;var k=[a],l=!1;a.batch&&(l=!0,k=C(a.batch,function(q){q=J(P({},q),a);q.batch=null;return q}));var m=[],n="highlight"===c||"downplay"===c;pa(k,function(q){p=(p=e.action(q,this._model,this._api))||P({},q);p.type=f.event||
p.type;m.push(p);n?jn(this,h,q,"series"):g&&jn(this,h,q,g.main,g.sub)},this);"none"===h||n||g||(this.__optionUpdated?(ze(this),pc.update.call(this,a),this.__optionUpdated=!1):pc[h].call(this,a));var p=l?{type:f.event||c,escapeConnect:d,batch:m}:m[0];this.__flagInMainProcess=!1;!b&&this._messageCenter.trigger(p.type,p)}function cg(a){for(var b=this._pendingActions;b.length;){var c=b.shift();ln.call(this,c,a)}}function Vr(a,b){a.on("rendered",function(){b.trigger("rendered");!a.animation.isFinished()||
b.__optionUpdated||b._scheduler.unfinished||b._pendingActions.length||b.trigger("finished")})}function hn(a,b,c,d){function e(m){var n="_ec_"+m.id+"_"+m.type,p=h[n];p||(p=mn(m.type),p=new (f?Sb.getClass(p.main,p.sub):Ga.getClass(p.sub)),p.init(c,l),h[n]=p,g.push(p),k.add(p.group));m.__viewId=p.__id=n;p.__alive=!0;p.__model=m;p.group.__ecComponentInfo={mainType:m.mainType,index:m.componentIndex};!f&&d.prepareView(p,m,c,l)}var f="component"===b,g=f?a._componentsViews:a._chartsViews,h=f?a._componentsMap:
a._chartsMap,k=a._zr,l=a._api;for(a=0;a<g.length;a++)g[a].__alive=!1;f?c.eachComponent(function(m,n){"series"!==m&&e(n)}):c.eachSeries(e);for(a=0;a<g.length;)b=g[a],b.__alive?a++:(!f&&b.renderTask.dispose(),k.remove(b.group),b.dispose(c,l),g.splice(a,1),delete h[b.__id],b.__id=b.group.__ecComponentInfo=null)}function Gi(a){a.clearColorPalette();a.eachSeries(function(b){b.clearColorPalette()})}function nn(a,b,c,d){Wr(a,b,c,d);pa(a._chartsViews,function(e){e.__alive=!1});Hi(a,b,c,d);pa(a._chartsViews,
function(e){e.__alive||e.remove(b,c)})}function Wr(a,b,c,d,e){pa(e||a._componentsViews,function(f){var g=f.__model;f.render(g,b,c,d);on(g,f)})}function Hi(a,b,c,d,e){var f=a._scheduler,g;b.eachSeries(function(h){var k=a._chartsMap[h.__viewId];k.__alive=!0;var l=k.renderTask;f.updatePayload(l,d);e&&e.get(h.uid)&&l.dirty();g|=l.perform(f.getPerformArgs(l));k.group.silent=!!h.get("silent");on(h,k);Xr(h,k)});f.unfinished|=g;Yr(a._zr,b);Zr(a._zr.dom,b)}function Ii(a,b){pa(pn,function(c){c(a,b)})}function Yr(a,
b){a=a.storage;var c=0;a.traverse(function(d){d.isGroup||c++});c>b.get("hoverLayerThreshold")&&!R.node&&a.traverse(function(d){d.isGroup||(d.useHoverLayer=!0)})}function Xr(a,b){var c=a.get("blendMode")||null;b.group.traverse(function(d){d.isGroup||d.style.blend!==c&&d.setStyle("blend",c);d.eachPendingDisplayable&&d.eachPendingDisplayable(function(e){e.setStyle("blend",c)})})}function on(a,b){var c=a.get("z"),d=a.get("zlevel");b.group.traverse(function(e){"group"!==e.type&&(null!=c&&(e.z=c),null!=
d&&(e.zlevel=d))})}function Ur(a){var b=a._coordSysMgr;return P(new Lm(a),{getCoordinateSystems:K(b.getCoordinateSystems,b),getComponentByElement:function(c){for(;c;){var d=c.__ecComponentInfo;if(null!=d)return a._model.getComponent(d.mainType,d.index);c=c.parent}}})}function $r(a){function b(c,d){for(var e=0;e<c.length;e++)c[e].__connectUpdateStatus=d}pa(dg,function(c,d){a._messageCenter.on(d,function(e){if(eg[a.group]&&0!==a.__connectUpdateStatus&&(!e||!e.escapeConnect)){var f=a.makeActionFromEvent(e),
g=[];pa(Vc,function(h){h!==a&&h.group===a.group&&g.push(h)});b(g,0);pa(g,function(h){1!==h.__connectUpdateStatus&&h.dispatchAction(f)});b(g,2)}})})}function qn(a){eg[a]=!1}function Ji(a){var b=Vc,c=Ki;a=a.getAttribute?a.getAttribute(c):a[c];return b[a]}function Tb(a){rn.push(a)}function Ub(a,b){Li(Fi,a,b,1E3)}function Ma(a,b,c){"function"===typeof b&&(c=b,b="");var d=Ae(a)?a.type:[a,a={event:b}][0];a.event=(a.event||d).toLowerCase();b=a.event;as(sn.test(d)&&sn.test(b));bg[d]||(bg[d]={action:c,actionInfo:a});
dg[b]=d}function Wc(a,b){Li(ag,a,b,1E3,"layout")}function qc(a,b){Li(ag,a,b,3E3,"visual")}function Li(a,b,c,d,e){if(bs(b)||Ae(b))c=b,b=d;d=Yf.wrapStageHandler(c,e);d.__prio=b;d.__raw=c;a.push(d);return d}function Vb(a){return aa.extend(a)}function ub(a){return Sb.extend(a)}function Mi(a){return Xc.extend(a)}function Ni(a){return Ga.extend(a)}function tn(a){return a}function Oi(a,b,c,d,e){this._old=a;this._new=b;this._oldKeyGetter=c||tn;this._newKeyGetter=d||tn;this.context=e}function un(a,b,c,d,e){for(var f=
0;f<a.length;f++){var g="_ec_"+e[d](a[f],f),h=b[g];null==h?(c.push(g),b[g]=f):(h.length||(b[g]=h=[h]),h.push(f))}}function cs(a){var b={},c=b.encode={},d=Q(),e=[],f=[];w(a.dimensions,function(l){var m=a.getDimensionInfo(l),n=m.coordDim;if(n){var p=c[n];c.hasOwnProperty(n)||(p=c[n]=[]);p[m.coordDimIndex]=l;m.isExtraCoord||(d.set(n,1),ds(m.type)&&(e[0]=l));m.defaultTooltip&&f.push(l)}vn.each(function(q,r){q=c[r];c.hasOwnProperty(r)||(q=c[r]=[]);r=m.otherDims[r];null!=r&&!1!==r&&(q[r]=m.name)})});var g=
[],h={};d.each(function(l,m){l=c[m];h[m]=l[0];g=g.concat(l)});b.dataDimsOnCoord=g;b.encodeFirstDimNotExtra=h;var k=c.label;k&&k.length&&(e=k.slice());(k=c.tooltip)&&k.length?f=k.slice():f.length||(f=e.slice());c.defaultedLabel=e;c.defaultedTooltip=f;return b}function ds(a){return!("ordinal"===a||"time"===a)}function wn(a,b){w(es.concat(b.__wrappedMethods||[]),function(c){b.hasOwnProperty(c)&&(a[c]=b[c])});a.__wrappedMethods=b.__wrappedMethods;w(fs,function(c){a[c]=U(b[c])});a._calculationInfo=P(b._calculationInfo)}
function gs(a){var b=a._invertedIndicesMap;w(b,function(c,d){if(c=a._dimensionInfos[d].ordinalMeta){c=b[d]=new Be(c.categories.length);for(var e=0;e<c.length;e++)c[e]=NaN;for(e=0;e<a._count;e++)c[a.get(d,e)]=e}})}function xn(a,b,c){if(null!=b){var d=a._chunkSize;b=a.dimensions[b];var e=a._storage[b][Math.floor(c/d)];if(e){var f=e[c%d];(a=a._dimensionInfos[b].ordinalMeta)&&a.categories.length&&(f=a.categories[f])}}return f}function Ce(a){return a}function De(a){return a<this._count&&0<=a?this._indices[a]:
-1}function Pi(a,b){var c=a._idList[b];null==c&&(c=xn(a,a._idDimIdx,b));null==c&&(c="e\x00\x00"+b);return c}function Qi(a){E(a)||(a=[a]);return a}function yn(a,b){var c=a.dimensions,d=new Ta(C(c,a.getDimensionInfo,a),a.hostModel);wn(d,a);var e=d._storage={};a=a._storage;for(var f=0;f<c.length;f++){var g=c[f];if(a[g])if(0<=V(b,g)){for(var h=g,k=a[g],l=Array(k.length),m=0;m<k.length;m++){var n=m;var p=k[m];var q=p.constructor;p=q===Array?p.slice():new q(p);l[n]=p}e[h]=l;d._rawExtent[g]=[Infinity,-Infinity];
d._extent[g]=null}else e[g]=a[g]}return d}function zn(a,b,c){function d(t,u,v){null!=vn.get(u)?t.otherDims[u]=v:(t.coordDim=u,t.coordDimIndex=v,h.set(u,!0))}jb.isInstance(b)||(b=jb.seriesDataToSource(b));c=c||{};a=(a||[]).slice();for(var e=(c.dimsDef||[]).slice(),f=Q(c.encodeDef),g=Q(),h=Q(),k=[],l=hs(b,a,e,c.dimCount),m=0;m<l;m++){var n=e[m]=P({},O(e[m])?e[m]:{name:e[m]}),p=n.name,q=k[m]={otherDims:{}};null!=p&&null==g.get(p)&&(q.name=q.displayName=p,g.set(p,m));null!=n.type&&(q.type=n.type);null!=
n.displayName&&(q.displayName=n.displayName)}f.each(function(t,u){t=Ka(t).slice();var v=f.set(u,[]);w(t,function(x,y){va(x)&&(x=g.get(x));null!=x&&x<l&&(v[y]=x,d(k[x],u,y))})});var r=0;w(a,function(t,u){if(va(t)){var v=t;t={}}else{v=t.name;u=t.ordinalMeta;t.ordinalMeta=null;t=U(t);t.ordinalMeta=u;var x=t.dimsDef;var y=t.otherDims;t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}u=Ka(f.get(v));if(!u.length)for(var z=0;z<(x&&x.length||1);z++){for(;r<k.length&&null!=k[r].coordDim;)r++;r<
k.length&&u.push(r++)}w(u,function(A,B){A=k[A];d(J(A,t),v,B);null==A.name&&x&&(B=x[B],!O(B)&&(B={name:B}),A.name=A.displayName=B.name,A.defaultTooltip=B.defaultTooltip);y&&J(A.otherDims,y)})});a=c.generateCoord;c=c.generateCoordCount;e=null!=c;c=a?c||1:0;m=a||"value";for(n=0;n<l;n++){q=k[n]=k[n]||{};if(null==q.coordDim){q.coordDim=An(m,h,e);q.coordDimIndex=0;if(!a||0>=c)q.isExtraCoord=!0;c--}null==q.name&&(q.name=An(q.coordDim,g));null==q.type&&Jm(b.data,b.sourceFormat,b.seriesLayoutBy,b.dimensionsDefine,
b.startIndex,n)&&(q.type="ordinal")}return k}function hs(a,b,c,d){var e=Math.max(a.dimensionsDetectCount||1,b.length,c.length,d||0);w(b,function(f){(f=f.dimsDef)&&(e=Math.max(e,f.length))});return e}function An(a,b,c){if(c||null!=b.get(a)){for(c=0;null!=b.get(a+c);)c++;a+=c}b.set(a,!0);return a}function Bn(a,b,c){c=c||{};var d=c.byIndex,e=c.stackedCoordDimension,f=!(!a||!a.get("stack")),g,h;w(b,function(p,q){va(p)&&(b[q]=p={name:p});f&&!p.isExtraCoord&&(d||g||!p.ordinalMeta||(g=p),h||"ordinal"===
p.type||"time"===p.type||e&&e!==p.coordDim||(h=p))});!h||d||g||(d=!0);if(h){var k="__\x00ecstackresult";var l="__\x00ecstackedover";g&&(g.createInvertedIndices=!0);var m=h.coordDim;a=h.type;var n=0;w(b,function(p){p.coordDim===m&&n++});b.push({name:k,coordDim:m,coordDimIndex:n,type:a,isExtraCoord:!0,isCalculationCoord:!0});n++;b.push({name:l,coordDim:l,coordDimIndex:n,type:a,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:h&&h.name,stackedByDimension:g&&g.name,isStackedByIndex:d,stackedOverDimension:l,
stackResultDimension:k}}function rc(a,b){return!!b&&b===a.getCalculationInfo("stackedDimension")}function Cn(a,b){return rc(a,b)?a.getCalculationInfo("stackResultDimension"):b}function Ri(a,b,c){c=c||{};jb.isInstance(a)||(a=jb.seriesDataToSource(a));var d=b.get("coordinateSystem");d=sb.get(d);var e=Fm(b),f;e&&(f=C(e.coordSysDims,function(k){var l={name:k};if(k=e.axisMap.get(k))k=k.get("type"),l.type="category"===k?"ordinal":"time"===k?"time":"float";return l}));f||(f=d&&(d.getDimensionsInfo?d.getDimensionsInfo():
d.dimensions.slice())||["x","y"]);f=Si(a,{coordDimensions:f,generateCoord:c.generateCoord});var g,h;e&&w(f,function(k,l){var m=e.categoryAxisMap.get(k.coordDim);m&&(null==g&&(g=l),k.ordinalMeta=m.getOrdinalMeta());null!=k.otherDims.itemName&&(h=!0)});h||null==g||(f[g].otherDims.itemName=0);c=Bn(b,f);b=new Ta(f,b);b.setCalculationInfo(c);c=null!=g&&is(a)?function(k,l,m,n){return n===g?m:this.defaultDimValueGetter(k,l,m,n)}:null;b.hasItemOption=!1;b.initData(a,null,c);return b}function is(a){if("original"===
a.sourceFormat){a=a.data||[];for(var b=0;b<a.length&&null==a[b];)b++;a=a[b];return null!=a&&!E(nf(a))}}function ka(a){this._setting=a||{};this._extent=[Infinity,-Infinity];this._interval=0;this.init&&this.init.apply(this,arguments)}function Ee(a){this.categories=a.categories||[];this._needCollect=a.needCollect;this._deduplication=a.deduplication}function js(a){return O(a)&&null!=a.value?a.value:a+""}function Dn(a,b){!isFinite(a[0])&&(a[0]=b[0]);!isFinite(a[1])&&(a[1]=b[1]);a[0]=Math.max(Math.min(a[0],
b[1]),b[0]);a[1]=Math.max(Math.min(a[1],b[1]),b[0]);a[0]>a[1]&&(a[0]=a[1])}function Ti(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function En(a,b){var c=[];b.eachSeriesByType(a,function(d){!d.coordinateSystem||"cartesian2d"!==d.coordinateSystem.type||d.pipelineContext&&d.pipelineContext.large||c.push(d)});return c}function Ui(a){var b=[];w(a,function(c){var d=c.getData(),e=c.coordinateSystem.getBaseAxis(),f=e.getExtent();d="category"===e.type?e.getBandWidth():Math.abs(f[1]-f[0])/d.count();
f=F(c.get("barWidth"),d);var g=F(c.get("barMaxWidth"),d),h=c.get("barGap"),k=c.get("barCategoryGap");b.push({bandWidth:d,barWidth:f,barMaxWidth:g,barGap:h,barCategoryGap:k,axisKey:e.dim+e.index,stackId:Ti(c)})});return ks(b)}function ks(a){var b={};w(a,function(d,e){var f=d.axisKey;e=d.bandWidth;e=b[f]||{bandWidth:e,remainedWidth:e,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}};var g=e.stacks;b[f]=e;f=d.stackId;g[f]||e.autoWidthCount++;g[f]=g[f]||{width:0,maxWidth:0};var h=d.barWidth;h&&
!g[f].width&&(g[f].width=h,h=Math.min(e.remainedWidth,h),e.remainedWidth-=h);(h=d.barMaxWidth)&&(g[f].maxWidth=h);g=d.barGap;null!=g&&(e.gap=g);d=d.barCategoryGap;null!=d&&(e.categoryGap=d)});var c={};w(b,function(d,e){c[e]={};var f=d.stacks,g=F(d.categoryGap,d.bandWidth),h=F(d.gap,1),k=d.remainedWidth,l=d.autoWidthCount,m=(k-g)/(l+(l-1)*h);m=Math.max(m,0);w(f,function(r,t){(t=r.maxWidth)&&t<m&&(t=Math.min(t,k),r.width&&(t=Math.min(t,r.width)),k-=t,r.width=t,l--)});m=(k-g)/(l+(l-1)*h);m=Math.max(m,
0);var n=0,p;w(f,function(r,t){r.width||(r.width=m);p=r;n+=r.width*(1+h)});p&&(n-=p.width*h);var q=-n/2;w(f,function(r,t){c[e][t]=c[e][t]||{offset:q,width:r.width};q+=r.width*(1+h)})});return c}function Fn(a,b,c){if(a&&b)return a=a[b.dim+b.index],null!=a&&null!=c&&(a=a[Ti(c)]),a}function Gn(a,b,c){return 0<=V(a.getAxesOnZeroOf(),b)||c?b.toGlobalCoord(b.dataToCoord(0)):b.getGlobalExtent()[0]}function Hn(a,b){var c=a.type,d=b.getMin(),e=b.getMax(),f=null!=d,g=null!=e,h=a.getExtent();if("ordinal"===
c)var k=b.getCategories().length;else{var l=b.get("boundaryGap");E(l)||(l=[l||0,l||0]);"boolean"===typeof l[0]&&(l=[0,0]);l[0]=F(l[0],1);l[1]=F(l[1],1);var m=h[1]-h[0]||Math.abs(h[0])}null==d&&(d="ordinal"===c?k?0:NaN:h[0]-l[0]*m);null==e&&(e="ordinal"===c?k?k-1:NaN:h[1]+l[1]*m);"dataMin"===d?d=h[0]:"function"===typeof d&&(d=d({min:h[0],max:h[1]}));"dataMax"===e?e=h[1]:"function"===typeof e&&(e=e({min:h[0],max:h[1]}));null!=d&&isFinite(d)||(d=NaN);null!=e&&isFinite(e)||(e=NaN);a.setBlank($d(d)||$d(e)||
"ordinal"===c&&!a.getOrdinalMeta().categories.length);b.getNeedCrossZero()&&(0<d&&0<e&&!f&&(d=0),0>d&&0>e&&!g&&(e=0));if((a=b.ecModel)&&"time"===c){c=En("bar",a);var n;w(c,function(p){n|=p.getBaseAxis()===b.axis});n&&(c=Ui(c),e=ls(d,e,b,c),d=e.min,e=e.max)}return[d,e]}function ls(a,b,c,d){var e=c.axis.getExtent();e=e[1]-e[0];c=Fn(d,c.axis);if(void 0===c)return{min:a,max:b};var f=Infinity;w(c,function(h){f=Math.min(h.offset,f)});var g=-Infinity;w(c,function(h){g=Math.max(h.offset+h.width,g)});f=Math.abs(f);
g=Math.abs(g);c=f+g;d=b-a;e=d/(1-(f+g)/e)-d;return{min:a-f/c*e,max:b+g/c*e}}function fg(a,b){var c=Hn(a,b),d=null!=b.getMin(),e=null!=b.getMax(),f=b.get("splitNumber");"log"===a.type&&(a.base=b.get("logBase"));var g=a.type;a.setExtent(c[0],c[1]);a.niceExtent({splitNumber:f,fixMin:d,fixMax:e,minInterval:"interval"===g||"time"===g?b.get("minInterval"):null,maxInterval:"interval"===g||"time"===g?b.get("maxInterval"):null});b=b.get("interval");null!=b&&a.setInterval&&a.setInterval(b)}function In(a,b){if(b=
b||a.get("type"))switch(b){case "category":return new Vi(a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),[Infinity,-Infinity]);case "value":return new vb;default:return(ka.getClass(b)||vb).create(a)}}function Fe(a){var b=a.getLabelModel().get("formatter"),c="category"===a.type?a.scale.getExtent()[0]:null;return"string"===typeof b?b=function(d){return function(e){return d.replace("{value}",null!=e?e:"")}}(b):"function"===typeof b?function(d,e){null!=c&&(e=d-c);return b(Wi(a,d),e)}:function(d){return a.scale.getLabel(d)}}
function Wi(a,b){return"category"===a.type?a.scale.getLabel(b):b}function ms(a,b){if("image"!==this.type){var c=this.style,d=this.shape;d&&"line"===d.symbolType?c.stroke=a:this.__isEmptyBrush?(c.stroke=a,c.fill=b||"#fff"):(c.fill&&(c.fill=a),c.stroke&&(c.stroke=a));this.dirty(!1)}}function Yc(a,b,c,d,e,f,g){var h=0===a.indexOf("empty");h&&(a=a.substr(5,1).toLowerCase()+a.substr(6));a=0===a.indexOf("image://")?hm(a.slice(8),new ca(b,c,d,e),g?"center":"cover"):0===a.indexOf("path://")?mi(a.slice(7),
{},new ca(b,c,d,e),g?"center":"cover"):new ns({shape:{symbolType:a,x:b,y:c,width:d,height:e}});a.__isEmptyBrush=h;a.setColor=ms;a.setColor(f);return a}function Jn(a,b,c){var d=0,e=a[0];if(!e)return!1;for(var f=1;f<a.length;f++){var g=a[f];d+=Ib(e[0],e[1],g[0],g[1],b,c);e=g}a=a[0];1E-8>Math.abs(e[0]-a[0])&&1E-8>Math.abs(e[1]-a[1])||(d+=Ib(e[0],e[1],a[0],a[1],b,c));return 0!==d}function Xi(a,b,c){this.name=a;this.geometries=b;c?c=[c[0],c[1]]:(a=this.getBoundingRect(),c=[a.x+a.width/2,a.y+a.height/2]);
this.center=c}function os(a){if(!a.UTF8Encoding)return a;var b=a.UTF8Scale;null==b&&(b=1024);for(var c=a.features,d=0;d<c.length;d++)for(var e=c[d].geometry,f=e.coordinates,g=e.encodeOffsets,h=0;h<f.length;h++){var k=f[h];if("Polygon"===e.type)f[h]=Kn(k,g[h],b);else if("MultiPolygon"===e.type)for(var l=0;l<k.length;l++)k[l]=Kn(k[l],g[h][l],b)}a.UTF8Encoding=!1;return a}function Kn(a,b,c){var d=[],e=b[0];b=b[1];for(var f=0;f<a.length;f+=2){var g=a.charCodeAt(f)-64,h=a.charCodeAt(f+1)-64;g=g>>1^-(g&
1);h=h>>1^-(h&1);g+=e;h+=b;e=g;b=h;d.push([g/c,h/c])}return d}function Ln(a,b){var c=Mn(a,"labels");b=Nn(b);var d=On(c,b);if(d)return d;if(Ya(b))a=Pn(a,b);else{if("auto"===b){var e=Ge(a).autoInterval;e=null!=e?e:Ge(a).autoInterval=a.calculateCategoryInterval()}else e=b;a=Qn(a,e)}return Rn(c,b,{labels:a,labelCategoryInterval:e})}function ps(a,b){var c=Mn(a,"ticks"),d=Nn(b),e=On(c,d);if(e)return e;if(!b.get("show")||a.scale.isBlank())b=[];if(Ya(d))b=Pn(a,d,!0);else if("auto"===d){a=Ln(a,a.getLabelModel());
var f=a.labelCategoryInterval;b=C(a.labels,function(g){return g.tickValue})}else f=d,b=Qn(a,f,!0);return Rn(c,d,{ticks:b,tickCategoryInterval:f})}function qs(a){var b=a.scale.getTicks(),c=Fe(a);return{labels:C(b,function(d,e){return{formattedLabel:c(d,e),rawLabel:a.scale.getLabel(d),tickValue:d}})}}function Mn(a,b){return Ge(a)[b]||(Ge(a)[b]=[])}function On(a,b){for(var c=0;c<a.length;c++)if(a[c].key===b)return a[c].value}function Rn(a,b,c){a.push({key:b,value:c});return c}function Qn(a,b,c){function d(m){h.push(c?
m:{formattedLabel:e(m),rawLabel:f.getLabel(m),tickValue:m})}var e=Fe(a),f=a.scale,g=f.getExtent();a=a.getLabelModel();var h=[];b=Math.max((b||0)+1,1);var k=g[0],l=f.count();0!==k&&1<b&&2<l/b&&(k=Math.round(Math.ceil(k/b)*b));l=a.get("showMinLabel");a=a.get("showMaxLabel");for(l&&k!==g[0]&&d(g[0]);k<=g[1];k+=b)d(k);a&&k!==g[1]&&d(g[1]);return h}function Pn(a,b,c){var d=a.scale,e=Fe(a),f=[];w(d.getTicks(),function(g){var h=d.getLabel(g);b(g,h)&&f.push(c?g:{formattedLabel:e(g),rawLabel:h,tickValue:g})});
return f}function Nn(a){a=a.get("interval");return null==a?"auto":a}function Sn(a,b){b=(a[1]-a[0])/b/2;a[0]+=b;a[1]-=b}function rs(a,b,c,d,e){function f(k,l){return h?k>l:k<l}c=b.length;if(a.onBand&&!d&&c){a=a.getExtent();if(1===c)b[0].coord=a[0],d=b[1]={coord:a[0]};else{var g=b[1].coord-b[0].coord;w(b,function(k){k.coord-=g/2;var l=l||0;0<l%2&&(k.coord-=g/(2*(l+1)))});d={coord:b[c-1].coord+g};b.push(d)}var h=a[0]>a[1];f(b[0].coord,a[0])&&(e?b[0].coord=a[0]:b.shift());e&&f(a[0],b[0].coord)&&b.unshift({coord:a[0]});
f(a[1],d.coord)&&(e?d.coord=a[1]:b.pop());e&&f(d.coord,a[1])&&b.push({coord:a[1]})}}function ss(a){return this._axes[a]}function He(a){gg.call(this,a)}function Tn(a,b){return b.type||(b.data?"category":"value")}function Hd(a,b,c){this._coordsMap={};this._coordsList=[];this._axesMap={};this._axesList=[];this._initCartesian(a,b,c);this.model=a}function Un(a,b,c){c.getAxesOnZeroOf=function(){return d?[d]:[]};a=a[b];var d;b=c.model;c=b.get("axisLine.onZero");b=b.get("axisLine.onZeroAxisIndex");if(c)if(null!=
b)Vn(a[b])&&(d=a[b]);else for(var e in a)if(a.hasOwnProperty(e)&&Vn(a[e])){d=a[e];break}}function Vn(a){var b;if(b=a&&"category"!==a.type&&"time"!==a.type)b=a.scale.getExtent(),a=b[0],b=b[1],b=!(0<a&&0<b||0>a&&0>b);return b}function ts(a,b){var c=a.getExtent(),d=c[0]+c[1];a.toGlobalCoord="x"===a.dim?function(e){return e+b}:function(e){return d-e+b};a.toLocalCoord="x"===a.dim?function(e){return e-b}:function(e){return d-e+b}}function Wn(a,b){return C(us,function(c){return a.getReferringComponents(c)[0]})}
function Xn(a){return"cartesian2d"===a.get("coordinateSystem")}function Yn(a,b){var c=a.mapDimension("defaultedLabel",!0),d=c.length;if(1===d)return Uc(a,b,c[0]);if(d){d=[];for(var e=0;e<c.length;e++){var f=Uc(a,b,c[e]);d.push(f)}return d.join(" ")}}function Zn(a,b,c){c.style.text=null;da(c,{shape:{width:0}},b,a,function(){c.parent&&c.parent.remove(c)})}function $n(a,b,c){c.style.text=null;da(c,{shape:{r:c.shape.r0}},b,a,function(){c.parent&&c.parent.remove(c)})}function ao(a,b,c,d,e,f,g,h){e=b.getItemVisual(c,
"color");g=b.getItemVisual(c,"opacity");var k=d.getModel("itemStyle");b=d.getModel("emphasis.itemStyle").getBarItemStyle();h||a.setShape("r",k.get("barBorderRadius")||0);a.useStyle(J({fill:e,opacity:g},k.getBarItemStyle()));(g=d.getShallow("cursor"))&&a.attr("cursor",g);h||(h=a.style,g=d.getModel("label"),d=d.getModel("emphasis.label"),Rc(h,b,g,d,{labelFetcher:f,labelDataIndex:c,defaultText:Yn(f.getData(),c),isRectText:!0,autoColor:e}),"outside"===h.textPosition&&(h.textPosition=void 0),"outside"===
b.textPosition&&(b.textPosition=void 0));rb(a,b)}function bo(a,b,c){var d=a.getData(),e=[],f=d.getLayout("valueAxisHorizontal")?1:0;e[1-f]=d.getLayout("valueAxisStart");c=new vs({shape:{points:d.getLayout("largePoints")},incremental:!!c,__startPoint:e,__valueIdx:f});b.add(c);b=d.getVisual("borderColor")||d.getVisual("color");a=a.getModel("itemStyle").getItemStyle(["color","borderColor"]);c.useStyle(a);c.style.fill=null;c.style.stroke=b;c.style.lineWidth=d.getLayout("barWidth")}function co(a){var b=
{componentType:a.mainType};b[a.mainType+"Index"]=a.componentIndex;return b}function ws(a,b,c,d){a=qi(c-a.rotation);d=d[0]>d[1];d="start"===b&&!d||"start"!==b&&d;se(a-sc/2)?(b=d?"bottom":"top",d="center"):se(a-1.5*sc)?(b=d?"top":"bottom",d="center"):(b="middle",d=a<1.5*sc&&a>sc/2?d?"left":"right":d?"right":"left");return{rotation:a,textAlign:d,textVerticalAlign:b}}function eo(a){var b=a.get("tooltip");return a.get("silent")||!(a.get("triggerEvent")||b&&b.show)}function Ua(a){a&&(a.ignore=!0)}function fo(a,
b,c){c=a&&a.getBoundingRect().clone();var d=b&&b.getBoundingRect().clone();if(c&&d){var e=be([]);ef(e,e,-a.rotation);c.applyTransform(gd([],e,a.getLocalTransform()));d.applyTransform(gd([],e,b.getLocalTransform()));return c.intersect(d)}}function xs(a,b,c){var d=b.axis;if(Za(c.axisLabelShow,b.get("axisLabel.show"))&&!d.scale.isBlank()){var e=b.getModel("axisLabel"),f=e.get("margin"),g=d.getViewLabels(),h=(Za(c.labelRotate,e.get("rotate"))||0)*sc/180,k=go(c.rotation,h,c.labelDirection),l=b.getCategories(!0),
m=[],n=eo(b),p=b.get("triggerEvent");w(g,function(q,r){var t=q.tickValue,u=q.formattedLabel;q=q.rawLabel;var v=e;l&&l[t]&&l[t].textStyle&&(v=new Z(l[t].textStyle,e,b.ecModel));var x=v.getTextColor()||b.get("axisLine.lineStyle.color"),y=[d.dataToCoord(t),c.labelOffset+c.labelDirection*f];y=new ta({anid:"label_"+t,position:y,rotation:k.rotation,silent:n,z2:10});Ra(y.style,v,{text:u,textAlign:v.getShallow("align",!0)||k.textAlign,textVerticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",
!0)||k.textVerticalAlign,textFill:"function"===typeof x?x("category"===d.type?q:"value"===d.type?t+"":t,r):x});p&&(y.eventData=co(b),y.eventData.targetType="axisLabel",y.eventData.value=q);a._dumbGroup.add(y);y.updateTransform();m.push(y);a.group.add(y);y.decomposeTransform()});return m}}function ys(a,b,c){var d=b.getComponent("tooltip"),e=b.getComponent("axisPointer"),f=e.get("link",!0)||[],g=[];Id(c.getCoordinateSystems(),function(h){function k(r,t,u){var v=u.model.getModel("axisPointer",e),x=v.get("show");
if(x&&("auto"!==x||r||v.get("handle.show"))){null==t&&(t=v.get("triggerTooltip"));v=r?zs(u,n,e,b,r,t):v;var y=v.get("snap");r=Ie(u.model);x=t||y||"category"===u.type;t=a.axesInfo[r]={key:r,axis:u,coordSys:h,axisPointerModel:v,triggerTooltip:t,involveSeries:x,snap:y,useHandle:!!v.get("handle.show"),seriesModels:[]};m[r]=t;a.seriesInvolved|=x;a:{v=u.model;u=u.dim;for(x=0;x<f.length;x++)if(y=f[x]||{},Yi(y[u+"AxisId"],v.id)||Yi(y[u+"AxisIndex"],v.componentIndex)||Yi(y[u+"AxisName"],v.name)){u=x;break a}u=
void 0}null!=u&&(v=g[u]||(g[u]={axesInfo:{}}),v.axesInfo[r]=t,v.mapper=f[u].mapper,t.linkGroup=v)}}if(h.axisPointerEnabled){var l=Ie(h.model),m=a.coordSysAxesInfo[l]={};a.coordSysMap[l]=h;var n=h.model.getModel("tooltip",d);Id(h.getAxes(),Zi(k,!1,null));if(h.getTooltipAxes&&d&&n.get("show")){l="axis"===n.get("trigger");var p="cross"===n.get("axisPointer.type"),q=h.getTooltipAxes(n.get("axisPointer.axis"));(l||p)&&Id(q.baseAxes,Zi(k,p?"cross":!0,l));p&&Id(q.otherAxes,Zi(k,"cross",!1))}}})}function zs(a,
b,c,d,e,f){var g=b.getModel("axisPointer"),h={};Id("type snap lineStyle shadowStyle label animation animationDurationUpdate animationEasingUpdate z".split(" "),function(k){h[k]=U(g.get(k))});h.snap="category"!==a.type&&!!f;"cross"===g.get("type")&&(h.type="line");b=h.label||(h.label={});null==b.show&&(b.show=!1);"cross"===e&&(e=g.get("label.show"),b.show=null!=e?e:!0,f||(f=h.lineStyle=g.get("crossStyle"))&&J(b,f.textStyle));return a.model.getModel("axisPointer",new Z(h,c,d))}function As(a,b){b.eachSeries(function(c){var d=
c.coordinateSystem,e=c.get("tooltip.trigger",!0),f=c.get("tooltip.show",!0);d&&"none"!==e&&!1!==e&&"item"!==e&&!1!==f&&!1!==c.get("axisPointer.show",!0)&&Id(a.coordSysAxesInfo[Ie(d.model)],function(g){var h=g.axis;d.getAxis(h.dim)===h&&(g.seriesModels.push(c),null==g.seriesDataCount&&(g.seriesDataCount=0),g.seriesDataCount+=c.getData().count())})},this)}function Yi(a,b){return"all"===a||E(a)&&0<=V(a,b)||a===b}function $i(a){var b=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return b&&
b.axesInfo[Ie(a)]}function Ie(a){return a.type+"||"+a.id}function ho(a,b,c,d,e,f){if(c=tc.getAxisPointerClass(a.axisPointerClass))(e=(e=$i(b))&&e.axisPointerModel)?(a._axisPointer||(a._axisPointer=new c)).render(b,e,d,f):((b=a._axisPointer)&&b.dispose(d,void 0),a._axisPointer=null)}function aj(a,b,c){c=c||{};var d=a.coordinateSystem,e=b.axis;a={};var f=e.getAxesOnZeroOf()[0],g=e.position,h=f?"onZero":g;e=e.dim;d=d.getRect();d=[d.x,d.x+d.width,d.y,d.y+d.height];var k={left:0,right:1,top:0,bottom:1,
onZero:2},l=b.get("offset")||0;l="x"===e?[d[2]-l,d[3]+l]:[d[0]-l,d[1]+l];if(f){var m=f.toGlobalCoord(f.dataToCoord(0));l[k.onZero]=Math.max(Math.min(m,l[1]),l[0])}a.position=["y"===e?l[k[h]]:d[0],"x"===e?l[k[h]]:d[3]];a.rotation=Math.PI/2*("x"===e?0:1);a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[g];a.labelOffset=f?l[k[g]]-l[k.onZero]:0;b.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection);Za(c.labelInside,b.get("axisLabel.inside"))&&(a.labelDirection=
-a.labelDirection);b=b.get("axisLabel.rotate");a.labelRotate="top"===h?-b:b;a.z2=1;return a}function Jd(a,b,c){L.call(this);this.updateData(a,b,c)}function Bs(a,b){this.parent.drift(a,b)}function bj(a){this.group=new L;this._symbolCtor=a||Jd}function cj(a,b,c,d){return b&&!isNaN(b[0])&&!isNaN(b[1])&&!(d.isIgnore&&d.isIgnore(c))&&!(d.clipShape&&!d.clipShape.contain(b[0],b[1]))&&"none"!==a.getItemVisual(c,"symbol")}function io(a){null==a||O(a)||(a={isIgnore:a});return a||{}}function jo(a){a=a.hostModel;
return{itemStyle:a.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:a.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label"),cursorStyle:a.get("cursor")}}function dj(a,b,c){var d=a.getBaseAxis(),e=a.getOtherAxis(d);c=Cs(e,c);d=d.dim;e=e.dim;var f=b.mapDimension(e),g=b.mapDimension(d),h="x"===e||"radius"===e?1:0;
a=C(a.dimensions,function(m){return b.mapDimension(m)});var k,l=b.getCalculationInfo("stackResultDimension");if(k|=rc(b,a[0]))a[0]=l;if(k|=rc(b,a[1]))a[1]=l;return{dataDimsForPoint:a,valueStart:c,valueAxisDim:e,baseAxisDim:d,stacked:!!k,valueDim:f,baseDim:g,baseDataOffset:h,stackedOverDimension:b.getCalculationInfo("stackedOverDimension")}}function Cs(a,b){var c=0;a=a.scale.getExtent();"start"===b?c=a[0]:"end"===b?c=a[1]:0<a[0]?c=a[0]:0>a[1]&&(c=a[1]);return c}function ej(a,b,c,d){var e=NaN;a.stacked&&
(e=c.get(c.getCalculationInfo("stackedOverDimension"),d));isNaN(e)&&(e=a.valueStart);var f=a.baseDataOffset,g=[];g[f]=c.get(a.baseDim,d);g[1-f]=e;return b.dataToPoint(g)}function Ds(a,b){var c=[];b.diff(a).add(function(d){c.push({cmd:"+",idx:d})}).update(function(d,e){c.push({cmd:"\x3d",idx:e,idx1:d})}).remove(function(d){c.push({cmd:"-",idx:d})}).execute();return c}function Wb(a){return isNaN(a[0])||isNaN(a[1])}function fj(a,b,c,d,e,f,g,h,k,l,m){return"none"!==l&&l?Es.apply(this,arguments):Fs.apply(this,
arguments)}function Es(a,b,c,d,e,f,g,h,k,l,m){var n=0;g=c;for(h=0;h<d;h++){var p=b[g];if(g>=e||0>g)break;if(Wb(p)){if(m){g+=f;continue}break}if(g===c)a[0<f?"moveTo":"lineTo"](p[0],p[1]);else if(0<k){n=b[n];var q="y"===l?1:0,r=(p[q]-n[q])*k;hg(Va,n);Va[q]=n[q]+r;hg(Wa,p);Wa[q]=p[q]-r;a.bezierCurveTo(Va[0],Va[1],Wa[0],Wa[1],p[0],p[1])}else a.lineTo(p[0],p[1]);n=g;g+=f}return h}function Fs(a,b,c,d,e,f,g,h,k,l,m){for(var n=0,p=c,q=0;q<d;q++){var r=b[p];if(p>=e||0>p)break;if(Wb(r)){if(m){p+=f;continue}break}if(p===
c)a[0<f?"moveTo":"lineTo"](r[0],r[1]),hg(Va,r);else if(0<k){var t=p+f,u=b[t];if(m)for(;u&&Wb(b[t]);)t+=f,u=b[t];var v=.5;n=b[n];u=b[t];!u||Wb(u)?hg(Wa,r):(Wb(u)&&!m&&(u=r),$e(gj,u,n),"x"===l||"y"===l?(v="x"===l?0:1,t=Math.abs(r[v]-n[v]),u=Math.abs(r[v]-u[v])):(t=ig(r,n),u=ig(r,u)),v=u/(u+t),ko(Wa,r,gj,-k*(1-v)));lo(Va,Va,h);mo(Va,Va,g);lo(Wa,Wa,h);mo(Wa,Wa,g);a.bezierCurveTo(Va[0],Va[1],Wa[0],Wa[1],r[0],r[1]);ko(Va,r,gj,k*v)}else a.lineTo(r[0],r[1]);n=p;p+=f}return q}function hj(a,b){var c=[Infinity,
Infinity],d=[-Infinity,-Infinity];if(b)for(var e=0;e<a.length;e++){var f=a[e];f[0]<c[0]&&(c[0]=f[0]);f[1]<c[1]&&(c[1]=f[1]);f[0]>d[0]&&(d[0]=f[0]);f[1]>d[1]&&(d[1]=f[1])}return{min:b?c:d,max:b?d:c}}function no(a,b){if(a.length===b.length){for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d[0]!==e[0]||d[1]!==e[1])return}return!0}}function oo(a){return"number"===typeof a?a:a?.5:0}function po(a){var b=a.getGlobalExtent();if(a.onBand){a=a.getBandWidth()/2-1;var c=b[1]>b[0]?1:-1;b[0]+=c*a;b[1]-=c*a}return b}
function Gs(a,b,c){if(!c.valueDim)return[];for(var d=[],e=0,f=b.count();e<f;e++)d.push(ej(c,a,b,e));return d}function jg(a,b,c,d){if("polar"===a.type){var e=a.getAngleAxis(),f=a.getRadiusAxis().getExtent().slice();f[0]>f[1]&&f.reverse();var g=e.getExtent(),h=Math.PI/180;c&&(f[0]-=.5,f[1]+=.5);c=new Kd({shape:{cx:ea(a.cx,1),cy:ea(a.cy,1),r0:ea(f[0],1),r:ea(f[1],1),startAngle:-g[0]*h,endAngle:-g[1]*h,clockwise:e.inverse}});b&&(c.shape.endAngle=-g[0]*h,ib(c,{shape:{endAngle:-g[1]*h}},d));b=c}else e=
po(a.getAxis("x")),f=po(a.getAxis("y")),a=a.getBaseAxis().isHorizontal(),g=Math.min(e[0],e[1]),h=Math.min(f[0],f[1]),e=Math.max(e[0],e[1])-g,f=Math.max(f[0],f[1])-h,c?(g-=.5,e+=.5,h-=.5,f+=.5):(c=d.get("lineStyle.width")||2,c=d.get("clipOverflow")?c/2:Math.max(e,f),a?(h-=c,f+=2*c):(g-=c,e+=2*c)),c=new ua({shape:{x:g,y:h,width:e,height:f}}),b&&(c.shape[a?"width":"height"]=0,ib(c,{shape:{width:e,height:f}},d)),b=c;return b}function uc(a,b,c){b=b.getBaseAxis();b="x"===b.dim||"radius"===b.dim?0:1;for(var d=
[],e=0;e<a.length-1;e++){var f=a[e+1],g=a[e];d.push(g);var h=[];switch(c){case "end":h[b]=f[b];h[1-b]=g[1-b];d.push(h);break;case "middle":var k=[];h[b]=k[b]=(g[b]+f[b])/2;h[1-b]=g[1-b];k[1-b]=f[1-b];d.push(h);d.push(k);break;default:h[b]=g[b],h[1-b]=f[1-b],d.push(h)}}a[e]&&d.push(a[e]);return d}function Hs(a,b){var c=a.getVisual("visualMeta");if(c&&c.length&&a.count()&&"cartesian2d"===b.type){for(var d,e,f=c.length-1;0<=f;f--)if(d=(d=a.getDimensionInfo(a.dimensions[c[f].dimension]))&&d.coordDim,
"x"===d||"y"===d){e=c[f];break}if(e){var g=b.getAxis(d);a=C(e.stops,function(l){return{coord:g.toGlobalCoord(g.dataToCoord(l.value)),color:l.color}});b=a.length;c=e.outerColors.slice();b&&a[0].coord>a[b-1].coord&&(a.reverse(),c.reverse());var h=a[0].coord-10;e=a[b-1].coord+10;var k=e-h;if(.001>k)return"transparent";w(a,function(l){l.offset=(l.coord-h)/k});a.push({offset:b?a[b-1].offset:.5,color:c[1]||"transparent"});a.unshift({offset:b?a[0].offset:.5,color:c[0]||"transparent"});a=new Je(0,0,0,0,a,
!0);a[d]=h;a[d+"2"]=e;return a}}}function Is(a,b,c){var d=a.get("showAllSymbol");a="auto"===d;if(!(d&&!a||!(c=c.getAxesByScale("ordinal")[0])||a&&Js(c,b))){var e=b.mapDimension(c.dim),f={};w(c.getViewLabels(),function(g){f[g.tickValue]=1});return function(g){return!f.hasOwnProperty(b.get(e,g))}}}function Js(a,b){var c=a.getExtent();c=Math.abs(c[1]-c[0])/a.scale.count();isNaN(c)&&(c=0);for(var d=b.count(),e=Math.max(1,Math.round(d/5)),f=0;f<d;f+=e)if(1.5*Jd.getSymbolSize(b,f)[a.isHorizontal()?1:0]>
c)return!1;return!0}function Ks(a,b,c,d){var e=b.getData(),f=e.getName(this.dataIndex),g=b.get("selectedOffset");d.dispatchAction({type:"pieToggleSelect",from:a,name:f,seriesId:b.id});e.each(function(h){qo(e.getItemGraphicEl(h),e.getItemLayout(h),b.isSelected(e.getName(h)),g,c)})}function qo(a,b,c,d,e){b=(b.startAngle+b.endAngle)/2;c=c?d:0;c=[Math.cos(b)*c,Math.sin(b)*c];e?a.animate().when(200,{position:c}).start("bounceOut"):a.attr("position",c)}function ij(a,b){function c(){f.ignore=f.hoverIgnore;
g.ignore=g.hoverIgnore}function d(){f.ignore=f.normalIgnore;g.ignore=g.normalIgnore}L.call(this);var e=new Kd({z2:2}),f=new Ld,g=new ta;this.add(e);this.add(f);this.add(g);this.updateData(a,b,!0);this.on("emphasis",c).on("normal",d).on("mouseover",c).on("mouseout",d)}function ro(a,b,c,d,e,f,g){function h(r,t,u,v){for(v=r;v<t;v++)if(a[v].y+=u,v>r&&v+1<t&&a[v+1].y>a[v].y+a[v].height){k(v,u/2);return}k(t-1,u/2)}function k(r,t){for(;0<=r&&!(a[r].y-=t,0<r&&a[r].y>a[r-1].y+a[r-1].height);r--);}function l(r,
t,u,v,x,y){for(var z=t?Number.MAX_VALUE:0,A=0,B=r.length;A<B;A++)if("center"!==r[A].position){var N=Math.abs(r[A].y-v),ia=r[A].len,I=r[A].len2;N=N<x+ia?Math.sqrt((x+ia+I)*(x+ia+I)-N*N):Math.abs(r[A].x-u);t&&N>=z&&(N=z-10);!t&&N<=z&&(N=z+10);r[A].x=u+N*y;z=N}}a.sort(function(r,t){return r.y-t.y});var m=0;f=a.length;for(var n=[],p=[],q=0;q<f;q++)m=a[q].y-m,0>m&&h(q,f,-m,e),m=a[q].y+a[q].height;0>g-m&&k(f-1,m-g);for(q=0;q<f;q++)a[q].y>=c?p.push(a[q]):n.push(a[q]);l(n,!1,b,c,d,e);l(p,!0,b,c,d,e)}function Ls(a,
b,c,d,e,f){for(var g=[],h=[],k=0;k<a.length;k++)a[k].x<b?g.push(a[k]):h.push(a[k]);ro(h,b,c,d,1,e,f);ro(g,b,c,d,-1,e,f);for(k=0;k<a.length;k++)if(c=a[k].linePoints)d=c[1][0]-c[2][0],c[2][0]=a[k].x<b?a[k].x+3:a[k].x-3,c[1][1]=c[2][1]=a[k].y,c[1][0]=c[2][0]+d}function so(a,b,c){Zc.call(this,a,b,c);this.type="value";this.angle=0;this.name=""}function wb(a,b,c){this._model=a;this.dimensions=[];this._indicatorAxes=C(a.getIndicatorModels(),function(d,e){e="indicator_"+e;var f=new so(e,new vb);f.name=d.get("name");
f.model=d;d.axis=f;this.dimensions.push(e);return f},this);this.resize(a,c)}function to(a,b){b&&("string"===typeof b?a=b.replace("{value}",null!=a?a:""):"function"===typeof b&&(a=b(a)));return a}function jj(a,b){function c(){f.ignore=f.hoverIgnore;g.ignore=g.hoverIgnore}function d(){f.ignore=f.normalIgnore;g.ignore=g.normalIgnore}L.call(this);var e=new Md,f=new Ld,g=new ta;this.add(e);this.add(f);this.add(g);this.updateData(a,b,!0);this.on("emphasis",c).on("normal",d).on("mouseover",c).on("mouseout",
d)}function Ms(a,b){return Qb(a.getBoxLayoutParams(),{width:b.getWidth(),height:b.getHeight()})}function Ns(a,b){var c=a.mapDimension("value"),d=a.mapArray(c,function(g){return g});c=[];var e="ascending"===b,f=0;for(a=a.count();f<a;f++)c[f]=f;"function"===typeof b?c.sort(b):"none"!==b&&c.sort(function(g,h){return e?d[g]-d[h]:d[h]-d[g]});return c}function Os(a){a.each(function(b){var c=a.getItemModel(b),d=c.getModel("label").get("position"),e=c.getModel("labelLine");b=a.getItemLayout(b);var f=b.points;
c="inner"===d||"inside"===d||"center"===d;if(c){d=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4;var g=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4;f="center";e=[[d,g],[d,g]]}else{var h=e.get("length");if("left"===d){e=(f[3][0]+f[0][0])/2;g=(f[3][1]+f[0][1])/2;var k=e-h;d=k-5;f="right"}else e=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,k=e+h,d=k+5,f="left";h=g;e=[[e,g],[k,h]];g=h}b.label={linePoints:e,x:d,y:g,verticalAlign:"middle",textAlign:f,inside:c}})}function kj(a,b,c){var d={},e="toggleSelected"===a,f;c.eachComponent("legend",
function(g){if(e&&null!=f)g[f?"select":"unSelect"](b.name);else g[a](b.name),f=g.isSelected(b.name);var h=g.getData();w(h,function(k){k=k.get("name");if("\n"!==k&&""!==k){var l=g.isSelected(k);d.hasOwnProperty(k)?d[k]=d[k]&&l:d[k]=l}})});return{name:b.name,selected:d}}function Ps(a,b){var c=ue(b.get("padding")),d=b.getItemStyle(["color","opacity"]);d.fill=b.get("backgroundColor");return a=new ua({shape:{x:a.x-c[3],y:a.y-c[0],width:a.width+c[1]+c[3],height:a.height+c[0]+c[2],r:b.get("borderRadius")},
style:d,silent:!0,z2:-1})}function uo(a,b){b.dispatchAction({type:"legendToggleSelect",name:a})}function vo(a,b,c,d){var e=c.getZr().storage.getDisplayList()[0];e&&e.useHoverLayer||c.dispatchAction({type:"highlight",seriesName:a.name,name:b,excludeSeriesId:d})}function wo(a,b,c,d){var e=c.getZr().storage.getDisplayList()[0];e&&e.useHoverLayer||c.dispatchAction({type:"downplay",seriesName:a.name,name:b,excludeSeriesId:d})}function xo(a,b,c){a=a.getOrient();var d=[1,1];d[a.index]=0;Tc(b,c,{type:"box",
ignoreSize:d})}function yo(a,b,c,d,e){var f=a.axis;if(!f.scale.isBlank()&&f.containData(b))if(a.involveSeries){var g=Qs(b,a),h=g.payloadBatch,k=g.snapToValue;h[0]&&null==e.seriesIndex&&P(e,h[0]);!d&&a.snap&&f.containData(k)&&null!=k&&(b=k);c.showPointer(a,b,h,e);c.showTooltip(a,g,k)}else c.showPointer(a,b)}function Qs(a,b){var c=b.axis,d=c.dim,e=a,f=[],g=Number.MAX_VALUE,h=-1;xb(b.seriesModels,function(k,l){var m=k.getData().mapDimension(d,!0);if(k.getAxisTooltipData)m=k.getAxisTooltipData(m,a,c),
l=m.dataIndices,m=m.nestestValue;else{l=k.getData().indicesOfNearest(m[0],a,"category"===c.type?.5:null);if(!l.length)return;m=k.getData().get(m[0],l[0])}if(null!=m&&isFinite(m)){var n=a-m,p=Math.abs(n);if(p<=g){if(p<g||0<=n&&0>h)g=p,h=n,e=m,f.length=0;xb(l,function(q){f.push({seriesIndex:k.seriesIndex,dataIndexInside:q,dataIndex:k.getData().getRawIndex(q)})})}}});return{payloadBatch:f,snapToValue:e}}function Rs(a,b,c,d){a[b.key]={value:c,payloadBatch:d}}function Ss(a,b,c,d){c=c.payloadBatch;var e=
b.axis,f=e.model,g=b.axisPointerModel;if(b.triggerTooltip&&c.length){b=b.coordSys.model;var h=Ie(b),k=a.map[h];k||(k=a.map[h]={coordSysId:b.id,coordSysIndex:b.componentIndex,coordSysType:b.type,coordSysMainType:b.mainType,dataByAxis:[]},a.list.push(k));k.dataByAxis.push({axisDim:e.dim,axisIndex:f.componentIndex,axisType:f.type,axisId:f.id,value:d,valueLabelOpt:{precision:g.get("label.precision"),formatter:g.get("label.formatter")},seriesDataIndices:c.slice()})}}function Ts(a,b,c){var d=c.axesInfo=
[];xb(b,function(e,f){var g=e.axisPointerModel.option;(f=a[f])?(!e.useHandle&&(g.status="show"),g.value=f.value,g.seriesDataIndices=(f.payloadBatch||[]).slice()):!e.useHandle&&(g.status="hide");"show"===g.status&&d.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:g.value})})}function Us(a,b,c,d){if(kg(b)||!a.list.length)d({type:"hideTip"});else{var e=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};d({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:c.tooltipOption,
position:c.position,dataIndexInside:e.dataIndexInside,dataIndex:e.dataIndex,seriesIndex:e.seriesIndex,dataByCoordSys:a.list})}}function Vs(a,b,c){b=c.getZr();var d=zo(b).axisPointerLastHighlights||{},e=zo(b).axisPointerLastHighlights={};xb(a,function(h,k){h=h.axisPointerModel.option;"show"===h.status&&xb(h.seriesDataIndices,function(l){e[l.seriesIndex+" | "+l.dataIndex]=l})});var f=[],g=[];w(d,function(h,k){!e[k]&&g.push(h)});w(e,function(h,k){!d[k]&&f.push(h)});g.length&&c.dispatchAction({type:"downplay",
escapeConnect:!0,batch:g});f.length&&c.dispatchAction({type:"highlight",escapeConnect:!0,batch:f})}function Ao(a){var b=a.axis.model,c={};a=c.axisDim=a.axis.dim;c.axisIndex=c[a+"AxisIndex"]=b.componentIndex;c.axisName=c[a+"AxisName"]=b.name;c.axisId=c[a+"AxisId"]=b.id;return c}function kg(a){return!a||null==a[0]||isNaN(a[0])||null==a[1]||isNaN(a[1])}function Bo(a,b,c){if(!R.node){var d=b.getZr();Xb(d).records||(Xb(d).records={});Ws(d,b);(Xb(d).records[a]||(Xb(d).records[a]={})).handler=c}}function Ws(a,
b){function c(d,e){a.on(d,function(f){var g=Xs(b);Ys(Xb(a).records,function(h){h&&e(h,f,g.dispatchAction)});Zs(g.pendings,b)})}Xb(a).initialized||(Xb(a).initialized=!0,c("click",M(Co,"click")),c("mousemove",M(Co,"mousemove")),c("globalout",$s))}function Zs(a,b){var c=a.showTip.length,d=a.hideTip.length,e;c?e=a.showTip[c-1]:d&&(e=a.hideTip[d-1]);e&&(e.dispatchAction=null,b.dispatchAction(e))}function $s(a,b,c){a.handler("leave",null,c)}function Co(a,b,c,d){b.handler(a,c,d)}function Xs(a){var b={showTip:[],
hideTip:[]},c=function(d){var e=b[d.type];e?e.push(d):(d.dispatchAction=c,a.dispatchAction(d))};return{dispatchAction:c,pendings:b}}function lj(a,b){R.node||(b=b.getZr(),(Xb(b).records||{})[a]&&(Xb(b).records[a]=null))}function Ke(){}function Do(a,b,c,d){Eo($c(c).lastProp,d)||($c(c).lastProp=d,b?da(c,d,a):(c.stopAnimation(),c.attr(d)))}function Eo(a,b){if(O(a)&&O(b)){var c=!0;w(b,function(d,e){c=c&&Eo(a[e],d)});return!!c}return a===b}function Fo(a,b){a[b.get("label.show")?"show":"hide"]()}function mj(a){return{position:a.position.slice(),
rotation:a.rotation||0}}function Go(a,b,c){var d=b.get("z"),e=b.get("zlevel");a&&a.traverse(function(f){"group"!==f.type&&(null!=d&&(f.z=d),null!=e&&(f.zlevel=e),f.silent=c)})}function Ho(a,b,c,d,e){a=b.scale.parse(a);var f=b.scale.getLabel(a,{precision:e.precision});if(e=e.formatter){var g={value:Wi(b,a),seriesData:[]};w(d,function(h){var k=c.getSeriesByIndex(h.seriesIndex);h=h.dataIndexInside;(k=k&&k.getDataParams(h))&&g.seriesData.push(k)});va(e)?f=e.replace("{value}",f):Ya(e)&&(f=e(g))}return f}
function Io(a,b,c){var d=fd();ef(d,d,c.rotation);df(d,d,c.position);return re([a.dataToCoord(b),(c.labelOffset||0)+(c.labelDirection||1)*(c.labelMargin||0)],d)}function Jo(a,b){var c={};c[b.dim+"AxisIndex"]=b.index;return a.getCartesian(c)}function at(a){var b="left "+a+"s cubic-bezier(0.23, 1, 0.32, 1),top "+a+"s cubic-bezier(0.23, 1, 0.32, 1)";return C(bt,function(c){return c+"transition:"+b}).join(";")}function ct(a){var b=[],c=a.get("fontSize"),d=a.getTextColor();d&&b.push("color:"+d);b.push("font:"+
a.getFont());c&&b.push("line-height:"+Math.round(3*c/2)+"px");Ko(["decoration","align"],function(e){var f=a.get(e);f&&b.push("text-"+e+":"+f)});return b.join(";")}function dt(a){var b=[],c=a.get("transitionDuration"),d=a.get("backgroundColor"),e=a.getModel("textStyle"),f=a.get("padding");c&&b.push(at(c));d&&(R.canvasSupported?b.push("background-Color:"+d):(b.push("background-Color:#"+Ik(d)),b.push("filter:alpha(opacity\x3d70)")));Ko(["width","color","radius"],function(g){var h="border-"+g,k=et(h);
k=a.get(k);null!=k&&b.push(h+":"+k+("color"===g?"":"px"))});b.push(ct(e));null!=f&&b.push("padding:"+ue(f).join("px ")+"px");return b.join(";")+";"}function nj(a,b){if(R.wxa)return null;var c=document.createElement("div"),d=this._zr=b.getZr();this.el=c;this._x=b.getWidth()/2;this._y=b.getHeight()/2;a.appendChild(c);this._container=a;this._show=!1;var e=this;c.onmouseenter=function(){e._enterable&&(clearTimeout(e._hideTimeout),e._show=!0);e._inContent=!0};c.onmousemove=function(f){f=f||window.event;
if(!e._enterable){var g=d.handler;Hc(a,f,!0);g.dispatch("mousemove",f)}};c.onmouseleave=function(){e._enterable&&e._show&&e.hideLater(e._hideDelay);e._inContent=!1}}function oj(a){for(var b=a.pop();a.length;){var c=a.pop();c&&(Z.isInstance(c)&&(c=c.get("tooltip",!0)),"string"===typeof c&&(c={formatter:c}),b=new Z(c,b,b.ecModel))}return b}function Lo(a){var b=a.clientWidth,c=a.clientHeight;document.defaultView&&document.defaultView.getComputedStyle&&(a=document.defaultView.getComputedStyle(a))&&(b+=
parseInt(a.paddingLeft,10)+parseInt(a.paddingRight,10)+parseInt(a.borderLeftWidth,10)+parseInt(a.borderRightWidth,10),c+=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10));return{width:b,height:c}}function lg(a){de(a,"label",["show"])}function pj(a,b,c,d,e,f){var g=[],h=rc(b,d)?b.getCalculationInfo("stackResultDimension"):d;a=qj(b,h,a);h=b.indicesOfNearest(h,a)[0];g[e]=b.get(c,h);g[f]=b.get(d,h);b=zm(b.get(d,h));b=Math.min(b,20);
0<=b&&(g[f]=+g[f].toFixed(b));return g}function Le(a,b){var c=a.getData(),d=a.coordinateSystem,e;if(e=b)e=b,e=!(!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y)));if(e&&!E(b.coord)&&d)if(e=d.dimensions,a=Mo(b,c,d,a),b=U(b),b.type&&rj[b.type]&&a.baseAxis&&a.valueAxis)d=No(e,a.baseAxis.dim),e=No(e,a.valueAxis.dim),b.coord=rj[b.type](c,a.baseDataDim,a.valueDataDim,d,e),b.value=b.coord[e];else{a=[null!=b.xAxis?b.xAxis:b.radiusAxis,null!=b.yAxis?b.yAxis:b.angleAxis];for(d=0;2>d;d++)rj[a[d]]&&(a[d]=qj(c,
c.mapDimension(e[d]),a[d]));b.coord=a}return b}function Mo(a,b,c,d){var e={};null!=a.valueIndex||null!=a.valueDim?(e.valueDataDim=null!=a.valueIndex?b.getDimension(a.valueIndex):a.valueDim,e.valueAxis=c.getAxis(ft(d,e.valueDataDim)),e.baseAxis=c.getOtherAxis(e.valueAxis),e.baseDataDim=b.mapDimension(e.baseAxis.dim)):(e.baseAxis=d.getBaseAxis(),e.valueAxis=c.getOtherAxis(e.baseAxis),e.baseDataDim=b.mapDimension(e.baseAxis.dim),e.valueDataDim=b.mapDimension(e.valueAxis.dim));return e}function ft(a,
b){a=a.getData();var c=a.dimensions;b=a.getDimension(b);for(var d=0;d<c.length;d++){var e=a.getDimensionInfo(c[d]);if(e.name===b)return e.coordDim}}function Me(a,b){var c;if(c=a&&a.containData&&b.coord)c=!(!isNaN(parseFloat(b.x))||!isNaN(parseFloat(b.y)));return c?a.containData(b.coord):!0}function Oo(a,b,c,d){return 2>d?a.coord&&a.coord[d]:a.value}function qj(a,b,c){if("average"===c){var d=0,e=0;a.each(b,function(f,g){isNaN(f)||(d+=f,e++)});return d/e}return"median"===c?a.getMedian(b):a.getDataExtent(b,
!0)["max"===c?1:0]}function Po(a,b,c){var d=b.coordinateSystem;a.each(function(e){var f=a.getItemModel(e),g=F(f.get("x"),c.getWidth());f=F(f.get("y"),c.getHeight());if(!isNaN(g)&&!isNaN(f))var h=[g,f];else if(b.getMarkerPosition)h=b.getMarkerPosition(a.getValues(a.dimensions,e));else if(d){h=a.get(d.dimensions[0],e);var k=a.get(d.dimensions[1],e);h=d.dataToPoint([h,k])}isNaN(g)||(h[0]=g);isNaN(f)||(h[1]=f);a.setItemLayout(e,h)})}function gt(a,b,c){var d=a?C(a&&a.dimensions,function(e){var f=b.getData().getDimensionInfo(b.getData().mapDimension(e))||
{};return J({name:e},f)}):[{name:"value",type:"float"}];d=new Ta(d,c);c=C(c.get("data"),M(Le,b));a&&(c=Ea(c,M(Me,a)));d.initData(c,null,a?Oo:function(e){return e.value});return d}function sj(a){return isNaN(+a.cpx1)||isNaN(+a.cpy1)}function Qo(a,b,c){var d=b.getItemVisual(c,"color"),e=b.getItemVisual(c,a);b=b.getItemVisual(c,a+"Size");if(e&&"none"!==e)return E(b)||(b=[b,b]),d=Yc(e,-b[0]/2,-b[1]/2,b[0],b[1],d),d.name=a,d}function ht(a){var b=new it({name:"line"});tj(b.shape,a);return b}function tj(a,
b){var c=b[0],d=b[1];b=b[2];a.x1=c[0];a.y1=c[1];a.x2=d[0];a.y2=d[1];a.percent=1;b?(a.cpx1=b[0],a.cpy1=b[1]):(a.cpx1=NaN,a.cpy1=NaN)}function uj(a,b,c){L.call(this);this._createLine(a,b,c)}function Ro(a){this._ctor=a||uj;this.group=new L}function So(a){a=a.hostModel;return{lineStyle:a.getModel("lineStyle").getLineStyle(),hoverLineStyle:a.getModel("emphasis.lineStyle").getLineStyle(),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label")}}function To(a){return isNaN(a[0])||isNaN(a[1])}
function vj(a){return!To(a[0])&&!To(a[1])}function mg(a){return!isNaN(a)&&!isFinite(a)}function Uo(a,b,c,d){var e=1-a,f=d.dimensions[a];return mg(b[e])&&mg(c[e])&&b[a]===c[a]&&d.getAxis(f).containData(b[a])}function jt(a,b){if("cartesian2d"===a.type){var c=b[0].coord,d=b[1].coord;if(c&&d&&(Uo(1,c,d,a)||Uo(0,c,d,a)))return!0}return Me(a,b[0])&&Me(a,b[1])}function wj(a,b,c,d,e){var f=d.coordinateSystem,g=a.getItemModel(b),h=F(g.get("x"),e.getWidth());e=F(g.get("y"),e.getHeight());if(isNaN(h)||isNaN(e)){d.getMarkerPosition?
g=d.getMarkerPosition(a.getValues(a.dimensions,b)):(d=f.dimensions,g=a.get(d[0],b),d=a.get(d[1],b),g=f.dataToPoint([g,d]));if("cartesian2d"===f.type){var k=f.getAxis("x"),l=f.getAxis("y");d=f.dimensions;mg(a.get(d[0],b))?g[0]=k.toGlobalCoord(k.getExtent()[c?0:1]):mg(a.get(d[1],b))&&(g[1]=l.toGlobalCoord(l.getExtent()[c?0:1]))}isNaN(h)||(g[0]=h);isNaN(e)||(g[1]=e)}else g=[h,e];a.setItemLayout(b,g)}function kt(a,b,c){var d=a?C(a&&a.dimensions,function(g){var h=b.getData().getDimensionInfo(b.getData().mapDimension(g))||
{};return J({name:g},h)}):[{name:"value",type:"float"}];var e=new Ta(d,c);d=new Ta(d,c);var f=new Ta([],c);c=C(c.get("data"),M(lt,b,a,c));a&&(c=Ea(c,M(jt,a)));a=a?Oo:function(g){return g.value};e.initData(C(c,function(g){return g[0]}),null,a);d.initData(C(c,function(g){return g[1]}),null,a);f.initData(C(c,function(g){return g[2]}));f.hasItemOption=!0;return{from:e,to:d,line:f}}function Nd(a){return!isNaN(a)&&!isFinite(a)}function mt(a,b){var c=b.coord[0],d=b.coord[1];if("cartesian2d"===a.type){var e;
if(e=c&&d)(e=Nd(c[0])&&Nd(d[0]))||(e=Nd(c[1])&&Nd(d[1]));if(e)return!0}return Me(a,{coord:c,x:b.x0,y:b.y0})||Me(a,{coord:d,x:b.x1,y:b.y1})}function Vo(a,b,c,d,e){var f=d.coordinateSystem,g=a.getItemModel(b),h=F(g.get(c[0]),e.getWidth());e=F(g.get(c[1]),e.getHeight());if(isNaN(h)||isNaN(e)){if(d.getMarkerPosition)d=d.getMarkerPosition(a.getValues(c,b));else{g=a.get(c[0],b);var k=a.get(c[1],b);d=[g,k];f.clampData&&f.clampData(d,d);d=f.dataToPoint(d,!0)}if("cartesian2d"===f.type){var l=f.getAxis("x");
f=f.getAxis("y");g=a.get(c[0],b);k=a.get(c[1],b);Nd(g)?d[0]=l.toGlobalCoord(l.getExtent()["x0"===c[0]?0:1]):Nd(k)&&(d[1]=f.toGlobalCoord(f.getExtent()["y0"===c[1]?0:1]))}isNaN(h)||(d[0]=h);isNaN(e)||(d[1]=e)}else d=[h,e];return d}function nt(a,b,c){var d=["x0","y0","x1","y1"];if(a){var e=C(a&&a.dimensions,function(f){var g=b.getData();g=g.getDimensionInfo(g.mapDimension(f))||{};return J({name:f},g)});d=new Ta(C(d,function(f,g){return{name:f,type:e[g%2].type}}),c)}else e=[{name:"value",type:"float"}],
d=new Ta(e,c);c=C(c.get("data"),M(ot,b,a,c));a&&(c=Ea(c,M(mt,a)));d.initData(c,null,a?function(f,g,h,k){return f.coord[Math.floor(k/2)][k%2]}:function(f){return f.value});d.hasItemOption=!0;return d}function pt(a,b,c){function d(f,g){var h=!1;b(function(k){w(c(f,k)||[],function(l){g.records[k.name][l]&&(h=!0)})});return h}function e(f,g){g.nodes.push(f);b(function(h){w(c(f,h)||[],function(k){g.records[h.name][k]=!0})})}return function(f){function g(l){0<=V(h.nodes,l)||!d(l,h)||(e(l,h),k=!0)}var h=
{nodes:[],records:{}};b(function(l){h.records[l.name]={}});if(!f)return h;e(f,h);do{var k=!1;a(g)}while(k);return h}}function qt(a,b,c){var d=[Infinity,-Infinity];vc(c,function(e){var f=e.getData();f&&vc(f.mapDimension(b,!0),function(g){g=f.getApproximateExtent(g);g[0]<d[0]&&(d[0]=g[0]);g[1]>d[1]&&(d[1]=g[1])})});d[1]<d[0]&&(d=[NaN,NaN]);rt(a,d);return d}function rt(a,b){a=a.getAxisModel();var c=a.getMin(!0),d="category"===a.get("type"),e=d&&a.getCategories().length;null!=c&&"dataMin"!==c&&"function"!==
typeof c?b[0]=c:d&&(b[0]=0<e?0:NaN);c=a.getMax(!0);null!=c&&"dataMax"!==c&&"function"!==typeof c?b[1]=c:d&&(b[1]=0<e?e-1:NaN);a.get("scale",!0)||(0<b[0]&&(b[0]=0),0>b[1]&&(b[1]=0));return b}function Wo(a,b){var c=a.getAxisModel(),d=a._percentWindow;a=a._valueWindow;if(d){var e=pi(a,[0,500]);e=Math.min(e,20);b=b||0===d[0]&&100===d[1];c.setRange(b?null:+a[0].toFixed(e),b?null:+a[1].toFixed(e))}}function st(a){var b=a._minMaxSpan={},c=a._dataZoomModel;vc(["min","max"],function(d){b[d+"Span"]=c.get(d+
"Span");var e=c.get(d+"ValueSpan");if(null!=e&&(b[d+"ValueSpan"]=e,e=a.getAxisModel().axis.scale.parse(e),null!=e)){var f=a._dataExtent;b[d+"Span"]=ma(f[0]+e,f,[0,100],!0)}})}function Xo(a){var b={};Od(["start","end","startValue","endValue","throttle"],function(c){a.hasOwnProperty(c)&&(b[c]=a[c])});return b}function Yo(a,b){var c=a._rangePropMode,d=a.get("rangeMode");Od([["start","startValue"],["end","endValue"]],function(e,f){var g=null!=b[e[0]];e=null!=b[e[1]];g&&!e?c[f]="percent":!g&&e?c[f]="value":
d?c[f]=d[f]:g&&(c[f]="percent")})}function xj(a,b){a=a[b]-a[1-b];return{span:Math.abs(a),sign:0<a?-1:0>a?1:b?-1:1}}function ng(a,b){return Math.min(b[1],Math.max(b[0],a))}function Zo(a){return"vertical"===a?"ns-resize":"ew-resize"}function $o(a){return a["\x00_ec_interaction_mutex"]||(a["\x00_ec_interaction_mutex"]={})}function ap(a){this._zr=a;this._opt={};var b=K(tt,this),c=K(ut,this),d=K(vt,this),e=K(wt,this),f=K(xt,this);this._$handlers={};this.setPointerChecker=function(g){this.pointerChecker=
g};this.enable=function(g,h){this.disable();this._opt=J(U(h)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0});null==g&&(g=!0);if(!0===g||"move"===g||"pan"===g)a.on("mousedown",b),a.on("mousemove",c),a.on("mouseup",d);if(!0===g||"scale"===g||"zoom"===g)a.on("mousewheel",e),a.on("pinch",f)};this.dispose=this.disable=function(){a.off("mousedown",b);a.off("mousemove",c);a.off("mouseup",d);a.off("mousewheel",e);a.off("pinch",f)};this.isDragging=function(){return this._dragging};
this.isPinching=function(){return this._pinching}}function tt(a){if(!(1<a.which||a.target&&a.target.draggable)){var b=a.offsetX,c=a.offsetY;this.pointerChecker&&this.pointerChecker(a,b,c)&&(this._x=b,this._y=c,this._dragging=!0)}}function ut(a){if(!(1<a.which)&&bp(this,"moveOnMouseMove",a)&&this._dragging&&"pinch"!==a.gestureEvent&&!$o(this._zr).globalPan){var b=a.offsetX,c=a.offsetY,d=this._x,e=this._y,f=b-d,g=c-e;this._x=b;this._y=c;this._opt.preventDefaultMouseMove&&Pd(a.event);this.trigger("pan",
f,g,d,e,b,c)}}function vt(a){1<a.which||(this._dragging=!1)}function wt(a){if(bp(this,"zoomOnMouseWheel",a)&&0!==a.wheelDelta){var b=0<a.wheelDelta?1.1:1/1.1,c=a.offsetX,d=a.offsetY;this.pointerChecker&&this.pointerChecker(a,c,d)&&(Pd(a.event),this.trigger("zoom",b,c,d))}}function xt(a){if(!$o(this._zr).globalPan){var b=1<a.pinchScale?1.1:1/1.1,c=a.pinchX,d=a.pinchY;this.pointerChecker&&this.pointerChecker(a,c,d)&&(Pd(a.event),this.trigger("zoom",b,c,d))}}function bp(a,b,c){return(a=a._opt[b])&&(!va(a)||
c.event[a+"Key"])}function yt(a,b){var c=cp(a),d=b.dataZoomId,e=b.coordId;w(c,function(g,h){h=g.dataZoomInfos;h[d]&&0>V(b.allCoordIds,e)&&(delete h[d],g.count--)});dp(c);var f=c[e];f||(f=c[e]={coordId:e,dataZoomInfos:{},count:0},f.controller=zt(a,f),f.dispatchAction=M(At,a));!f.dataZoomInfos[d]&&f.count++;f.dataZoomInfos[d]=b;a=Bt(f.dataZoomInfos);f.controller.enable(a.controlType,a.opt);f.controller.setPointerChecker(b.containsPoint);Ei(f,"dispatchAction",b.throttleRate,"fixRate")}function Ct(a,
b){a=cp(a);w(a,function(c){c.controller.dispose();var d=c.dataZoomInfos;d[b]&&(delete d[b],c.count--)});dp(a)}function cp(a){a=a.getZr();return a["\x00_ec_dataZoom_roams"]||(a["\x00_ec_dataZoom_roams"]={})}function zt(a,b){a=new ap(a.getZr());a.on("pan",ep(Dt,b));a.on("zoom",ep(Et,b));return a}function dp(a){w(a,function(b,c){b.count||(b.controller.dispose(),delete a[c])})}function Dt(a,b,c,d,e,f,g){fp(a,function(h){return h.panGetRange(a.controller,b,c,d,e,f,g)})}function Et(a,b,c,d){fp(a,function(e){return e.zoomGetRange(a.controller,
b,c,d)})}function fp(a,b){var c=[];w(a.dataZoomInfos,function(d){var e=b(d);!d.disabled&&e&&c.push({dataZoomId:d.dataZoomId,start:e[0],end:e[1]})});c.length&&a.dispatchAction(c)}function At(a,b){a.dispatchAction({type:"dataZoom",batch:b})}function Bt(a){var b,c={},d={type_true:2,type_move:1,type_false:0,type_undefined:-1};w(a,function(e){var f=e.disabled?!1:e.zoomLock?"move":!0;d["type_"+f]>d["type_"+b]&&(b=f);P(c,e.roamControllerOpt)});return{controlType:b,opt:c}}function gp(a,b,c,d){var e=c.type;
c=new (Qd[e.charAt(0).toUpperCase()+e.slice(1)])(c);b.add(c);d.set(a,c);c.__ecGraphicId=a}function og(a,b){var c=a&&a.parent;c&&("group"===a.type&&a.traverse(function(d){og(d,b)}),b.removeKey(a.__ecGraphicId),c.remove(a))}function Ft(a){a=P({},a);w(["id","parentId","$action","hv","bounding"].concat(Em),function(b){delete a[b]});return a}function hp(a,b){var c;w(b,function(d){null!=a[d]&&"auto"!==a[d]&&(c=!0)});return c}var ol=2311,Gt={},R=Gt="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?
{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0}:Wd(navigator.userAgent),yk={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},
xk={"[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},Xd=Object.prototype.toString,Ne=Array.prototype,gq=Ne.forEach,jq=Ne.filter,Zd=Ne.slice,hq=Ne.map,iq=Ne.reduce,Wg={},Ye=function(){return Wg.createCanvas()};Wg.createCanvas=function(){return document.createElement("canvas")};var We,Dc="__ec_primitive__";Ze.prototype={constructor:Ze,
get:function(a){return this.hasOwnProperty(a)?this[a]:null},set:function(a,b){return this[a]=b},each:function(a,b){void 0!==b&&(a=K(a,b));for(var c in this)this.hasOwnProperty(c)&&a(this[c],c)},removeKey:function(a){delete this[a]}};var Ht=(Object.freeze||Object)({$override:wk,clone:U,merge:T,mergeAll:Yg,extend:P,defaults:J,createCanvas:Ye,getContext:zk,indexOf:V,inherits:na,mixin:ba,isArrayLike:Db,each:w,map:C,reduce:Yd,filter:Ea,find:function(a,b,c){if(a&&b)for(var d=0,e=a.length;d<e;d++)if(b.call(c,
a[d],d,a))return a[d]},bind:K,curry:M,isArray:E,isFunction:Ya,isString:va,isObject:O,isBuiltInObject:Xg,isTypedArray:lb,isDom:Xe,eqNaN:$d,retrieve:Za,retrieve2:Fa,retrieve3:cd,slice:Zg,normalizeCssArray:$g,assert:dd,trim:ah,setAsPrimitive:bh,isPrimitive:function(a){return a[Dc]},createHashMap:Q,concatArray:function(a,b){for(var c=new a.constructor(a.length+b.length),d=0;d<a.length;d++)c[d]=a[d];a=a.length;for(d=0;d<b.length;d++)c[d+a]=b[d];return c},noop:Yb}),Ak="undefined"===typeof Float32Array?
Array:Float32Array,ig=ae,Jc=Dk,It=(Object.freeze||Object)({create:Ec,copy:Bk,clone:ch,set:function(a,b,c){a[0]=b;a[1]=c;return a},add:dh,scaleAndAdd:Ck,sub:$e,len:eh,length:eh,lenSquare:fh,lengthSquare:fh,mul:function(a,b,c){a[0]=b[0]*c[0];a[1]=b[1]*c[1];return a},div:function(a,b,c){a[0]=b[0]/c[0];a[1]=b[1]/c[1];return a},dot:function(a,b){return a[0]*b[0]+a[1]*b[1]},scale:af,normalize:bf,distance:ae,dist:ig,distanceSquare:Dk,distSquare:Jc,negate:function(a,b){a[0]=-b[0];a[1]=-b[1];return a},lerp:function(a,
b,c,d){a[0]=b[0]+d*(c[0]-b[0]);a[1]=b[1]+d*(c[1]-b[1]);return a},applyTransform:qa,min:Eb,max:Fb});cf.prototype={constructor:cf,_dragStart:function(a){var b=a.target;b&&b.draggable&&(this._draggingTarget=b,b.dragging=!0,this._x=a.offsetX,this._y=a.offsetY,this.dispatchToElement(ed(b,a),"dragstart",a.event))},_drag:function(a){var b=this._draggingTarget;if(b){var c=a.offsetX,d=a.offsetY,e=c-this._x,f=d-this._y;this._x=c;this._y=d;b.drift(e,f,a);this.dispatchToElement(ed(b,a),"drag",a.event);c=this.findHover(c,
d,b).target;d=this._dropTarget;this._dropTarget=c;b!==c&&(d&&c!==d&&this.dispatchToElement(ed(d,a),"dragleave",a.event),c&&c!==d&&this.dispatchToElement(ed(c,a),"dragenter",a.event))}},_dragEnd:function(a){var b=this._draggingTarget;b&&(b.dragging=!1);this.dispatchToElement(ed(b,a),"dragend",a.event);this._dropTarget&&this.dispatchToElement(ed(this._dropTarget,a),"drop",a.event);this._dropTarget=this._draggingTarget=null}};var ip=Array.prototype.slice,tb=function(){this._$handlers={}};tb.prototype=
{constructor:tb,one:function(a,b,c){var d=this._$handlers;if(!b||!a)return this;d[a]||(d[a]=[]);for(var e=0;e<d[a].length;e++)if(d[a][e].h===b)return this;d[a].push({h:b,one:!0,ctx:c||this});return this},on:function(a,b,c){var d=this._$handlers;if(!b||!a)return this;d[a]||(d[a]=[]);for(var e=0;e<d[a].length;e++)if(d[a][e].h===b)return this;d[a].push({h:b,one:!1,ctx:c||this});return this},isSilent:function(a){var b=this._$handlers;return b[a]&&b[a].length},off:function(a,b){var c=this._$handlers;if(!a)return this._$handlers=
{},this;if(b){if(c[a]){for(var d=[],e=0,f=c[a].length;e<f;e++)c[a][e].h!=b&&d.push(c[a][e]);c[a]=d}c[a]&&0===c[a].length&&delete c[a]}else delete c[a];return this},trigger:function(a){if(this._$handlers[a]){var b=arguments,c=b.length;3<c&&(b=ip.call(b,1));for(var d=this._$handlers[a],e=d.length,f=0;f<e;){switch(c){case 1:d[f].h.call(d[f].ctx);break;case 2:d[f].h.call(d[f].ctx,b[1]);break;case 3:d[f].h.call(d[f].ctx,b[1],b[2]);break;default:d[f].h.apply(d[f].ctx,b)}d[f].one?(d.splice(f,1),e--):f++}}return this},
triggerWithContext:function(a){if(this._$handlers[a]){var b=arguments,c=b.length;4<c&&(b=ip.call(b,1,b.length-1));for(var d=b[b.length-1],e=this._$handlers[a],f=e.length,g=0;g<f;){switch(c){case 1:e[g].h.call(d);break;case 2:e[g].h.call(d,b[1]);break;case 3:e[g].h.call(d,b[1],b[2]);break;default:e[g].h.apply(d,b)}e[g].one?(e.splice(g,1),f--):g++}}return this}};Ek.prototype.dispose=function(){};var Jt="click dblclick mousewheel mouseout mouseup mousedown mousemove contextmenu".split(" "),Rd=function(a,
b,c,d){this._$handlers={};this.storage=a;this.painter=b;this.painterRoot=d;c=c||new Ek;this.proxy=null;this._hovered={};cf.call(this);this.setHandlerProxy(c)};Rd.prototype={constructor:Rd,setHandlerProxy:function(a){this.proxy&&this.proxy.dispose();a&&(w(Jt,function(b){a.on&&a.on(b,this[b],this)},this),a.handler=this);this.proxy=a},mousemove:function(a){var b=a.zrX,c=a.zrY,d=this._hovered,e=d.target;e&&!e.__zr&&(d=this.findHover(d.x,d.y),e=d.target);b=this._hovered=this.findHover(b,c);c=b.target;
var f=this.proxy;f.setCursor&&f.setCursor(c?c.cursor:"default");e&&c!==e&&this.dispatchToElement(d,"mouseout",a);this.dispatchToElement(b,"mousemove",a);c&&c!==e&&this.dispatchToElement(b,"mouseover",a)},mouseout:function(a){this.dispatchToElement(this._hovered,"mouseout",a);var b=a.toElement||a.relatedTarget,c;do b=b&&b.parentNode;while(b&&9!=b.nodeType&&!(c=b===this.painterRoot));!c&&this.trigger("globalout",{event:a})},resize:function(a){this._hovered={}},dispatch:function(a,b){(a=this[a])&&a.call(this,
b)},dispose:function(){this.proxy.dispose();this.storage=this.proxy=this.painter=null},setCursorStyle:function(a){var b=this.proxy;b.setCursor&&b.setCursor(a)},dispatchToElement:function(a,b,c){a=a||{};var d=a.target;if(!d||!d.silent){for(var e="on"+b,f={type:b,event:c,target:a.target,topTarget:a.topTarget,cancelBubble:!1,offsetX:c.zrX,offsetY:c.zrY,gestureEvent:c.gestureEvent,pinchX:c.pinchX,pinchY:c.pinchY,pinchScale:c.pinchScale,wheelDelta:c.zrDelta,zrByTouch:c.zrByTouch,which:c.which};d&&(d[e]&&
(f.cancelBubble=d[e].call(d,f)),d.trigger(b,f),d=d.parent,!f.cancelBubble););f.cancelBubble||(this.trigger(b,f),this.painter&&this.painter.eachOtherLayer(function(g){"function"==typeof g[e]&&g[e].call(g,f);g.trigger&&g.trigger(b,f)}))}},findHover:function(a,b,c){for(var d=this.storage.getDisplayList(),e={x:a,y:b},f=d.length-1;0<=f;f--){var g;if(g=d[f]!==c&&!d[f].ignore){a:{var h=void 0;var k=d[f];g=a;var l=b;if(k[k.rectHover?"rectContain":"contain"](g,l)){for(;k;){if(k.clipPath&&!k.clipPath.contain(g,
l)){h=!1;break a}k.silent&&(h=!0);k=k.parent}h=h?"silent":!0}else h=!1}g=h}if(g&&(!e.topTarget&&(e.topTarget=d[f]),"silent"!==h)){e.target=d[f];break}}return e}};w("click mousedown mouseup mousewheel dblclick contextmenu".split(" "),function(a){Rd.prototype[a]=function(b){var c=this.findHover(b.zrX,b.zrY),d=c.target;if("mousedown"===a)this._downEl=d,this._downPoint=[b.zrX,b.zrY],this._upEl=d;else if("mouseup"===a)this._upEl=d;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<
ig(this._downPoint,[b.zrX,b.zrY]))return;this._downPoint=null}this.dispatchToElement(c,a,b)}});ba(Rd,tb);ba(Rd,cf);var kq="undefined"===typeof Float32Array?Array:Float32Array,Kt=(Object.freeze||Object)({create:fd,identity:be,copy:gh,mul:gd,translate:df,rotate:ef,scale:hh,invert:ih,clone:function(a){var b=fd();gh(b,a);return b}}),yj=be,zd=function(a){a=a||{};a.position||(this.position=[0,0]);null==a.rotation&&(this.rotation=0);a.scale||(this.scale=[1,1]);this.origin=this.origin||null},yb=zd.prototype;
yb.transform=null;yb.needLocalTransform=function(){return Fc(this.rotation)||Fc(this.position[0])||Fc(this.position[1])||Fc(this.scale[0]-1)||Fc(this.scale[1]-1)};yb.updateTransform=function(){var a=this.parent,b=a&&a.transform,c=this.needLocalTransform(),d=this.transform;c||b?(d=d||fd(),c?this.getLocalTransform(d):yj(d),b&&(c?gd(d,a.transform,d):gh(d,a.transform)),this.transform=d,this.invTransform=this.invTransform||fd(),ih(this.invTransform,d)):d&&yj(d)};yb.getLocalTransform=function(a){return zd.getLocalTransform(this,
a)};yb.setTransform=function(a){var b=this.transform,c=a.dpr||1;b?a.setTransform(c*b[0],c*b[1],c*b[2],c*b[3],c*b[4],c*b[5]):a.setTransform(c,0,0,c,0,0)};yb.restoreTransform=function(a){var b=a.dpr||1;a.setTransform(b,0,0,b,0,0)};var jp=[];yb.decomposeTransform=function(){if(this.transform){var a=this.parent,b=this.transform;a&&a.transform&&(gd(jp,a.invTransform,b),b=jp);a=b[0]*b[0]+b[1]*b[1];var c=b[2]*b[2]+b[3]*b[3],d=this.position,e=this.scale;Fc(a-1)&&(a=Math.sqrt(a));Fc(c-1)&&(c=Math.sqrt(c));
0>b[0]&&(a=-a);0>b[3]&&(c=-c);d[0]=b[4];d[1]=b[5];e[0]=a;e[1]=c;this.rotation=Math.atan2(-b[1]/c,b[0]/a)}};yb.getGlobalScale=function(){var a=this.transform;if(!a)return[1,1];var b=Math.sqrt(a[0]*a[0]+a[1]*a[1]),c=Math.sqrt(a[2]*a[2]+a[3]*a[3]);0>a[0]&&(b=-b);0>a[3]&&(c=-c);return[b,c]};yb.transformCoordToLocal=function(a,b){a=[a,b];(b=this.invTransform)&&qa(a,a,b);return a};yb.transformCoordToGlobal=function(a,b){a=[a,b];(b=this.transform)&&qa(a,a,b);return a};zd.getLocalTransform=function(a,b){b=
b||[];yj(b);var c=a.origin,d=a.scale||[1,1],e=a.rotation||0;a=a.position||[0,0];c&&(b[4]-=c[0],b[5]-=c[1]);hh(b,b,d);e&&ef(b,b,e);c&&(b[4]+=c[0],b[5]+=c[1]);b[4]+=a[0];b[5]+=a[1];return b};var pg={linear:function(a){return a},quadraticIn:function(a){return a*a},quadraticOut:function(a){return a*(2-a)},quadraticInOut:function(a){return 1>(a*=2)?.5*a*a:-.5*(--a*(a-2)-1)},cubicIn:function(a){return a*a*a},cubicOut:function(a){return--a*a*a+1},cubicInOut:function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*
a*a+2)},quarticIn:function(a){return a*a*a*a},quarticOut:function(a){return 1- --a*a*a*a},quarticInOut:function(a){return 1>(a*=2)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},quinticIn:function(a){return a*a*a*a*a},quinticOut:function(a){return--a*a*a*a*a+1},quinticInOut:function(a){return 1>(a*=2)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},sinusoidalIn:function(a){return 1-Math.cos(a*Math.PI/2)},sinusoidalOut:function(a){return Math.sin(a*Math.PI/2)},sinusoidalInOut:function(a){return.5*(1-Math.cos(Math.PI*a))},exponentialIn:function(a){return 0===
a?0:Math.pow(1024,a-1)},exponentialOut:function(a){return 1===a?1:1-Math.pow(2,-10*a)},exponentialInOut:function(a){return 0===a?0:1===a?1:1>(a*=2)?.5*Math.pow(1024,a-1):.5*(-Math.pow(2,-10*(a-1))+2)},circularIn:function(a){return 1-Math.sqrt(1-a*a)},circularOut:function(a){return Math.sqrt(1- --a*a)},circularInOut:function(a){return 1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},elasticIn:function(a){var b=.1;if(0===a)return 0;if(1===a)return 1;if(!b||1>b){b=1;var c=.1}else c=.4*
Math.asin(1/b)/(2*Math.PI);return-(b*Math.pow(2,10*--a)*Math.sin(2*(a-c)*Math.PI/.4))},elasticOut:function(a){var b=.1;if(0===a)return 0;if(1===a)return 1;if(!b||1>b){b=1;var c=.1}else c=.4*Math.asin(1/b)/(2*Math.PI);return b*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/.4)+1},elasticInOut:function(a){var b=.1;if(0===a)return 0;if(1===a)return 1;if(!b||1>b){b=1;var c=.1}else c=.4*Math.asin(1/b)/(2*Math.PI);return 1>(a*=2)?-.5*b*Math.pow(2,10*--a)*Math.sin(2*(a-c)*Math.PI/.4):b*Math.pow(2,-10*--a)*Math.sin(2*
(a-c)*Math.PI/.4)*.5+1},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){return--a*a*(2.70158*a+1.70158)+1},backInOut:function(a){return 1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2)},bounceIn:function(a){return 1-pg.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bounceInOut:function(a){return.5>a?.5*pg.bounceIn(2*
a):.5*pg.bounceOut(2*a-1)+.5}};jh.prototype={constructor:jh,step:function(a,b){this._initialized||(this._startTime=a+this._delay,this._initialized=!0);if(this._paused)this._pausedTime+=b;else if(b=(a-this._startTime-this._pausedTime)/this._life,!(0>b)){b=Math.min(b,1);var c=this.easing;c="string"==typeof c?pg[c]:c;c="function"===typeof c?c(b):b;this.fire("frame",c);if(1==b){if(this.loop)return this.restart(a),"restart";this._needsRemove=!0;return"destroy"}return null}},restart:function(a){this._startTime=
a-(a-this._startTime-this._pausedTime)%this._life+this.gap;this._pausedTime=0;this._needsRemove=!1},fire:function(a,b){a="on"+a;if(this[a])this[a](this._target,b)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var kp=function(){this.tail=this.head=null;this._len=0},Oe=kp.prototype;Oe.insert=function(a){a=new lp(a);this.insertEntry(a);return a};Oe.insertEntry=function(a){this.head?(this.tail.next=a,a.prev=this.tail,a.next=null,this.tail=a):this.head=this.tail=a;this._len++};
Oe.remove=function(a){var b=a.prev,c=a.next;b?b.next=c:this.head=c;c?c.prev=b:this.tail=b;a.next=a.prev=null;this._len--};Oe.len=function(){return this._len};Oe.clear=function(){this.head=this.tail=null;this._len=0};var lp=function(a){this.value=a},zj=function(a){this._list=new kp;this._map={};this._maxSize=a||10;this._lastRemovedEntry=null},Aj=zj.prototype;Aj.put=function(a,b){var c=this._list,d=this._map,e=null;if(null==d[a]){var f=c.len(),g=this._lastRemovedEntry;f>=this._maxSize&&0<f&&(f=c.head,
c.remove(f),delete d[f.key],e=f.value,this._lastRemovedEntry=f);g?g.value=b:g=new lp(b);g.key=a;c.insertEntry(g);d[a]=g}return e};Aj.get=function(a){a=this._map[a];var b=this._list;if(null!=a)return a!==b.tail&&(b.remove(a),b.insertEntry(a)),a.value};Aj.clear=function(){this._list.clear();this._map={}};var Gk={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]},Fk=new zj(20),ff=null,Lt=(Object.freeze||Object)({parse:Gb,
lift:Hk,toHex:Ik,fastLerp:Jk,fastMapToColor:Jk,lerp:Kk,mapToColor:Kk,modifyHSL:function(a,b,c,d){if(a=Gb(a)){if(a){var e=a[0]/255,f=a[1]/255,g=a[2]/255,h=Math.min(e,f,g),k=Math.max(e,f,g),l=k-h,m=(k+h)/2,n;if(0===l)h=n=0;else{h=.5>m?l/(k+h):l/(2-k-h);var p=((k-e)/6+l/2)/l,q=((k-f)/6+l/2)/l;l=((k-g)/6+l/2)/l;e===k?n=l-q:f===k?n=1/3+p-l:g===k&&(n=2/3+q-p);0>n&&(n+=1);1<n&&--n}e=[360*n,h,m];null!=a[3]&&e.push(a[3]);a=e}else a=void 0;null!=b&&(b=Math.round(b),a[0]=0>b?0:360<b?360:b);null!=c&&(a[1]=hd(c));
null!=d&&(a[2]=hd(d));return jd(nh(a),"rgba")}},modifyAlpha:Lk,stringify:jd}),oh=Array.prototype.slice,Bj=function(a,b,c,d){this._tracks={};this._target=a;this._loop=b||!1;this._getter=c||lq;this._setter=d||mq;this._delay=this._clipCount=0;this._doneList=[];this._onframeList=[];this._clipList=[]};Bj.prototype={when:function(a,b){var c=this._tracks,d;for(d in b)if(b.hasOwnProperty(d)){if(!c[d]){c[d]=[];var e=this._getter(this._target,d);if(null==e)continue;0!==a&&c[d].push({time:0,value:oq(e)})}c[d].push({time:a,
value:b[d]})}return this},during:function(a){this._onframeList.push(a);return this},pause:function(){for(var a=0;a<this._clipList.length;a++)this._clipList[a].pause();this._paused=!0},resume:function(){for(var a=0;a<this._clipList.length;a++)this._clipList[a].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={};this._clipList.length=0;for(var a=this._doneList,b=a.length,c=0;c<b;c++)a[c].call(this)},start:function(a,b){var c=this,d=0,e=function(){d--;
d||c._doneCallback()},f;for(f in this._tracks)if(this._tracks.hasOwnProperty(f)){var g=qq(this,a,e,this._tracks[f],f,b);if(g){this._clipList.push(g);d++;this.animation&&this.animation.addClip(g);var h=g}}if(h){var k=h.onframe;h.onframe=function(l,m){k(l,m);for(var n=0;n<c._onframeList.length;n++)c._onframeList[n](l,m)}}d||this._doneCallback();return this},stop:function(a){for(var b=this._clipList,c=this.animation,d=0;d<b.length;d++){var e=b[d];if(a)e.onframe(this._target,1);c&&c.removeClip(e)}b.length=
0},delay:function(a){this._delay=a;return this},done:function(a){a&&this._doneList.push(a);return this},getClips:function(){return this._clipList}};var mp=1;"undefined"!==typeof window&&(mp=Math.max(window.devicePixelRatio||1,1));var qg=mp,Cj=function(){this.animators=[]};Cj.prototype={constructor:Cj,animate:function(a,b){var c,d=!1,e=this,f=this.__zr;if(a){a=a.split(".");var g=e;d="shape"===a[0];for(var h=0,k=a.length;h<k;h++)g&&(g=g[a[h]]);g&&(c=g)}else c=e;if(c){var l=e.animators,m=new Bj(c,b);
m.during(function(n){e.dirty(d)}).done(function(){l.splice(V(l,m),1)});l.push(m);f&&f.animation.addAnimator(m);return m}},stopAnimation:function(a){for(var b=this.animators,c=b.length,d=0;d<c;d++)b[d].stop(a);b.length=0;return this},animateTo:function(a,b,c,d,e,f){function g(){h--;h||e&&e()}va(c)?(e=d,d=c,c=0):Ya(d)?(e=d,d="linear",c=0):Ya(c)?(e=c,c=0):Ya(b)?(e=b,b=500):b||(b=500);this.stopAnimation();this._animateToShallow("",this,a,b,c);a=this.animators.slice();var h=a.length;h||e&&e();for(b=0;b<
a.length;b++)a[b].done(g).start(d,f)},_animateToShallow:function(a,b,c,d,e){var f={},g=0,h;for(h in c)if(c.hasOwnProperty(h))if(null!=b[h])O(c[h])&&!Db(c[h])?this._animateToShallow(a?a+"."+h:h,b[h],c[h],d,e):(f[h]=c[h],g++);else if(null!=c[h])if(a){var k={};k[a]={};k[a][h]=c[h];this.attr(k)}else this.attr(h,c[h]);0<g&&this.animate(a,!1).when(null==d?500:d,f).delay(e||0);return this}};var Hb=function(a){zd.call(this,a);this._$handlers={};this.animators=[];this.id=a.id||ol++};Hb.prototype={type:"element",
name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,b){switch(this.draggable){case "horizontal":b=0;break;case "vertical":a=0}var c=this.transform;c||(c=this.transform=[1,0,0,1,0,0]);c[4]+=a;c[5]+=b;this.decomposeTransform();this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,b){},attrKV:function(a,b){if("position"===a||"scale"===a||"origin"===a){if(b){var c=this[a];c||(c=this[a]=[]);c[0]=b[0];c[1]=b[1]}}else this[a]=
b},hide:function(){this.ignore=!0;this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1;this.__zr&&this.__zr.refresh()},attr:function(a,b){if("string"===typeof a)this.attrKV(a,b);else if(O(a))for(var c in a)a.hasOwnProperty(c)&&this.attrKV(c,a[c]);this.dirty(!1);return this},setClipPath:function(a){var b=this.__zr;b&&a.addSelfToZr(b);this.clipPath&&this.clipPath!==a&&this.removeClipPath();this.clipPath=a;a.__zr=b;a.__clipTarget=this;this.dirty(!1)},removeClipPath:function(){var a=this.clipPath;
a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,this.clipPath=a.__clipTarget=null,this.dirty(!1))},addSelfToZr:function(a){this.__zr=a;var b=this.animators;if(b)for(var c=0;c<b.length;c++)a.animation.addAnimator(b[c]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var b=this.animators;if(b)for(var c=0;c<b.length;c++)a.animation.removeAnimator(b[c]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}};ba(Hb,Cj);ba(Hb,zd);ba(Hb,tb);var rg=Math.min,sg=Math.max;
ca.prototype={constructor:ca,union:function(a){var b=rg(a.x,this.x),c=rg(a.y,this.y);this.width=sg(a.x+a.width,this.x+this.width)-b;this.height=sg(a.y+a.height,this.y+this.height)-c;this.x=b;this.y=c},applyTransform:function(){var a=[],b=[],c=[],d=[];return function(e){if(e){a[0]=c[0]=this.x;a[1]=d[1]=this.y;b[0]=d[0]=this.x+this.width;b[1]=c[1]=this.y+this.height;qa(a,a,e);qa(b,b,e);qa(c,c,e);qa(d,d,e);this.x=rg(a[0],b[0],c[0],d[0]);this.y=rg(a[1],b[1],c[1],d[1]);e=sg(a[0],b[0],c[0],d[0]);var f=
sg(a[1],b[1],c[1],d[1]);this.width=e-this.x;this.height=f-this.y}}}(),calculateTransform:function(a){var b=a.width/this.width,c=a.height/this.height,d=fd();df(d,d,[-this.x,-this.y]);hh(d,d,[b,c]);df(d,d,[a.x,a.y]);return d},intersect:function(a){if(!a)return!1;a instanceof ca||(a=ca.create(a));var b=this.x,c=this.y,d=this.y+this.height,e=a.x+a.width,f=a.y,g=a.y+a.height;return!(this.x+this.width<a.x||e<b||d<f||g<c)},contain:function(a,b){return a>=this.x&&a<=this.x+this.width&&b>=this.y&&b<=this.y+
this.height},clone:function(){return new ca(this.x,this.y,this.width,this.height)},copy:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}};ca.create=function(a){return new ca(a.x,a.y,a.width,a.height)};var L=function(a){a=a||{};Hb.call(this,a);for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);this._children=[];this.__storage=null;this.__dirty=!0};L.prototype={constructor:L,isGroup:!0,type:"group",
silent:!1,children:function(){return this._children.slice()},childAt:function(a){return this._children[a]},childOfName:function(a){for(var b=this._children,c=0;c<b.length;c++)if(b[c].name===a)return b[c]},childCount:function(){return this._children.length},add:function(a){a&&a!==this&&a.parent!==this&&(this._children.push(a),this._doAdd(a));return this},addBefore:function(a,b){if(a&&a!==this&&a.parent!==this&&b&&b.parent===this){var c=this._children;b=c.indexOf(b);0<=b&&(c.splice(b,0,a),this._doAdd(a))}return this},
_doAdd:function(a){a.parent&&a.parent.remove(a);a.parent=this;var b=this.__storage,c=this.__zr;b&&b!==a.__storage&&(b.addToStorage(a),a instanceof L&&a.addChildrenToStorage(b));c&&c.refresh()},remove:function(a){var b=this.__zr,c=this.__storage,d=this._children,e=V(d,a);if(0>e)return this;d.splice(e,1);a.parent=null;c&&(c.delFromStorage(a),a instanceof L&&a.delChildrenFromStorage(c));b&&b.refresh();return this},removeAll:function(){var a=this._children,b=this.__storage,c;for(c=0;c<a.length;c++){var d=
a[c];b&&(b.delFromStorage(d),d instanceof L&&d.delChildrenFromStorage(b));d.parent=null}a.length=0;return this},eachChild:function(a,b){for(var c=this._children,d=0;d<c.length;d++)a.call(b,c[d],d);return this},traverse:function(a,b){for(var c=0;c<this._children.length;c++){var d=this._children[c];a.call(b,d);"group"===d.type&&d.traverse(a,b)}return this},addChildrenToStorage:function(a){for(var b=0;b<this._children.length;b++){var c=this._children[b];a.addToStorage(c);c instanceof L&&c.addChildrenToStorage(a)}},
delChildrenFromStorage:function(a){for(var b=0;b<this._children.length;b++){var c=this._children[b];a.delFromStorage(c);c instanceof L&&c.delChildrenFromStorage(a)}},dirty:function(){this.__dirty=!0;this.__zr&&this.__zr.refresh();return this},getBoundingRect:function(a){var b=null,c=new ca(0,0,0,0);a=a||this._children;for(var d=[],e=0;e<a.length;e++){var f=a[e];if(!f.ignore&&!f.invisible){var g=f.getBoundingRect();(f=f.getLocalTransform(d))?(c.copy(g),c.applyTransform(f),b=b||c.clone(),b.union(c)):
(b=b||g.clone(),b.union(g))}}return b||c}};na(L,Hb);var Dj=function(){this._roots=[];this._displayList=[];this._displayListLen=0};Dj.prototype={constructor:Dj,traverse:function(a,b){for(var c=0;c<this._roots.length;c++)this._roots[c].traverse(a,b)},getDisplayList:function(a,b){a&&this.updateDisplayList(b||!1);return this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var b=this._roots,c=this._displayList,d=0,e=b.length;d<e;d++)this._updateAndAddDisplayable(b[d],null,a);c.length=
this._displayListLen;R.canvasSupported&&hf(c,Sk)},_updateAndAddDisplayable:function(a,b,c){if(!a.ignore||c){a.beforeUpdate();a.__dirty&&a.update();a.afterUpdate();var d=a.clipPath;if(d){b=b?b.slice():[];for(var e=a;d;)d.parent=e,d.updateTransform(),b.push(d),e=d,d=d.clipPath}if(a.isGroup){d=a._children;for(e=0;e<d.length;e++){var f=d[e];a.__dirty&&(f.__dirty=!0);this._updateAndAddDisplayable(f,b,c)}a.__dirty=!1}else a.__clipPaths=b,this._displayList[this._displayListLen++]=a}},addRoot:function(a){a.__storage!==
this&&(a instanceof L&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a))},delRoot:function(a){if(null==a){for(var b=0;b<this._roots.length;b++)a=this._roots[b],a instanceof L&&a.delChildrenFromStorage(this);this._roots=[];this._displayList=[];this._displayListLen=0}else if(a instanceof Array){b=0;for(var c=a.length;b<c;b++)this.delRoot(a[b])}else b=V(this._roots,a),0<=b&&(this.delFromStorage(a),this._roots.splice(b,1),a instanceof L&&a.delChildrenFromStorage(this))},addToStorage:function(a){a&&
(a.__storage=this,a.dirty(!1));return this},delFromStorage:function(a){a&&(a.__storage=null);return this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Sk};var Mt={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},il=function(a,b,c){return Mt.hasOwnProperty(b)?c*=a.dpr:c},tg=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],
["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Gc=function(a,b){this.extendFrom(a,!1);this.host=b};Gc.prototype={constructor:Gc,host:null,fill:"#000",stroke:null,opacity:1,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(a,b,c){c=c&&c.style;for(var d=!c,e=
0;e<tg.length;e++){var f=tg[e],g=f[0];if(d||this[g]!==c[g])a[g]=il(a,g,this[g]||f[1])}if(d||this.fill!==c.fill)a.fillStyle=this.fill;if(d||this.stroke!==c.stroke)a.strokeStyle=this.stroke;if(d||this.opacity!==c.opacity)a.globalAlpha=null==this.opacity?1:this.opacity;if(d||this.blend!==c.blend)a.globalCompositeOperation=this.blend||"source-over";this.hasStroke()&&(a.lineWidth=this.lineWidth/(this.strokeNoScale&&b&&b.getLineScale?b.getLineScale():1))},hasFill:function(){var a=this.fill;return null!=
a&&"none"!==a},hasStroke:function(){var a=this.stroke;return null!=a&&"none"!==a&&0<this.lineWidth},extendFrom:function(a,b){if(a)for(var c in a)!a.hasOwnProperty(c)||!0!==b&&(!1===b?this.hasOwnProperty(c):null==a[c])||(this[c]=a[c])},set:function(a,b){"string"===typeof a?this[a]=b:this.extendFrom(a,!0)},clone:function(){var a=new this.constructor;a.extendFrom(this,!0);return a},getGradient:function(a,b,c){a=("radial"===b.type?tq:sq)(a,b,c);b=b.colorStops;for(c=0;c<b.length;c++)a.addColorStop(b[c].offset,
b[c].color);return a}};for(var Ej=Gc.prototype,Fj=0;Fj<tg.length;Fj++){var Gj=tg[Fj];Gj[0]in Ej||(Ej[Gj[0]]=Gj[1])}Gc.getGradient=Ej.getGradient;var Hj=function(a,b){this.image=a;this.repeat=b;this.type="pattern"};Hj.prototype.getCanvasPattern=function(a){return a.createPattern(this.image,this.repeat||"repeat")};var Pe=function(a,b,c){c=c||qg;if("string"===typeof a)var d=Tk(a,b,c);else O(a)&&(d=a,a=d.id);this.id=a;this.dom=d;if(a=d.style)d.onselectstart=uq,a["-webkit-user-select"]="none",a["user-select"]=
"none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a.padding=0,a.margin=0,a["border-width"]=0;this.ctxBack=this.domBack=null;this.painter=b;this.config=null;this.clearColor=0;this.motionBlur=!1;this.lastFrameAlpha=.7;this.dpr=c};Pe.prototype={constructor:Pe,__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 a=this.dpr;this.domBack=Tk("back-"+this.id,this.painter,a);this.ctxBack=this.domBack.getContext("2d");1!=a&&this.ctxBack.scale(a,a)},resize:function(a,b){var c=this.dpr,d=this.dom,e=d.style,f=this.domBack;e&&(e.width=a+"px",e.height=b+"px");d.width=a*c;d.height=b*c;f&&(f.width=a*c,f.height=b*c,1!=c&&this.ctxBack.scale(c,c))},clear:function(a,b){var c=this.dom,d=this.ctx,e=c.width,f=c.height;b=b||this.clearColor;var g=this.motionBlur&&!a;a=this.lastFrameAlpha;
var h=this.dpr;g&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(c,0,0,e/h,f/h));d.clearRect(0,0,e,f);if(b&&"transparent"!==b){if(b.colorStops){var k=b.__canvasGradient||Gc.getGradient(d,b,{x:0,y:0,width:e,height:f});b.__canvasGradient=k}else b.image&&(k=Hj.prototype.getCanvasPattern.call(b,d));d.save();d.fillStyle=k||b;d.fillRect(0,0,e,f);d.restore()}g&&(b=this.domBack,d.save(),d.globalAlpha=a,d.drawImage(b,0,0,e,f),d.restore())}};var Ij=
"undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){setTimeout(a,16)},sh=new zj(50),jf={},th=0,uh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,wq={measureText:function(a,b){var c=zk();c.font=b||"12px sans-serif";return c.measureText(a)}},xq={left:1,right:1,center:1},yq={top:1,bottom:1,middle:1},Jj=new ca,
Kj=function(){};Kj.prototype={constructor:Kj,drawRectText:function(a,b){var c=this.style;b=c.textRect||b;this.__dirty&&wh(c,!0);var d=c.text;null!=d&&(d+="");if(null!=d&&(d||c.textBackgroundColor||c.textBorderWidth&&c.textBorderColor||c.textPadding)){a.save();var e=this.transform;c.transformText?this.setTransform(a):e&&(Jj.copy(b),Jj.applyTransform(e),b=Jj);c.rich?gl(this,a,d,c,b):bl(this,a,d,c,b);a.restore()}}};Ia.prototype={constructor:Ia,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,inplace:!1,beforeBrush:function(a){},afterBrush:function(a){},brush:function(a,b){},getBoundingRect:function(){},contain:function(a,b){return this.rectContain(a,b)},traverse:function(a,b){a.call(b,this)},rectContain:function(a,b){a=this.transformCoordToLocal(a,b);return this.getBoundingRect().contain(a[0],a[1])},dirty:function(){this.__dirty=!0;this._rect=null;this.__zr&&this.__zr.refresh()},
animateStyle:function(a){return this.animate("style",a)},attrKV:function(a,b){"style"!==a?Hb.prototype.attrKV.call(this,a,b):this.style.set(b)},setStyle:function(a,b){this.style.set(a,b);this.dirty(!1);return this},useStyle:function(a){this.style=new Gc(a,this);this.dirty(!1);return this}};na(Ia,Hb);ba(Ia,Kj);$b.prototype={constructor:$b,type:"image",brush:function(a,b){var c=this.style,d=c.image;c.bind(a,this,b);if((b=this._image=Uk(d,this._image,this,this.onload))&&b&&b.width&&b.height){d=c.x||
0;var e=c.y||0,f=c.width,g=c.height,h=b.width/b.height;null==f&&null!=g?f=g*h:null==g&&null!=f?g=f/h:null==f&&null==g&&(f=b.width,g=b.height);this.setTransform(a);if(c.sWidth&&c.sHeight){h=c.sx||0;var k=c.sy||0;a.drawImage(b,h,k,c.sWidth,c.sHeight,d,e,f,g)}else c.sx&&c.sy?(h=c.sx,k=c.sy,a.drawImage(b,h,k,f-h,g-k,d,e,f,g)):a.drawImage(b,d,e,f,g);null!=c.text&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))}},getBoundingRect:function(){var a=this.style;this._rect||(this._rect=
new ca(a.x||0,a.y||0,a.width||0,a.height||0));return this._rect}};na($b,Ia);var Lj=new ca(0,0,0,0),Mj=new ca(0,0,0,0),Nj=function(a,b,c){this.type="canvas";var d=!a.nodeName||"CANVAS"===a.nodeName.toUpperCase();this._opts=c=P({},c||{});this.dpr=c.devicePixelRatio||qg;this._singleCanvas=d;this.root=a;var e=a.style;e&&(e["-webkit-tap-highlight-color"]="transparent",e["-webkit-user-select"]=e["user-select"]=e["-webkit-touch-callout"]="none",a.innerHTML="");this.storage=b;b=this._zlevelList=[];e=this._layers=
{};this._layerConfig={};this._needsManuallyCompositing=!1;if(d){d=a.width;var f=a.height;null!=c.width&&(d=c.width);null!=c.height&&(f=c.height);this.dpr=c.devicePixelRatio||1;a.width=d*this.dpr;a.height=f*this.dpr;this._width=d;this._height=f;c=new Pe(a,this,this.dpr);c.__builtin__=!0;c.initContext();e[314159]=c;c.zlevel=314159;b.push(314159);this._domRoot=a}else this._width=this._getSize(0),this._height=this._getSize(1),c=this._width,b=this._height,e=document.createElement("div"),e.style.cssText=
["position:relative;overflow:hidden","width:"+c+"px","height:"+b+"px","padding:0;margin:0;border-width:0"].join(";")+";",c=this._domRoot=e,a.appendChild(c);this._hoverlayer=null;this._hoverElements=[]};Nj.prototype={constructor:Nj,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var a=this.getViewportRoot();if(a)return{offsetLeft:a.offsetLeft||0,offsetTop:a.offsetTop||0}},refresh:function(a){var b=
this.storage.getDisplayList(!0),c=this._zlevelList;this._redrawId=Math.random();this._paintList(b,a,this._redrawId);for(a=0;a<c.length;a++)b=this._layers[c[a]],!b.__builtin__&&b.refresh&&b.refresh(0===a?this._backgroundColor:null);this.refreshHover();return this},addHover:function(a,b){if(!a.__hoverMir){var c=new a.constructor({style:a.style,shape:a.shape});c.__from=a;a.__hoverMir=c;c.setStyle(b);this._hoverElements.push(c)}},removeHover:function(a){var b=this._hoverElements,c=V(b,a.__hoverMir);0<=
c&&b.splice(c,1);a.__hoverMir=null},clearHover:function(a){a=this._hoverElements;for(var b=0;b<a.length;b++){var c=a[b].__from;c&&(c.__hoverMir=null)}a.length=0},refreshHover:function(){var a=this._hoverElements,b=a.length,c=this._hoverlayer;c&&c.clear();if(b){hf(a,this.storage.displayableSortFunc);c||(c=this._hoverlayer=this.getLayer(1E5));var d={};c.ctx.save();for(var e=0;e<b;){var f=a[e],g=f.__from;g&&g.__zr?(e++,g.invisible||(f.transform=g.transform,f.invTransform=g.invTransform,f.__clipPaths=
g.__clipPaths,this._doPaintEl(f,c,!0,d))):(a.splice(e,1),g.__hoverMir=null,b--)}c.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1E5)},_paintList:function(a,b,c){if(this._redrawId===c){b=b||!1;this._updateLayerStatus(a);var d=this._doPaintList(a,b);this._needsManuallyCompositing&&this._compositeManually();if(!d){var e=this;Ij(function(){e._paintList(a,b,c)})}}},_compositeManually:function(){var a=this.getLayer(314159).ctx,b=this._domRoot.width,c=this._domRoot.height;a.clearRect(0,0,
b,c);this.eachBuiltinLayer(function(d){d.virtual&&a.drawImage(d.dom,0,0,b,c)})},_doPaintList:function(a,b){for(var c=[],d=0;d<this._zlevelList.length;d++){var e=this._layers[this._zlevelList[d]];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||b)&&c.push(e)}d=!0;for(var f=0;f<c.length;f++){e=c[f];var g=e.ctx,h={};g.save();var k=b?e.__startIndex:e.__drawIndex,l=!b&&e.incremental&&Date.now,m=l&&Date.now(),n=e.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(e.__startIndex===e.__endIndex)e.clear(!1,
n);else if(k===e.__startIndex){var p=a[k];p.incremental&&p.notClear&&!b||e.clear(!1,n)}-1===k&&(console.error("For some unknown reason. drawIndex is -1"),k=e.__startIndex);for(;k<e.__endIndex&&!(n=a[k],this._doPaintEl(n,e,b,h),n.__dirty=!1,l&&15<Date.now()-m);k++);e.__drawIndex=k;e.__drawIndex<e.__endIndex&&(d=!1);h.prevElClipPaths&&g.restore();g.restore()}R.wxa&&w(this._layers,function(q){q&&q.ctx&&q.ctx.draw&&q.ctx.draw()});return d},_doPaintEl:function(a,b,c,d){var e=b.ctx,f=a.transform;if(c=(b.__dirty||
c)&&!a.invisible&&0!==a.style.opacity&&!(f&&!f[0]&&!f[3])){if(c=a.culling)c=this._width,f=this._height,Lj.copy(a.getBoundingRect()),a.transform&&Lj.applyTransform(a.transform),Mj.width=c,Mj.height=f,c=!Lj.intersect(Mj);c=!c}if(c){c=a.__clipPaths;if(!(f=!d.prevElClipPaths))a:if(f=d.prevElClipPaths,c==f)f=!1;else if(c&&f&&c.length===f.length){for(var g=0;g<c.length;g++)if(c[g]!==f[g]){f=!0;break a}f=void 0}else f=!0;if(f&&(d.prevElClipPaths&&(b.ctx.restore(),d.prevElClipPaths=null,d.prevEl=null),c)){e.save();
for(b=0;b<c.length;b++)f=c[b],f.setTransform(e),e.beginPath(),f.buildPath(e,f.shape),e.clip(),f.restoreTransform(e);d.prevElClipPaths=c}a.beforeBrush&&a.beforeBrush(e);a.brush(e,d.prevEl||null);d.prevEl=a;a.afterBrush&&a.afterBrush(e)}},getLayer:function(a,b){this._singleCanvas&&!this._needsManuallyCompositing&&(a=314159);var c=this._layers[a];c||(c=new Pe("zr_"+a,this,this.dpr),c.zlevel=a,c.__builtin__=!0,this._layerConfig[a]&&T(c,this._layerConfig[a],!0),b&&(c.virtual=b),this.insertLayer(a,c),c.initContext());
return c},insertLayer:function(a,b){var c=this._layers,d=this._zlevelList,e=d.length,f=null,g=-1,h=this._domRoot;if(!c[a]&&b&&(b.__builtin__||"function"===typeof b.resize&&"function"===typeof b.refresh)){if(0<e&&a>d[0]){for(g=0;g<e-1&&!(d[g]<a&&d[g+1]>a);g++);f=c[d[g]]}d.splice(g+1,0,a);c[a]=b;b.virtual||(f?(a=f.dom,a.nextSibling?h.insertBefore(b.dom,a.nextSibling):h.appendChild(b.dom)):h.firstChild?h.insertBefore(b.dom,h.firstChild):h.appendChild(b.dom))}},eachLayer:function(a,b){var c=this._zlevelList,
d;for(d=0;d<c.length;d++){var e=c[d];a.call(b,this._layers[e],e)}},eachBuiltinLayer:function(a,b){var c=this._zlevelList,d;for(d=0;d<c.length;d++){var e=c[d];var f=this._layers[e];f.__builtin__&&a.call(b,f,e)}},eachOtherLayer:function(a,b){var c=this._zlevelList,d;for(d=0;d<c.length;d++){var e=c[d];var f=this._layers[e];f.__builtin__||a.call(b,f,e)}},getLayers:function(){return this._layers},_updateLayerStatus:function(a){function b(h){e&&(e.__endIndex!==h&&(e.__dirty=!0),e.__endIndex=h)}this.eachBuiltinLayer(function(h,
k){h.__dirty=h.__used=!1});if(this._singleCanvas)for(var c=1;c<a.length;c++){var d=a[c];if(d.zlevel!==a[c-1].zlevel||d.incremental){this._needsManuallyCompositing=!0;break}}var e=null,f=0;for(c=0;c<a.length;c++){d=a[c];var g=d.zlevel;d.incremental?(g=this.getLayer(g+.001,this._needsManuallyCompositing),g.incremental=!0,f=1):g=this.getLayer(g+(0<f?.01:0),this._needsManuallyCompositing);g!==e&&(g.__used=!0,g.__startIndex!==c&&(g.__dirty=!0),g.__startIndex=c,g.__drawIndex=g.incremental?-1:c,b(c),e=g);
d.__dirty&&(g.__dirty=!0,g.incremental&&0>g.__drawIndex&&(g.__drawIndex=c))}b(c);this.eachBuiltinLayer(function(h,k){!h.__used&&0<h.getElementCount()&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0);h.__dirty&&0>h.__drawIndex&&(h.__drawIndex=h.__startIndex)})},clear:function(){this.eachBuiltinLayer(this._clearLayer);return this},_clearLayer:function(a){a.clear()},setBackgroundColor:function(a){this._backgroundColor=a},configLayer:function(a,b){if(b){var c=this._layerConfig;c[a]?T(c[a],
b,!0):c[a]=b;for(b=0;b<this._zlevelList.length;b++){var d=this._zlevelList[b];d!==a&&d!==a+.01||T(this._layers[d],c[a],!0)}}},delLayer:function(a){var b=this._layers,c=this._zlevelList,d=b[a];d&&(d.dom.parentNode.removeChild(d.dom),delete b[a],c.splice(V(c,a),1))},resize:function(a,b){if(this._domRoot.style){var c=this._domRoot;c.style.display="none";var d=this._opts;null!=a&&(d.width=a);null!=b&&(d.height=b);a=this._getSize(0);b=this._getSize(1);c.style.display="";if(this._width!=a||b!=this._height){c.style.width=
a+"px";c.style.height=b+"px";for(var e in this._layers)this._layers.hasOwnProperty(e)&&this._layers[e].resize(a,b);w(this._progressiveLayers,function(f){f.resize(a,b)});this.refresh(!0)}this._width=a;this._height=b}else{if(null==a||null==b)return;this._width=a;this._height=b;this.getLayer(314159).resize(a,b)}return this},clearLayer:function(a){(a=this._layers[a])&&a.clear()},dispose:function(){this.root.innerHTML="";this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(a){a=
a||{};if(this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var b=new Pe("image",this,a.pixelRatio||this.dpr);b.initContext();b.clear(!1,a.backgroundColor||this._backgroundColor);if(a.pixelRatio<=this.dpr){this.refresh();var c=b.dom.width,d=b.dom.height,e=b.ctx;this.eachLayer(function(h){h.__builtin__?e.drawImage(h.dom,0,0,c,d):h.renderToCanvas&&(b.ctx.save(),h.renderToCanvas(b.ctx),b.ctx.restore())})}else{a={};for(var f=this.storage.getDisplayList(!0),g=0;g<f.length;g++)this._doPaintEl(f[g],
b,!0,a)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(a){var b=this._opts,c=["width","height"][a],d=["clientWidth","clientHeight"][a],e=["paddingLeft","paddingTop"][a];a=["paddingRight","paddingBottom"][a];if(null!=b[c]&&"auto"!==b[c])return parseFloat(b[c]);b=this.root;var f=document.defaultView.getComputedStyle(b);return(b[d]||parseInt(f[c],10)||parseInt(b.style[c],10))-(parseInt(f[e],10)||0)-(parseInt(f[a],10)||0)|0},pathToImage:function(a,
b){b=b||this.dpr;var c=document.createElement("canvas"),d=c.getContext("2d"),e=a.getBoundingRect(),f=a.style,g=f.shadowBlur*b,h=f.shadowOffsetX*b,k=f.shadowOffsetY*b,l=f.hasStroke()?f.lineWidth:0;f=Math.max(l/2,-h+g);var m=Math.max(l/2,-k+g);h=e.width+f+Math.max(l/2,h+g);g=e.height+m+Math.max(l/2,k+g);c.width=h*b;c.height=g*b;d.scale(b,b);d.clearRect(0,0,h,g);d.dpr=b;b=a.position;g=a.rotation;k=a.scale;a.position=[f-e.x,m-e.y];a.rotation=0;a.scale=[1,1];a.updateTransform();a&&a.brush(d);c=new $b({style:{x:0,
y:0,image:c}});null!=b&&(c.position=a.position=b);null!=g&&(c.rotation=a.rotation=g);null!=k&&(c.scale=a.scale=k);return c}};var Fh="undefined"!==typeof window&&!!window.addEventListener,Aq=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pd=Fh?function(a){a.preventDefault();a.stopPropagation();a.cancelBubble=!0}:function(a){a.returnValue=!1;a.cancelBubble=!0},ug=function(a){a=a||{};this.stage=a.stage||{};this.onframe=a.onframe||function(){};this._clips=[];this._running=!1;this._time;this._pausedTime;
this._pauseStart;this._paused=!1;this._$handlers={}};ug.prototype={constructor:ug,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;a=a.getClips();for(var b=0;b<a.length;b++)this.addClip(a[b])},removeClip:function(a){a=V(this._clips,a);0<=a&&this._clips.splice(a,1)},removeAnimator:function(a){for(var b=a.getClips(),c=0;c<b.length;c++)this.removeClip(b[c]);a.animation=null},_update:function(){for(var a=(new Date).getTime()-this._pausedTime,b=a-this._time,c=this._clips,
d=c.length,e=[],f=[],g=0;g<d;g++){var h=c[g],k=h.step(a,b);k&&(e.push(k),f.push(h))}for(g=0;g<d;)c[g]._needsRemove?(c[g]=c[d-1],c.pop(),d--):g++;d=e.length;for(g=0;g<d;g++)f[g].fire(e[g]);this._time=a;this.onframe(b);this.trigger("frame",b);this.stage.update&&this.stage.update()},_startLoop:function(){function a(){b._running&&(Ij(a),!b._paused&&b._update())}var b=this;this._running=!0;Ij(a)},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(a,b){b=b||{};a=new Bj(a,b.loop,b.getter,b.setter);this.addAnimator(a);return a}};ba(ug,tb);var Gh=function(){this._track=[]};Gh.prototype={constructor:Gh,recognize:function(a,b,c){this._doTrack(a,b,c);return this._recognize(a)},
clear:function(){this._track.length=0;return this},_doTrack:function(a,b,c){var d=a.touches;if(d){a={points:[],touches:[],target:b,event:a};b=0;for(var e=d.length;b<e;b++){var f=d[b],g=Ah(c,f,{});a.points.push([g.zrX,g.zrY]);a.touches.push(f)}this._track.push(a)}},_recognize:function(a){for(var b in Oj)if(Oj.hasOwnProperty(b)){var c=Oj[b](this._track,a);if(c)return c}}};var Oj={pinch:function(a,b){var c=a.length;if(c){var d=(a[c-1]||{}).points;if((c=(a[c-2]||{}).points||d)&&1<c.length&&d&&1<d.length)return c=
kl(d)/kl(c),!isFinite(c)&&(c=1),b.pinchScale=c,d=[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2],b.pinchX=d[0],b.pinchY=d[1],{type:"pinch",target:a[0].target,event:b}}}},mf="click dblclick mousewheel mouseout mouseup mousedown mousemove contextmenu".split(" "),Dh=["touchstart","touchend","touchmove"],Nt={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},nl=C(mf,function(a){var b=a.replace("mouse","pointer");return Nt[b]?b:a}),Ja={mousemove:function(a){a=Hc(this.dom,a);this.trigger("mousemove",a)},mouseout:function(a){a=
Hc(this.dom,a);var b=a.toElement||a.relatedTarget;if(b!=this.dom)for(;b&&9!=b.nodeType;){if(b===this.dom)return;b=b.parentNode}this.trigger("mouseout",a)},touchstart:function(a){a=Hc(this.dom,a);a.zrByTouch=!0;this._lastTouchMoment=new Date;Bh(this,a,"start");Ja.mousemove.call(this,a);Ja.mousedown.call(this,a);Ch(this)},touchmove:function(a){a=Hc(this.dom,a);a.zrByTouch=!0;Bh(this,a,"change");Ja.mousemove.call(this,a);Ch(this)},touchend:function(a){a=Hc(this.dom,a);a.zrByTouch=!0;Bh(this,a,"end");
Ja.mouseup.call(this,a);300>+new Date-this._lastTouchMoment&&Ja.click.call(this,a);Ch(this)},pointerdown:function(a){Ja.mousedown.call(this,a)},pointermove:function(a){ml(a)||Ja.mousemove.call(this,a)},pointerup:function(a){Ja.mouseup.call(this,a)},pointerout:function(a){ml(a)||Ja.mouseout.call(this,a)}};w("click mousedown mouseup mousewheel dblclick contextmenu".split(" "),function(a){Ja[a]=function(b){b=Hc(this.dom,b);this.trigger(a,b)}});var np=Eh.prototype;np.dispose=function(){for(var a=mf.concat(Dh),
b=0;b<a.length;b++){var c=a[b],d=this.dom,e=ll(c);c=this._handlers[c];Fh?d.removeEventListener(e,c):d.detachEvent("on"+e,c)}};np.setCursor=function(a){this.dom.style&&(this.dom.style.cursor=a||"default")};ba(Eh,tb);var Ot=!R.canvasSupported,vg={canvas:Nj},Ic={},Ih=function(a,b,c){c=c||{};this.dom=b;this.id=a;var d=this,e=new Dj,f=c.renderer;if(Ot){if(!vg.vml)throw Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&vg[f]||(f="canvas");a=new vg[f](b,e,c,a);this.storage=e;
this.painter=a;b=R.node||R.worker?null:new Eh(a.getViewportRoot());this.handler=new Rd(e,a,b,a.root);this.animation=new ug({stage:{update:K(this.flush,this)}});this.animation.start();var g=e.delFromStorage,h=e.addToStorage;e.delFromStorage=function(k){g.call(e,k);k&&k.removeSelfFromZr(d)};e.addToStorage=function(k){h.call(e,k);k.addSelfToZr(d)}};Ih.prototype={constructor:Ih,getId:function(){return this.id},add:function(a){this.storage.addRoot(a);this._needsRefresh=!0},remove:function(a){this.storage.delRoot(a);
this._needsRefresh=!0},configLayer:function(a,b){this.painter.configLayer&&this.painter.configLayer(a,b);this._needsRefresh=!0},setBackgroundColor:function(a){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(a);this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1;this.painter.refresh();this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){if(this._needsRefresh){var a=!0;this.refreshImmediately()}this._needsRefreshHover&&(a=!0,this.refreshHoverImmediately());
a&&this.trigger("rendered")},addHover:function(a,b){this.painter.addHover&&(this.painter.addHover(a,b),this.refreshHover())},removeHover:function(a){this.painter.removeHover&&(this.painter.removeHover(a),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(a){a=
a||{};this.painter.resize(a.width,a.height);this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(a,b){return this.painter.pathToImage(a,b)},setCursorStyle:function(a){this.handler.setCursorStyle(a)},findHover:function(a,b){return this.handler.findHover(a,b)},on:function(a,b,c){this.handler.on(a,b,c)},off:function(a,b){this.handler.off(a,b)},trigger:function(a,
b){this.handler.trigger(a,b)},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;delete Ic[this.id]}};var Pt=(Object.freeze||Object)({version:"4.0.4",init:Hh,dispose:function(a){if(a)a.dispose();else{for(var b in Ic)Ic.hasOwnProperty(b)&&Ic[b].dispose();Ic={}}return this},getInstance:function(a){return Ic[a]},
registerPainter:function(a,b){vg[a]=b}}),md=w,ld=O,Cq=E,Om="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".split(" "),Dq=0,Gq=0,wg=function(a){for(var b=0;b<a.length;b++)a[b][1]||(a[b][1]=a[b][0]);return function(c,d,e){for(var f=
{},g=0;g<a.length;g++){var h=a[g][1];d&&0<=V(d,h)||e&&0>V(e,h)||(h=c.getShallow(h),null!=h&&(f[a[g][0]]=h))}return f}},Qt=wg([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Rt=wg([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),tf=Math.pow,bc=Math.sqrt,El=bc(3),uf=1/3,mb=Ec(),Pa=Ec(),od=Ec(),xa=Math.min,ya=Math.max,Pj=Math.sin,Qj=Math.cos,ad=2*Math.PI,xg=Ec(),yg=Ec(),zg=Ec(),
op=[],pp=[],ha={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zb=[],wc=[],Ab=[],Bb=[],qp=Math.min,rp=Math.max,Qe=Math.cos,Re=Math.sin,Ag=Math.sqrt,Sd=Math.abs,Rj="undefined"!=typeof Float32Array,qb=function(a){if(this._saveData=!a)this.data=[];this._ctx=null};qb.prototype={constructor:qb,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(a,b){this._ux=Sd(1/qg/a)||0;this._uy=Sd(1/qg/b)||0},getContext:function(){return this._ctx},beginPath:function(a){(this._ctx=
a)&&a.beginPath();a&&(this.dpr=a.dpr);this._saveData&&(this._len=0);this._lineDash&&(this._lineDash=null,this._dashOffset=0);return this},moveTo:function(a,b){this.addData(ha.M,a,b);this._ctx&&this._ctx.moveTo(a,b);this._x0=a;this._y0=b;this._xi=a;this._yi=b;return this},lineTo:function(a,b){var c=Sd(a-this._xi)>this._ux||Sd(b-this._yi)>this._uy||5>this._len;this.addData(ha.L,a,b);this._ctx&&c&&(this._needsDash()?this._dashedLineTo(a,b):this._ctx.lineTo(a,b));c&&(this._xi=a,this._yi=b);return this},
bezierCurveTo:function(a,b,c,d,e,f){this.addData(ha.C,a,b,c,d,e,f);this._ctx&&(this._needsDash()?this._dashedBezierTo(a,b,c,d,e,f):this._ctx.bezierCurveTo(a,b,c,d,e,f));this._xi=e;this._yi=f;return this},quadraticCurveTo:function(a,b,c,d){this.addData(ha.Q,a,b,c,d);this._ctx&&(this._needsDash()?this._dashedQuadraticTo(a,b,c,d):this._ctx.quadraticCurveTo(a,b,c,d));this._xi=c;this._yi=d;return this},arc:function(a,b,c,d,e,f){this.addData(ha.A,a,b,c,c,d,e-d,0,f?0:1);this._ctx&&this._ctx.arc(a,b,c,d,
e,f);this._xi=Qe(e)*c+a;this._yi=Re(e)*c+a;return this},arcTo:function(a,b,c,d,e){this._ctx&&this._ctx.arcTo(a,b,c,d,e);return this},rect:function(a,b,c,d){this._ctx&&this._ctx.rect(a,b,c,d);this.addData(ha.R,a,b,c,d);return this},closePath:function(){this.addData(ha.Z);var a=this._ctx,b=this._x0,c=this._y0;a&&(this._needsDash()&&this._dashedLineTo(b,c),a.closePath());this._xi=b;this._yi=c;return this},fill:function(a){a&&a.fill();this.toStatic()},stroke:function(a){a&&a.stroke();this.toStatic()},
setLineDash:function(a){if(a instanceof Array){this._lineDash=a;for(var b=this._dashIdx=0,c=0;c<a.length;c++)b+=a[c];this._dashSum=b}return this},setLineDashOffset:function(a){this._dashOffset=a;return this},len:function(){return this._len},setData:function(a){var b=a.length;this.data&&this.data.length==b||!Rj||(this.data=new Float32Array(b));for(var c=0;c<b;c++)this.data[c]=a[c];this._len=b},appendPath:function(a){a instanceof Array||(a=[a]);for(var b=a.length,c=0,d=this._len,e=0;e<b;e++)c+=a[e].len();
Rj&&this.data instanceof Float32Array&&(this.data=new Float32Array(d+c));for(e=0;e<b;e++){c=a[e].data;for(var f=0;f<c.length;f++)this.data[d++]=c[f]}this._len=d},addData:function(a){if(this._saveData){var b=this.data;this._len+arguments.length>b.length&&(this._expandData(),b=this.data);for(var c=0;c<arguments.length;c++)b[this._len++]=arguments[c];this._prevCmd=a}},_expandData:function(){if(!(this.data instanceof Array)){for(var a=[],b=0;b<this._len;b++)a[b]=this.data[b];this.data=a}},_needsDash:function(){return this._lineDash},
_dashedLineTo:function(a,b){var c=this._dashSum,d=this._dashOffset,e=this._lineDash,f=this._ctx,g=this._xi,h=this._yi,k=a-g,l=b-h,m=Ag(k*k+l*l),n=e.length;k/=m;l/=m;0>d&&(d=c+d);d%=c;c=g-d*k;for(d=h-d*l;0<k&&c<=a||0>k&&c>=a||0==k&&(0<l&&d<=b||0>l&&d>=b);){var p=this._dashIdx;m=e[p];c+=k*m;d+=l*m;this._dashIdx=(p+1)%n;if(!(0<k&&c<g||0>k&&c>g||0<l&&d<h||0>l&&d>h))f[p%2?"moveTo":"lineTo"](0<=k?qp(c,a):rp(c,a),0<=l?qp(d,b):rp(d,b))}k=c-a;l=d-b;this._dashOffset=-Ag(k*k+l*l)},_dashedBezierTo:function(a,
b,c,d,e,f){var g=this._dashSum,h=this._dashOffset,k=this._lineDash,l=this._ctx,m=this._xi,n=this._yi,p=0,q=this._dashIdx,r=k.length,t=0;0>h&&(h=g+h);h%=g;for(g=0;1>g;g+=.1){var u=oa(m,a,c,e,g+.1)-oa(m,a,c,e,g);var v=oa(n,b,d,f,g+.1)-oa(n,b,d,f,g);p+=Ag(u*u+v*v)}for(;q<r&&!(t+=k[q],t>h);q++);for(g=(t-h)/p;1>=g;){var x=oa(m,a,c,e,g);var y=oa(n,b,d,f,g);q%2?l.moveTo(x,y):l.lineTo(x,y);g+=k[q]/p;q=(q+1)%r}0!==q%2&&l.lineTo(e,f);u=e-x;v=f-y;this._dashOffset=-Ag(u*u+v*v)},_dashedQuadraticTo:function(a,
b,c,d){var e=c,f=d;c=(c+2*a)/3;d=(d+2*b)/3;a=(this._xi+2*a)/3;b=(this._yi+2*b)/3;this._dashedBezierTo(a,b,c,d,e,f)},toStatic:function(){var a=this.data;a instanceof Array&&(a.length=this._len,Rj&&(this.data=new Float32Array(a)))},getBoundingRect:function(){zb[0]=zb[1]=Ab[0]=Ab[1]=Number.MAX_VALUE;wc[0]=wc[1]=Bb[0]=Bb[1]=-Number.MAX_VALUE;for(var a=this.data,b=0,c=0,d=0,e=0,f=0;f<a.length;){var g=a[f++];1==f&&(b=a[f],c=a[f+1],d=b,e=c);switch(g){case ha.M:d=a[f++];e=a[f++];b=d;c=e;Ab[0]=d;Ab[1]=e;Bb[0]=
d;Bb[1]=e;break;case ha.L:g=b;var h=c;c=a[f];b=a[f+1];var k=Ab,l=Bb;k[0]=xa(g,c);k[1]=xa(h,b);l[0]=ya(g,c);l[1]=ya(h,b);b=a[f++];c=a[f++];break;case ha.C:g=void 0;h=b;var m=a[f++];b=a[f++];var n=a[f++];k=a[f++];l=a[f];var p=a[f+1],q=Ab,r=Bb,t=tl,u=oa,v=t(h,m,n,l,op);q[0]=Infinity;q[1]=Infinity;r[0]=-Infinity;r[1]=-Infinity;for(g=0;g<v;g++){var x=u(h,m,n,l,op[g]);q[0]=xa(x,q[0]);r[0]=ya(x,r[0])}v=t(c,b,k,p,pp);for(g=0;g<v;g++)m=u(c,b,k,p,pp[g]),q[1]=xa(m,q[1]),r[1]=ya(m,r[1]);q[0]=xa(h,q[0]);r[0]=
ya(h,r[0]);q[0]=xa(l,q[0]);r[0]=ya(l,r[0]);q[1]=xa(c,q[1]);r[1]=ya(c,r[1]);q[1]=xa(p,q[1]);r[1]=ya(p,r[1]);b=a[f++];c=a[f++];break;case ha.Q:g=b;h=c;r=a[f++];p=a[f++];c=a[f];b=a[f+1];k=Ab;l=Bb;v=wl;q=Oa;u=ya(xa(v(g,r,c),1),0);v=ya(xa(v(h,p,b),1),0);r=q(g,r,c,u);p=q(h,p,b,v);k[0]=xa(g,c,r);k[1]=xa(h,b,p);l[0]=ya(g,c,r);l[1]=ya(h,b,p);b=a[f++];c=a[f++];break;case ha.A:b=a[f++];g=a[f++];k=a[f++];h=a[f++];u=a[f++];c=a[f++]+u;f++;m=1-a[f++];1==f&&(d=Qe(u)*k+b,e=Re(u)*h+g);l=b;p=g;q=k;r=h;v=c;var y=m;m=
Ab;n=Bb;t=Eb;x=Fb;var z=Math.abs(u-v);if(1E-4>z%ad&&1E-4<z)m[0]=l-q,m[1]=p-r,n[0]=l+q,n[1]=p+r;else for(xg[0]=Qj(u)*q+l,xg[1]=Pj(u)*r+p,yg[0]=Qj(v)*q+l,yg[1]=Pj(v)*r+p,t(m,xg,yg),x(n,xg,yg),u%=ad,0>u&&(u+=ad),v%=ad,0>v&&(v+=ad),u>v&&!y?v+=ad:u<v&&y&&(u+=ad),y&&(y=v,v=u,u=y),y=0;y<v;y+=Math.PI/2)y>u&&(zg[0]=Qj(y)*q+l,zg[1]=Pj(y)*r+p,t(m,zg,m),x(n,zg,n));b=Qe(c)*k+b;c=Re(c)*h+g;break;case ha.R:d=b=a[f++];e=c=a[f++];k=a[f++];l=a[f++];g=d;h=e;k=d+k;l=e+l;p=Ab;q=Bb;p[0]=xa(g,k);p[1]=xa(h,l);q[0]=ya(g,
k);q[1]=ya(h,l);break;case ha.Z:b=d,c=e}Eb(zb,zb,Ab);Fb(wc,wc,Bb)}0===f&&(zb[0]=zb[1]=wc[0]=wc[1]=0);return new ca(zb[0],zb[1],wc[0]-zb[0],wc[1]-zb[1])},rebuildPath:function(a){for(var b=this.data,c,d,e,f,g,h,k=this._ux,l=this._uy,m=this._len,n=0;n<m;)switch(g=b[n++],1==n&&(e=b[n],f=b[n+1],c=e,d=f),g){case ha.M:c=e=b[n++];d=f=b[n++];a.moveTo(e,f);break;case ha.L:g=b[n++];h=b[n++];if(Sd(g-e)>k||Sd(h-f)>l||n===m-1)a.lineTo(g,h),e=g,f=h;break;case ha.C:a.bezierCurveTo(b[n++],b[n++],b[n++],b[n++],b[n++],
b[n++]);e=b[n-2];f=b[n-1];break;case ha.Q:a.quadraticCurveTo(b[n++],b[n++],b[n++],b[n++]);e=b[n-2];f=b[n-1];break;case ha.A:e=b[n++];f=b[n++];h=b[n++];g=b[n++];var p=b[n++],q=b[n++],r=b[n++],t=b[n++],u=h>g?h:g,v=h>g?1:h/g,x=h>g?g/h:1;q=p+q;.001<Math.abs(h-g)?(a.translate(e,f),a.rotate(r),a.scale(v,x),a.arc(0,0,u,p,q,1-t),a.scale(1/v,1/x),a.rotate(-r),a.translate(-e,-f)):a.arc(e,f,u,p,q,1-t);1==n&&(c=Qe(p)*h+e,d=Re(p)*g+f);e=Qe(q)*h+e;f=Re(q)*g+f;break;case ha.R:c=e=b[n];d=f=b[n+1];a.rect(b[n++],b[n++],
b[n++],b[n++]);break;case ha.Z:a.closePath(),e=c,f=d}}};qb.CMD=ha;var yl=2*Math.PI,pe=2*Math.PI,dc=qb.CMD,wd=2*Math.PI,Ba=[-1,-1,-1],Qa=[-1,-1],sp=Hj.prototype.getCanvasPattern,Sj=Math.abs,St=new qb(!0);W.prototype={constructor:W,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(a,b){var c=this.style,d=this.path||St,e=c.hasStroke(),f=c.hasFill(),g=c.fill,h=c.stroke,k=f&&!!g.colorStops,l=e&&!!h.colorStops,m=f&&!!g.image,n=e&&!!h.image;c.bind(a,this,b);this.setTransform(a);if(this.__dirty){if(k){var p=
p||this.getBoundingRect();this._fillGradient=c.getGradient(a,g,p)}l&&(p=p||this.getBoundingRect(),this._strokeGradient=c.getGradient(a,h,p))}k?a.fillStyle=this._fillGradient:m&&(a.fillStyle=sp.call(g,a));l?a.strokeStyle=this._strokeGradient:n&&(a.strokeStyle=sp.call(h,a));b=c.lineDash;g=c.lineDashOffset;h=!!a.setLineDash;k=this.getGlobalScale();d.setScale(k[0],k[1]);this.__dirtyPath||b&&!h&&e?(d.beginPath(a),b&&!h&&(d.setLineDash(b),d.setLineDashOffset(g)),this.buildPath(d,this.shape,!1),this.path&&
(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a));f&&d.fill(a);b&&h&&(a.setLineDash(b),a.lineDashOffset=g);e&&d.stroke(a);b&&h&&a.setLineDash([]);null!=c.text&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,b,c){},createPathProxy:function(){this.path=new qb},getBoundingRect:function(){var a=this._rect,b=this.style,c=!a;if(c){var d=this.path;d||(d=this.path=new qb);this.__dirtyPath&&(d.beginPath(),this.buildPath(d,this.shape,!1));a=d.getBoundingRect()}this._rect=
a;if(b.hasStroke()){d=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||c)d.copy(a),c=b.lineWidth,a=b.strokeNoScale?this.getLineScale():1,b.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),1E-10<a&&(d.width+=c/a,d.height+=c/a,d.x-=c/a/2,d.y-=c/a/2);return d}return a},contain:function(a,b){b=this.transformCoordToLocal(a,b);var c=this.getBoundingRect(),d=this.style;a=b[0];b=b[1];if(c.contain(a,b)){c=this.path.data;if(d.hasStroke()){var e=d.lineWidth,f=d.strokeNoScale?
this.getLineScale():1;if(1E-10<f&&(d.hasFill()||(e=Math.max(e,this.strokeContainThreshold)),zl(c,e/f,!0,a,b)))return!0}if(d.hasFill())return zl(c,0,!1,a,b)}return!1},dirty:function(a){null==a&&(a=!0);a&&(this.__dirtyPath=a,this._rect=null);this.__dirty=!0;this.__zr&&this.__zr.refresh();this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,b){"shape"===a?(this.setShape(b),this.__dirtyPath=!0,this._rect=null):Ia.prototype.attrKV.call(this,
a,b)},setShape:function(a,b){var c=this.shape;if(c){if(O(a))for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);else c[a]=b;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&1E-10<Sj(a[0]-1)&&1E-10<Sj(a[3]-1)?Math.sqrt(Sj(a[0]*a[3]-a[2]*a[1])):1}};W.extend=function(a){var b=function(d){W.call(this,d);a.style&&this.style.extendFrom(a.style,!1);var e=a.shape;if(e){var f=this.shape=this.shape||{},g;for(g in e)!f.hasOwnProperty(g)&&e.hasOwnProperty(g)&&(f[g]=e[g])}a.init&&
a.init.call(this,d)};na(b,W);for(var c in a)"style"!==c&&"shape"!==c&&(b.prototype[c]=a[c]);return b};na(W,Ia);var xd=qb.CMD,Yq=[[],[],[]],bm=Math.sqrt,Xq=Math.atan2,li="mMlLvVhHzZcCqQtTsSaA".split(""),ji=Math.sqrt,Nf=Math.sin,Mf=Math.cos,Lf=Math.PI,ki=function(a,b){return(a[0]*b[0]+a[1]*b[1])/(Math.sqrt(a[0]*a[0]+a[1]*a[1])*Math.sqrt(b[0]*b[0]+b[1]*b[1]))},$l=function(a,b){return(a[0]*b[1]<a[1]*b[0]?-1:1)*Math.acos(ki(a,b))},ta=function(a){Ia.call(this,a)};ta.prototype={constructor:ta,type:"text",
brush:function(a,b){var c=this.style;this.__dirty&&wh(c,!0);c.fill=c.stroke=c.shadowBlur=c.shadowColor=c.shadowOffsetX=c.shadowOffsetY=null;var d=c.text;null!=d&&(d+="");c.bind(a,this,b);null!=d&&(d||c.textBackgroundColor||c.textBorderWidth&&c.textBorderColor||c.textPadding)&&(this.setTransform(a),b=d,c.rich?gl(this,a,b,c,void 0):bl(this,a,b,c,void 0),this.restoreTransform(a))},getBoundingRect:function(){var a=this.style;this.__dirty&&wh(a,!0);if(!this._rect){var b=a.text;null!=b?b+="":b="";b=kd(a.text+
"",a.font,a.textAlign,a.textVerticalAlign,a.textPadding,a.rich);b.x+=a.x||0;b.y+=a.y||0;yh(a.textStroke,a.textStrokeWidth)&&(a=a.textStrokeWidth,b.x-=a/2,b.y-=a/2,b.width+=a,b.height+=a);this._rect=b}return this._rect}};na(ta,Ia);var Tj=W.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(a,b,c){c&&a.moveTo(b.cx+b.r,b.cy);a.arc(b.cx,b.cy,b.r,0,2*Math.PI,!0)}}),xc=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],Uj=function(a){return R.browser.ie&&11<=R.browser.version?
function(){var b=this.__clipPaths,c=this.style;if(b)for(var d=0;d<b.length;d++){var e=b[d],f=e&&e.shape;e=e&&e.type;if(f&&("sector"===e&&f.startAngle===f.endAngle||!("rect"!==e||f.width&&f.height))){for(b=0;b<xc.length;b++)xc[b][2]=c[xc[b][0]],c[xc[b][0]]=xc[b][1];var g=!0;break}}a.apply(this,arguments);if(g)for(b=0;b<xc.length;b++)c[xc[b][0]]=xc[b][2]}:a},Kd=W.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:Uj(W.prototype.brush),buildPath:function(a,
b){var c=b.cx,d=b.cy,e=Math.max(b.r0||0,0),f=Math.max(b.r,0),g=b.startAngle,h=b.endAngle;b=b.clockwise;var k=Math.cos(g),l=Math.sin(g);a.moveTo(k*e+c,l*e+d);a.lineTo(k*f+c,l*f+d);a.arc(c,d,f,g,h,!b);a.lineTo(Math.cos(h)*e+c,Math.sin(h)*e+d);0!==e&&a.arc(c,d,e,h,g,b);a.closePath()}}),tp=W.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(a,b){var c=b.cx,d=b.cy,e=2*Math.PI;a.moveTo(c+b.r,d);a.arc(c,d,b.r,0,e,!1);a.moveTo(c+b.r0,d);a.arc(c,d,b.r0,0,e,!0)}}),Md=W.extend({type:"polygon",
shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(a,b){dm(a,b,!0)}}),Ld=W.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(a,b){dm(a,b,!1)}}),ua=W.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(a,b){var c=b.x,d=b.y,e=b.width,f=b.height;b.r?$k(a,b):a.rect(c,d,e,f);a.closePath()}}),yc=W.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},
buildPath:function(a,b){var c=b.x1,d=b.y1,e=b.x2,f=b.y2;b=b.percent;0!==b&&(a.moveTo(c,d),1>b&&(e=c*(1-b)+e*b,f=d*(1-b)+f*b),a.lineTo(e,f))},pointAt:function(a){var b=this.shape;return[b.x1*(1-a)+b.x2*a,b.y1*(1-a)+b.y2*a]}}),Ha=[],up=W.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(a,b){var c=b.x1,d=b.y1,e=b.x2,f=b.y2,g=b.cpx1,h=b.cpy1,k=b.cpx2,l=b.cpy2;b=b.percent;0!==b&&(a.moveTo(c,d),null==k||null==l?(1>b&&(xl(c,
g,e,b,Ha),g=Ha[1],e=Ha[2],xl(d,h,f,b,Ha),h=Ha[1],f=Ha[2]),a.quadraticCurveTo(g,h,e,f)):(1>b&&(ul(c,g,k,e,b,Ha),g=Ha[1],k=Ha[2],e=Ha[3],ul(d,h,l,f,b,Ha),h=Ha[1],l=Ha[2],f=Ha[3]),a.bezierCurveTo(g,h,k,l,e,f)))},pointAt:function(a){return em(this.shape,a,!1)},tangentAt:function(a){a=em(this.shape,a,!0);return bf(a,a)}}),vp=W.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(a,b){var c=b.cx,d=b.cy,e=Math.max(b.r,0),
f=b.startAngle,g=b.endAngle;b=b.clockwise;a.moveTo(Math.cos(f)*e+c,Math.sin(f)*e+d);a.arc(c,d,e,f,g,!b)}}),Tt=W.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var a=this.__dirtyPath,b=this.shape.paths,c=0;c<b.length;c++)a=a||b[c].__dirtyPath;this.__dirtyPath=a;this.__dirty=this.__dirty||a},beforeBrush:function(){this._updatePathDirty();for(var a=this.shape.paths||[],b=this.getGlobalScale(),c=0;c<a.length;c++)a[c].path||a[c].createPathProxy(),a[c].path.setScale(b[0],b[1])},
buildPath:function(a,b){b=b.paths||[];for(var c=0;c<b.length;c++)b[c].buildPath(a,b[c].shape,!0)},afterBrush:function(){for(var a=this.shape.paths||[],b=0;b<a.length;b++)a[b].__dirtyPath=!1},getBoundingRect:function(){this._updatePathDirty();return W.prototype.getBoundingRect.call(this)}}),Se=function(a){this.colorStops=a||[]};Se.prototype={constructor:Se,addColorStop:function(a,b){this.colorStops.push({offset:a,color:b})}};var Je=function(a,b,c,d,e,f){this.x=null==a?0:a;this.y=null==b?0:b;this.x2=
null==c?1:c;this.y2=null==d?0:d;this.type="linear";this.global=f||!1;this.colorStops=e||[]};Je.prototype={constructor:Je};na(Je,Se);var Bg=function(a,b,c,d,e){this.x=null==a?.5:a;this.y=null==b?.5:b;this.r=null==c?.5:c;this.type="radial";this.global=e||!1;this.colorStops=d||[]};Bg.prototype={constructor:Bg};na(Bg,Se);hb.prototype.incremental=!0;hb.prototype.clearDisplaybles=function(){this._displayables=[];this._temporaryDisplayables=[];this._cursor=0;this.dirty();this.notClear=!1};hb.prototype.addDisplayable=
function(a,b){b?this._temporaryDisplayables.push(a):this._displayables.push(a);this.dirty()};hb.prototype.addDisplayables=function(a,b){b=b||!1;for(var c=0;c<a.length;c++)this.addDisplayable(a[c],b)};hb.prototype.eachPendingDisplayable=function(a){for(var b=this._cursor;b<this._displayables.length;b++)a&&a(this._displayables[b]);for(b=0;b<this._temporaryDisplayables.length;b++)a&&a(this._temporaryDisplayables[b])};hb.prototype.update=function(){this.updateTransform();for(var a=this._cursor;a<this._displayables.length;a++){var b=
this._displayables[a];b.parent=this;b.update();b.parent=null}for(a=0;a<this._temporaryDisplayables.length;a++)b=this._temporaryDisplayables[a],b.parent=this,b.update(),b.parent=null};hb.prototype.brush=function(a,b){for(b=this._cursor;b<this._displayables.length;b++){var c=this._displayables[b];c.beforeBrush&&c.beforeBrush(a);c.brush(a,b===this._cursor?null:this._displayables[b-1]);c.afterBrush&&c.afterBrush(a)}this._cursor=b;for(b=0;b<this._temporaryDisplayables.length;b++)c=this._temporaryDisplayables[b],
c.beforeBrush&&c.beforeBrush(a),c.brush(a,0===b?null:this._temporaryDisplayables[b-1]),c.afterBrush&&c.afterBrush(a);this._temporaryDisplayables=[];this.notClear=!0};var Ut=[];hb.prototype.getBoundingRect=function(){if(!this._rect){for(var a=new ca(Infinity,Infinity,-Infinity,-Infinity),b=0;b<this._displayables.length;b++){var c=this._displayables[b],d=c.getBoundingRect().clone();c.needLocalTransform()&&d.applyTransform(c.getLocalTransform(Ut));a.union(d)}this._rect=a}return this._rect};hb.prototype.contain=
function(a,b){var c=this.transformCoordToLocal(a,b);if(this.getBoundingRect().contain(c[0],c[1]))for(c=0;c<this._displayables.length;c++)if(this._displayables[c].contain(a,b))return!0;return!1};na(hb,Ia);var yd=Math.round,Cg=Math.max,Dg=Math.min,Of={},Vj=function(a,b){for(var c=[],d=a.length,e=0;e<d;e++){var f=a[e];f.path||f.createPathProxy();f.__dirtyPath&&f.buildPath(f.path,f.shape,!0);c.push(f.path)}a=new W(b);a.createPathProxy();a.buildPath=function(g){g.appendPath(c);var h=g.getContext();h&&
g.rebuildPath(h)};return a},Qd=(Object.freeze||Object)({extendShape:Pc,extendPath:function(a,b){return W.extend(am(a,b))},makePath:mi,makeImage:hm,mergePath:Vj,resizePath:gm,subPixelOptimizeLine:qe,subPixelOptimizeRect:ni,subPixelOptimize:Qc,setHoverStyle:rb,setLabelStyle:Rc,setTextStyle:Ra,setText:function(a,b,c){var d={isRectText:!0},e;!1===c?e=!0:d.autoColor=c;qm(a,b,d,e);a.host&&a.host.dirty&&a.host.dirty(!1)},getFont:sm,updateProps:da,initProps:ib,getTransform:um,applyTransform:re,transformDirection:vm,
groupTransition:wm,clipPointsByRect:function(a,b){return C(a,function(c){var d=c[0];d=Cg(d,b.x);d=Dg(d,b.x+b.width);c=c[1];c=Cg(c,b.y);c=Dg(c,b.y+b.height);return[d,c]})},clipRectByRect:function(a,b){var c=Cg(a.x,b.x),d=Dg(a.x+a.width,b.x+b.width),e=Cg(a.y,b.y);a=Dg(a.y+a.height,b.y+b.height);if(d>=c&&a>=e)return{x:c,y:e,width:d-c,height:a-e}},createIcon:Qf,Group:L,Image:$b,Text:ta,Circle:Tj,Sector:Kd,Ring:tp,Polygon:Md,Polyline:Ld,Rect:ua,Line:yc,BezierCurve:up,Arc:vp,IncrementalDisplayable:hb,CompoundPath:Tt,
LinearGradient:Je,RadialGradient:Bg,BoundingRect:ca}),Vt=["textStyle","color"],Wt=wg([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),ym=db();Z.prototype={constructor:Z,init:null,mergeOption:function(a){T(this.option,a,!0)},get:function(a,b){return null==a?this.option:xm(this.option,this.parsePath(a),!b&&oi(this,a))},getShallow:function(a,b){var c=this.option;c=null==
c?c:c[a];b=!b&&oi(this,a);null==c&&b&&(c=b.getShallow(a));return c},getModel:function(a,b){var c=null==a?this.option:xm(this.option,a=this.parsePath(a)),d;b=b||(d=oi(this,a))&&d.getModel(a);return new Z(c,b,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new this.constructor(U(this.option))},setReadOnly:function(a){},parsePath:function(a){"string"===typeof a&&(a=a.split("."));return a},customizeGetParent:function(a){ym(this).getParent=a},
isAnimationEnabled:function(){if(!R.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};ee(Z);rl(Z);ba(Z,{getLineStyle:function(a){a=Qt(this,a);var b=this.getLineDash(a.lineWidth);b&&(a.lineDash=b);return a},getLineDash:function(a){null==a&&(a=1);var b=this.get("type"),c=Math.max(a,2);a*=4;return"solid"===b||null==b?null:"dashed"===b?[a,a]:[c,c]}});ba(Z,{getAreaStyle:function(a,b){return Rt(this,a,b)}});ba(Z,{getTextColor:function(a){var b=
this.ecModel;return this.getShallow("color")||(!a&&b?b.get(Vt):null)},getFont:function(){return sm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(a){return kd(a,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}});ba(Z,
{getItemStyle:function(a,b){a=Wt(this,a,b);(b=this.getBorderLineDash())&&(a.lineDash=b);return a},getBorderLineDash:function(){var a=this.get("borderType");return"solid"===a||null==a?null:"dashed"===a?[5,5]:[1,1]}});var cr=0,dr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Xt=(Object.freeze||Object)({linearMap:ma,parsePercent:F,round:ea,asc:Ad,getPrecision:zm,getPrecisionSafe:oc,getPixelPrecision:pi,getPercentWithPrecision:Am,
MAX_SAFE_INTEGER:9007199254740991,remRadian:qi,isRadianAroundZero:se,parseDate:Sf,quantity:Bm,nice:ri,reformIntervals:function(a){function b(k,l,m){return k.interval[m]<l.interval[m]||k.interval[m]===l.interval[m]&&(k.close[m]-l.close[m]===(m?-1:1)||!m&&b(k,l,1))}a.sort(function(k,l){return b(k,l,0)?-1:1});for(var c=-Infinity,d=1,e=0;e<a.length;){for(var f=a[e].interval,g=a[e].close,h=0;2>h;h++)f[h]<=c&&(f[h]=c,g[h]=h?1:1-d),c=f[h],d=g[h];f[0]===f[1]&&1!==g[0]*g[1]?a.splice(e,1):e++}return a},isNumeric:function(a){return 0<=
a-parseFloat(a)}}),ue=$g,er=/([&<>"'])/g,fr={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;"},Dm="abcdefg".split(""),wp=Xk,Yt=(Object.freeze||Object)({addCommas:Sc,toCamelCase:Cm,normalizeCssArray:ue,encodeHTML:sa,formatTpl:si,formatTplSimple:function(a,b,c){w(b,function(d,e){a=a.replace("{"+e+"}",c?sa(d):d)});return a},getTooltipMarker:Tf,formatTime:ti,capitalFirst:ui,truncateText:wp,getTextRect:kd}),Uf=w,Em="left right top bottom width height".split(" "),Vf=[["width",
"left","right"],["height","top","bottom"]];M(te,"vertical");M(te,"horizontal");var Zt=db(),aa=Z.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(a,b,c,d){Z.call(this,a,b,c,d);this.uid=Rf("ec_cpt_model")},init:function(a,b,c,d){this.mergeDefaultAndTheme(a,c)},mergeDefaultAndTheme:function(a,b){var c=this.layoutMode,d=c?Cd({},a):{};b=b.getTheme();T(a,b.get(this.mainType));
T(a,this.getDefaultOption());c&&Tc(a,d,c)},mergeOption:function(a,b){T(this.option,a,!0);(b=this.layoutMode)&&Tc(this.option,a,b)},optionUpdated:function(a,b){},getDefaultOption:function(){var a=Zt(this);if(!a.defaultOption){for(var b=[],c=this.constructor;c;){var d=c.prototype.defaultOption;d&&b.push(d);c=c.superClass}c={};for(d=b.length-1;0<=d;d--)c=T(c,b[d],!0);a.defaultOption=c}return a.defaultOption},getReferringComponents:function(a){return this.ecModel.queryComponents({mainType:a,index:this.get(a+
"Index",!0),id:this.get(a+"Id",!0)})}});qf(aa,{registerWhenExtend:!0});(function(a){var b={};a.registerSubTypeDefaulter=function(c,d){c=ac(c);b[c.main]=d};a.determineSubType=function(c,d){var e=d.type;if(!e){var f=ac(c).main;a.hasSubTypes(c)&&b[f]&&(e=b[f](d))}return e};return a})(aa);(function(a,b){function c(f){var g={},h=[];w(f,function(k){var l=d(g,k),m=l.originalDeps=b(k);m=e(m,f);l.entryCount=m.length;0===l.entryCount&&h.push(k);w(m,function(n){0>V(l.predecessor,n)&&l.predecessor.push(n);var p=
d(g,n);0>V(p.successor,n)&&p.successor.push(k)})});return{graph:g,noEntryList:h}}function d(f,g){f[g]||(f[g]={predecessor:[],successor:[]});return f[g]}function e(f,g){var h=[];w(f,function(k){0<=V(g,k)&&h.push(k)});return h}a.topologicalTravel=function(f,g,h,k){function l(t){n[t].entryCount--;0===n[t].entryCount&&p.push(t)}function m(t){q[t]=!0;l(t)}if(f.length){g=c(g);var n=g.graph,p=g.noEntryList,q={};for(w(f,function(t){q[t]=!0});p.length;){f=p.pop();g=n[f];var r=!!q[f];r&&(h.call(k,f,g.originalDeps.slice()),
delete q[f]);w(g.successor,r?m:l)}w(q,function(){throw Error("Circle dependency may exists");})}}})(aa,function(a){var b=[];w(aa.getClassesByMainType(a),function(c){b=b.concat(c.prototype.dependencies||[])});b=C(b,function(c){return ac(c).main});"dataset"!==a&&0>=V(b,"dataset")&&b.unshift("dataset");return b});ba(aa,{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")}}});
var xp="";"undefined"!==typeof navigator&&(xp=navigator.platform||"");var mr={color:"#c23531 #2f4554 #61a0a8 #d48265 #91c7ae #749f83 #ca8622 #bda29a #6e7074 #546570 #c4ccd3".split(" "),gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:xp.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},Wj=db(),Xj={clearColorPalette:function(){Wj(this).colorIdx=0;Wj(this).colorNameMap={}},getColorFromPalette:function(a,b,c){b=Wj(b||this);var d=b.colorIdx||0,e=b.colorNameMap=b.colorNameMap||{};if(e.hasOwnProperty(a))return e[a];var f=Ka(this.get("color",!0)),g=this.get("colorLayer",!0);if(null!=c&&g)a:{for(var h=g.length,k=0;k<h;k++)if(g[k].length>c){c=g[k];break a}c=g[h-1]}else c=f;if((c=c||f)&&c.length)return f=
c[d],a&&(e[a]=f),b.colorIdx=(d+1)%c.length,f}},gr={cartesian2d:function(a,b,c,d){var e=a.getReferringComponents("xAxis")[0];a=a.getReferringComponents("yAxis")[0];b.coordSysDims=["x","y"];c.set("x",e);c.set("y",a);Dd(e)&&(d.set("x",e),b.firstCategoryDimIndex=0);Dd(a)&&(d.set("y",a),b.firstCategoryDimIndex=1)},singleAxis:function(a,b,c,d){a=a.getReferringComponents("singleAxis")[0];b.coordSysDims=["single"];c.set("single",a);Dd(a)&&(d.set("single",a),b.firstCategoryDimIndex=0)},polar:function(a,b,
c,d){var e=a.getReferringComponents("polar")[0];a=e.findAxisModel("radiusAxis");e=e.findAxisModel("angleAxis");b.coordSysDims=["radius","angle"];c.set("radius",a);c.set("angle",e);Dd(a)&&(d.set("radius",a),b.firstCategoryDimIndex=0);Dd(e)&&(d.set("angle",e),b.firstCategoryDimIndex=1)},geo:function(a,b,c,d){b.coordSysDims=["lng","lat"]},parallel:function(a,b,c,d){var e=a.ecModel;a=e.getComponent("parallel",a.get("parallelIndex"));var f=b.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(g,
h){g=e.getComponent("parallelAxis",g);var k=f[h];c.set(k,g);Dd(g)&&null==b.firstCategoryDimIndex&&(d.set(k,g),b.firstCategoryDimIndex=h)})}};jb.seriesDataToSource=function(a){return new jb({data:a,sourceFormat:lb(a)?"typedArray":"original",fromDataset:!1})};rl(jb);var Ed=db(),Yj=Z.extend({init:function(a,b,c,d){c=c||{};this.option=null;this._theme=new Z(c);this._optionManager=d},setOption:function(a,b){dd(!("\x00_ec_inner"in a),"please use chart.getOption()");this._optionManager.setOption(a,b);this.resetOption(null)},
resetOption:function(a){var b=!1,c=this._optionManager;if(!a||"recreate"===a){var d=c.mountOption("recreate"===a);this.option&&"recreate"!==a?(this.restoreData(),this.mergeOption(d)):lr.call(this,d);b=!0}"timeline"!==a&&"media"!==a||this.restoreData();a&&"recreate"!==a&&"timeline"!==a||(d=c.getTimelineOption(this))&&(this.mergeOption(d),b=!0);a&&"recreate"!==a&&"media"!==a||(a=c.getMediaOption(this,this._api),a.length&&w(a,function(e){this.mergeOption(e,b=!0)},this));return b},mergeOption:function(a){var b=
this.option,c=this._componentsMap,d=[];Ed(this).datasetMap=Q();w(a,function(e,f){null!=e&&(aa.hasClass(f)?f&&d.push(f):b[f]=null==b[f]?U(e):T(b[f],e,!0))});aa.topologicalTravel(d,aa.getAllClassMainTypes(),function(e,f){var g=Ka(a[e]);g=Jh(c.get(e),g);pl(g);w(g,function(k,l){var m=k.option;O(m)&&(k.keyInfo.mainType=e,l=k.keyInfo,k=k.exist,k=m.type?m.type:k?k.subType:aa.determineSubType(e,m),l.subType=k)});var h=nr(c,f);b[e]=[];c.set(e,[]);w(g,function(k,l){var m=k.exist,n=k.option;dd(O(n)||m,"Empty component definition");
if(n){var p=aa.getClass(e,k.keyInfo.subType,!0);m&&m instanceof p?(m.name=k.keyInfo.name,m.mergeOption(n,this),m.optionUpdated(n,!1)):(k=P({dependentModels:h,componentIndex:l},k.keyInfo),m=new p(n,this,this,k),P(m,k),m.init(n,this,this,k),m.optionUpdated(null,!0))}else m.mergeOption({},this),m.optionUpdated({},!1);c.get(e)[l]=m;b[e][l]=m.option},this);"series"===e&&vi(this,c.get("series"))},this);this._seriesIndicesMap=Q(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var a=U(this.option);
w(a,function(b,c){if(aa.hasClass(c)){b=Ka(b);for(var d=b.length-1;0<=d;d--)of(b[d])&&b.splice(d,1);a[c]=b}});delete a["\x00_ec_inner"];return a},getTheme:function(){return this._theme},getComponent:function(a,b){if(a=this._componentsMap.get(a))return a[b||0]},queryComponents:function(a){var b=a.mainType;if(!b)return[];var c=a.index,d=a.id,e=a.name,f=this._componentsMap.get(b);if(!f||!f.length)return[];if(null!=c)E(c)||(c=[c]),b=Ea(C(c,function(k){return f[k]}),function(k){return!!k});else if(null!=
d){var g=E(d);b=Ea(f,function(k){return g&&0<=V(d,k.id)||!g&&k.id===d})}else if(null!=e){var h=E(e);b=Ea(f,function(k){return h&&0<=V(e,k.name)||!h&&k.name===e})}else b=f.slice();return Km(b,a)},findComponents:function(a){var b=a.mainType,c=function(d){var e=b+"Index",f=b+"Id",g=b+"Name";return!d||null==d[e]&&null==d[f]&&null==d[g]?null:{mainType:b,index:d[e],id:d[f],name:d[g]}}(a.query);c=c?this.queryComponents(c):this._componentsMap.get(b);return function(d){return a.filter?Ea(d,a.filter):d}(Km(c,
a))},eachComponent:function(a,b,c){var d=this._componentsMap;"function"===typeof a?(c=b,b=a,d.each(function(e,f){w(e,function(g,h){b.call(c,f,g,h)})})):va(a)?w(d.get(a),b,c):O(a)&&(a=this.findComponents(a),w(a,b,c))},getSeriesByName:function(a){var b=this._componentsMap.get("series");return Ea(b,function(c){return c.name===a})},getSeriesByIndex:function(a){return this._componentsMap.get("series")[a]},getSeriesByType:function(a){var b=this._componentsMap.get("series");return Ea(b,function(c){return c.subType===
a})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(a,b){w(this._seriesIndices,function(c){var d=this._componentsMap.get("series")[c];a.call(b,d,c)},this)},eachRawSeries:function(a,b){w(this._componentsMap.get("series"),a,b)},eachSeriesByType:function(a,b,c){w(this._seriesIndices,function(d){var e=this._componentsMap.get("series")[d];e.subType===a&&b.call(c,e,d)},this)},eachRawSeriesByType:function(a,
b,c){return w(this.getSeriesByType(a),b,c)},isSeriesFiltered:function(a){return null==this._seriesIndicesMap.get(a.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(a,b){a=Ea(this._componentsMap.get("series"),a,b);vi(this,a)},restoreData:function(a){var b=this._componentsMap;vi(this,b.get("series"));var c=[];b.each(function(d,e){c.push(e)});aa.topologicalTravel(c,aa.getAllClassMainTypes(),function(d,e){w(b.get(d),function(f){var g;if(!(g=
"series"!==d)){if(a){g=a.seiresIndex;var h=a.seriesId,k=a.seriesName;g=null!=g&&f.componentIndex!==g||null!=h&&f.id!==h||null!=k&&f.name!==k}else g=void 0;g=!g}g&&f.restoreData()})})}});ba(Yj,Xj);var or="getDom getZr getWidth getHeight getDevicePixelRatio dispatchAction isDisposed on off getDataURL getConnectedDataURL getModel getOption getViewOfComponentModel getViewOfSeriesModel".split(" "),Zj={};sb.prototype={constructor:sb,create:function(a,b){var c=[];w(Zj,function(d,e){d=d.create(a,b);c=c.concat(d||
[])});this._coordinateSystems=c},update:function(a,b){w(this._coordinateSystems,function(c){c.update&&c.update(a,b)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}};sb.register=function(a,b){Zj[a]=b};sb.get=function(a){return Zj[a]};var Wf=w,Xf=C,Mm=T,rr=/^(min|max)?(.+)$/;wi.prototype={constructor:wi,setOption:function(a,b){a&&w(Ka(a.series),function(d){d&&d.data&&lb(d.data)&&bh(d.data)});a=U(a,!0);var c=this._optionBackup;a=pr.call(this,a,b,!c);this._newBaseOption=a.baseOption;
c?(tr(c.baseOption,a.baseOption),a.timelineOptions.length&&(c.timelineOptions=a.timelineOptions),a.mediaList.length&&(c.mediaList=a.mediaList),a.mediaDefault&&(c.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(a){var b=this._optionBackup;this._timelineOptions=Xf(b.timelineOptions,U);this._mediaList=Xf(b.mediaList,U);this._mediaDefault=U(b.mediaDefault);this._currentMediaIndices=[];return U(a?b.baseOption:this._newBaseOption)},getTimelineOption:function(a){var b,c=this._timelineOptions;
c.length&&(a=a.getComponent("timeline"))&&(b=U(c[a.getCurrentIndex()],!0));return b},getMediaOption:function(a){a=this._api.getWidth();var b=this._api.getHeight(),c=this._mediaList,d=this._mediaDefault,e=[],f=[];if(!c.length&&!d)return f;for(var g=0,h=c.length;g<h;g++)qr(c[g].query,a,b)&&e.push(g);!e.length&&d&&(e=[-1]);e.length&&!sr(e,this._currentMediaIndices)&&(f=Xf(e,function(k){return U(-1===k?d.option:c[k].option)}));this._currentMediaIndices=e;return f}};var we=O,Nm="areaStyle lineStyle nodeStyle linkStyle chordStyle label labelLine".split(" "),
$t=function(a,b){w(Rb(a.series),function(d){we(d)&&ur(d)});var c="xAxis yAxis radiusAxis angleAxis singleAxis parallelAxis radar".split(" ");b&&c.push("valueAxis","categoryAxis","logAxis","timeAxis");w(c,function(d){w(Rb(a[d]),function(e){e&&(ja(e,"axisLabel"),ja(e.axisPointer,"label"))})});w(Rb(a.parallel),function(d){d=d&&d.parallelAxisDefault;ja(d,"axisLabel");ja(d&&d.axisPointer,"label")});w(Rb(a.calendar),function(d){wa(d,"itemStyle");ja(d,"dayLabel");ja(d,"monthLabel");ja(d,"yearLabel")});w(Rb(a.radar),
function(d){ja(d,"name")});w(Rb(a.geo),function(d){we(d)&&(Sa(d),w(Rb(d.regions),function(e){Sa(e)}))});w(Rb(a.timeline),function(d){Sa(d);wa(d,"label");wa(d,"itemStyle");wa(d,"controlStyle",!0);d=d.data;E(d)&&w(d,function(e){O(e)&&(wa(e,"label"),wa(e,"itemStyle"))})});w(Rb(a.toolbox),function(d){wa(d,"iconStyle");w(d.feature,function(e){wa(e,"iconStyle")})});ja(Pm(a.axisPointer),"label");ja(Pm(a.tooltip).axisPointer,"label")},vr=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],au="grid geo parallel legend toolbox title visualMap dataZoom timeline".split(" "),
fn=function(a,b){$t(a,b);a.series=Ka(a.series);w(a.series,function(c){if(O(c)){var d=c.type;"pie"!==d&&"gauge"!==d||null==c.clockWise||(c.clockwise=c.clockWise);if("gauge"===d){d=["pointer.color"];for(var e=c,f=0;f<d.length&&(e=e&&e[d[f]],null!=e);f++);d=e;if(null!=d){e=["itemStyle.normal.color"];f=c;for(var g,h=0;h<e.length-1;h++)g=e[h],null==f[g]&&(f[g]={}),f=f[g];null==f[e[h]]&&(f[e[h]]=d)}}Qm(c)}});a.dataRange&&(a.visualMap=a.dataRange);w(au,function(c){if(c=a[c])E(c)||(c=[c]),w(c,function(d){Qm(d)})})},
ak=Rm.prototype;ak.pure=!1;ak.persistent=!0;ak.getSource=function(){return this._source};var xr={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(a){return this._data[a+this._source.startIndex]},appendData:yi},arrayRows_row:{pure:!0,count:function(){var a=this._data[0];return a?Math.max(0,a.length-this._source.startIndex):0},getItem:function(a){a+=this._source.startIndex;for(var b=[],c=this._data,d=0;d<c.length;d++){var e=c[d];
b.push(e?e[a]:null)}return b},appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".');}},objectRows:{pure:!0,count:Sm,getItem:Tm,appendData:yi},keyedColumns:{pure:!0,count:function(){var a=this._data[this._source.dimensionsDefine[0].name];return a?a.length:0},getItem:function(a){for(var b=[],c=this._source.dimensionsDefine,d=0;d<c.length;d++){var e=this._data[c[d].name];b.push(e?e[a]:null)}return b},appendData:function(a){var b=this._data;w(a,function(c,d){d=
b[d]||(b[d]=[]);for(var e=0;e<(c||[]).length;e++)d.push(c[e])})}},original:{count:Sm,getItem:Tm,appendData:yi},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(a,b){a-=this._offset;b=b||[];a*=this._dimSize;for(var c=0;c<this._dimSize;c++)b[c]=this._data[a+c];return b},appendData:function(a){this._data=a},clean:function(){this._offset+=this.count();this._data=null}}},yr={arrayRows:zi,objectRows:function(a,b,c,d){return null!=c?
a[d]:a},keyedColumns:zi,original:function(a,b,c,d){a=nf(a);return null!=c&&a instanceof Array?a[c]:a},typedArray:zi},bu={arrayRows:Um,objectRows:function(a,b,c,d){return Ai(a[b],this._dimensionInfos[b])},keyedColumns:Um,original:function(a,b,c,d){c=a&&(null==a.value?a:a.value);var e;if(e=!this._rawData.pure)e=ld(a)&&!(a instanceof Array);e&&(this.hasItemOption=!0);return Ai(c instanceof Array?c[d]:c,this._dimensionInfos[b])},typedArray:function(a,b,c,d){return a[d]}},cu=/\{@(.+?)\}/g,yp={getDataParams:function(a,
b){var c=this.getData(b),d=this.getRawValue(a,b),e=c.getRawIndex(a),f=c.getName(a),g=c.getRawDataItem(a);a=c.getItemVisual(a,"color");return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:f,dataIndex:e,data:g,dataType:b,value:d,color:a,marker:Tf(a),$vars:["seriesName","name","value"]}},getFormattedLabel:function(a,b,c,d,e){b=b||"normal";var f=this.getData(c),g=f.getItemModel(a);
c=this.getDataParams(a,c);null!=d&&c.value instanceof Array&&(c.value=c.value[d]);d=g.get("normal"===b?[e||"label","formatter"]:[b,e||"label","formatter"]);if("function"===typeof d)return c.status=b,d(c);if("string"===typeof d)return si(d,c).replace(cu,function(h,k){h=k.length;"["===k.charAt(0)&&"]"===k.charAt(h-1)&&(k=+k.slice(1,h-1));return Uc(f,a,k)})},getRawValue:function(a,b){return Uc(this.getData(b),a)},formatTooltip:function(){}},zc=Fd.prototype;zc.perform=function(a){function b(m){1<=m||
(m=1);return m}var c=this._upstream,d=a&&a.skip;if(this._dirty&&c){var e=this.context;e.data=e.outputData=c.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var f;this._plan&&!d&&(f=this._plan(this.context));var g=b(this._modBy),h=this._modDataCount||0;e=b(a&&a.modBy);var k=a&&a.modDataCount||0;if(g!==e||h!==k)f="reset";if(this._dirty||"reset"===f){this._dirty=!1;var l=Ar(this,d)}this._modBy=e;this._modDataCount=k;a=a&&a.step;this._dueEnd=c?c._outputDueEnd:this._count?this._count(this.context):
Infinity;if(this._progress){c=this._dueIndex;a=Math.min(null!=a?this._dueIndex+a:Infinity,this._dueEnd);if(!d&&(l||c<a))if(d=this._progress,E(d))for(l=0;l<d.length;l++)Vm(this,d[l],c,a,e,k);else Vm(this,d,c,a,e,k);this._dueIndex=a;this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var Wm=function(){function a(){return d<c?d++:null}function b(){var k=d%
g*e+Math.ceil(d/g);k=d>=c?null:k<f?k:d;d++;return k}var c,d,e,f,g,h={reset:function(k,l,m,n){d=k;c=l;e=m;f=n;g=Math.ceil(f/e);h.next=1<e&&0<f?b:a}};return h}();zc.dirty=function(){this._dirty=!0;this._onDirty&&this._onDirty(this.context)};zc.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd};zc.pipe=function(a){if(this._downstream!==a||this._dirty)this._downstream=a,a._upstream=this,a.dirty()};zc.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=
null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)};zc.getUpstream=function(){return this._upstream};zc.getDownstream=function(){return this._downstream};zc.setOutputEnd=function(a){this._outputDueEnd=this._settedOutputEnd=a};var Te=db(),Xc=aa.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(a,b,c,d){this.seriesIndex=this.componentIndex;
this.dataTask=new Fd({count:Cr,reset:Dr});this.dataTask.context={model:this};this.mergeDefaultAndTheme(a,c);Gm(this);a=this.getInitialData(a,c);Ym(a,this);this.dataTask.context.data=a;Te(this).dataBeforeProcessed=a;Xm(this)},mergeDefaultAndTheme:function(a,b){var c=this.layoutMode,d=c?Cd({},a):{},e=this.subType;aa.hasClass(e)&&(e+="Series");T(a,b.getTheme().get(this.subType));T(a,this.getDefaultOption());de(a,"label",["show"]);this.fillDataTextStyle(a.data);c&&Tc(a,d,c)},mergeOption:function(a,b){a=
T(this.option,a,!0);this.fillDataTextStyle(a.data);var c=this.layoutMode;c&&Tc(this.option,a,c);Gm(this);a=this.getInitialData(a,b);Ym(a,this);this.dataTask.dirty();this.dataTask.context.data=a;Te(this).dataBeforeProcessed=a;Xm(this)},fillDataTextStyle:function(a){if(a&&!lb(a))for(var b=["show"],c=0;c<a.length;c++)a[c]&&a[c].label&&de(a[c],"label",b)},getInitialData:function(){},appendData:function(a){this.getRawData().appendData(a.data)},getData:function(a){var b=Bi(this);return b?(b=b.context.data,
null==a?b:b.getLinkedData(a)):Te(this).data},setData:function(a){var b=Bi(this);if(b){var c=b.context;c.data!==a&&b.modifyOutputEnd&&b.setOutputEnd(a.count());c.outputData=a;b!==this.dataTask&&(c.data=a)}Te(this).data=a},getSource:function(){return Ed(this).source},getRawData:function(){return Te(this).dataBeforeProcessed},getBaseAxis:function(){var a=this.coordinateSystem;return a&&a.getBaseAxis&&a.getBaseAxis()},formatTooltip:function(a,b,c){function d(m){function n(r,t){if((t=e.getDimensionInfo(t))&&
!1!==t.otherDims.tooltip){var u=t.type,v=Tf({color:k,type:"subItem"});(r=(p?v+sa(t.displayName||"-")+": ":"")+sa("ordinal"===u?r+"":"time"===u?b?"":ti("yyyy/MM/dd hh:mm:ss",r):Sc(r)))&&q.push(r)}}var p=Yd(m,function(r,t,u){t=e.getDimensionInfo(u);return r|=t&&!1!==t.tooltip&&null!=t.displayName},0),q=[];f.length?w(f,function(r){n(Uc(e,a,r),r)}):w(m,n);return(p?"\x3cbr/\x3e":"")+q.join(p?"\x3cbr/\x3e":", ")}var e=this.getData(),f=e.mapDimension("defaultedTooltip",!0);c=f.length;var g=this.getRawValue(a),
h=E(g),k=e.getItemVisual(a,"color");O(k)&&k.colorStops&&(k=(k.colorStops[0]||{}).color);k=k||"transparent";c=1<c||h&&!c?d(g):c?sa(Sc(Uc(e,a,f[0]))):sa(Sc(h?g[0]:g));g=Tf(k);h=e.getName(a);var l=this.name;Kh(this)||(l="");l=l?sa(l)+(b?": ":"\x3cbr/\x3e"):"";return b?g+l+c:l+g+(h?sa(h)+": "+c:c)},isAnimationEnabled:function(){if(R.node)return!1;var a=this.getShallow("animation");a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1);return a},restoreData:function(){this.dataTask.dirty()},
getColorFromPalette:function(a,b,c){var d=this.ecModel,e=Xj.getColorFromPalette.call(this,a,b,c);e||(e=d.getColorFromPalette(a,b,c));return e},coordDimToDataDim:function(a){return this.getRawData().mapDimension(a,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});ba(Xc,yp);ba(Xc,Xj);var Sb=function(){this.group=
new L;this.uid=Rf("viewComponent")};Sb.prototype={constructor:Sb,init:function(a,b){},render:function(a,b,c,d){},dispose:function(){}};var bk=Sb.prototype;bk.updateView=bk.updateLayout=bk.updateVisual=function(a,b,c,d){};ee(Sb);qf(Sb,{registerWhenExtend:!0});var ck=function(){var a=db();return function(b){var c=a(b),d=b.pipelineContext;b=c.large;var e=c.progressiveRender,f=c.large=d.large;c=c.progressiveRender=d.progressiveRender;return!!(b^f||e^c)&&"reset"}},$m=db(),Ir=ck();Ga.prototype={type:"chart",
init:function(a,b){},render:function(a,b,c,d){},highlight:function(a,b,c,d){Zm(a.getData(),d,"emphasis")},downplay:function(a,b,c,d){Zm(a.getData(),d,"normal")},remove:function(a,b){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};var dk=Ga.prototype;dk.updateView=dk.updateLayout=dk.updateVisual=function(a,b,c,d){this.render(a,b,c,d)};ee(Ga,["dispose"]);qf(Ga,{registerWhenExtend:!0});Ga.markUpdateMethod=function(a,b){$m(a).updateMethod=
b};var Jr={incrementalPrepareRender:{progress:function(a,b){b.view.incrementalRender(a,b.model,b.ecModel,b.api,b.payload)}},render:{forceFirstProgress:!0,progress:function(a,b){b.view.render(b.model,b.ecModel,b.api,b.payload)}}},du={pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",
k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"},eu={general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},
series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},
data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}},Zr=function(a,b){function c(n,p){if("string"!==typeof n)return n;var q=n;w(p,function(r,t){q=q.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),r)});return q}function d(n){var p=f.get(n);if(null==p){n=n.split(".");p=eu;for(var q=0;q<n.length;++q)p=p[n[q]];return p}return p}
function e(){var n=b.getModel("title").option;n&&n.length&&(n=n[0]);return n&&n.text}var f=b.getModel("aria");if(f.get("show"))if(f.get("description"))a.setAttribute("aria-label",f.get("description"));else{var g=0;b.eachSeries(function(n,p){++g},this);var h=f.get("data.maxCount")||10,k=f.get("series.maxCount")||10,l=Math.min(g,k);if(!(1>g)){k=(k=e())?c(d("general.withTitle"),{title:k}):d("general.withoutTitle");var m=[];k+=c(d(1<g?"series.multiple.prefix":"series.single.prefix"),{seriesCount:g});
b.eachSeries(function(n,p){if(p<l){p=n.get("name");var q="series."+(1<g?"multiple":"single")+".";p=d(p?q+"withName":q+"withoutName");p=c(p,{seriesId:n.seriesIndex,seriesName:n.get("name"),seriesType:du[n.subType]||"\u81ea\u5b9a\u4e49\u56fe"});n=n.getData();window.data=n;p=n.count()>h?p+c(d("data.partialData"),{displayCnt:h}):p+d("data.allData");q=[];for(var r=0;r<n.count();r++)if(r<h){var t=n.getName(r),u=Uc(n,r);q.push(c(t?d("data.withName"):d("data.withoutName"),{name:t,value:u}))}p+=q.join(d("data.separator.middle"))+
d("data.separator.end");m.push(p)}});k+=m.join(d("series.multiple.separator.middle"))+d("series.multiple.separator.end");a.setAttribute("aria-label",k)}}},Eg=Math.PI,Xa=Yf.prototype;Xa.restoreData=function(a,b){a.restoreData(b);this._stageTaskMap.each(function(c){(c=c.overallTask)&&c.dirty()})};Xa.getPerformArgs=function(a,b){if(a.__pipeline){var c=this._pipelineMap.get(a.__pipeline.id),d=c.context;a=!b&&c.progressiveEnabled&&(!d||d.progressiveRender)&&a.__idxInPipeline>c.blockIndex?c.step:null;d=
d&&d.modDataCount;return{step:a,modBy:null!=d?Math.ceil(d/a):null,modDataCount:d}}};Xa.getPipeline=function(a){return this._pipelineMap.get(a)};Xa.updateStreamModes=function(a,b){var c=this._pipelineMap.get(a.uid),d=a.getData().count();b=c.progressiveEnabled&&b.incrementalPrepareRender&&d>=c.threshold;var e=a.get("large")&&d>=a.get("largeThreshold");d="mod"===a.get("progressiveChunkMode")?d:null;a.pipelineContext=c.context={progressiveRender:b,modDataCount:d,large:e}};Xa.restorePipelines=function(a){var b=
this,c=b._pipelineMap=Q();a.eachSeries(function(d){var e=d.getProgressive(),f=d.uid;c.set(f,{id:f,head:null,tail:null,threshold:d.getProgressiveThreshold(),progressiveEnabled:e&&!(d.preventIncremental&&d.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0});Zf(b,d,d.dataTask)})};Xa.prepareStageTasks=function(){var a=this._stageTaskMap,b=this.ecInstance.getModel(),c=this.api;w(this._allHandlers,function(d){var e=a.get(d.uid)||a.set(d.uid,[]);d.reset&&Kr(this,d,e,b,c);d.overallReset&&
Or(this,d,e,b,c)},this)};Xa.prepareView=function(a,b,c,d){var e=a.renderTask,f=e.context;f.model=b;f.ecModel=c;f.api=d;e.__block=!a.incrementalPrepareRender;Zf(this,b,e)};Xa.performDataProcessorTasks=function(a,b){bn(this,this._dataProcessorHandlers,a,b,{block:!0})};Xa.performVisualTasks=function(a,b,c){bn(this,this._visualHandlers,a,b,c)};Xa.performSeriesTasks=function(a){var b;a.eachSeries(function(c){b|=c.dataTask.perform()});this.unfinished|=b};Xa.plan=function(){this._pipelineMap.each(function(a){var b=
a.tail;do{if(b.__block){a.blockIndex=b.__idxInPipeline;break}b=b.getUpstream()}while(b)})};var cn=Xa.updatePayload=function(a,b){"remain"!==b&&(a.context.payload=b)},Tr=dn(0);Yf.wrapStageHandler=function(a,b){if(Ya(a)){var c=a;Fg=null;try{a(Ue,zp)}catch(d){}a={overallReset:c,seriesType:Fg}}a.uid=Rf("stageHandler");b&&(a.visualType=b);return a};var Ue={},zp={},Fg;en(Ue,Yj);en(zp,Lm);Ue.eachSeriesByType=Ue.eachRawSeriesByType=function(a){Fg=a};Ue.eachComponent=function(a){"series"===a.mainType&&a.subType&&
(Fg=a.subType)};var Ap="#37A2DA #32C5E9 #67E0E3 #9FE6B8 #FFDB5C #ff9f7f #fb7293 #E062AE #E690D1 #e7bcf3 #9d96f5 #8378EA #96BFFF".split(" "),fu={color:Ap,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],"#37A2DA #67E0E3 #FFDB5C #ff9f7f #E062AE #9d96f5".split(" "),"#37A2DA #32C5E9 #9FE6B8 #FFDB5C #ff9f7f #fb7293 #e7bcf3 #8378EA #96BFFF".split(" "),Ap]},Gg=function(){return{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",
color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}}},ek="#dd6b66 #759aa0 #e69d87 #8dc1a9 #ea7e53 #eedd78 #73a373 #73b9bc #7289ab #91ca8c #f49f42".split(" "),Bp={color:ek,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},
itemStyle:{normal:{color:ek[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:Gg(),logAxis:Gg(),valueAxis:Gg(),categoryAxis:Gg(),line:{symbol:"circle"},graph:{color:ek},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};Bp.categoryAxis.splitLine.show=!1;aa.extend({type:"dataset",defaultOption:{seriesLayoutBy:"column",sourceHeader:null,
dimensions:null,source:null},optionUpdated:function(){var a=this.option.source,b="unknown";if(lb(a))b="typedArray";else if(E(a))for(var c=0,d=a.length;c<d;c++){var e=a[c];if(null!=e)if(E(e)){b="arrayRows";break}else if(O(e)){b="objectRows";break}}else if(O(a))for(c in a){if(a.hasOwnProperty(c)&&Db(a[c])){b="keyedColumns";break}}else if(null!=a)throw Error("Invalid data");Ed(this).sourceFormat=b}});Sb.extend({type:"dataset"});var as=dd,pa=w,bs=Ya,Ae=O,mn=aa.parseClassType,fk={PROCESSOR:{FILTER:1E3,
STATISTIC:5E3},VISUAL:{LAYOUT:1E3,GLOBAL:2E3,CHART:3E3,COMPONENT:4E3,BRUSH:5E3}},sn=/^[a-zA-Z0-9_]+$/;xe.prototype.on=Gd("on");xe.prototype.off=Gd("off");xe.prototype.one=Gd("one");ba(xe,tb);var S=ye.prototype;S._onframe=function(){if(!this._disposed){var a=this._scheduler;if(this.__optionUpdated)a=this.__optionUpdated.silent,this.__flagInMainProcess=!0,ze(this),pc.update.call(this),this.__optionUpdated=this.__flagInMainProcess=!1,cg.call(this,a),!a&&this.trigger("updated");else if(a.unfinished){var b=
1,c=this._model,d=this._api;a.unfinished=!1;do{var e=+new Date;a.performSeriesTasks(c);a.performDataProcessorTasks(c);kn(this,c);a.performVisualTasks(c);Hi(this,this._model,d,"remain");b-=+new Date-e}while(0<b&&a.unfinished);a.unfinished||this._zr.flush()}}};S.getDom=function(){return this._dom};S.getZr=function(){return this._zr};S.setOption=function(a,b,c){if(Ae(b)){c=b.lazyUpdate;var d=b.silent;b=b.notMerge}this.__flagInMainProcess=!0;if(!this._model||b){b=new wi(this._api);var e=this._theme,f=
this._model=new Yj(null,null,e,b);f.scheduler=this._scheduler;f.init(null,null,e,b)}this._model.setOption(a,rn);c?(this.__optionUpdated={silent:d},this.__flagInMainProcess=!1):(ze(this),pc.update.call(this),this._zr.flush(),this.__flagInMainProcess=this.__optionUpdated=!1,cg.call(this,d),!d&&this.trigger("updated"))};S.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")};S.getModel=function(){return this._model};S.getOption=function(){return this._model&&this._model.getOption()};
S.getWidth=function(){return this._zr.getWidth()};S.getHeight=function(){return this._zr.getHeight()};S.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1};S.getRenderedCanvas=function(a){if(R.canvasSupported)return a=a||{},a.pixelRatio=a.pixelRatio||1,a.backgroundColor=a.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(a)};S.getSvgDataUrl=function(){if(R.svgSupported){var a=this._zr,b=a.storage.getDisplayList();w(b,function(c){c.stopAnimation(!0)});
return a.painter.pathToDataUrl()}};S.getDataURL=function(a){a=a||{};var b=this._model,c=[],d=this;pa(a.excludeComponents,function(e){b.eachComponent({mainType:e},function(f){f=d._componentsMap[f.__viewId];f.group.ignore||(c.push(f),f.group.ignore=!0)})});a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(a).toDataURL("image/"+(a&&a.type||"png"));pa(c,function(e){e.group.ignore=!1});return a};S.getConnectedDataURL=function(a){if(R.canvasSupported){var b=this.group,c=Math.min,
d=Math.max;if(eg[b]){var e=Infinity,f=Infinity,g=-Infinity,h=-Infinity,k=[],l=a&&a.pixelRatio||1;w(Vc,function(r,t){r.group===b&&(t=r.getRenderedCanvas(U(a)),r=r.getDom().getBoundingClientRect(),e=c(r.left,e),f=c(r.top,f),g=d(r.right,g),h=d(r.bottom,h),k.push({dom:t,left:r.left,top:r.top}))});e*=l;f*=l;g*=l;h*=l;var m=g-e,n=h-f,p=Ye();p.width=m;p.height=n;var q=Hh(p);pa(k,function(r){r=new $b({style:{x:r.left*l-e,y:r.top*l-f,image:r.dom}});q.add(r)});q.refreshImmediately();return p.toDataURL("image/"+
(a&&a.type||"png"))}return this.getDataURL(a)}};S.convertToPixel=M(gn,"convertToPixel");S.convertFromPixel=M(gn,"convertFromPixel");S.containPixel=function(a,b){var c;a=Lh(this._model,a);w(a,function(d,e){0<=e.indexOf("Models")&&w(d,function(f){var g=f.coordinateSystem;g&&g.containPoint?c|=!!g.containPoint(b):"seriesModels"===e&&(g=this._chartsMap[f.__viewId])&&g.containPoint&&(c|=g.containPoint(b,f))},this)},this);return!!c};S.getVisual=function(a,b){a=Lh(this._model,a,{defaultMainType:"series"});
var c=a.seriesModel.getData();a=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?c.indexOfRawIndex(a.dataIndex):null;return null!=a?c.getItemVisual(a,b):c.getVisual(b)};S.getViewOfComponentModel=function(a){return this._componentsMap[a.__viewId]};S.getViewOfSeriesModel=function(a){return this._chartsMap[a.__viewId]};var pc={prepareAndUpdate:function(a){ze(this);pc.update.call(this,a)},update:function(a){var b=this._model,c=this._api,d=this._zr,e=this._coordSysMgr,
f=this._scheduler;b&&(f.restoreData(b,a),f.performSeriesTasks(b),e.create(b,c),f.performDataProcessorTasks(b,a),kn(this,b),e.update(b,c),Gi(b),f.performVisualTasks(b,a),nn(this,b,c,a),a=b.get("backgroundColor")||"transparent",R.canvasSupported?d.setBackgroundColor(a):(d=Gb(a),a=jd(d,"rgb"),0===d[3]&&(a="transparent")),Ii(b,c))},updateTransform:function(a){var b=this._model,c=this,d=this._api;if(b){var e=[];b.eachComponent(function(g,h){(g=c.getViewOfComponentModel(h))&&g.__alive&&(g.updateTransform?
(h=g.updateTransform(h,b,d,a))&&h.update&&e.push(g):e.push(g))});var f=Q();b.eachSeries(function(g){var h=c._chartsMap[g.__viewId];h.updateTransform?(h=h.updateTransform(g,b,d,a))&&h.update&&f.set(g.uid,1):f.set(g.uid,1)});Gi(b);this._scheduler.performVisualTasks(b,a,{setDirty:!0,dirtyMap:f});Hi(c,b,d,a,f);Ii(b,this._api)}},updateView:function(a){var b=this._model;b&&(Ga.markUpdateMethod(a,"updateView"),Gi(b),this._scheduler.performVisualTasks(b,a,{setDirty:!0}),nn(this,this._model,this._api,a),Ii(b,
this._api))},updateVisual:function(a){pc.update.call(this,a)},updateLayout:function(a){pc.update.call(this,a)}};S.resize=function(a){this._zr.resize(a);var b=this._model;this._loadingFX&&this._loadingFX.resize();b&&(b=b.resetOption("media"),a=a&&a.silent,this.__flagInMainProcess=!0,b&&ze(this),pc.update.call(this),this.__flagInMainProcess=!1,cg.call(this,a),!a&&this.trigger("updated"))};S.showLoading=function(a,b){Ae(a)&&(b=a,a="");a=a||"default";this.hideLoading();Hg[a]&&(a=Hg[a](this._api,b),b=
this._zr,this._loadingFX=a,b.add(a))};S.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX);this._loadingFX=null};S.makeActionFromEvent=function(a){var b=P({},a);b.type=dg[a.type];return b};S.dispatchAction=function(a,b){Ae(b)||(b={silent:!!b});bg[a.type]&&this._model&&(this.__flagInMainProcess?this._pendingActions.push(a):(ln.call(this,a,b.silent),b.flush?this._zr.flush(!0):!1!==b.flush&&R.browser.weChat&&this._throttledZrFlush(),cg.call(this,b.silent),!b.silent&&this.trigger("updated")))};
S.appendData=function(a){var b=a.seriesIndex;this.getModel().getSeriesByIndex(b).appendData(a);this._scheduler.unfinished=!0};S.on=Gd("on");S.off=Gd("off");S.one=Gd("one");var gu="click dblclick mouseover mouseout mousemove mousedown mouseup globalout contextmenu".split(" ");S._initEvents=function(){pa(gu,function(a){this._zr.on(a,function(b){var c=this.getModel(),d=b.target;if("globalout"===a)var e={};else d&&null!=d.dataIndex?e=(c=d.dataModel||c.getSeriesByIndex(d.seriesIndex))&&c.getDataParams(d.dataIndex,
d.dataType)||{}:d&&d.eventData&&(e=P({},d.eventData));e&&(e.event=b,e.type=a,this.trigger(a,e))},this)},this);pa(dg,function(a,b){this._messageCenter.on(b,function(c){this.trigger(b,c)},this)},this)};S.isDisposed=function(){return this._disposed};S.clear=function(){this.setOption({series:[]},!0)};S.dispose=function(){if(!this._disposed){this._disposed=!0;ql(this.getDom(),Ki,"");var a=this._api,b=this._model;pa(this._componentsViews,function(c){c.dispose(b,a)});pa(this._chartsViews,function(c){c.dispose(b,
a)});this._zr.dispose();delete Vc[this.id]}};ba(ye,tb);var bg={},dg={},Fi=[],rn=[],pn=[],ag=[],$f={},Hg={},Vc={},eg={},hu=new Date-0,iu=new Date-0,Ki="_echarts_instance_",Cp={};qc(2E3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(a,b){var c=a.getData(),d=(a.visualColorAccessPath||"itemStyle.color").split("."),e=a.get(d)||a.getColorFromPalette(a.name,null,b.getSeriesCount());c.setVisual("color",e);if(!b.isSeriesFiltered(a))return"function"!==typeof e||e instanceof Se||c.each(function(f){c.setItemVisual(f,
"color",e(a.getDataParams(f)))}),b=function(f,g){var h=f.getItemModel(g).get(d,!0);null!=h&&f.setItemVisual(g,"color",h)},{dataEach:c.hasItemOption?b:null}}});Tb(fn);Ub(5E3,function(a){var b=Q();a.eachSeries(function(c){var d=c.get("stack");if(d){d=b.get(d)||b.set(d,[]);var e=c.getData();c={stackResultDimension:e.getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),
isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:c};c.stackedDimension&&(c.isStackedByIndex||c.stackedByDimension)&&(d.length&&e.setCalculationInfo("stackedOnSeries",d[d.length-1].seriesModel),d.push(c))}});b.each(wr)});Hg["default"]=function(a,b){b=b||{};J(b,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var c=new ua({style:{fill:b.maskColor},zlevel:b.zlevel,z:1E4}),d=new vp({shape:{startAngle:-Eg/2,endAngle:-Eg/2+.1,r:10},
style:{stroke:b.color,lineCap:"round",lineWidth:5},zlevel:b.zlevel,z:10001}),e=new ua({style:{fill:"none",text:b.text,textPosition:"right",textDistance:10,textFill:b.textColor},zlevel:b.zlevel,z:10001});d.animateShape(!0).when(1E3,{endAngle:3*Eg/2}).start("circularInOut");d.animateShape(!0).when(1E3,{startAngle:3*Eg/2}).delay(300).start("circularInOut");b=new L;b.add(d);b.add(e);b.add(c);b.resize=function(){var f=a.getWidth()/2,g=a.getHeight()/2;d.setShape({cx:f,cy:g});var h=d.shape.r;e.setShape({x:f-
h,y:g-h,width:2*h,height:2*h});c.setShape({x:0,y:0,width:a.getWidth(),height:a.getHeight()})};b.resize();return b};Ma({type:"highlight",event:"highlight",update:"highlight"},Yb);Ma({type:"downplay",event:"downplay",update:"downplay"},Yb);$f.light=fu;$f.dark=Bp;Oi.prototype={constructor:Oi,add:function(a){this._add=a;return this},update:function(a){this._update=a;return this},remove:function(a){this._remove=a;return this},execute:function(){var a=this._old,b=this._new,c={},d=[],e=[];un(a,{},d,"_oldKeyGetter",
this);un(b,c,e,"_newKeyGetter",this);for(b=0;b<a.length;b++){var f=d[b],g=c[f];if(null!=g){var h=g.length;h?(1===h&&(c[f]=null),g=g.unshift()):c[f]=null;this._update&&this._update(g,b)}else this._remove&&this._remove(b)}for(b=0;b<e.length;b++)if(f=e[b],c.hasOwnProperty(f)&&(g=c[f],null!=g))if(g.length)for(a=0,h=g.length;a<h;a++)this._add&&this._add(g[a]);else this._add&&this._add(g)}};var vn=Q(["tooltip","label","itemName","itemId","seriesName"]),Ig=O,ju={"float":"undefined"===typeof Float64Array?
Array:Float64Array,"int":"undefined"===typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},Be="undefined"===typeof Uint32Array?Array:Uint32Array,Jg="undefined"===typeof Uint16Array?Array:Uint16Array,es="hasItemOption _nameList _idList _invertedIndicesMap _rawData _chunkSize _chunkCount _dimValueGetter _count _rawCount _nameDimIdx _idDimIdx".split(" "),fs=["_extent","_approximateExtent","_rawExtent"],Ta=function(a,b){a=a||["x","y"];for(var c={},d=[],e={},f=0;f<a.length;f++){var g=
a[f];va(g)&&(g={name:g});var h=g.name;g.type=g.type||"float";g.coordDim||(g.coordDim=h,g.coordDimIndex=0);g.otherDims=g.otherDims||{};d.push(h);c[h]=g;g.index=f;g.createInvertedIndices&&(e[h]=[])}this.dimensions=d;this._dimensionInfos=c;this.hostModel=b;this._indices=null;this._rawCount=this._count=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._rawExtent={};this._extent={};this._approximateExtent={};this._dimensionsSummary=cs(this);this._invertedIndicesMap=e;this._calculationInfo={}},D=Ta.prototype;D.type="list";D.hasItemOption=!0;D.getDimension=function(a){isNaN(a)||(a=this.dimensions[a]||a);return a};D.getDimensionInfo=function(a){return this._dimensionInfos[this.getDimension(a)]};D.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()};D.mapDimension=function(a,b){var c=this._dimensionsSummary;
if(null==b)return c.encodeFirstDimNotExtra[a];a=c.encode[a];return!0===b?(a||[]).slice():a&&a[b]};D.initData=function(a,b,c){if(jb.isInstance(a)||Db(a))a=new Rm(a,this.dimensions.length);this._rawData=a;this._storage={};this._indices=null;this._nameList=b||[];this._idList=[];this._nameRepeatCount={};c||(this.hasItemOption=!1);this.defaultDimValueGetter=bu[this._rawData.getSource().sourceFormat];this._dimValueGetter=c=c||this.defaultDimValueGetter;this._rawExtent={};this._initDataFromProvider(0,a.count());
a.pure&&(this.hasItemOption=!1)};D.getProvider=function(){return this._rawData};D.appendData=function(a){var b=this._rawData,c=this.count();b.appendData(a);a=b.count();b.persistent||(a+=c);this._initDataFromProvider(c,a)};D._initDataFromProvider=function(a,b){if(!(a>=b)){for(var c=this._chunkSize,d=this._rawData,e=this._storage,f=this.dimensions,g=f.length,h=this._dimensionInfos,k=this._nameList,l=this._idList,m=this._rawExtent,n=this._nameRepeatCount={},p,q=this._chunkCount,r=q-1,t=0;t<g;t++){var u=
f[t];m[u]||(m[u]=[Infinity,-Infinity]);var v=h[u];0===v.otherDims.itemName&&(p=this._nameDimIdx=t);0===v.otherDims.itemId&&(this._idDimIdx=t);var x=ju[v.type];e[u]||(e[u]=[]);if((v=e[u][r])&&v.length<c){for(var y=new x(Math.min(b-r*c,c)),z=0;z<v.length;z++)y[z]=v[z];e[u][r]=y}for(v=q*c;v<b;v+=c)e[u].push(new x(Math.min(b-v,c)));this._chunkCount=e[u].length}for(q=Array(g);a<b;a++){q=d.getItem(a,q);t=Math.floor(a/c);r=a%c;for(v=0;v<g;v++)u=f[v],y=e[u][t],x=this._dimValueGetter(q,u,a,v),y[r]=x,u=m[u],
x<u[0]&&(u[0]=x),x>u[1]&&(u[1]=x);d.pure||(u=k[a],q&&null==u&&(null!=q.name?k[a]=u=q.name:null!=p&&(v=f[p],t=e[v][t])&&(u=t[r],(v=h[v].ordinalMeta)&&v.categories.length&&(u=v.categories[u]))),v=null==q?null:q.id,null==v&&null!=u&&(n[u]=n[u]||0,v=u,0<n[u]&&(v+="__ec__"+n[u]),n[u]++),null!=v&&(l[a]=v))}!d.persistent&&d.clean&&d.clean();this._rawCount=this._count=b;this._extent={};gs(this)}};D.count=function(){return this._count};D.getIndices=function(){var a=this._indices;if(a){var b=a.constructor;
var c=this._count;if(b===Array){b=new b(c);for(var d=0;d<c;d++)b[d]=a[d]}else b=new b(a.buffer,0,c)}else for(b=65535<this._rawCount?Be:Jg,b=new b(this.count()),d=0;d<b.length;d++)b[d]=d;return b};D.get=function(a,b){if(!(0<=b&&b<this._count))return NaN;var c=this._storage;if(!c[a])return NaN;b=this.getRawIndex(b);return c[a][Math.floor(b/this._chunkSize)][b%this._chunkSize]};D.getByRawIndex=function(a,b){return 0<=b&&b<this._rawCount?(a=this._storage[a])?a[Math.floor(b/this._chunkSize)][b%this._chunkSize]:
NaN:NaN};D._getFast=function(a,b){return this._storage[a][Math.floor(b/this._chunkSize)][b%this._chunkSize]};D.getValues=function(a,b){var c=[];E(a)||(b=a,a=this.dimensions);for(var d=0,e=a.length;d<e;d++)c.push(this.get(a[d],b));return c};D.hasValue=function(a){for(var b=this._dimensionsSummary.dataDimsOnCoord,c=this._dimensionInfos,d=0,e=b.length;d<e;d++)if("ordinal"!==c[b[d]].type&&isNaN(this.get(b[d],a)))return!1;return!0};D.getDataExtent=function(a){a=this.getDimension(a);var b=[Infinity,-Infinity];
if(!this._storage[a])return b;var c=this.count(),d;if(!this._indices)return this._rawExtent[a].slice();if(d=this._extent[a])return d.slice();d=b;b=d[0];d=d[1];for(var e=0;e<c;e++){var f=this._getFast(a,this.getRawIndex(e));f<b&&(b=f);f>d&&(d=f)}d=[b,d];return this._extent[a]=d};D.getApproximateExtent=function(a){a=this.getDimension(a);return this._approximateExtent[a]||this.getDataExtent(a)};D.setApproximateExtent=function(a,b){b=this.getDimension(b);this._approximateExtent[b]=a.slice()};D.getCalculationInfo=
function(a){return this._calculationInfo[a]};D.setCalculationInfo=function(a,b){Ig(a)?P(this._calculationInfo,a):this._calculationInfo[a]=b};D.getSum=function(a){var b=0;if(this._storage[a])for(var c=0,d=this.count();c<d;c++){var e=this.get(a,c);isNaN(e)||(b+=e)}return b};D.getMedian=function(a){var b=[];this.each(a,function(d,e){isNaN(d)||b.push(d)});a=[].concat(b).sort(function(d,e){return d-e});var c=this.count();return 0===c?0:1===c%2?a[(c-1)/2]:(a[c/2]+a[c/2-1])/2};D.rawIndexOf=function(a,b){a=
(a&&this._invertedIndicesMap[a])[b];return null==a||isNaN(a)?-1:a};D.indexOfName=function(a){for(var b=0,c=this.count();b<c;b++)if(this.getName(b)===a)return b;return-1};D.indexOfRawIndex=function(a){if(!this._indices)return a;if(a>=this._rawCount||0>a)return-1;var b=this._indices,c=b[a];if(null!=c&&c<this._count&&c===a)return a;c=0;for(var d=this._count-1;c<=d;){var e=(c+d)/2|0;if(b[e]<a)c=e+1;else if(b[e]>a)d=e-1;else return e}return-1};D.indicesOfNearest=function(a,b,c){var d=[];if(!this._storage[a])return d;
null==c&&(c=Infinity);for(var e=Number.MAX_VALUE,f=-1,g=0,h=this.count();g<h;g++){var k=b-this.get(a,g),l=Math.abs(k);if(k<=c&&l<=e){if(l<e||0<=k&&0>f)e=l,f=k,d.length=0;d.push(g)}}return d};D.getRawIndex=Ce;D.getRawDataItem=function(a){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(a));for(var b=[],c=0;c<this.dimensions.length;c++)b.push(this.get(this.dimensions[c],a));return b};D.getName=function(a){a=this.getRawIndex(a);return this._nameList[a]||xn(this,this._nameDimIdx,
a)||""};D.getId=function(a){return Pi(this,this.getRawIndex(a))};D.each=function(a,b,c,d){if(this._count){"function"===typeof a&&(d=c,c=b,b=a,a=[]);c=c||d||this;a=C(Qi(a),this.getDimension,this);d=a.length;for(var e=0;e<this.count();e++)switch(d){case 0:b.call(c,e);break;case 1:b.call(c,this.get(a[0],e),e);break;case 2:b.call(c,this.get(a[0],e),this.get(a[1],e),e);break;default:for(var f=0,g=[];f<d;f++)g[f]=this.get(a[f],e);g[f]=e;b.apply(c,g)}}};D.filterSelf=function(a,b,c,d){if(this._count){"function"===
typeof a&&(d=c,c=b,b=a,a=[]);c=c||d||this;a=C(Qi(a),this.getDimension,this);d=this.count();var e=new (65535<this._rawCount?Be:Jg)(d),f=[],g=a.length,h=0;a=a[0];for(var k=0;k<d;k++){var l=this.getRawIndex(k);if(0===g)var m=b.call(c,k);else if(1===g)m=this._getFast(a,l),m=b.call(c,m,k);else{for(m=0;m<g;m++)f[m]=this._getFast(a,l);f[m]=k;m=b.apply(c,f)}m&&(e[h++]=l)}h<d&&(this._indices=e);this._count=h;this._extent={};this.getRawIndex=this._indices?De:Ce;return this}};D.selectRange=function(a){if(this._count){var b=
[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);var d=b.length;if(d){var e=this.count(),f=new (65535<this._rawCount?Be:Jg)(e),g=0,h=b[0],k=a[h][0],l=a[h][1],m=!1;if(!this._indices){var n=0;if(1===d){var p=this._storage[b[0]];for(m=0;m<this._chunkCount;m++)for(var q=p[m],r=Math.min(this._count-m*this._chunkSize,this._chunkSize),t=0;t<r;t++){var u=q[t];if(u>=k&&u<=l||isNaN(u))f[g++]=n;n++}m=!0}else if(2===d){p=this._storage[h];var v=this._storage[b[1]],x=a[b[1]][0],y=a[b[1]][1];for(m=0;m<this._chunkCount;m++){q=
p[m];var z=v[m];r=Math.min(this._count-m*this._chunkSize,this._chunkSize);for(t=0;t<r;t++){u=q[t];var A=z[t];(u>=k&&u<=l||isNaN(u))&&(A>=x&&A<=y||isNaN(A))&&(f[g++]=n);n++}}m=!0}}if(!m)if(1===d)for(t=0;t<e;t++){if(n=this.getRawIndex(t),u=this._getFast(h,n),u>=k&&u<=l||isNaN(u))f[g++]=n}else for(t=0;t<e;t++){h=!0;n=this.getRawIndex(t);for(m=0;m<d;m++)if(k=b[m],u=this._getFast(c,n),u<a[k][0]||u>a[k][1])h=!1;h&&(f[g++]=this.getRawIndex(t))}g<e&&(this._indices=f);this._count=g;this._extent={};this.getRawIndex=
this._indices?De:Ce;return this}}};D.mapArray=function(a,b,c,d){"function"===typeof a&&(d=c,c=b,b=a,a=[]);var e=[];this.each(a,function(){e.push(b&&b.apply(this,arguments))},c||d||this);return e};D.map=function(a,b,c,d){c=c||d||this;a=C(Qi(a),this.getDimension,this);d=yn(this,a);d._indices=this._indices;d.getRawIndex=d._indices?De:Ce;for(var e=d._storage,f=[],g=this._chunkSize,h=a.length,k=this.count(),l=[],m=d._rawExtent,n=0;n<k;n++){for(var p=0;p<h;p++)l[p]=this.get(a[p],n);l[h]=n;p=b&&b.apply(c,
l);if(null!=p){"object"!==typeof p&&(f[0]=p,p=f);var q=this.getRawIndex(n),r=Math.floor(q/g);q%=g;for(var t=0;t<p.length;t++){var u=a[t],v=p[t],x=m[u];(u=e[u])&&(u[r][q]=v);v<x[0]&&(x[0]=v);v>x[1]&&(x[1]=v)}}}return d};D.downSample=function(a,b,c,d){var e=yn(this,[a]),f=[];b=Math.floor(1/b);var g=e._storage[a],h=this.count(),k=this._chunkSize;a=e._rawExtent[a];for(var l=new (65535<this._rawCount?Be:Jg)(h),m=0,n=0;n<h;n+=b){b>h-n&&(b=h-n,f.length=b);for(var p=0;p<b;p++){var q=this.getRawIndex(n+p);
f[p]=g[Math.floor(q/k)][q%k]}p=c(f);q=this.getRawIndex(Math.min(n+d(f,p)||0,h-1));g[Math.floor(q/k)][q%k]=p;p<a[0]&&(a[0]=p);p>a[1]&&(a[1]=p);l[m++]=q}e._count=m;e._indices=l;e.getRawIndex=De;return e};D.getItemModel=function(a){var b=this.hostModel;return new Z(this.getRawDataItem(a),b,b&&b.ecModel)};D.diff=function(a){var b=this;return new Oi(a?a.getIndices():[],this.getIndices(),function(c){return Pi(a,c)},function(c){return Pi(b,c)})};D.getVisual=function(a){var b=this._visual;return b&&b[a]};
D.setVisual=function(a,b){if(Ig(a))for(var c in a)a.hasOwnProperty(c)&&this.setVisual(c,a[c]);else this._visual=this._visual||{},this._visual[a]=b};D.setLayout=function(a,b){if(Ig(a))for(var c in a)a.hasOwnProperty(c)&&this.setLayout(c,a[c]);else this._layout[a]=b};D.getLayout=function(a){return this._layout[a]};D.getItemLayout=function(a){return this._itemLayouts[a]};D.setItemLayout=function(a,b,c){this._itemLayouts[a]=c?P(this._itemLayouts[a]||{},b):b};D.clearItemLayouts=function(){this._itemLayouts.length=
0};D.getItemVisual=function(a,b,c){a=(a=this._itemVisuals[a])&&a[b];return null!=a||c?a:this.getVisual(b)};D.setItemVisual=function(a,b,c){var d=this._itemVisuals[a]||{},e=this.hasItemVisual;this._itemVisuals[a]=d;if(Ig(b))for(var f in b)b.hasOwnProperty(f)&&(d[f]=b[f],e[f]=!0);else d[b]=c,e[b]=!0};D.clearAllVisual=function(){this._visual={};this._itemVisuals=[];this.hasItemVisual={}};var ku=function(a){a.seriesIndex=this.seriesIndex;a.dataIndex=this.dataIndex;a.dataType=this.dataType};D.setItemGraphicEl=
function(a,b){var c=this.hostModel;b&&(b.dataIndex=a,b.dataType=this.dataType,b.seriesIndex=c&&c.seriesIndex,"group"===b.type&&b.traverse(ku,b));this._graphicEls[a]=b};D.getItemGraphicEl=function(a){return this._graphicEls[a]};D.eachItemGraphicEl=function(a,b){w(this._graphicEls,function(c,d){c&&a&&a.call(b,c,d)})};D.cloneShallow=function(a){a||(a=C(this.dimensions,this.getDimensionInfo,this),a=new Ta(a,this.hostModel));a._storage=this._storage;wn(a,this);a._indices=this._indices?new this._indices.constructor(this._indices):
null;a.getRawIndex=a._indices?De:Ce;return a};D.wrapMethod=function(a,b){var c=this[a];"function"===typeof c&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(a),this[a]=function(){var d=c.apply(this,arguments);return b.apply(this,[d].concat(Zg(arguments)))})};D.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"];D.CHANGABLE_METHODS=["filterSelf","selectRange"];var Si=function(a,b){b=b||{};return zn(b.coordDimensions||[],a,{dimsDef:b.dimensionsDefine||a.dimensionsDefine,
encodeDef:b.encodeDefine||a.encodeDefine,dimCount:b.dimensionsCount,generateCoord:b.generateCoord,generateCoordCount:b.generateCoordCount})};ka.prototype.parse=function(a){return a};ka.prototype.getSetting=function(a){return this._setting[a]};ka.prototype.contain=function(a){var b=this._extent;return a>=b[0]&&a<=b[1]};ka.prototype.normalize=function(a){var b=this._extent;return b[1]===b[0]?.5:(a-b[0])/(b[1]-b[0])};ka.prototype.scale=function(a){var b=this._extent;return a*(b[1]-b[0])+b[0]};ka.prototype.unionExtent=
function(a){var b=this._extent;a[0]<b[0]&&(b[0]=a[0]);a[1]>b[1]&&(b[1]=a[1])};ka.prototype.unionExtentFromData=function(a,b){this.unionExtent(a.getApproximateExtent(b))};ka.prototype.getExtent=function(){return this._extent.slice()};ka.prototype.setExtent=function(a,b){var c=this._extent;isNaN(a)||(c[0]=a);isNaN(b)||(c[1]=b)};ka.prototype.isBlank=function(){return this._isBlank};ka.prototype.setBlank=function(a){this._isBlank=a};ka.prototype.getLabel=null;ee(ka);qf(ka,{registerWhenExtend:!0});Ee.createByAxisModel=
function(a){a=a.option;var b=a.data;b=b&&C(b,js);return new Ee({categories:b,needCollect:!b,deduplication:!1!==a.dedplication})};var Dp=Ee.prototype;Dp.getOrdinal=function(a){return(this._map||(this._map=Q(this.categories))).get(a)};Dp.parseAndCollect=function(a){var b=this._needCollect;if("string"!==typeof a&&!b)return a;if(b&&!this._deduplication){var c=this.categories.length;this.categories[c]=a;return c}var d=this._map||(this._map=Q(this.categories));c=d.get(a);null==c&&(b?(c=this.categories.length,
this.categories[c]=a,d.set(a,c)):c=NaN);return c};var gk=ka.prototype,Vi=ka.extend({type:"ordinal",init:function(a,b){if(!a||E(a))a=new Ee({categories:a});this._ordinalMeta=a;this._extent=b||[0,a.categories.length-1]},parse:function(a){return"string"===typeof a?this._ordinalMeta.getOrdinal(a):Math.round(a)},contain:function(a){a=this.parse(a);return gk.contain.call(this,a)&&null!=this._ordinalMeta.categories[a]},normalize:function(a){return gk.normalize.call(this,this.parse(a))},scale:function(a){return Math.round(gk.scale.call(this,
a))},getTicks:function(){for(var a=[],b=this._extent,c=b[0];c<=b[1];)a.push(c),c++;return a},getLabel:function(a){if(!this.isBlank())return this._ordinalMeta.categories[a]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(a,b){this.unionExtent(a.getApproximateExtent(b))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:Yb,niceExtent:Yb});Vi.create=function(){return new Vi};var vb=ka.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(a,
b){var c=this._extent;isNaN(a)||(c[0]=parseFloat(a));isNaN(b)||(c[1]=parseFloat(b))},unionExtent:function(a){var b=this._extent;a[0]<b[0]&&(b[0]=a[0]);a[1]>b[1]&&(b[1]=a[1]);vb.prototype.setExtent.call(this,b[0],b[1])},getInterval:function(){return this._interval},setInterval:function(a){this._interval=a;this._niceExtent=this._extent.slice();this._intervalPrecision=oc(a)+2},getTicks:function(){a:{var a=this._interval;var b=this._extent,c=this._niceExtent,d=this._intervalPrecision,e=[];if(a){b[0]<
c[0]&&e.push(b[0]);for(var f=c[0];f<=c[1];){e.push(f);f=ea(f+a,d);if(f===e[e.length-1])break;if(1E4<e.length){a=[];break a}}b[1]>(e.length?e[e.length-1]:c[1])&&e.push(b[1])}a=e}return a},getLabel:function(a,b){if(null==a)return"";b=b&&b.precision;null==b?b=oc(a)||0:"auto"===b&&(b=this._intervalPrecision);a=ea(a,b,!0);return Sc(a)},niceTicks:function(a,b,c){a=a||5;var d=this._extent,e=d[1]-d[0];isFinite(e)&&(0>e&&(e=-e,d.reverse()),e=a=ri((d[1]-d[0])/a,!0),null!=b&&e<b&&(e=a=b),null!=c&&e>c&&(e=a=
c),c=b=oc(e)+2,e=c=[ea(Math.ceil(d[0]/e)*e,c),ea(Math.floor(d[1]/e)*e,c)],Dn(e,d),this._intervalPrecision=b,this._interval=a,this._niceExtent=c)},niceExtent:function(a){var b=this._extent;if(b[0]===b[1])if(0!==b[0]){var c=b[0];a.fixMax||(b[1]+=c/2);b[0]-=c/2}else b[1]=1;isFinite(b[1]-b[0])||(b[0]=0,b[1]=1);this.niceTicks(a.splitNumber,a.minInterval,a.maxInterval);c=this._interval;a.fixMin||(b[0]=ea(Math.floor(b[0]/c)*c));a.fixMax||(b[1]=ea(Math.ceil(b[1]/c)*c))}});vb.create=function(){return new vb};
var lu="undefined"!==typeof Float32Array?Float32Array:Array,mu={seriesType:"bar",plan:ck(),reset:function(a){if(a.coordinateSystem&&"cartesian2d"===a.coordinateSystem.type&&a.pipelineContext&&a.pipelineContext.large){var b=a.getData(),c=a.coordinateSystem,d=c.getBaseAxis(),e=c.getOtherAxis(d),f=b.mapDimension(e.dim),g=b.mapDimension(d.dim),h=e.isHorizontal(),k=h?0:1,l=Fn(Ui([a]),d,a).width;.5<l||(l=.5);return{progress:function(m,n){for(var p=new lu(2*m.count),q,r=[],t=[],u=0;null!=(q=m.next());)t[k]=
n.get(f,q),t[1-k]=n.get(g,q),r=c.dataToPoint(t,null,r),p[u++]=r[0],p[u++]=r[1];n.setLayout({largePoints:p,barWidth:l,valueAxisStart:Gn(d,e,!1),valueAxisHorizontal:h})}}}}},nu=vb.prototype,Ep=Math.ceil,Fp=Math.floor,ik=vb.extend({type:"time",getLabel:function(a){return ti(this._stepLvl[0],new Date(a),this.getSetting("useUTC"))},niceExtent:function(a){var b=this._extent;b[0]===b[1]&&(b[0]-=864E5,b[1]+=864E5);if(-Infinity===b[1]&&Infinity===b[0]){var c=new Date;b[1]=+new Date(c.getFullYear(),c.getMonth(),
c.getDate());b[0]=b[1]-864E5}this.niceTicks(a.splitNumber,a.minInterval,a.maxInterval);c=this._interval;a.fixMin||(b[0]=ea(Fp(b[0]/c)*c));a.fixMax||(b[1]=ea(Ep(b[1]/c)*c))},niceTicks:function(a,b,c){a=a||10;var d=this._extent,e=d[1]-d[0],f=e/a;null!=b&&f<b&&(f=b);null!=c&&f>c&&(f=c);b=hk.length;c=0;for(var g=b;c<g;){var h=c+g>>>1;hk[h][1]<f?c=h+1:g=h}f=hk[Math.min(c,b-1)];b=f[1];"year"===f[0]&&(a=ri(e/b/a,!0),b*=a);a=this.getSetting("useUTC")?0:6E4*(new Date(+d[0]||+d[1])).getTimezoneOffset();a=[Math.round(Ep((d[0]-
a)/b)*b+a),Math.round(Fp((d[1]-a)/b)*b+a)];Dn(a,d);this._stepLvl=f;this._interval=b;this._niceExtent=a},parse:function(a){return+Sf(a)}});w(["contain","normalize"],function(a){ik.prototype[a]=function(b){return nu[a].call(this,this.parse(b))}});var hk=[["hh:mm:ss",1E3],["hh:mm:ss",5E3],["hh:mm:ss",1E4],["hh:mm:ss",15E3],["hh:mm:ss",3E4],["hh:mm\nMM-dd",6E4],["hh:mm\nMM-dd",3E5],["hh:mm\nMM-dd",6E5],["hh:mm\nMM-dd",9E5],["hh:mm\nMM-dd",18E5],["hh:mm\nMM-dd",36E5],["hh:mm\nMM-dd",72E5],["hh:mm\nMM-dd",
216E5],["hh:mm\nMM-dd",432E5],["MM-dd\nyyyy",864E5],["MM-dd\nyyyy",1728E5],["MM-dd\nyyyy",2592E5],["MM-dd\nyyyy",3456E5],["MM-dd\nyyyy",432E6],["MM-dd\nyyyy",5184E5],["week",6048E5],["MM-dd\nyyyy",864E6],["week",12096E5],["week",18144E5],["month",26784E5],["week",36288E5],["month",53568E5],["week",36288E5],["quarter",8208E6],["month",107136E5],["month",13392E6],["half-year",16416E6],["month",214272E5],["month",26784E6],["year",32832E6]];ik.create=function(a){return new ik({useUTC:a.ecModel.get("useUTC")})};
var Kg=ka.prototype,Lg=vb.prototype,ou=Math.floor,pu=Math.ceil,Mg=Math.pow,Cb=Math.log,jk=ka.extend({type:"log",base:10,$constructor:function(){ka.apply(this,arguments);this._originalScale=new vb},getTicks:function(){var a=this._originalScale,b=this._extent,c=a.getExtent();return C(Lg.getTicks.call(this),function(d){var e=ea(Mg(this.base,d));e=d===b[0]&&a.__fixMin?ea(e,oc(c[0])):e;return e=d===b[1]&&a.__fixMax?ea(e,oc(c[1])):e},this)},getLabel:Lg.getLabel,scale:function(a){a=Kg.scale.call(this,a);
return Mg(this.base,a)},setExtent:function(a,b){var c=this.base;a=Cb(a)/Cb(c);b=Cb(b)/Cb(c);Lg.setExtent.call(this,a,b)},getExtent:function(){var a=this.base,b=Kg.getExtent.call(this);b[0]=Mg(a,b[0]);b[1]=Mg(a,b[1]);a=this._originalScale;var c=a.getExtent();a.__fixMin&&(b[0]=ea(b[0],oc(c[0])));a.__fixMax&&(b[1]=ea(b[1],oc(c[1])));return b},unionExtent:function(a){this._originalScale.unionExtent(a);var b=this.base;a[0]=Cb(a[0])/Cb(b);a[1]=Cb(a[1])/Cb(b);Kg.unionExtent.call(this,a)},unionExtentFromData:function(a,
b){this.unionExtent(a.getApproximateExtent(b))},niceTicks:function(a){a=a||10;var b=this._extent,c=b[1]-b[0];if(!(Infinity===c||0>=c)){var d=Bm(c);for(.5>=a/c*d&&(d*=10);!isNaN(d)&&1>Math.abs(d)&&0<Math.abs(d);)d*=10;a=[ea(pu(b[0]/d)*d),ea(ou(b[1]/d)*d)];this._interval=d;this._niceExtent=a}},niceExtent:function(a){Lg.niceExtent.call(this,a);var b=this._originalScale;b.__fixMin=a.fixMin;b.__fixMax=a.fixMax}});w(["contain","normalize"],function(a){jk.prototype[a]=function(b){b=Cb(b)/Cb(this.base);return Kg[a].call(this,
b)}});jk.create=function(){return new jk};var Ng={getMin:function(a){var b=this.option;a=a||null==b.rangeStart?b.min:b.rangeStart;this.axis&&null!=a&&"dataMin"!==a&&"function"!==typeof a&&!$d(a)&&(a=this.axis.scale.parse(a));return a},getMax:function(a){var b=this.option;a=a||null==b.rangeEnd?b.max:b.rangeEnd;this.axis&&null!=a&&"dataMax"!==a&&"function"!==typeof a&&!$d(a)&&(a=this.axis.scale.parse(a));return a},getNeedCrossZero:function(){var a=this.option;return null!=a.rangeStart||null!=a.rangeEnd?
!1:!a.scale},getCoordSysModel:Yb,setRange:function(a,b){this.option.rangeStart=a;this.option.rangeEnd=b},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},qu=Pc({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,b){var c=b.cx,d=b.cy,e=b.width/2;b=b.height/2;a.moveTo(c,d-b);a.lineTo(c+e,d+b);a.lineTo(c-e,d+b);a.closePath()}}),ru=Pc({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,b){var c=b.cx,d=b.cy,e=b.width/2;b=b.height/2;a.moveTo(c,
d-b);a.lineTo(c+e,d);a.lineTo(c,d+b);a.lineTo(c-e,d);a.closePath()}}),su=Pc({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,b){var c=b.x,d=b.y,e=b.width/5*3,f=Math.max(e,b.height);e/=2;b=e*e/(f-e);f=d-f+e+b;var g=Math.asin(b/e),h=Math.cos(g)*e,k=Math.sin(g),l=Math.cos(g),m=.6*e,n=.7*e;a.moveTo(c-h,f+b);a.arc(c,f,e,Math.PI-g,2*Math.PI+g);a.bezierCurveTo(c+h-k*m,f+b+l*m,c,d-n,c,d);a.bezierCurveTo(c,d-n,c-h+k*m,f+b+l*m,c-h,f+b);a.closePath()}}),tu=Pc({type:"arrow",shape:{x:0,y:0,width:0,
height:0},buildPath:function(a,b){var c=b.height,d=b.x,e=b.y;b=b.width/3*2;a.moveTo(d,e);a.lineTo(d+b,e+c);a.lineTo(d,e+c/4*3);a.lineTo(d-b,e+c);a.lineTo(d,e);a.closePath()}}),uu={line:function(a,b,c,d,e){e.x1=a;e.y1=b+d/2;e.x2=a+c;e.y2=b+d/2},rect:function(a,b,c,d,e){e.x=a;e.y=b;e.width=c;e.height=d},roundRect:function(a,b,c,d,e){e.x=a;e.y=b;e.width=c;e.height=d;e.r=Math.min(c,d)/4},square:function(a,b,c,d,e){c=Math.min(c,d);e.x=a;e.y=b;e.width=c;e.height=c},circle:function(a,b,c,d,e){e.cx=a+c/2;
e.cy=b+d/2;e.r=Math.min(c,d)/2},diamond:function(a,b,c,d,e){e.cx=a+c/2;e.cy=b+d/2;e.width=c;e.height=d},pin:function(a,b,c,d,e){e.x=a+c/2;e.y=b+d/2;e.width=c;e.height=d},arrow:function(a,b,c,d,e){e.x=a+c/2;e.y=b+d/2;e.width=c;e.height=d},triangle:function(a,b,c,d,e){e.cx=a+c/2;e.cy=b+d/2;e.width=c;e.height=d}},kk={};w({line:yc,rect:ua,roundRect:ua,square:ua,circle:Tj,diamond:ru,pin:su,arrow:tu,triangle:qu},function(a,b){kk[b]=new a});var ns=Pc({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},
beforeBrush:function(){var a=this.style;"pin"===this.shape.symbolType&&"inside"===a.textPosition&&(a.textPosition=["50%","40%"],a.textAlign="center",a.textVerticalAlign="middle")},buildPath:function(a,b,c){var d=b.symbolType,e=kk[d];"none"!==b.symbolType&&(e||(d="rect",e=kk[d]),uu[d](b.x,b.y,b.width,b.height,e.shape),e.buildPath(a,e.shape,c))}}),vu=(Object.freeze||Object)({createList:function(a){return Ri(a.getSource(),a)},getLayoutRect:Qb,dataStack:{isDimensionStacked:rc,enableDataStack:Bn,getStackedDimension:Cn},
createScale:function(a,b){var c=b;Z.isInstance(b)||(c=new Z(b),ba(c,Ng));b=In(c);b.setExtent(a[0],a[1]);fg(b,c);return b},mixinAxisModelCommonMethods:function(a){ba(a,Ng)},completeDimensions:zn,createDimensions:Si,createSymbol:Yc});Xi.prototype={constructor:Xi,properties:null,getBoundingRect:function(){var a=this._rect;if(a)return a;var b=Number.MAX_VALUE;a=[b,b];b=[-b,-b];for(var c=[],d=[],e=this.geometries,f=0;f<e.length;f++)if("polygon"===e[f].type){var g=void 0,h=e[f].exterior,k=c,l=d;if(0!==
h.length){var m=h[0],n=m[0],p=m[0],q=m[1],r=m[1];for(g=1;g<h.length;g++)m=h[g],n=xa(n,m[0]),p=ya(p,m[0]),q=xa(q,m[1]),r=ya(r,m[1]);k[0]=n;k[1]=q;l[0]=p;l[1]=r}Eb(a,a,c);Fb(b,b,d)}0===f&&(a[0]=a[1]=b[0]=b[1]=0);return this._rect=new ca(a[0],a[1],b[0]-a[0],b[1]-a[1])},contain:function(a){var b=this.getBoundingRect(),c=this.geometries;if(!b.contain(a[0],a[1]))return!1;b=0;var d=c.length;a:for(;b<d;b++)if("polygon"===c[b].type){var e=c[b].interiors;if(Jn(c[b].exterior,a[0],a[1])){for(var f=0;f<(e?e.length:
0);f++)if(Jn(e[f]))continue a;return!0}}return!1},transformTo:function(a,b,c,d){var e=this.getBoundingRect(),f=e.width/e.height;c?d||(d=c/f):c=f*d;a=new ca(a,b,c,d);e=e.calculateTransform(a);b=this.geometries;for(c=0;c<b.length;c++)if("polygon"===b[c].type){var g=b[c].exterior;d=b[c].interiors;for(f=0;f<g.length;f++)qa(g[f],g[f],e);for(g=0;g<(d?d.length:0);g++)for(f=0;f<d[g].length;f++)qa(d[g][f],d[g][f],e)}e=this._rect;e.copy(a);this.center=[e.x+e.width/2,e.y+e.height/2]}};var Gp=function(a){os(a);
return C(Ea(a.features,function(b){return b.geometry&&b.properties&&0<b.geometry.coordinates.length}),function(b){var c=b.properties;b=b.geometry;var d=b.coordinates,e=[];"Polygon"===b.type&&e.push({type:"polygon",exterior:d[0],interiors:d.slice(1)});"MultiPolygon"===b.type&&w(d,function(f){f[0]&&e.push({type:"polygon",exterior:f[0],interiors:f.slice(1)})});b=new Xi(c.name,e,c.cp);b.properties=c;return b})},Ge=db(),Hp=[0,1],Zc=function(a,b,c){this.dim=a;this.scale=b;this._extent=c||[0,0];this.onBand=
this.inverse=!1};Zc.prototype={constructor:Zc,contain:function(a){var b=this._extent,c=Math.max(b[0],b[1]);return a>=Math.min(b[0],b[1])&&a<=c},containData:function(a){return this.contain(this.dataToCoord(a))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(a){return pi(a||this.scale.getExtent(),this._extent)},setExtent:function(a,b){var c=this._extent;c[0]=a;c[1]=b},dataToCoord:function(a,b){var c=this._extent,d=this.scale;a=d.normalize(a);this.onBand&&"ordinal"===d.type&&
(c=c.slice(),Sn(c,d.count()));return ma(a,Hp,c,b)},coordToData:function(a,b){var c=this._extent,d=this.scale;this.onBand&&"ordinal"===d.type&&(c=c.slice(),Sn(c,d.count()));a=ma(a,c,Hp,b);return this.scale.scale(a)},pointToData:function(a,b){},getTicksCoords:function(a){a=a||{};var b=a.tickModel||this.getTickModel(),c="category"===this.type?ps(this,b):{ticks:this.scale.getTicks()},d=C(c.ticks,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this);b=b.get("alignWithLabel");rs(this,d,c.tickCategoryInterval,
b,a.clamp);return d},getViewLabels:function(){if("category"===this.type){var a=this.getLabelModel();var b=Ln(this,a);a=!a.get("show")||this.scale.isBlank()?{labels:[],labelCategoryInterval:b.labelCategoryInterval}:b}else a=qs(this);return a.labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var a=this._extent,b=this.scale.getExtent();b=b[1]-b[0]+(this.onBand?1:0);0===b&&(b=1);return Math.abs(Math.abs(a[1]-
a[0]))/b},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){var a=this.getLabelModel();var b=this.getRotate?this.getRotate():this.isHorizontal&&!this.isHorizontal()?90:0;var c=a.get("rotate")||0;a=a.getFont();var d=Fe(this),e=(b-c)/180*Math.PI;b=this.scale;c=b.getExtent();b=b.count();if(1>c[1]-c[0])b=0;else{var f=1;40<b&&(f=Math.max(1,Math.floor(b/40)));var g=c[0],h=this.dataToCoord(g+1)-this.dataToCoord(g),k=Math.abs(h*Math.cos(e));e=Math.abs(h*Math.sin(e));var l=0;for(h=0;g<=
c[1];g+=f){var m=0,n=0;n=kd(d(g),a,"center","top");m=1.3*n.width;n=1.3*n.height;l=Math.max(l,m,7);h=Math.max(h,n,7)}a=l/k;d=h/e;isNaN(a)&&(a=Infinity);isNaN(d)&&(d=Infinity);a=Math.max(0,Math.floor(Math.min(a,d)));d=Ge(this.model);c=d.lastAutoInterval;f=d.lastTickCount;null!=c&&null!=f&&1>=Math.abs(c-a)&&1>=Math.abs(f-b)&&c>a?a=c:(d.lastTickCount=b,d.lastAutoInterval=a);b=a}return b}};var Ip={};w("map each filter indexOf inherits reduce filter bind curry isArray isString isObject isFunction extend defaults clone merge".split(" "),
function(a){Ip[a]=Ht[a]});var gg=function(a){this._axes={};this._dimList=[];this.name=a||""};gg.prototype={constructor:gg,type:"cartesian",getAxis:function(a){return this._axes[a]},getAxes:function(){return C(this._dimList,ss,this)},getAxesByScale:function(a){a=a.toLowerCase();return Ea(this.getAxes(),function(b){return b.scale.type===a})},addAxis:function(a){var b=a.dim;this._axes[b]=a;this._dimList.push(b)},dataToCoord:function(a){return this._dataCoordConvert(a,"dataToCoord")},coordToData:function(a){return this._dataCoordConvert(a,
"coordToData")},_dataCoordConvert:function(a,b){for(var c=this._dimList,d=a instanceof Array?[]:{},e=0;e<c.length;e++){var f=c[e];d[f]=this._axes[f][b](a[f])}return d}};He.prototype={constructor:He,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(a){var b=this.getAxis("x"),c=this.getAxis("y");return b.contain(b.toLocalCoord(a[0]))&&c.contain(c.toLocalCoord(a[1]))},containData:function(a){return this.getAxis("x").containData(a[0])&&
this.getAxis("y").containData(a[1])},dataToPoint:function(a,b,c){b=this.getAxis("x");var d=this.getAxis("y");c=c||[];c[0]=b.toGlobalCoord(b.dataToCoord(a[0]));c[1]=d.toGlobalCoord(d.dataToCoord(a[1]));return c},clampData:function(a,b){var c=this.getAxis("x").scale,d=this.getAxis("y").scale,e=c.getExtent(),f=d.getExtent();c=c.parse(a[0]);a=d.parse(a[1]);b=b||[];b[0]=Math.min(Math.max(Math.min(e[0],e[1]),c),Math.max(e[0],e[1]));b[1]=Math.min(Math.max(Math.min(f[0],f[1]),a),Math.max(f[0],f[1]));return b},
pointToData:function(a,b){var c=this.getAxis("x"),d=this.getAxis("y");b=b||[];b[0]=c.coordToData(c.toLocalCoord(a[0]));b[1]=d.coordToData(d.toLocalCoord(a[1]));return b},getOtherAxis:function(a){return this.getAxis("x"===a.dim?"y":"x")}};na(He,gg);var Og=function(a,b,c,d,e){Zc.call(this,a,b,c);this.type=d||"value";this.position=e||"bottom"};Og.prototype={constructor:Og,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var a=this.position;return"top"===a||"bottom"===a},getGlobalExtent:function(a){var b=
this.getExtent();b[0]=this.toGlobalCoord(b[0]);b[1]=this.toGlobalCoord(b[1]);a&&b[0]>b[1]&&b.reverse();return b},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(a,b){return this.coordToData(this.toLocalCoord(a["x"===this.dim?0:1]),b)},toLocalCoord:null,toGlobalCoord:null};na(Og,Zc);var Jp={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)"]}}},Ac={};Ac.categoryAxis=
T({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Jp);Ac.valueAxis=T({boundaryGap:[0,0],splitNumber:5},Jp);Ac.timeAxis=J({scale:!0,min:"dataMin",max:"dataMax"},Ac.valueAxis);Ac.logAxis=J({scale:!0,logBase:10},Ac.valueAxis);var wu=["value","category","time","log"],Kp=function(a,b,c,d){w(wu,function(e){b.extend({type:a+"Axis."+e,mergeDefaultAndTheme:function(f,g){var h=this.layoutMode,k=h?Cd({},f):{};g=g.getTheme();T(f,
g.get(e+"Axis"));T(f,this.getDefaultOption());f.type=c(a,f);h&&Tc(f,k,h)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=Ee.createByAxisModel(this))},getCategories:function(f){var g=this.option;if("category"===g.type)return f?g.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:Yg([{},Ac[e+"Axis"],d],!0)})});aa.registerSubTypeDefaulter(a+"Axis",M(c,a))},Td=aa.extend({type:"cartesian2dAxis",axis:null,init:function(){Td.superApply(this,
"init",arguments);this.resetRange()},mergeOption:function(){Td.superApply(this,"mergeOption",arguments);this.resetRange()},restoreData:function(){Td.superApply(this,"restoreData",arguments);this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});T(Td.prototype,Ng);var Lp={offset:0};Kp("x",Td,Tn,Lp);Kp("y",Td,Tn,Lp);aa.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 za=Hd.prototype;za.type="grid";za.axisPointerEnabled=!0;za.getRect=function(){return this._rect};za.update=function(a,b){var c=this._axesMap;this._updateScale(a,this.model);w(c.x,function(d){fg(d.scale,d.model)});w(c.y,function(d){fg(d.scale,d.model)});w(c.x,function(d){Un(c,"y",d)});w(c.y,function(d){Un(c,"x",d)});this.resize(this.model,
b)};za.resize=function(a,b,c){function d(){w(f,function(g){var h=g.isHorizontal(),k=h?[0,e.width]:[0,e.height],l=g.inverse?1:0;g.setExtent(k[l],k[1-l]);ts(g,h?e.x:e.y)})}var e=Qb(a.getBoxLayoutParams(),{width:b.getWidth(),height:b.getHeight()});this._rect=e;var f=this._axesList;d();!c&&a.get("containLabel")&&(w(f,function(g){if(!g.model.get("axisLabel.inside")){var h=g.scale;if(!g.model.get("axisLabel.show")||h.isBlank())var k=void 0;else{var l="category"===g.type,m=h.getExtent();l?h=h.count():(k=
h.getTicks(),h=k.length);l=g.getLabelModel();var n=Fe(g),p,q=1;40<h&&(q=Math.ceil(h/40));for(var r=0;r<h;r+=q){var t=n(k?k[r]:m[0]+r),u=l.getTextRect(t);t=(l.get("rotate")||0)*Math.PI/180;u=u.plain();var v=u.width,x=u.height;t=new ca(u.x,u.y,v*Math.cos(t)+x*Math.sin(t),v*Math.sin(t)+x*Math.cos(t));p?p.union(t):p=t}k=p}k&&(m=g.isHorizontal()?"height":"width",p=g.model.get("axisLabel.margin"),e[m]-=k[m]+p,"top"===g.position?e.y+=k.height+p:"left"===g.position&&(e.x+=k.width+p))}}),d())};za.getAxis=
function(a,b){a=this._axesMap[a];if(null!=a){if(null==b)for(var c in a)if(a.hasOwnProperty(c))return a[c];return a[b]}};za.getAxes=function(){return this._axesList.slice()};za.getCartesian=function(a,b){if(null!=a&&null!=b)return this._coordsMap["x"+a+"y"+b];O(a)&&(b=a.yAxisIndex,a=a.xAxisIndex);for(var c=0,d=this._coordsList;c<d.length;c++)if(d[c].getAxis("x").index===a||d[c].getAxis("y").index===b)return d[c]};za.getCartesians=function(){return this._coordsList.slice()};za.convertToPixel=function(a,
b,c){a=this._findConvertTarget(a,b);return a.cartesian?a.cartesian.dataToPoint(c):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(c)):null};za.convertFromPixel=function(a,b,c){a=this._findConvertTarget(a,b);return a.cartesian?a.cartesian.pointToData(c):a.axis?a.axis.coordToData(a.axis.toLocalCoord(c)):null};za._findConvertTarget=function(a,b){a=b.seriesModel;var c=b.xAxisModel||a&&a.getReferringComponents("xAxis")[0],d=b.yAxisModel||a&&a.getReferringComponents("yAxis")[0];b=b.gridModel;var e=this._coordsList,
f;if(a){var g=a.coordinateSystem;0>V(e,g)&&(g=null)}else c&&d?g=this.getCartesian(c.componentIndex,d.componentIndex):c?f=this.getAxis("x",c.componentIndex):d?f=this.getAxis("y",d.componentIndex):b&&b.coordinateSystem===this&&(g=this._coordsList[0]);return{cartesian:g,axis:f}};za.containPoint=function(a){var b=this._coordsList[0];if(b)return b.containPoint(a)};za._initCartesian=function(a,b,c){function d(h){return function(k,l){if(k.getCoordSysModel()===a){var m=k.get("position");"x"===h?"top"!==m&&
"bottom"!==m&&(m="bottom",e[m]&&(m="top"===m?"bottom":"top")):"left"!==m&&"right"!==m&&(m="left",e[m]&&(m="left"===m?"right":"left"));e[m]=!0;m=new Og(h,In(k),[0,0],k.get("type"),m);m.onBand="category"===m.type&&k.get("boundaryGap");m.inverse=k.get("inverse");k.axis=m;m.model=k;m.grid=this;m.index=l;this._axesList.push(m);f[h][l]=m;g[h]++}}}var e={left:!1,right:!1,top:!1,bottom:!1},f={x:{},y:{}},g={x:0,y:0};b.eachComponent("xAxis",d("x"),this);b.eachComponent("yAxis",d("y"),this);g.x&&g.y?(this._axesMap=
f,w(f.x,function(h,k){w(f.y,function(l,m){m="x"+k+"y"+m;var n=new He(m);n.grid=this;n.model=a;this._coordsMap[m]=n;this._coordsList.push(n);n.addAxis(h);n.addAxis(l)},this)},this)):(this._axesMap={},this._axesList=[])};za._updateScale=function(a,b){function c(d,e,f){w(d.mapDimension(e.dim,!0),function(g){e.scale.unionExtentFromData(d,Cn(d,g))})}w(this._axesList,function(d){d.scale.setExtent(Infinity,-Infinity)});a.eachSeries(function(d){if(Xn(d)){var e=Wn(d,a),f=e[0];e=e[1];var g;(g=f.getCoordSysModel()!==
b)||(g=e.getCoordSysModel()!==b);g||(g=this.getCartesian(f.componentIndex,e.componentIndex),f=d.getData(),e=g.getAxis("x"),g=g.getAxis("y"),"list"===f.type&&(c(f,e,d),c(f,g,d)))}},this)};za.getTooltipAxes=function(a){var b=[],c=[];w(this.getCartesians(),function(d){var e=null!=a&&"auto"!==a?d.getAxis(a):d.getBaseAxis();d=d.getOtherAxis(e);0>V(b,e)&&b.push(e);0>V(c,d)&&c.push(d)});return{baseAxes:b,otherAxes:c}};var us=["xAxis","yAxis"];Hd.create=function(a,b){var c=[];a.eachComponent("grid",function(d,
e){var f=new Hd(d,a,b);f.name="grid_"+e;f.resize(d,b,!0);d.coordinateSystem=f;c.push(f)});a.eachSeries(function(d){if(Xn(d)){var e=Wn(d,a),f=e[0];e=e[1];var g=f.getCoordSysModel().coordinateSystem;d.coordinateSystem=g.getCartesian(f.componentIndex,e.componentIndex)}});return c};Hd.dimensions=Hd.prototype.dimensions=He.prototype.dimensions;sb.register("cartesian2d",Hd);Xc.extend({type:"series.__base_bar__",getInitialData:function(a,b){return Ri(this.getSource(),this)},getMarkerPosition:function(a){var b=
this.coordinateSystem;if(b){a=b.dataToPoint(b.clampData(a));var c=this.getData(),d=c.getLayout("offset");c=c.getLayout("size");b=b.getBaseAxis().isHorizontal()?0:1;a[b]+=d+c/2;return a}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:{}}}).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?
this.get("progressive"):!1},getProgressiveThreshold:function(){var a=this.get("progressiveThreshold"),b=this.get("largeThreshold");b>a&&(a=b);return a}});var xu=wg([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),yu=["itemStyle","barBorderWidth"];P(Z.prototype,{getBarItemStyle:function(a){a=xu(this,a);if(this.getBorderLineDash){var b=this.getBorderLineDash();
b&&(a.lineDash=b)}return a}});Ni({type:"bar",render:function(a,b,c){this._updateDrawMode(a);var d=a.get("coordinateSystem");if("cartesian2d"===d||"polar"===d)this._isLargeDraw?this._renderLarge(a,b,c):this._renderNormal(a,b,c);return this.group},incrementalPrepareRender:function(a,b,c){this._clear();this._updateDrawMode(a)},incrementalRender:function(a,b,c,d){this._incrementalRenderLarge(a,b)},_updateDrawMode:function(a){a=a.pipelineContext.large;if(null==this._isLargeDraw||a^this._isLargeDraw)this._isLargeDraw=
a,this._clear()},_renderNormal:function(a,b,c){var d=this.group,e=a.getData(),f=this._data,g=a.coordinateSystem;b=g.getBaseAxis();var h;"cartesian2d"===g.type?h=b.isHorizontal():"polar"===g.type&&(h="angle"===b.dim);var k=a.isAnimationEnabled()?a:null;e.diff(f).add(function(l){if(e.hasValue(l)){var m=e.getItemModel(l),n=Mp[g.type](e,l,m),p=Np[g.type](e,l,m,n,h,k);e.setItemGraphicEl(l,p);d.add(p);ao(p,e,l,m,n,a,h,"polar"===g.type)}}).update(function(l,m){m=f.getItemGraphicEl(m);if(e.hasValue(l)){var n=
e.getItemModel(l),p=Mp[g.type](e,l,n);m?da(m,{shape:p},k,l):m=Np[g.type](e,l,n,p,h,k,!0);e.setItemGraphicEl(l,m);d.add(m);ao(m,e,l,n,p,a,h,"polar"===g.type)}else d.remove(m)}).remove(function(l){var m=f.getItemGraphicEl(l);"cartesian2d"===g.type?m&&Zn(l,k,m):m&&$n(l,k,m)}).execute();this._data=e},_renderLarge:function(a,b,c){this._clear();bo(a,this.group)},_incrementalRenderLarge:function(a,b){bo(b,this.group,!0)},dispose:Yb,remove:function(a){this._clear(a)},_clear:function(a){var b=this.group,c=
this._data;a&&a.get("animation")&&c&&!this._isLargeDraw?c.eachItemGraphicEl(function(d){"sector"===d.type?$n(d.dataIndex,a,d):Zn(d.dataIndex,a,d)}):b.removeAll();this._data=null}});var Np={cartesian2d:function(a,b,c,d,e,f,g){a=new ua({shape:P({},d)});f&&(e=e?"height":"width",c={},a.shape[e]=0,c[e]=d[e],Qd[g?"updateProps":"initProps"](a,{shape:c},f,b));return a},polar:function(a,b,c,d,e,f,g){a=new Kd({shape:J({clockwise:d.startAngle<d.endAngle},d)});if(f){c=e?"r":"endAngle";var h={};a.shape[c]=e?0:
d.startAngle;h[c]=d[c];Qd[g?"updateProps":"initProps"](a,{shape:h},f,b)}return a}},Mp={cartesian2d:function(a,b,c){a=a.getItemLayout(b);c=c.get(yu)||0;c=Math.min(c,Math.abs(a.width),Math.abs(a.height));b=0<a.width?1:-1;var d=0<a.height?1:-1;return{x:a.x+b*c/2,y:a.y+d*c/2,width:a.width-b*c,height:a.height-d*c}},polar:function(a,b,c){a=a.getItemLayout(b);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle}}},vs=W.extend({type:"largeBar",shape:{points:[]},buildPath:function(a,
b){b=b.points;for(var c=this.__startPoint,d=this.__valueIdx,e=0;e<b.length;e+=2)c[this.__valueIdx]=b[e+d],a.moveTo(c[0],c[1]),a.lineTo(b[e],b[e+1])}}),sc=Math.PI,Ud=function(a,b){this.opt=b;this.axisModel=a;J(b,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0});this.group=new L;a=new L({position:b.position.slice(),rotation:b.rotation});a.updateTransform();this._transform=a.transform;this._dumbGroup=a};Ud.prototype={constructor:Ud,hasBuilder:function(a){return!!Op[a]},add:function(a){Op[a].call(this)},
getGroup:function(){return this.group}};var Op={axisLine:function(){var a=this.opt,b=this.axisModel;if(b.get("axisLine.show")){var c=this.axisModel.axis.getExtent(),d=this._transform,e=[c[0],0];c=[c[1],0];d&&(qa(e,e,d),qa(c,c,d));var f=P({lineCap:"round"},b.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new yc(qe({anid:"line",shape:{x1:e[0],y1:e[1],x2:c[0],y2:c[1]},style:f,strokeContainThreshold:a.strokeContainThreshold||5,silent:!0,z2:1})));var g=b.get("axisLine.symbol");d=b.get("axisLine.symbolSize");
b=b.get("axisLine.symbolOffset")||0;"number"===typeof b&&(b=[b,b]);if(null!=g){"string"===typeof g&&(g=[g,g]);if("string"===typeof d||"number"===typeof d)d=[d,d];var h=d[0],k=d[1];w([{rotate:a.rotation+Math.PI/2,offset:b[0],r:0},{rotate:a.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((e[0]-c[0])*(e[0]-c[0])+(e[1]-c[1])*(e[1]-c[1]))}],function(l,m){if("none"!==g[m]&&null!=g[m]){m=Yc(g[m],-h/2,-k/2,h,k,f.stroke,!0);var n=l.r+l.offset;m.attr({rotation:l.rotate,position:[e[0]+n*Math.cos(a.rotation),e[1]-
n*Math.sin(a.rotation)],silent:!0});this.group.add(m)}},this)}}},axisTickLabel:function(){var a=this.axisModel,b=this.opt;var c=a.axis;if(!a.get("axisTick.show")||c.scale.isBlank())var d=void 0;else{var e=a.getModel("axisTick");d=e.getModel("lineStyle");e=e.get("length");c=c.getTicksCoords();for(var f=[],g=[],h=this._transform,k=[],l=0;l<c.length;l++){var m=c[l].coord;f[0]=m;f[1]=0;g[0]=m;g[1]=b.tickDirection*e;h&&(qa(f,f,h),qa(g,g,h));m=new yc(qe({anid:"tick_"+c[l].tickValue,shape:{x1:f[0],y1:f[1],
x2:g[0],y2:g[1]},style:J(d.getLineStyle(),{stroke:a.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));this.group.add(m);k.push(m)}d=k}g=xs(this,a,b);b=a.get("axisLabel.showMinLabel");a=a.get("axisLabel.showMaxLabel");g=g||[];d=d||[];e=g[0];c=g[1];f=g[g.length-1];g=g[g.length-2];h=d[0];k=d[1];l=d[d.length-1];d=d[d.length-2];!1===b?(Ua(e),Ua(h)):fo(e,c)&&(b?(Ua(c),Ua(k)):(Ua(e),Ua(h)));!1===a?(Ua(f),Ua(l)):fo(g,f)&&(a?(Ua(g),Ua(d)):(Ua(f),Ua(l)))},axisName:function(){var a=this.opt,b=this.axisModel,
c=Za(a.axisName,b.get("name"));if(c){var d=b.get("nameLocation"),e=a.nameDirection,f=b.getModel("nameTextStyle"),g=b.get("nameGap")||0,h=this.axisModel.axis.getExtent(),k=h[0]>h[1]?-1:1;g=["start"===d?h[0]-k*g:"end"===d?h[1]+k*g:(h[0]+h[1])/2,"middle"===d||"center"===d?a.labelOffset+e*g:0];k=b.get("nameRotate");null!=k&&(k=k*sc/180);if("middle"===d||"center"===d)d=go(a.rotation,null!=k?k:a.rotation,e);else{d=ws(a,d,k||0,h);var l=a.axisNameAvailableWidth;null!=l&&(l=Math.abs(l/Math.sin(d.rotation)),
!isFinite(l)&&(l=null))}e=f.getFont();h=b.get("nameTruncate",!0)||{};k=h.ellipsis;a=Za(a.nameTruncateMaxWidth,h.maxWidth,l);a=null!=k&&null!=a?wp(c,a,e,k,{minChar:2,placeholder:h.placeholder}):c;l=b.get("tooltip",!0);h=b.mainType;k={componentType:h,name:c,$vars:["name"]};k[h+"Index"]=b.componentIndex;g=new ta({anid:"name",__fullText:c,__truncatedText:a,position:g,rotation:d.rotation,silent:eo(b),z2:1,tooltip:l&&l.show?P({content:c,formatter:function(){return c},formatterParams:k},l):null});Ra(g.style,
f,{text:a,textFont:e,textFill:f.getTextColor()||b.get("axisLine.lineStyle.color"),textAlign:d.textAlign,textVerticalAlign:d.textVerticalAlign});b.get("triggerEvent")&&(g.eventData=co(b),g.eventData.targetType="axisName",g.eventData.name=c);this._dumbGroup.add(g);g.updateTransform();this.group.add(g);g.decomposeTransform()}}},go=Ud.innerTextLayout=function(a,b,c){a=qi(b-a);se(a)?(b=0<c?"top":"bottom",c="center"):se(a-sc)?(b=0<c?"bottom":"top",c="center"):(b="middle",c=0<a&&a<sc?0<c?"right":"left":
0<c?"left":"right");return{rotation:a,textAlign:c,textVerticalAlign:b}},Id=w,Zi=M,tc=ub({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(a,b,c,d){if(this.axisPointerClass){var e=$i(a);if(e){var f=e.axisPointerModel,g=e.axis.scale,h=f.option,k=f.get("status"),l=f.get("value");null!=l&&(l=g.parse(l));f=!!f.get("handle.show");null==k&&(h.status=f?"show":"hide");g=g.getExtent().slice();g[0]>g[1]&&g.reverse();if(null==l||l>g[1])l=g[1];l<g[0]&&(l=g[0]);h.value=l;f&&(h.status=e.axis.scale.isBlank()?
"hide":"show")}}tc.superApply(this,"render",arguments);ho(this,a,b,c,d,!0)},updateAxisPointer:function(a,b,c,d,e){ho(this,a,b,c,d,!1)},remove:function(a,b){var c=this._axisPointer;c&&c.remove(b);tc.superApply(this,"remove",arguments)},dispose:function(a,b){var c=this._axisPointer;c&&c.dispose(b,void 0);this._axisPointer=null;tc.superApply(this,"dispose",arguments)}}),Pp=[];tc.registerAxisPointerClass=function(a,b){Pp[a]=b};tc.getAxisPointerClass=function(a){return a&&Pp[a]};var zu=["axisLine","axisTickLabel",
"axisName"],Au=["splitArea","splitLine"],lk=tc.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(a,b,c,d){this.group.removeAll();var e=this._axisGroup;this._axisGroup=new L;this.group.add(this._axisGroup);if(a.get("show")){var f=a.getCoordSysModel(),g=aj(f,a);g=new Ud(a,g);w(zu,g.add,g);this._axisGroup.add(g.getGroup());w(Au,function(h){if(a.get(h+".show"))this["_"+h](a,f)},this);wm(e,this._axisGroup,a);lk.superCall(this,"render",a,b,c,d)}},remove:function(){this._splitAreaColors=
null},_splitLine:function(a,b){var c=a.axis;if(!c.scale.isBlank()){var d=a.getModel("splitLine"),e=d.getModel("lineStyle");a=e.get("color");a=E(a)?a:[a];b=b.coordinateSystem.getRect();var f=c.isHorizontal(),g=0;d=c.getTicksCoords({tickModel:d});var h=[],k=[];e=e.getLineStyle();for(var l=0;l<d.length;l++){var m=c.toGlobalCoord(d[l].coord);f?(h[0]=m,h[1]=b.y,k[0]=m,k[1]=b.y+b.height):(h[0]=b.x,h[1]=m,k[0]=b.x+b.width,k[1]=m);m=g++%a.length;this._axisGroup.add(new yc(qe({anid:null!=d[l].tickValue?"line_"+
d[l].tickValue:null,shape:{x1:h[0],y1:h[1],x2:k[0],y2:k[1]},style:J({stroke:a[m]},e),silent:!0})))}}},_splitArea:function(a,b){var c=a.axis;if(!c.scale.isBlank()){var d=a.getModel("splitArea"),e=d.getModel("areaStyle");a=e.get("color");b=b.coordinateSystem.getRect();d=c.getTicksCoords({tickModel:d,clamp:!0});if(d.length){var f=a.length,g=this._splitAreaColors,h=Q(),k=0;if(g)for(var l=0;l<d.length;l++){var m=g.get(d[l].tickValue);if(null!=m){k=(m+(f-1)*l)%f;break}}g=c.toGlobalCoord(d[0].coord);e=e.getAreaStyle();
a=E(a)?a:[a];for(l=1;l<d.length;l++){var n=c.toGlobalCoord(d[l].coord);if(c.isHorizontal()){m=g;var p=b.y;var q=n-m;n=b.height;g=m+q}else m=b.x,p=g,q=b.width,n-=p,g=p+n;var r=d[l-1].tickValue;null!=r&&h.set(r,k);this._axisGroup.add(new ua({anid:null!=r?"area_"+r:null,shape:{x:m,y:p,width:q,height:n},style:J({fill:a[k]},e),silent:!0}));k=(k+1)%f}this._splitAreaColors=h}}}});lk.extend({type:"xAxis"});lk.extend({type:"yAxis"});ub({type:"grid",render:function(a,b){this.group.removeAll();a.get("show")&&
this.group.add(new ua({shape:a.coordinateSystem.getRect(),style:J({fill:a.get("backgroundColor")},a.getItemStyle()),silent:!0,z2:-1}))}});Tb(function(a){a.xAxis&&a.yAxis&&!a.grid&&(a.grid={})});Wc(M(function(a,b){a=En(a,b);var c=Ui(a),d={};w(a,function(e){var f=e.getData(),g=e.coordinateSystem,h=g.getBaseAxis(),k=Ti(e),l=c[h.dim+h.index][k],m=l.offset;l=l.width;var n=g.getOtherAxis(h);e=e.get("barMinHeight")||0;d[k]=d[k]||[];f.setLayout({offset:m,size:l});var p=f.mapDimension(n.dim),q=f.mapDimension(h.dim),
r=rc(f,p),t=n.isHorizontal();h=Gn(h,n,r);n=0;for(var u=f.count();n<u;n++){var v=f.get(p,n),x=f.get(q,n);if(!isNaN(v)){var y=0<=v?"p":"n",z=h;r&&(d[k][x]||(d[k][x]={p:h,n:h}),z=d[k][x][y]);if(t){var A=g.dataToPoint([v,x]);v=z;z=A[1]+m;var B=A[0]-h;A=l;Math.abs(B)<e&&(B=(0>B?-1:1)*e);r&&(d[k][x][y]+=B)}else A=g.dataToPoint([x,v]),v=A[0]+m,B=l,A=A[1]-h,Math.abs(A)<e&&(A=(0>=A?-1:1)*e),r&&(d[k][x][y]+=A);f.setItemLayout(n,{x:v,y:z,width:B,height:A})}}},this)},"bar"));Wc(mu);qc({seriesType:"bar",reset:function(a){a.getData().setVisual("legendSymbol",
"roundRect")}});Xc.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(a,b){return Ri(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:Infinity}});var kb=Jd.prototype,Bu=Jd.getSymbolSize=function(a,b){a=a.getItemVisual(b,"symbolSize");return a instanceof Array?a.slice():[+a,+a]};kb._createSymbol=function(a,b,c,d,e){this.removeAll();b=b.getItemVisual(c,"color");e=Yc(a,-1,-1,2,2,b,e);e.attr({z2:100,culling:!0,scale:[d[0]/2,d[1]/2]});e.drift=Bs;this._symbolType=a;this.add(e)};kb.stopSymbolAnimation=function(a){this.childAt(0).stopAnimation(a)};kb.getSymbolPath=function(){return this.childAt(0)};kb.getScale=function(){return this.childAt(0).scale};
kb.highlight=function(){this.childAt(0).trigger("emphasis")};kb.downplay=function(){this.childAt(0).trigger("normal")};kb.setZ=function(a,b){var c=this.childAt(0);c.zlevel=a;c.z=b};kb.setDraggable=function(a){var b=this.childAt(0);b.draggable=a;b.cursor=a?"move":"pointer"};kb.updateData=function(a,b,c){this.silent=!1;var d=a.getItemVisual(b,"symbol")||"circle",e=a.hostModel,f=Bu(a,b),g=d!==this._symbolType;if(g){var h=a.getItemVisual(b,"symbolKeepAspect");this._createSymbol(d,a,b,f,h)}else d=this.childAt(0),
d.silent=!1,da(d,{scale:[f[0]/2,f[1]/2]},e,b);this._updateCommon(a,b,f,c);g&&(d=this.childAt(0),a=c&&c.fadeIn,c={scale:d.scale.slice()},a&&(c.style={opacity:d.style.opacity}),d.scale=[0,0],a&&(d.style.opacity=0),ib(d,c,e,b));this._seriesModel=e};var Cu=["itemStyle"],Du=["emphasis","itemStyle"],Eu=["label"],Fu=["emphasis","label"];kb._updateCommon=function(a,b,c,d){var e=this.childAt(0),f=a.hostModel,g=a.getItemVisual(b,"color");"image"!==e.type&&e.useStyle({strokeNoScale:!0});var h=d&&d.itemStyle,
k=d&&d.hoverItemStyle,l=d&&d.symbolRotate,m=d&&d.symbolOffset,n=d&&d.labelModel,p=d&&d.hoverLabelModel,q=d&&d.hoverAnimation,r=d&&d.cursorStyle;if(!d||a.hasItemOption){var t=d&&d.itemModel?d.itemModel:a.getItemModel(b);h=t.getModel(Cu).getItemStyle(["color"]);k=t.getModel(Du).getItemStyle();l=t.getShallow("symbolRotate");m=t.getShallow("symbolOffset");n=t.getModel(Eu);p=t.getModel(Fu);q=t.getShallow("hoverAnimation");r=t.getShallow("cursor")}else k=P({},k);t=e.style;e.attr("rotation",(l||0)*Math.PI/
180||0);m&&e.attr("position",[F(m[0],c[0]),F(m[1],c[1])]);r&&e.attr("cursor",r);e.setColor(g,d&&d.symbolInnerColor);e.setStyle(h);h=a.getItemVisual(b,"opacity");null!=h&&(t.opacity=h);h=a.getItemVisual(b,"liftZ");l=e.__z2Origin;null!=h?null==l&&(e.__z2Origin=e.z2,e.z2+=h):null!=l&&(e.z2=l,e.__z2Origin=null);var u=d&&d.useNameLabel;Rc(t,k,n,p,{labelFetcher:f,labelDataIndex:b,defaultText:function(x,y){return u?a.getName(x):Yn(a,x)},isRectText:!0,autoColor:g});e.off("mouseover").off("mouseout").off("emphasis").off("normal");
e.hoverStyle=k;rb(e);var v=[c[0]/2,c[1]/2];q&&f.isAnimationEnabled()&&(b=function(){this.incremental||this.animateTo({scale:[Math.max(1.1*v[0],v[0]+3),Math.max(1.1*v[1],v[1]+v[1]/v[0]*3)]},400,"elasticOut")},c=function(){this.incremental||this.animateTo({scale:v},400,"elasticOut")},e.on("mouseover",b).on("mouseout",c).on("emphasis",b).on("normal",c))};kb.fadeOut=function(a,b){var c=this.childAt(0);this.silent=c.silent=!0;b&&b.keepLabel||(c.style.text=null);da(c,{style:{opacity:0},scale:[0,0]},this._seriesModel,
this.dataIndex,a)};na(Jd,L);var Vd=bj.prototype;Vd.updateData=function(a,b){b=io(b);var c=this.group,d=a.hostModel,e=this._data,f=this._symbolCtor,g=jo(a);e||c.removeAll();a.diff(e).add(function(h){var k=a.getItemLayout(h);if(cj(a,k,h,b)){var l=new f(a,h,g);l.attr("position",k);a.setItemGraphicEl(h,l);c.add(l)}}).update(function(h,k){k=e.getItemGraphicEl(k);var l=a.getItemLayout(h);cj(a,l,h,b)?(k?(k.updateData(a,h,g),da(k,{position:l},d)):(k=new f(a,h),k.attr("position",l)),c.add(k),a.setItemGraphicEl(h,
k)):c.remove(k)}).remove(function(h){var k=e.getItemGraphicEl(h);k&&k.fadeOut(function(){c.remove(k)})}).execute();this._data=a};Vd.isPersistent=function(){return!0};Vd.updateLayout=function(){var a=this._data;a&&a.eachItemGraphicEl(function(b,c){c=a.getItemLayout(c);b.attr("position",c)})};Vd.incrementalPrepareUpdate=function(a){this._seriesScope=jo(a);this._data=null;this.group.removeAll()};Vd.incrementalUpdate=function(a,b,c){function d(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}c=io(c);
for(var e=a.start;e<a.end;e++){var f=b.getItemLayout(e);if(cj(b,f,e,c)){var g=new this._symbolCtor(b,e,this._seriesScope);g.traverse(d);g.attr("position",f);this.group.add(g);b.setItemGraphicEl(e,g)}}};Vd.remove=function(a){var b=this.group,c=this._data;c&&a?c.eachItemGraphicEl(function(d){d.fadeOut(function(){b.remove(d)})}):b.removeAll()};var Gu=function(a,b,c,d,e,f,g,h){var k=Ds(a,b),l=[],m=[],n=[],p=[],q=[],r=[],t=[],u=dj(e,b,g),v=dj(f,a,h);for(h=0;h<k.length;h++){var x=k[h],y=!0;switch(x.cmd){case "\x3d":g=
a.getItemLayout(x.idx);var z=b.getItemLayout(x.idx1);if(isNaN(g[0])||isNaN(g[1]))g=z.slice();l.push(g);m.push(z);n.push(c[x.idx]);p.push(d[x.idx1]);t.push(b.getRawIndex(x.idx1));break;case "+":g=x.idx;l.push(e.dataToPoint([b.get(u.dataDimsForPoint[0],g),b.get(u.dataDimsForPoint[1],g)]));m.push(b.getItemLayout(g).slice());n.push(ej(u,e,b,g));p.push(d[g]);t.push(b.getRawIndex(g));break;case "-":g=x.idx,z=a.getRawIndex(g),z!==g?(l.push(a.getItemLayout(g)),m.push(f.dataToPoint([a.get(v.dataDimsForPoint[0],
g),a.get(v.dataDimsForPoint[1],g)])),n.push(c[g]),p.push(ej(v,f,a,g)),t.push(z)):y=!1}y&&(q.push(x),r.push(r.length))}r.sort(function(A,B){return t[A]-t[B]});a=[];b=[];c=[];d=[];e=[];for(h=0;h<r.length;h++)g=r[h],a[h]=l[g],b[h]=m[g],c[h]=n[g],d[h]=p[g],e[h]=q[g];return{current:a,next:b,stackedOnCurrent:c,stackedOnNext:d,status:e}},lo=Eb,mo=Fb,ko=Ck,hg=Bk,gj=[],Va=[],Wa=[],Hu=W.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,
stroke:"#000"},brush:Uj(W.prototype.brush),buildPath:function(a,b){var c=b.points,d=0,e=c.length,f=hj(c,b.smoothConstraint);if(b.connectNulls){for(;0<e&&Wb(c[e-1]);e--);for(;d<e&&Wb(c[d]);d++);}for(;d<e;)d+=fj(a,c,d,e,e,1,f.min,f.max,b.smooth,b.smoothMonotone,b.connectNulls)+1}}),Iu=W.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:Uj(W.prototype.brush),buildPath:function(a,b){var c=b.points,d=
b.stackedOnPoints,e=0,f=c.length,g=b.smoothMonotone,h=hj(c,b.smoothConstraint),k=hj(d,b.smoothConstraint);if(b.connectNulls){for(;0<f&&Wb(c[f-1]);f--);for(;e<f&&Wb(c[e]);e++);}for(;e<f;){var l=fj(a,c,e,f,f,1,h.min,h.max,b.smooth,g,b.connectNulls);fj(a,d,e+l-1,l,f,-1,k.min,k.max,b.stackedOnSmooth,g,b.connectNulls);e+=l+1;a.closePath()}}});Ga.extend({type:"line",init:function(){var a=new L,b=new bj;this.group.add(b.group);this._symbolDraw=b;this._lineGroup=a},render:function(a,b,c){b=a.coordinateSystem;
var d=this.group,e=a.getData(),f=a.getModel("lineStyle"),g=a.getModel("areaStyle"),h=e.mapArray(e.getItemLayout),k="polar"===b.type,l=this._coordSys,m=this._symbolDraw,n=this._polyline,p=this._polygon,q=this._lineGroup,r=a.get("animation"),t=!g.isEmpty(),u=g.get("origin"),v=dj(b,e,u);v=Gs(b,e,v);var x=a.get("showSymbol"),y=x&&!k&&Is(a,e,b),z=this._data;z&&z.eachItemGraphicEl(function(A,B){A.__temp&&(d.remove(A),z.setItemGraphicEl(B,null))});x||m.remove();d.add(q);k=!k&&a.get("step");n&&l.type===b.type&&
k===this._step?(t&&!p?p=this._newPolygon(h,v,b,r):p&&!t&&(q.remove(p),p=this._polygon=null),q.setClipPath(jg(b,!1,!1,a)),x&&m.updateData(e,{isIgnore:y,clipShape:jg(b,!1,!0,a)}),e.eachItemGraphicEl(function(A){A.stopAnimation(!0)}),no(this._stackedOnPoints,v)&&no(this._points,h)||(r?this._updateAnimation(e,v,b,c,k,u):(k&&(h=uc(h,b,k),v=uc(v,b,k)),n.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:v})))):(x&&m.updateData(e,{isIgnore:y,clipShape:jg(b,!1,!0,a)}),k&&(h=uc(h,b,k),v=uc(v,b,k)),
n=this._newPolyline(h,b,r),t&&(p=this._newPolygon(h,v,b,r)),q.setClipPath(jg(b,!0,!1,a)));c=Hs(e,b)||e.getVisual("color");n.useStyle(J(f.getLineStyle(),{fill:"none",stroke:c,lineJoin:"bevel"}));f=a.get("smooth");f=oo(a.get("smooth"));n.setShape({smooth:f,smoothMonotone:a.get("smoothMonotone"),connectNulls:a.get("connectNulls")});p&&(n=e.getCalculationInfo("stackedOnSeries"),l=0,p.useStyle(J(g.getAreaStyle(),{fill:c,opacity:.7,lineJoin:"bevel"})),n&&(l=oo(n.get("smooth"))),p.setShape({smooth:f,stackedOnSmooth:l,
smoothMonotone:a.get("smoothMonotone"),connectNulls:a.get("connectNulls")}));this._data=e;this._coordSys=b;this._stackedOnPoints=v;this._points=h;this._step=k;this._valueOrigin=u},dispose:function(){},highlight:function(a,b,c,d){var e=a.getData(),f=pf(e,d);if(!(f instanceof Array)&&null!=f&&0<=f){b=e.getItemGraphicEl(f);if(!b){c=e.getItemLayout(f);if(!c)return;b=new Jd(e,f);b.position=c;b.setZ(a.get("zlevel"),a.get("z"));b.ignore=isNaN(c[0])||isNaN(c[1]);b.__temp=!0;e.setItemGraphicEl(f,b);b.stopSymbolAnimation(!0);
this.group.add(b)}b.highlight()}else Ga.prototype.highlight.call(this,a,b,c,d)},downplay:function(a,b,c,d){var e=a.getData(),f=pf(e,d);if(null!=f&&0<=f){if(a=e.getItemGraphicEl(f))a.__temp?(e.setItemGraphicEl(f,null),this.group.remove(a)):a.downplay()}else Ga.prototype.downplay.call(this,a,b,c,d)},_newPolyline:function(a){var b=this._polyline;b&&this._lineGroup.remove(b);b=new Hu({shape:{points:a},silent:!0,z2:10});this._lineGroup.add(b);return this._polyline=b},_newPolygon:function(a,b){var c=this._polygon;
c&&this._lineGroup.remove(c);c=new Iu({shape:{points:a,stackedOnPoints:b},silent:!0});this._lineGroup.add(c);return this._polygon=c},_updateAnimation:function(a,b,c,d,e,f){var g=this._polyline;d=this._polygon;var h=a.hostModel;b=Gu(this._data,a,this._stackedOnPoints,b,this._coordSys,c,this._valueOrigin,f);f=b.current;var k=b.stackedOnCurrent,l=b.next,m=b.stackedOnNext;e&&(f=uc(b.current,c,e),k=uc(b.stackedOnCurrent,c,e),l=uc(b.next,c,e),m=uc(b.stackedOnNext,c,e));g.shape.__points=b.current;g.shape.points=
f;da(g,{shape:{points:l}},h);d&&(d.setShape({points:f,stackedOnPoints:k}),da(d,{shape:{points:l,stackedOnPoints:m}},h));var n=[];c=b.status;for(e=0;e<c.length;e++)"\x3d"===c[e].cmd&&(d=a.getItemGraphicEl(c[e].idx1))&&n.push({el:d,ptIdx:e});g.animators&&g.animators.length&&g.animators[0].during(function(){for(var p=0;p<n.length;p++)n[p].el.attr("position",g.shape.__points[n[p].ptIdx])})},remove:function(a){var b=this.group,c=this._data;this._lineGroup.removeAll();this._symbolDraw.remove(!0);c&&c.eachItemGraphicEl(function(d,
e){d.__temp&&(b.remove(d),c.setItemGraphicEl(e,null))});this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var Qp=function(a,b,c){return{seriesType:a,performRawSeries:!0,reset:function(d,e,f){function g(m,n){if("function"===typeof k){var p=d.getRawValue(n),q=d.getDataParams(n);m.setItemVisual(n,"symbolSize",k(p,q))}if(m.hasItemOption){var r=m.getItemModel(n);p=r.getShallow("symbol",!0);q=r.getShallow("symbolSize",!0);r=r.getShallow("symbolKeepAspect",
!0);null!=p&&m.setItemVisual(n,"symbol",p);null!=q&&m.setItemVisual(n,"symbolSize",q);null!=r&&m.setItemVisual(n,"symbolKeepAspect",r)}}f=d.getData();var h=d.get("symbol")||b,k=d.get("symbolSize"),l=d.get("symbolKeepAspect");f.setVisual({legendSymbol:c||h,symbol:h,symbolSize:k,symbolKeepAspect:l});if(!e.isSeriesFiltered(d))return{dataEach:f.hasItemOption||"function"===typeof k?g:null}}}},Ju={average:function(a){for(var b=0,c=0,d=0;d<a.length;d++)isNaN(a[d])||(b+=a[d],c++);return 0===c?NaN:b/c},sum:function(a){for(var b=
0,c=0;c<a.length;c++)b+=a[c]||0;return b},max:function(a){for(var b=-Infinity,c=0;c<a.length;c++)a[c]>b&&(b=a[c]);return isFinite(b)?b:NaN},min:function(a){for(var b=Infinity,c=0;c<a.length;c++)a[c]<b&&(b=a[c]);return isFinite(b)?b:NaN},nearest:function(a){return a[0]}},Ku=function(a,b){return Math.round(a.length/2)};qc(Qp("line","circle","line"));Wc(function(a){return{seriesType:a,plan:ck(),reset:function(b){function c(k,l){var m=k.end-k.start;m=f&&new Float32Array(m*h);for(var n=k.start,p=0,q=[],
r=[];n<k.end;n++){if(1===h){var t=l.get(g[0],n);t=!isNaN(t)&&e.dataToPoint(t,null,r)}else{t=q[0]=l.get(g[0],n);var u=q[1]=l.get(g[1],n);t=!isNaN(t)&&!isNaN(u)&&e.dataToPoint(q,null,r)}f?(m[p++]=t?t[0]:NaN,m[p++]=t?t[1]:NaN):l.setItemLayout(n,t&&t.slice()||[NaN,NaN])}f&&l.setLayout("symbolPoints",m)}var d=b.getData(),e=b.coordinateSystem,f=b.pipelineContext.large;if(e){var g=C(e.dimensions,function(k){return d.mapDimension(k)}).slice(0,2),h=g.length;b=d.getCalculationInfo("stackResultDimension");rc(d,
g[0])&&(g[0]=b);rc(d,g[1])&&(g[1]=b);return h&&{progress:c}}}}}("line"));Ub(fk.PROCESSOR.STATISTIC,function(a){return{seriesType:a,modifyOutputEnd:!0,reset:function(b,c,d){c=b.getData();d=b.get("sampling");var e=b.coordinateSystem;if("cartesian2d"===e.type&&d){var f=e.getBaseAxis();e=e.getOtherAxis(f);f=f.getExtent();f=f[1]-f[0];f=Math.round(c.count()/f);if(1<f){var g;"string"===typeof d?g=Ju[d]:"function"===typeof d&&(g=d);g&&b.setData(c.downSample(c.mapDimension(e.dim),1/f,g,Ku))}}}}}("line"));
var Pg=function(a,b,c){b=E(b)&&{coordDimensions:b}||P({},b);var d=a.getSource();b=Si(d,b);a=new Ta(b,a);a.initData(d,c);return a},Qg=Mi({type:"series.pie",init:function(a){Qg.superApply(this,"init",arguments);this.legendDataProvider=function(){return this.getRawData()};this.updateSelectedMap(this._createSelectableList());this._defaultLabelLine(a)},mergeOption:function(a){Qg.superCall(this,"mergeOption",a);this.updateSelectedMap(this._createSelectableList())},getInitialData:function(a,b){return Pg(this,
["value"])},_createSelectableList:function(){for(var a=this.getRawData(),b=a.mapDimension("value"),c=[],d=0,e=a.count();d<e;d++)c.push({name:a.getName(d),value:a.get(b,d),selected:zr(a,d,"selected")});return c},getDataParams:function(a){var b=this.getData(),c=Qg.superCall(this,"getDataParams",a),d=[];b.each(b.mapDimension("value"),function(e){d.push(e)});c.percent=Am(d,a,b.hostModel.get("percentPrecision"));c.$vars.push("percent");return c},_defaultLabelLine:function(a){de(a,"labelLine",["show"]);
var b=a.labelLine,c=a.emphasis.labelLine;b.show=b.show&&a.label.show;c.show=c.show&&a.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"}});ba(Qg,{updateSelectedMap:function(a){this._targetList=E(a)?a.slice():[];this._selectTargetMap=Yd(a||[],function(b,c){b.set(c.name,c);return b},Q())},select:function(a,b){a=null!=b?this._targetList[b]:this._selectTargetMap.get(a);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(c){c.selected=!1});a&&(a.selected=!0)},unSelect:function(a,b){(a=null!=b?this._targetList[b]:this._selectTargetMap.get(a))&&(a.selected=!1)},toggleSelected:function(a,b){var c=
null!=b?this._targetList[b]:this._selectTargetMap.get(a);if(null!=c)return this[c.selected?"unSelect":"select"](a,b),c.selected},isSelected:function(a,b){return(a=null!=b?this._targetList[b]:this._selectTargetMap.get(a))&&a.selected}});var Rp=ij.prototype;Rp.updateData=function(a,b,c){function d(){f.stopAnimation(!0);f.animateTo({shape:{r:k.r+g.get("hoverOffset")}},300,"elasticOut")}function e(){f.stopAnimation(!0);f.animateTo({shape:{r:k.r}},300,"elasticOut")}var f=this.childAt(0),g=a.hostModel,
h=a.getItemModel(b),k=a.getItemLayout(b),l=P({},k);l.label=null;c?(f.setShape(l),"scale"===g.getShallow("animationType")?(f.shape.r=k.r0,ib(f,{shape:{r:k.r}},g,b)):(f.shape.endAngle=k.startAngle,da(f,{shape:{endAngle:k.endAngle}},g,b))):da(f,{shape:l},g,b);c=a.getItemVisual(b,"color");f.useStyle(J({lineJoin:"bevel",fill:c},h.getModel("itemStyle").getItemStyle()));f.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();(c=h.getShallow("cursor"))&&f.attr("cursor",c);qo(this,a.getItemLayout(b),
g.isSelected(null,b),g.get("selectedOffset"),g.get("animation"));f.off("mouseover").off("mouseout").off("emphasis").off("normal");if(h.get("hoverAnimation")&&g.isAnimationEnabled())f.on("mouseover",d).on("mouseout",e).on("emphasis",d).on("normal",e);this._updateLabel(a,b);rb(this)};Rp._updateLabel=function(a,b){var c=this.childAt(1),d=this.childAt(2),e=a.hostModel,f=a.getItemModel(b),g=a.getItemLayout(b).label,h=a.getItemVisual(b,"color");da(c,{shape:{points:g.linePoints||[[g.x,g.y],[g.x,g.y],[g.x,
g.y]]}},e,b);da(d,{style:{x:g.x,y:g.y}},e,b);d.attr({rotation:g.rotation,origin:[g.x,g.y],z2:10});e=f.getModel("label");var k=f.getModel("emphasis.label"),l=f.getModel("labelLine");f=f.getModel("emphasis.labelLine");h=a.getItemVisual(b,"color");Rc(d.style,d.hoverStyle={},e,k,{labelFetcher:a.hostModel,labelDataIndex:b,defaultText:a.getName(b),autoColor:h,useInsideStyle:!!g.inside},{textAlign:g.textAlign,textVerticalAlign:g.verticalAlign,opacity:a.getItemVisual(b,"opacity")});d.ignore=d.normalIgnore=
!e.get("show");d.hoverIgnore=!k.get("show");c.ignore=c.normalIgnore=!l.get("show");c.hoverIgnore=!f.get("show");c.setStyle({stroke:h,opacity:a.getItemVisual(b,"opacity")});c.setStyle(l.getModel("lineStyle").getLineStyle());c.hoverStyle=f.getModel("lineStyle").getLineStyle();(a=l.get("smooth"))&&!0===a&&(a=.4);c.setShape({smooth:a})};na(ij,L);Ga.extend({type:"pie",init:function(){this._sectorGroup=new L},render:function(a,b,c,d){if(!d||d.from!==this.uid){var e=a.getData(),f=this._data,g=this.group;
b=b.get("animation");var h=!f,k=a.get("animationType"),l=M(Ks,this.uid,a,b,c),m=a.get("selectedMode");e.diff(f).add(function(n){var p=new ij(e,n);h&&"scale"!==k&&p.eachChild(function(q){q.stopAnimation(!0)});m&&p.on("click",l);e.setItemGraphicEl(n,p);g.add(p)}).update(function(n,p){p=f.getItemGraphicEl(p);p.updateData(e,n);p.off("click");m&&p.on("click",l);g.add(p);e.setItemGraphicEl(n,p)}).remove(function(n){n=f.getItemGraphicEl(n);g.remove(n)}).execute();b&&h&&0<e.count()&&"scale"!==k&&(b=e.getItemLayout(0),
c=Math.max(c.getWidth(),c.getHeight())/2,d=K(g.removeClipPath,g),g.setClipPath(this._createClipPath(b.cx,b.cy,c,b.startAngle,b.clockwise,d,a)));this._data=e}},dispose:function(){},_createClipPath:function(a,b,c,d,e,f,g){a=new Kd({shape:{cx:a,cy:b,r0:0,r:c,startAngle:d,endAngle:d,clockwise:e}});ib(a,{shape:{endAngle:d+(e?1:-1)*Math.PI*2}},g,f);return a},containPoint:function(a,b){if(b=b.getData().getItemLayout(0)){var c=a[0]-b.cx;a=a[1]-b.cy;a=Math.sqrt(c*c+a*a);return a<=b.r&&a>=b.r0}}});var mk=function(a){return{getTargetSeries:function(b){var c=
{},d=Q();b.eachSeriesByType(a,function(e){e.__paletteScope=c;d.set(e.uid,e)});return d},reset:function(b,c){var d=b.getRawData(),e={},f=b.getData();f.each(function(g){var h=f.getRawIndex(g);e[h]=g});d.each(function(g){var h=e[g],k=null!=h&&f.getItemVisual(h,"color",!0);k?d.setItemVisual(g,"color",k):(k=d.getItemModel(g).get("itemStyle.color")||b.getColorFromPalette(d.getName(g)||g+"",b.__paletteScope,d.count()),d.setItemVisual(g,"color",k),null!=h&&f.setItemVisual(h,"color",k))})}}},Lu=function(a,
b,c,d){var e=a.getData(),f=[],g,h,k=!1;e.each(function(l){var m=e.getItemLayout(l),n=e.getItemModel(l),p=n.getModel("label"),q=p.get("position")||n.get("emphasis.label.position"),r=n.getModel("labelLine");n=r.get("length");r=r.get("length2");var t=(m.startAngle+m.endAngle)/2,u=Math.cos(t),v=Math.sin(t);g=m.cx;h=m.cy;var x="inside"===q||"inner"===q;if("center"===q){var y=m.cx;var z=m.cy;var A="center"}else{A=(x?(m.r+m.r0)/2*u:m.r*u)+g;var B=(x?(m.r+m.r0)/2*v:m.r*v)+h;y=A+3*u;z=B+3*v;if(!x){var N=A+
u*(n+b-m.r);v=B+v*(n+b-m.r);var ia=N+(0>u?-1:1)*r;y=ia+(0>u?-5:5);z=v;N=[[A,B],[N,v],[ia,v]]}A=x?"center":0<u?"left":"right"}B=p.getFont();p=p.get("rotate")?0>u?-t+Math.PI:-t:0;l=a.getFormattedLabel(l,"normal")||e.getName(l);l=kd(l,B,A,"top");k=!!p;m.label={x:y,y:z,position:q,height:l.height,len:n,len2:r,linePoints:N,textAlign:A,verticalAlign:"middle",rotation:p,inside:x};x||f.push(m.label)});!k&&a.get("avoidLabelOverlap")&&Ls(f,g,h,b,c,d)},Rg=2*Math.PI,Sp=Math.PI/180,nk=function(a){return{seriesType:a,
reset:function(b,c){var d=c.findComponents({mainType:"legend"});if(d&&d.length){var e=b.getData();e.filterSelf(function(f){f=e.getName(f);for(var g=0;g<d.length;g++)if(!d[g].isSelected(f))return!1;return!0})}}}};(function(a,b){w(b,function(c){c.update="updateView";Ma(c,function(d,e){var f={};e.eachComponent({mainType:"series",subType:a,query:d},function(g){if(g[c.method])g[c.method](d.name,d.dataIndex);var h=g.getData();h.each(function(k){k=h.getName(k);f[k]=g.isSelected(k)||!1})});return{name:d.name,
selected:f}})})})("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]);qc(mk("pie"));Wc(M(function(a,b,c,d){b.eachSeriesByType(a,function(e){var f=e.getData(),g=f.mapDimension("value"),h=e.get("center"),k=e.get("radius");E(k)||(k=[0,k]);E(h)||(h=[h,h]);var l=c.getWidth(),m=c.getHeight(),n=Math.min(l,m),p=F(h[0],l),q=F(h[1],m),r=F(k[0],n/2),t=F(k[1],n/2),
u=-e.get("startAngle")*Sp,v=e.get("minAngle")*Sp,x=0;f.each(g,function(X){!isNaN(X)&&x++});var y=f.getSum(g),z=Math.PI/(y||x)*2,A=e.get("clockwise"),B=e.get("roseType"),N=e.get("stillShowZeroSum"),ia=f.getDataExtent(g);ia[0]=0;var I=Rg,bb=0,ra=u,Aa=A?1:-1;f.each(g,function(X,fa){if(isNaN(X))f.setItemLayout(fa,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:p,cy:q,r0:r,r:B?NaN:t});else{var la="area"!==B?0===y&&N?z:X*z:Rg/x;la<v?(la=v,I-=v):bb+=X;var H=ra+Aa*la;f.setItemLayout(fa,{angle:la,startAngle:ra,
endAngle:H,clockwise:A,cx:p,cy:q,r0:r,r:B?ma(X,ia,[r,t]):t});ra=H}});if(I<Rg&&x)if(.001>=I){var Na=Rg/x;f.each(g,function(X,fa){isNaN(X)||(X=f.getItemLayout(fa),X.angle=Na,X.startAngle=u+Aa*fa*Na,X.endAngle=u+Aa*(fa+1)*Na)})}else z=I/bb,ra=u,f.each(g,function(X,fa){isNaN(X)||(fa=f.getItemLayout(fa),X=fa.angle===v?v:X*z,fa.startAngle=ra,fa.endAngle=ra+Aa*X,ra+=Aa*X)});Lu(e,t,l,m)})},"pie"));Ub(nk("pie"));na(so,Zc);wb.prototype.getIndicatorAxes=function(){return this._indicatorAxes};wb.prototype.dataToPoint=
function(a,b){return this.coordToPoint(this._indicatorAxes[b].dataToCoord(a),b)};wb.prototype.coordToPoint=function(a,b){b=this._indicatorAxes[b].angle;return[this.cx+a*Math.cos(b),this.cy-a*Math.sin(b)]};wb.prototype.pointToData=function(a){var b=a[0]-this.cx,c=a[1]-this.cy;a=Math.sqrt(b*b+c*c);b=Math.atan2(-(c/a),b/a);c=Infinity;for(var d,e=-1,f=0;f<this._indicatorAxes.length;f++){var g=this._indicatorAxes[f],h=Math.abs(b-g.angle);h<c&&(d=g,e=f,c=h)}return[e,+(d&&d.coodToData(a))]};wb.prototype.resize=
function(a,b){var c=a.get("center"),d=b.getWidth();b=b.getHeight();var e=Math.min(d,b)/2;this.cx=F(c[0],d);this.cy=F(c[1],b);this.startAngle=a.get("startAngle")*Math.PI/180;this.r=F(a.get("radius"),e);w(this._indicatorAxes,function(f,g){f.setExtent(0,this.r);g=this.startAngle+g*Math.PI*2/this._indicatorAxes.length;g=Math.atan2(Math.sin(g),Math.cos(g));f.angle=g},this)};wb.prototype.update=function(a,b){function c(g){var h=Math.pow(10,Math.floor(Math.log(g)/Math.LN10));g/=h;return(2===g?5:2*g)*h}var d=
this._indicatorAxes,e=this._model;w(d,function(g){g.scale.setExtent(Infinity,-Infinity)});a.eachSeriesByType("radar",function(g,h){if("radar"===g.get("coordinateSystem")&&a.getComponent("radar",g.get("radarIndex"))===e){var k=g.getData();w(d,function(l){l.scale.unionExtentFromData(k,k.mapDimension(l.dim))})}},this);var f=e.get("splitNumber");w(d,function(g,h){h=Hn(g.scale,g.model);fg(g.scale,g.model);var k=g.model;g=g.scale;var l=k.getMin(),m=k.getMax();k=g.getInterval();if(null!=l&&null!=m)g.setExtent(+l,
+m),g.setInterval((m-l)/f);else if(null!=l){do m=l+k*f,g.setExtent(+l,m),g.setInterval(k),k=c(k);while(m<h[1]&&isFinite(m)&&isFinite(h[1]))}else if(null!=m){do l=m-k*f,g.setExtent(l,+m),g.setInterval(k),k=c(k);while(l>h[0]&&isFinite(l)&&isFinite(h[0]))}else g.getTicks().length-1>f&&(k=c(k)),h=Math.round((h[0]+h[1])/2/k)*k,l=Math.round(f/2),g.setExtent(ea(h-l*k),ea(h+(f-l)*k)),g.setInterval(k)})};wb.dimensions=[];wb.create=function(a,b){var c=[];a.eachComponent("radar",function(d){var e=new wb(d,a,
b);c.push(e);d.coordinateSystem=e});a.eachSeriesByType("radar",function(d){"radar"===d.get("coordinateSystem")&&(d.coordinateSystem=c[d.get("radarIndex")||0])});return c};sb.register("radar",wb);var Ve=Ac.valueAxis;Vb({type:"radar",optionUpdated:function(){var a=this.get("boundaryGap"),b=this.get("splitNumber"),c=this.get("scale"),d=this.get("axisLine"),e=this.get("axisTick"),f=this.get("axisLabel"),g=this.get("name"),h=this.get("name.show"),k=this.get("name.formatter"),l=this.get("nameGap"),m=this.get("triggerEvent"),
n=C(this.get("indicator")||[],function(p){null!=p.max&&0<p.max&&!p.min?p.min=0:null!=p.min&&0>p.min&&!p.max&&(p.max=0);var q=g;null!=p.color&&(q=J({color:p.color},g));p=T(U(p),{boundaryGap:a,splitNumber:b,scale:c,axisLine:d,axisTick:e,axisLabel:f,name:p.text,nameLocation:"end",nameGap:l,nameTextStyle:q,triggerEvent:m},!1);h||(p.name="");"string"===typeof k?(q=p.name,p.name=k.replace("{value}",null!=q?q:"")):"function"===typeof k&&(p.name=k(p.name,p));p=P(new Z(p,null,this.ecModel),Ng);p.mainType=
"radar";p.componentIndex=this.componentIndex;return p},this);this.getIndicatorModels=function(){return n}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:T({lineStyle:{color:"#bbb"}},Ve.axisLine),axisLabel:J({show:!1},Ve.axisLabel),axisTick:J({show:!1},Ve.axisTick),splitLine:J({show:!0},Ve.splitLine),splitArea:J({show:!0},Ve.splitArea),indicator:[]}});var Mu=["axisLine","axisTickLabel",
"axisName"];ub({type:"radar",render:function(a,b,c){this.group.removeAll();this._buildAxes(a);this._buildSplitLineAndArea(a)},_buildAxes:function(a){var b=a.coordinateSystem;a=b.getIndicatorAxes();a=C(a,function(c){return new Ud(c.model,{position:[b.cx,b.cy],rotation:c.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});w(a,function(c){w(Mu,c.add,c);this.group.add(c.getGroup())},this)},_buildSplitLineAndArea:function(a){function b(y,z,A){z=A%z.length;y[z]=y[z]||[];return z}var c=a.coordinateSystem,
d=c.getIndicatorAxes();if(d.length){var e=a.get("shape"),f=a.getModel("splitLine"),g=a.getModel("splitArea");a=f.getModel("lineStyle");var h=g.getModel("areaStyle");f=f.get("show");g=g.get("show");var k=a.get("color"),l=h.get("color");k=E(k)?k:[k];l=E(l)?l:[l];var m=[],n=[];if("circle"===e){d=d[0].getTicksCoords();var p=c.cx,q=c.cy;for(e=0;e<d.length;e++){if(f){var r=b(m,k,e);m[r].push(new Tj({shape:{cx:p,cy:q,r:d[e].coord}}))}g&&e<d.length-1&&(r=b(n,l,e),n[r].push(new tp({shape:{cx:p,cy:q,r0:d[e].coord,
r:d[e+1].coord}})))}}else{var t;p=C(d,function(y,z){y=y.getTicksCoords();t=null==t?y.length-1:Math.min(y.length-1,t);return C(y,function(A){return c.coordToPoint(A.coord,z)})});q=[];for(e=0;e<=t;e++){var u=[];for(r=0;r<d.length;r++)u.push(p[r][e]);u[0]&&u.push(u[0].slice());f&&(r=b(m,k,e),m[r].push(new Ld({shape:{points:u}})));g&&q&&(r=b(n,l,e-1),n[r].push(new Md({shape:{points:u.concat(q)}})));q=u.slice().reverse()}}var v=a.getLineStyle(),x=h.getAreaStyle();w(n,function(y,z){this.group.add(Vj(y,
{style:J({stroke:"none",fill:l[z%l.length]},x),silent:!0}))},this);w(m,function(y,z){this.group.add(Vj(y,{style:J({fill:"none",stroke:k[z%k.length]},v),silent:!0}))},this)}}});var Nu=Xc.extend({type:"series.radar",dependencies:["radar"],init:function(a){Nu.superApply(this,"init",arguments);this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(a,b){return Pg(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var b=this.getData(),
c=this.coordinateSystem.getIndicatorAxes(),d=this.getData().getName(a);return sa(""===d?this.name:d)+"\x3cbr/\x3e"+C(c,function(e,f){f=b.get(b.mapDimension(e.dim),a);return sa(e.name+" : "+f)}).join("\x3cbr /\x3e")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Ni({type:"radar",render:function(a,b,c){function d(l,m,n,p,q,r){n.removeAll();for(var t=0;t<m.length-1;t++){var u=
p,v=q;var x=u.getItemVisual(v,"symbol")||"circle";var y=u.getItemVisual(v,"color");"none"===x?x=void 0:(u=u.getItemVisual(v,"symbolSize"),E(u)||(u=[+u,+u]),x=Yc(x,-1,-1,2,2,y),x.attr({style:{strokeNoScale:!0},z2:100,scale:[u[0]/2,u[1]/2]}));x&&(x.__dimIdx=t,l[t]?(x.attr("position",l[t]),Qd[r?"initProps":"updateProps"](x,{position:m[t]},a,q)):x.attr("position",m[t]),n.add(x))}}function e(l){return C(l,function(m){return[f.cx,f.cy]})}var f=a.coordinateSystem,g=this.group,h=a.getData(),k=this._data;
h.diff(k).add(function(l){var m=h.getItemLayout(l);if(m){var n=new Md,p=new Ld,q={shape:{points:m}};n.shape.points=e(m);p.shape.points=e(m);ib(n,q,a,l);ib(p,q,a,l);q=new L;var r=new L;q.add(p);q.add(n);q.add(r);d(p.shape.points,m,r,h,l,!0);h.setItemGraphicEl(l,q)}}).update(function(l,m){m=k.getItemGraphicEl(m);var n=m.childAt(0),p=m.childAt(1),q=m.childAt(2),r={shape:{points:h.getItemLayout(l)}};r.shape.points&&(d(n.shape.points,r.shape.points,q,h,l,!1),da(n,r,a),da(p,r,a),h.setItemGraphicEl(l,m))}).remove(function(l){g.remove(k.getItemGraphicEl(l))}).execute();
h.eachItemGraphicEl(function(l,m){function n(){t.attr("ignore",z)}function p(){t.attr("ignore",y)}var q=h.getItemModel(m),r=l.childAt(0),t=l.childAt(1),u=l.childAt(2),v=h.getItemVisual(m,"color");g.add(l);r.useStyle(J(q.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:v}));r.hoverStyle=q.getModel("emphasis.lineStyle").getLineStyle();r=q.getModel("areaStyle");var x=q.getModel("emphasis.areaStyle"),y=r.isEmpty()&&r.parentModel.isEmpty(),z=x.isEmpty()&&x.parentModel.isEmpty();z=z&&y;t.ignore=
y;t.useStyle(J(r.getAreaStyle(),{fill:v,opacity:.7}));t.hoverStyle=x.getAreaStyle();var A=q.getModel("itemStyle").getItemStyle(["color"]),B=q.getModel("emphasis.itemStyle").getItemStyle(),N=q.getModel("label"),ia=q.getModel("emphasis.label");u.eachChild(function(I){I.setStyle(A);I.hoverStyle=U(B);Rc(I.style,I.hoverStyle,N,ia,{labelFetcher:h.hostModel,labelDataIndex:m,labelDimIndex:I.__dimIdx,defaultText:h.get(h.dimensions[I.__dimIdx],m),autoColor:v,isRectText:!0})});l.off("mouseover").off("mouseout").off("normal").off("emphasis");
l.on("emphasis",n).on("mouseover",n).on("normal",p).on("mouseout",p);rb(l)});this._data=h},remove:function(){this.group.removeAll();this._data=null},dispose:function(){}});qc(mk("radar"));qc(Qp("radar","circle"));Wc(function(a){a.eachSeriesByType("radar",function(b){function c(h,k){e[k]=e[k]||[];e[k][g]=f.dataToPoint(h,g)}var d=b.getData(),e=[],f=b.coordinateSystem;if(f){b=f.getIndicatorAxes();for(var g=0;g<b.length;g++)d.each(d.mapDimension(b[g].dim),c);d.each(function(h){e[h][0]&&e[h].push(e[h][0].slice());
d.setItemLayout(h,e[h])})}})});Ub(nk("radar"));Tb(function(a){var b=a.polar;if(b){E(b)||(b=[b]);var c=[];w(b,function(d,e){d.indicator?(d.type&&!d.shape&&(d.shape=d.type),a.radar=a.radar||[],E(a.radar)||(a.radar=[a.radar]),a.radar.push(d)):c.push(d)});a.polar=c}w(a.series,function(d){d&&"radar"===d.type&&d.polarIndex&&(d.radarIndex=d.polarIndex)})});Xc.extend({type:"series.gauge",getInitialData:function(a,b){b=a.data||[];E(b)||(b=[b]);a.data=b;return Pg(this,["value"])},defaultOption:{zlevel:0,z:2,
center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,
offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});var Ou=W.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(a,b){var c=Math.cos,d=Math.sin,e=b.r,f=b.width,g=b.angle,h=b.x-c(g)*f*(f>=e/3?1:2),k=b.y-d(g)*f*(f>=e/3?1:2);g=b.angle-Math.PI/2;a.moveTo(h,k);a.lineTo(b.x+c(g)*f,b.y+d(g)*f);a.lineTo(b.x+
c(b.angle)*e,b.y+d(b.angle)*e);a.lineTo(b.x-c(g)*f,b.y-d(g)*f);a.lineTo(h,k)}}),Pu=2*Math.PI;Ga.extend({type:"gauge",render:function(a,b,c){this.group.removeAll();var d=a.get("axisLine.lineStyle.color"),e=a.get("center"),f=c.getWidth(),g=c.getHeight();g=Math.min(f,g);f=F(e[0],c.getWidth());e=F(e[1],c.getHeight());g=F(a.get("radius"),g/2);this._renderMain(a,b,c,d,{cx:f,cy:e,r:g})},dispose:function(){},_renderMain:function(a,b,c,d,e){for(var f=this.group,g=a.getModel("axisLine").getModel("lineStyle"),
h=a.get("clockwise"),k=-a.get("startAngle")/180*Math.PI,l=-a.get("endAngle")/180*Math.PI,m=(l-k)%Pu,n=k,p=g.get("width"),q=0;q<d.length;q++)l=k+m*Math.min(Math.max(d[q][0],0),1),n=new Kd({shape:{startAngle:n,endAngle:l,cx:e.cx,cy:e.cy,clockwise:h,r0:e.r-p,r:e.r},silent:!0}),n.setStyle({fill:d[q][1]}),n.setStyle(g.getLineStyle(["color","borderWidth","borderColor"])),f.add(n),n=l;f=function(r){if(0>=r)return d[0][1];for(var t=0;t<d.length;t++)if(d[t][0]>=r&&(0===t?0:d[t-1][0])<r)return d[t][1];return d[t-
1][1]};h||(g=k,k=l,l=g);this._renderTicks(a,b,c,f,e,k,l,h);this._renderPointer(a,b,c,f,e,k,l,h);this._renderTitle(a,b,c,f,e);this._renderDetail(a,b,c,f,e)},_renderTicks:function(a,b,c,d,e,f,g,h){b=this.group;c=e.cx;h=e.cy;e=e.r;var k=+a.get("min"),l=+a.get("max"),m=a.getModel("splitLine"),n=a.getModel("axisTick"),p=a.getModel("axisLabel");a=a.get("splitNumber");var q=n.get("splitNumber"),r=F(m.get("length"),e),t=F(n.get("length"),e),u=f;f=(g-f)/a;g=f/q;for(var v=m.getModel("lineStyle").getLineStyle(),
x=n.getModel("lineStyle").getLineStyle(),y=0;y<=a;y++){var z=Math.cos(u),A=Math.sin(u);if(m.get("show")){var B=new yc({shape:{x1:z*e+c,y1:A*e+h,x2:z*(e-r)+c,y2:A*(e-r)+h},style:v,silent:!0});"auto"===v.stroke&&B.setStyle({stroke:d(y/a)});b.add(B)}if(p.get("show")){B=to(ea(y/a*(l-k)+k),p.get("formatter"));var N=p.get("distance"),ia=d(y/a);b.add(new ta({style:Ra({},p,{text:B,x:z*(e-r-N)+c,y:A*(e-r-N)+h,textVerticalAlign:-.4>A?"top":.4<A?"bottom":"middle",textAlign:-.4>z?"left":.4<z?"right":"center"},
{autoColor:ia}),silent:!0}))}if(n.get("show")&&y!==a){for(B=0;B<=q;B++)z=Math.cos(u),A=Math.sin(u),z=new yc({shape:{x1:z*e+c,y1:A*e+h,x2:z*(e-t)+c,y2:A*(e-t)+h},silent:!0,style:x}),"auto"===x.stroke&&z.setStyle({stroke:d((y+B/q)/a)}),b.add(z),u+=g;u-=g}else u+=f}},_renderPointer:function(a,b,c,d,e,f,g,h){var k=this.group,l=this._data;if(a.get("pointer.show")){var m=[+a.get("min"),+a.get("max")],n=[f,g],p=a.getData(),q=p.mapDimension("value");p.diff(l).add(function(r){var t=new Ou({shape:{angle:f}});
ib(t,{shape:{angle:ma(p.get(q,r),m,n,!0)}},a);k.add(t);p.setItemGraphicEl(r,t)}).update(function(r,t){t=l.getItemGraphicEl(t);da(t,{shape:{angle:ma(p.get(q,r),m,n,!0)}},a);k.add(t);p.setItemGraphicEl(r,t)}).remove(function(r){r=l.getItemGraphicEl(r);k.remove(r)}).execute();p.eachItemGraphicEl(function(r,t){var u=p.getItemModel(t),v=u.getModel("pointer");r.setShape({x:e.cx,y:e.cy,width:F(v.get("width"),e.r),r:F(v.get("length"),e.r)});r.useStyle(u.getModel("itemStyle").getItemStyle());"auto"===r.style.fill&&
r.setStyle("fill",d(ma(p.get(q,t),m,[0,1],!0)));rb(r,u.getModel("emphasis.itemStyle").getItemStyle())});this._data=p}else l&&l.eachItemGraphicEl(function(r){k.remove(r)})},_renderTitle:function(a,b,c,d,e){b=a.getData();var f=b.mapDimension("value");c=a.getModel("title");if(c.get("show")){var g=c.get("offsetCenter"),h=e.cx+F(g[0],e.r);e=e.cy+F(g[1],e.r);g=+a.get("min");var k=+a.get("max");a=a.getData().get(f,0);d=d(ma(a,[g,k],[0,1],!0));this.group.add(new ta({silent:!0,style:Ra({},c,{x:h,y:e,text:b.getName(0),
textAlign:"center",textVerticalAlign:"middle"},{autoColor:d,forceRich:!0})}))}},_renderDetail:function(a,b,c,d,e){b=a.getModel("detail");var f=+a.get("min"),g=+a.get("max");if(b.get("show")){var h=b.get("offsetCenter");c=e.cx+F(h[0],e.r);h=e.cy+F(h[1],e.r);var k=F(b.get("width"),e.r);e=F(b.get("height"),e.r);a=a.getData();a=a.get(a.mapDimension("value"),0);d=d(ma(a,[f,g],[0,1],!0));this.group.add(new ta({silent:!0,style:Ra({},b,{x:c,y:h,text:to(a,b.get("formatter")),textWidth:isNaN(k)?null:k,textHeight:isNaN(e)?
null:e,textAlign:"center",textVerticalAlign:"middle"},{autoColor:d,forceRich:!0})}))}}});var Tp=Mi({type:"series.funnel",init:function(a){Tp.superApply(this,"init",arguments);this.legendDataProvider=function(){return this.getRawData()};this._defaultLabelLine(a)},getInitialData:function(a,b){return Pg(this,["value"])},_defaultLabelLine:function(a){de(a,"labelLine",["show"]);var b=a.labelLine,c=a.emphasis.labelLine;b.show=b.show&&a.label.show;c.show=c.show&&a.emphasis.label.show},getDataParams:function(a){var b=
this.getData(),c=Tp.superCall(this,"getDataParams",a),d=b.mapDimension("value"),e=b.getSum(d);c.percent=e?+(b.get(d,a)/e*100).toFixed(2):0;c.$vars.push("percent");return c},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),Up=
jj.prototype,Qu=["itemStyle","opacity"];Up.updateData=function(a,b,c){var d=this.childAt(0),e=a.hostModel,f=a.getItemModel(b),g=a.getItemLayout(b),h=a.getItemModel(b).get(Qu);h=null==h?1:h;d.useStyle({});c?(d.setShape({points:g.points}),d.setStyle({opacity:0}),ib(d,{style:{opacity:h}},e,b)):da(d,{style:{opacity:h},shape:{points:g.points}},e,b);c=f.getModel("itemStyle");e=a.getItemVisual(b,"color");d.setStyle(J({lineJoin:"round",fill:e},c.getItemStyle(["opacity"])));d.hoverStyle=c.getModel("emphasis").getItemStyle();
this._updateLabel(a,b);rb(this)};Up._updateLabel=function(a,b){var c=this.childAt(1),d=this.childAt(2),e=a.hostModel,f=a.getItemModel(b),g=a.getItemLayout(b).label,h=a.getItemVisual(b,"color");da(c,{shape:{points:g.linePoints||g.linePoints}},e,b);da(d,{style:{x:g.x,y:g.y}},e,b);d.attr({rotation:g.rotation,origin:[g.x,g.y],z2:10});e=f.getModel("label");var k=f.getModel("emphasis.label"),l=f.getModel("labelLine");f=f.getModel("emphasis.labelLine");h=a.getItemVisual(b,"color");Rc(d.style,d.hoverStyle=
{},e,k,{labelFetcher:a.hostModel,labelDataIndex:b,defaultText:a.getName(b),autoColor:h,useInsideStyle:!!g.inside},{textAlign:g.textAlign,textVerticalAlign:g.verticalAlign});d.ignore=d.normalIgnore=!e.get("show");d.hoverIgnore=!k.get("show");c.ignore=c.normalIgnore=!l.get("show");c.hoverIgnore=!f.get("show");c.setStyle({stroke:h});c.setStyle(l.getModel("lineStyle").getLineStyle());c.hoverStyle=f.getModel("lineStyle").getLineStyle()};na(jj,L);Ga.extend({type:"funnel",render:function(a,b,c){var d=a.getData(),
e=this._data,f=this.group;d.diff(e).add(function(g){var h=new jj(d,g);d.setItemGraphicEl(g,h);f.add(h)}).update(function(g,h){h=e.getItemGraphicEl(h);h.updateData(d,g);f.add(h);d.setItemGraphicEl(g,h)}).remove(function(g){g=e.getItemGraphicEl(g);f.remove(g)}).execute();this._data=d},remove:function(){this.group.removeAll();this._data=null},dispose:function(){}});qc(mk("funnel"));Wc(function(a,b,c){a.eachSeriesByType("funnel",function(d){var e=d.getData(),f=e.mapDimension("value"),g=d.get("sort"),
h=Ms(d,b),k=Ns(e,g),l=[F(d.get("minSize"),h.width),F(d.get("maxSize"),h.width)],m=e.getDataExtent(f),n=d.get("min"),p=d.get("max");null==n&&(n=Math.min(m[0],0));null==p&&(p=m[1]);var q=d.get("funnelAlign");d=d.get("gap");m=(h.height-d*(e.count()-1))/e.count();var r=h.y,t=function(A,B){A=e.get(f,A)||0;A=ma(A,[n,p],l,!0);switch(q){case "left":var N=h.x;break;case "center":N=h.x+(h.width-A)/2;break;case "right":N=h.x+h.width-A}return[[N,B],[N+A,B]]};"ascending"===g&&(m=-m,d=-d,r+=h.height,k=k.reverse());
for(var u=0;u<k.length;u++){var v=k[u],x=k[u+1],y=e.getItemModel(v).get("itemStyle.height");null==y?y=m:(y=F(y,h.height),"ascending"===g&&(y=-y));var z=t(v,r);x=t(x,r+y);r+=y+d;e.setItemLayout(v,{points:z.concat(x.slice().reverse())})}Os(e)})});Ub(nk("funnel"));Vb({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"}}});ub({type:"title",render:function(a,b,c){this.group.removeAll();if(a.get("show")){b=this.group;var d=a.getModel("textStyle"),e=a.getModel("subtextStyle"),f=a.get("textAlign"),g=a.get("textBaseline");d=new ta({style:Ra({},d,{text:a.get("text"),textFill:d.getTextColor()},{disableBox:!0}),z2:10});var h=d.getBoundingRect(),k=a.get("subtext");e=new ta({style:Ra({},e,{text:k,textFill:e.getTextColor(),y:h.height+a.get("itemGap"),
textVerticalAlign:"top"},{disableBox:!0}),z2:10});var l=a.get("link"),m=a.get("sublink");d.silent=!l;e.silent=!m;if(l)d.on("click",function(){window.open(l,"_"+a.get("target"))});if(m)e.on("click",function(){window.open(m,"_"+a.get("subtarget"))});b.add(d);k&&b.add(e);k=b.getBoundingRect();h=a.getBoxLayoutParams();h.width=k.width;h.height=k.height;c=Qb(h,{width:c.getWidth(),height:c.getHeight()},a.get("padding"));f||(f=a.get("left")||a.get("right"),"middle"===f&&(f="center"),"right"===f?c.x+=c.width:
"center"===f&&(c.x+=c.width/2));g||(g=a.get("top")||a.get("bottom"),"center"===g&&(g="middle"),"bottom"===g?c.y+=c.height:"middle"===g&&(c.y+=c.height/2),g=g||"top");b.attr("position",[c.x,c.y]);f={textAlign:f,textVerticalAlign:g};d.setStyle(f);e.setStyle(f);k=b.getBoundingRect();c=c.margin;f=a.getItemStyle(["color","opacity"]);f.fill=a.get("backgroundColor");c=new ua({shape:{x:k.x-c[3],y:k.y-c[0],width:k.width+c[1]+c[3],height:k.height+c[0]+c[2],r:a.get("borderRadius")},style:f,silent:!0});ni(c);
b.add(c)}}});var Vp=Vb({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(a,b,c){this.mergeDefaultAndTheme(a,c);a.selected=a.selected||{}},mergeOption:function(a){Vp.superCall(this,"mergeOption",a)},optionUpdated:function(){this._updateData(this.ecModel);var a=this._data;if(a[0]&&"single"===this.get("selectedMode")){for(var b=!1,c=0;c<a.length;c++){var d=a[c].get("name");if(this.isSelected(d)){this.select(d);b=!0;break}}!b&&this.select(a[0].get("name"))}},
_updateData:function(a){var b=[],c=[];a.eachRawSeries(function(e){c.push(e.name);var f;if(e.legendDataProvider){var g=e.legendDataProvider();g=g.mapArray(g.getName);a.isSeriesFiltered(e)||(c=c.concat(g));g.length?b=b.concat(g):f=!0}else f=!0;f&&Kh(e)&&b.push(e.name)});this._availableNames=c;var d=this.get("data")||b;this._data=C(d,function(e){if("string"===typeof e||"number"===typeof e)e={name:e};return new Z(e,this,this.ecModel)},this)},getData:function(){return this._data},select:function(a){var b=
this.option.selected;"single"===this.get("selectedMode")&&w(this._data,function(c){b[c.get("name")]=!1});b[a]=!0},unSelect:function(a){"single"!==this.get("selectedMode")&&(this.option.selected[a]=!1)},toggleSelected:function(a){var b=this.option.selected;b.hasOwnProperty(a)||(b[a]=!0);this[b[a]?"unSelect":"select"](a)},isSelected:function(a){var b=this.option.selected;return!(b.hasOwnProperty(a)&&!b[a])&&0<=V(this._availableNames,a)},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}}});Ma("legendToggleSelect","legendselectchanged",M(kj,"toggleSelected"));Ma("legendSelect","legendselected",M(kj,"select"));Ma("legendUnSelect","legendunselected",M(kj,"unSelect"));var ok=L,Ru=ub({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=
new ok)},getContentGroup:function(){return this._contentGroup},render:function(a,b,c){this.resetInner();if(a.get("show",!0)){var d=a.get("align");d&&"auto"!==d||(d="right"===a.get("left")&&"vertical"===a.get("orient")?"right":"left");this.renderInner(d,a,b,c);b=a.getBoxLayoutParams();c={width:c.getWidth(),height:c.getHeight()};var e=a.get("padding"),f=Qb(b,c,e);d=this.layoutInner(a,d,f);b=Qb(J({width:d.width,height:d.height},b),c,e);this.group.attr("position",[b.x-d.x,b.y-d.y]);this.group.add(this._backgroundEl=
Ps(d,a))}},resetInner:function(){this.getContentGroup().removeAll();this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(a,b,c,d){var e=this.getContentGroup(),f=Q(),g=b.get("selectedMode"),h=[];c.eachRawSeries(function(k){!k.get("legendHoverLink")&&h.push(k.id)});w(b.getData(),function(k,l){var m=k.get("name");if(this.newlineDisabled||""!==m&&"\n"!==m){var n=c.getSeriesByName(m)[0];if(!f.get(m))if(n){var p=n.getData(),q=p.getVisual("color");"function"===typeof q&&(q=q(n.getDataParams(0)));
var r=p.getVisual("legendSymbol")||"roundRect";p=p.getVisual("symbol");this._createItem(m,l,k,b,r,p,a,q,g).on("click",M(uo,m,d)).on("mouseover",M(vo,n,null,d,h)).on("mouseout",M(wo,n,null,d,h));f.set(m,!0)}else c.eachRawSeries(function(t){if(!f.get(m)&&t.legendDataProvider){var u=t.legendDataProvider(),v=u.indexOfName(m);0>v||(u=u.getItemVisual(v,"color"),this._createItem(m,l,k,b,"roundRect",null,a,u,g).on("click",M(uo,m,d)).on("mouseover",M(vo,t,m,d,h)).on("mouseout",M(wo,t,m,d,h)),f.set(m,!0))}},
this)}else e.add(new ok({newline:!0}))},this)},_createItem:function(a,b,c,d,e,f,g,h,k){var l=d.get("itemWidth"),m=d.get("itemHeight"),n=d.get("inactiveColor"),p=d.get("symbolKeepAspect"),q=d.isSelected(a),r=new ok,t=c.getModel("textStyle"),u=c.get("icon");c=c.getModel("tooltip");var v=c.parentModel;e=u||e;r.add(Yc(e,0,0,l,m,q?h:n,null==p?!0:p));u||!f||f===e&&"none"!=f||(e=.8*m,"none"===f&&(f="circle"),r.add(Yc(f,(l-e)/2,(m-e)/2,e,e,q?h:n,null==p?!0:p)));f="left"===g?l+5:-5;h=d.get("formatter");l=
a;"string"===typeof h&&h?l=h.replace("{name}",null!=a?a:""):"function"===typeof h&&(l=h(a));r.add(new ta({style:Ra({},t,{text:l,x:f,y:m/2,textFill:q?t.getTextColor():n,textAlign:g,textVerticalAlign:"middle"})}));d=new ua({shape:r.getBoundingRect(),invisible:!0,tooltip:c.get("show")?P({content:a,formatter:v.get("formatter",!0)||function(){return a},formatterParams:{componentType:"legend",legendIndex:d.componentIndex,name:a,$vars:["name"]}},c.option):null});r.add(d);r.eachChild(function(x){x.silent=
!0});d.silent=!k;this.getContentGroup().add(r);rb(r);r.__legendDataIndex=b;return r},layoutInner:function(a,b,c){b=this.getContentGroup();te(a.get("orient"),b,a.get("itemGap"),c.width,c.height);a=b.getBoundingRect();b.attr("position",[-a.x,-a.y]);return this.group.getBoundingRect()}});Ub(function(a){var b=a.findComponents({mainType:"legend"});b&&b.length&&a.filterSeries(function(c){for(var d=0;d<b.length;d++)if(!b[d].isSelected(c.name))return!1;return!0})});aa.registerSubTypeDefaulter("legend",function(){return"plain"});
var Wp=Vp.extend({type:"legend.scroll",setScrollDataIndex:function(a){this.option.scrollDataIndex=a},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(a,b,c,d){var e=
Cd({},a);Wp.superCall(this,"init",a,b,c,d);xo(this,a,e)},mergeOption:function(a,b){Wp.superCall(this,"mergeOption",a,b);xo(this,this.option,a)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),Xp=L,Sg=["width","height"],Yp=["x","y"],pk=Ru.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){pk.superCall(this,"init");this._currentIndex=0;this.group.add(this._containerGroup=new Xp);this._containerGroup.add(this.getContentGroup());
this.group.add(this._controllerGroup=new Xp)},resetInner:function(){pk.superCall(this,"resetInner");this._controllerGroup.removeAll();this._containerGroup.removeClipPath();this._containerGroup.__rectSize=null},renderInner:function(a,b,c,d){function e(k,l){var m=k+"DataIndex";l=Qf(b.get("pageIcons",!0)[b.getOrient().name][l],{onclick:K(f._pageGo,f,m,b,d)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});l.name=k;g.add(l)}var f=this;pk.superCall(this,"renderInner",a,b,c,d);var g=this._controllerGroup,
h=b.get("pageIconSize",!0);E(h)||(h=[h,h]);e("pagePrev",0);a=b.getModel("pageTextStyle");g.add(new ta({name:"pageText",style:{textFill:a.getTextColor(),font:a.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0}));e("pageNext",1)},layoutInner:function(a,b,c){b=this.getContentGroup();var d=this._containerGroup,e=this._controllerGroup,f=a.getOrient().index,g=Sg[f],h=Sg[1-f],k=Yp[1-f];te(a.get("orient"),b,a.get("itemGap"),f?c.width:null,f?null:c.height);te("horizontal",e,a.get("pageButtonItemGap",
!0));var l=b.getBoundingRect(),m=e.getBoundingRect(),n=this._showController=l[g]>c[g],p=[-l.x,-l.y];p[f]=b.position[f];var q=[0,0],r=[-m.x,-m.y],t=Fa(a.get("pageButtonGap",!0),a.get("itemGap",!0));n&&("end"===a.get("pageButtonPosition",!0)?r[f]+=c[g]-m[g]:q[f]+=m[g]+t);r[1-f]+=l[h]/2-m[h]/2;b.attr("position",p);d.attr("position",q);e.attr("position",r);p=this.group.getBoundingRect();p={x:0,y:0};p[g]=n?c[g]:l[g];p[h]=Math.max(l[h],m[h]);p[k]=Math.min(0,m[k]+r[1-f]);d.__rectSize=c[g];n?(e={x:0,y:0},
e[g]=Math.max(c[g]-m[g]-t,0),e[h]=p[h],d.setClipPath(new ua({shape:e})),d.__rectSize=e[g]):e.eachChild(function(u){u.attr({invisible:!0,silent:!0})});c=this._getPageInfo(a);null!=c.pageIndex&&da(b,{position:c.contentPosition},n?a:!1);this._updatePageInfoView(a,c);return p},_pageGo:function(a,b,c){a=this._getPageInfo(b)[a];null!=a&&c.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:b.id})},_updatePageInfoView:function(a,b){var c=this._controllerGroup;w(["pagePrev","pageNext"],function(h){var k=
null!=b[h+"DataIndex"];if(h=c.childOfName(h))h.setStyle("fill",k?a.get("pageIconColor",!0):a.get("pageIconInactiveColor",!0)),h.cursor=k?"pointer":"default"});var d=c.childOfName("pageText"),e=a.get("pageFormatter"),f=b.pageIndex;f=null!=f?f+1:0;var g=b.pageCount;d&&e&&d.setStyle("text",va(e)?e.replace("{current}",f).replace("{total}",g):e({current:f,total:g}))},_getPageInfo:function(a){function b(y){var z=y.getBoundingRect().clone();z[l]+=y.position[g];return z}var c=a.get("scrollDataIndex",!0),
d=this.getContentGroup(),e=d.getBoundingRect(),f=this._containerGroup.__rectSize,g=a.getOrient().index,h=Sg[g],k=Sg[1-g],l=Yp[g];a=d.position.slice();var m,n;this._showController?d.eachChild(function(y){y.__legendDataIndex===c&&(n=y)}):n=d.childAt(0);var p=f?Math.ceil(e[h]/f):0;if(n){var q=n.getBoundingRect();var r=n.position[g]+q[l];a[g]=-r-e[l];q=Math.floor(p*(r+q[l]+f/2)/e[h]);q=e[h]&&p?Math.max(0,Math.min(p-1,q)):-1;var t={x:0,y:0};t[h]=f;t[k]=e[k];t[l]=-a[g]-e[l];var u,v=d.children();d.eachChild(function(y,
z){var A=b(y);A.intersect(t)&&(null==u&&(u=z),m=y.__legendDataIndex);z===v.length-1&&A[l]+A[h]<=t[l]+t[h]&&(m=null)});if(null!=u)if(d=b(v[u]),t[l]=d[l]+d[h]-t[h],0>=u&&d[l]>=t[l])var x=null;else{for(;0<u&&b(v[u-1]).intersect(t);)u--;x=v[u].__legendDataIndex}}return{contentPosition:a,pageIndex:q,pageCount:p,pagePrevDataIndex:x,pageNextDataIndex:m}}});Ma("legendScroll","legendscroll",function(a,b){var c=a.scrollDataIndex;null!=c&&b.eachComponent({mainType:"legend",subType:"scroll",query:a},function(d){d.setScrollDataIndex(c)})});
var Zp=function(a,b){var c=[],d=a.seriesIndex,e;if(null==d||!(e=b.getSeriesByIndex(d)))return{point:[]};var f=e.getData();b=pf(f,a);if(null==b||0>b||E(b))return{point:[]};a=f.getItemGraphicEl(b);d=e.coordinateSystem;e.getTooltipPosition?c=e.getTooltipPosition(b)||[]:d&&d.dataToPoint?c=d.dataToPoint(f.getValues(C(d.dimensions,function(g){return f.mapDimension(g)}),b,!0))||[]:a&&(c=a.getBoundingRect().clone(),c.applyTransform(a.transform),c=[c.x+c.width/2,c.y+c.height/2]);return{point:c,el:a}},xb=w,
zo=db();Vb({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}}});var Xb=db(),Ys=w,$p=ub({type:"axisPointer",render:function(a,b,c){b=b.getComponent("tooltip");var d=a.get("triggerOn")||b&&b.get("triggerOn")||"mousemove|click";Bo("axisPointer",c,function(e,
f,g){"none"!==d&&("leave"===e||0<=d.indexOf(e))&&g({type:"updateAxisPointer",currTrigger:e,x:f&&f.offsetX,y:f&&f.offsetY})})},remove:function(a,b){lj(b.getZr(),"axisPointer");$p.superApply(this._model,"remove",arguments)},dispose:function(a,b){lj("axisPointer",b);$p.superApply(this._model,"dispose",arguments)}}),$c=db();Ke.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(a,b,c,d){var e=b.get("value"),
f=b.get("status");this._axisModel=a;this._axisPointerModel=b;this._api=c;if(d||this._lastValue!==e||this._lastStatus!==f){this._lastValue=e;this._lastStatus=f;d=this._group;var g=this._handle;f&&"hide"!==f?(d&&d.show(),g&&g.show(),f={},this.makeElOption(f,e,a,b,c),g=f.graphicKey,g!==this._lastGraphicKey&&this.clear(c),this._lastGraphicKey=g,g=this._moveAnimation=this.determineAnimation(a,b),d?(a=M(Do,b,g),this.updatePointerEl(d,f,a,b),this.updateLabelEl(d,f,a,b)):(d=this._group=new L,this.createPointerEl(d,
f,a,b),this.createLabelEl(d,f,a,b),c.getZr().add(d)),Go(d,b,!0),this._renderHandle(e)):(d&&d.hide(),g&&g.hide())}},remove:function(a){this.clear(a)},dispose:function(a){this.clear(a)},determineAnimation:function(a,b){var c=b.get("animation"),d=a.axis,e="category"===d.type;b=b.get("snap");return b||e?"auto"===c||null==c?(c=this.animationThreshold,e&&d.getBandWidth()>c?!0:b?(a=$i(a).seriesDataCount,d=d.getExtent(),Math.abs(d[0]-d[1])/a>c):!1):!0===c:!1},makeElOption:function(a,b,c,d,e){},createPointerEl:function(a,
b,c,d){if(c=b.pointer)b=$c(a).pointerEl=new Qd[c.type](U(b.pointer)),a.add(b)},createLabelEl:function(a,b,c,d){b.label&&(b=$c(a).labelEl=new ua(U(b.label)),a.add(b),Fo(b,d))},updatePointerEl:function(a,b,c){if(a=$c(a).pointerEl)a.setStyle(b.pointer.style),c(a,{shape:b.pointer.shape})},updateLabelEl:function(a,b,c,d){if(a=$c(a).labelEl)a.setStyle(b.label.style),c(a,{shape:b.label.shape,position:b.label.position}),Fo(a,d)},_renderHandle:function(a){if(!this._dragging&&this.updateHandleTransform){var b=
this._axisPointerModel,c=this._api.getZr(),d=this._handle,e=b.getModel("handle"),f=b.get("status");if(e.get("show")&&f&&"hide"!==f){if(!this._handle){var g=!0;d=this._handle=Qf(e.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(h){Pd(h.event)},onmousedown:K(this._onHandleDragMove,this,0,0),drift:K(this._onHandleDragMove,this),ondragend:K(this._onHandleDragEnd,this)});c.add(d)}Go(d,b,!1);d.setStyle(e.getItemStyle(null,"color borderColor borderWidth opacity shadowColor shadowBlur shadowOffsetX shadowOffsetY".split(" ")));
b=e.get("size");E(b)||(b=[b,b]);d.attr("scale",[b[0]/2,b[1]/2]);Ei(this,"_doDispatchAxisPointer",e.get("throttle")||0,"fixRate");this._moveHandleToValue(a,g)}else d&&c.remove(d),this._handle=null}},_moveHandleToValue:function(a,b){Do(this._axisPointerModel,!b&&this._moveAnimation,this._handle,mj(this.getHandleTransform(a,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(a,b){var c=this._handle;c&&(this._dragging=!0,this._payloadInfo=a=this.updateHandleTransform(mj(c),[a,b],this._axisModel,
this._axisPointerModel),c.stopAnimation(),c.attr(mj(a)),$c(c).lastProp=null,this._doDispatchAxisPointer())},_doDispatchAxisPointer:function(){if(this._handle){var a=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:a.cursorPoint[0],y:a.cursorPoint[1],tooltipOption:a.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})}},_onHandleDragEnd:function(a){this._dragging=!1;this._handle&&(a=this._axisPointerModel.get("value"),this._moveHandleToValue(a),
this._api.dispatchAction({type:"hideTip"}))},getHandleTransform:null,updateHandleTransform:null,clear:function(a){this._lastStatus=this._lastValue=null;a=a.getZr();var b=this._group,c=this._handle;a&&b&&(this._lastGraphicKey=null,b&&a.remove(b),c&&a.remove(c),this._payloadInfo=this._handle=this._group=null)},doClear:function(){},buildLabel:function(a,b,c){c=c||0;return{x:a[c],y:a[1-c],width:b[c],height:b[1-c]}}};Ke.prototype.constructor=Ke;ee(Ke);var Tu=Ke.extend({makeElOption:function(a,b,c,d,e){var f=
c.axis,g=f.grid,h=d.get("type"),k=Jo(g,f).getOtherAxis(f).getGlobalExtent(),l=f.toGlobalCoord(f.dataToCoord(b,!0));if(h&&"none"!==h){var m=d.get("type");var n=d.getModel(m+"Style");if("line"===m){var p=n.getLineStyle();p.fill=null}else"shadow"===m&&(p=n.getAreaStyle(),p.stroke=null);m=p;f=Su[h](f,l,k,m);f.style=m;a.graphicKey=f.type;a.pointer=f}f=aj(g.model,c);g=Ud.innerTextLayout(f.rotation,0,f.labelDirection);f.labelMargin=d.get("label.margin");b=Io(c.axis,b,f);f=g.textAlign;l=g.textVerticalAlign;
g=d.get("value");g=Ho(g,c.axis,c.ecModel,d.get("seriesDataIndices"),{precision:d.get("label.precision"),formatter:d.get("label.formatter")});d=d.getModel("label");m=ue(d.get("padding")||0);h=d.getFont();n=kd(g,h);k=n.width+m[1]+m[3];m=n.height+m[0]+m[2];"right"===f&&(b[0]-=k);"center"===f&&(b[0]-=k/2);"bottom"===l&&(b[1]-=m);"middle"===l&&(b[1]-=m/2);f=e.getWidth();e=e.getHeight();b[0]=Math.min(b[0]+k,f)-k;b[1]=Math.min(b[1]+m,e)-m;b[0]=Math.max(b[0],0);b[1]=Math.max(b[1],0);(e=d.get("backgroundColor"))&&
"auto"!==e||(e=c.get("axisLine.lineStyle.color"));a.label={shape:{x:0,y:0,width:k,height:m,r:d.get("borderRadius")},position:b.slice(),style:{text:g,textFont:h,textFill:d.getTextColor(),textPosition:"inside",fill:e,stroke:d.get("borderColor")||"transparent",lineWidth:d.get("borderWidth")||0,shadowBlur:d.get("shadowBlur"),shadowColor:d.get("shadowColor"),shadowOffsetX:d.get("shadowOffsetX"),shadowOffsetY:d.get("shadowOffsetY")},z2:10}},getHandleTransform:function(a,b,c){var d=aj(b.axis.grid.model,
b,{labelInside:!1});d.labelMargin=c.get("handle.margin");return{position:Io(b.axis,a,d),rotation:d.rotation+(0>d.labelDirection?Math.PI:0)}},updateHandleTransform:function(a,b,c,d){d=c.axis;var e=d.grid;c=d.getGlobalExtent(!0);var f=Jo(e,d).getOtherAxis(d).getGlobalExtent();d="x"===d.dim?0:1;e=a.position;e[d]+=b[d];e[d]=Math.min(c[1],e[d]);e[d]=Math.max(c[0],e[d]);b=(f[1]+f[0])/2;b=[b,b];b[d]=e[d];return{position:e,rotation:a.rotation,cursorPoint:b,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][d]}}}),
Su={line:function(a,b,c,d){var e=[b,c[0]];b=[b,c[1]];a=(a="x"===a.dim?0:1)||0;e={x1:e[a],y1:e[1-a],x2:b[a],y2:b[1-a]};qe({shape:e,style:d});return{type:"Line",shape:e}},shadow:function(a,b,c,d){d=Math.max(1,a.getBandWidth());b=[b-d/2,c[0]];c=[d,c[1]-c[0]];a=(a="x"===a.dim?0:1)||0;return{type:"Rect",shape:{x:b[a],y:b[1-a],width:c[a],height:c[1-a]}}}};tc.registerAxisPointerClass("CartesianAxisPointer",Tu);Tb(function(a){if(a){a.axisPointer&&0!==a.axisPointer.length||(a.axisPointer={});var b=a.axisPointer.link;
b&&!E(b)&&(a.axisPointer.link=[b])}});Ub(fk.PROCESSOR.STATISTIC,function(a,b){var c=a.getComponent("axisPointer"),d={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};ys(d,a,b);d.seriesInvolved&&As(d,a);c.coordSysAxesInfo=d});Ma({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(a,b,c){var d=a.currTrigger,e=[a.x,a.y],f=a.dispatchAction||K(c.dispatchAction,c),g=b.getComponent("axisPointer").coordSysAxesInfo;if(g){kg(e)&&(e=Zp({seriesIndex:a.seriesIndex,
dataIndex:a.dataIndex},b).point);var h=kg(e),k=a.axesInfo,l=g.axesInfo,m="leave"===d||kg(e),n={},p={};b={list:[],map:{}};var q={showPointer:M(Rs,p),showTooltip:M(Ss,b)};xb(g.coordSysMap,function(t,u){var v=h||t.containPoint(e);xb(g.coordSysAxesInfo[u],function(x,y){y=x.axis;var z;a:{for(z=0;z<(k||[]).length;z++){var A=k[z];if(x.axis.dim===A.axisDim&&x.axis.model.componentIndex===A.axisIndex){z=A;break a}}z=void 0}m||!v||k&&!z||(z=z&&z.value,null!=z||h||(z=y.pointToData(e)),null!=z&&yo(x,z,q,!1,n))})});
var r={};xb(l,function(t,u){var v=t.linkGroup;v&&!p[u]&&xb(v.axesInfo,function(x,y){y=p[y];x!==t&&y&&(y=y.value,v.mapper&&(y=t.axis.scale.parse(v.mapper(y,Ao(x),Ao(t)))),r[t.key]=y)})});xb(r,function(t,u){yo(l[u],t,q,!0,n)});Ts(p,l,n);Us(b,e,a,f);Vs(l,f,c);return n}});Vb({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",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 Ko=w,et=Cm,bt=["","-webkit-","-moz-","-o-"];nj.prototype={constructor:nj,_enterable:!0,update:function(){var a=this._container,b=a.currentStyle||document.defaultView.getComputedStyle(a);
a=a.style;"absolute"!==a.position&&"absolute"!==b.position&&(a.position="relative")},show:function(a){clearTimeout(this._hideTimeout);var b=this.el;b.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+dt(a)+";left:"+this._x+"px;top:"+this._y+"px;"+(a.get("extraCssText")||"");b.style.display=b.innerHTML?"block":"none";this._show=!0},setContent:function(a){this.el.innerHTML=null==a?"":a},setEnterable:function(a){this._enterable=a},getSize:function(){var a=
this.el;return[a.clientWidth,a.clientHeight]},moveTo:function(a,b){var c=this._zr,d;c&&c.painter&&(d=c.painter.getViewportRootOffset())&&(a+=d.offsetLeft,b+=d.offsetTop);c=this.el.style;c.left=a+"px";c.top=b+"px";this._x=a;this._y=b},hide:function(){this.el.style.display="none";this._show=!1},hideLater:function(a){!this._show||this._inContent&&this._enterable||(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(K(this.hide,this),a)):this.hide())},isShow:function(){return this._show}};
var Tg=new ua({shape:{x:-1,y:-1,width:2,height:2}});ub({type:"tooltip",init:function(a,b){R.node||(this._tooltipContent=new nj(b.getDom(),b))},render:function(a,b,c){R.node||R.wxa||(this.group.removeAll(),this._tooltipModel=a,this._ecModel=b,this._api=c,this._lastDataByCoordSys=null,this._alwaysShowContent=a.get("alwaysShowContent"),b=this._tooltipContent,b.update(),b.setEnterable(a.get("enterable")),this._initGlobalListener(),this._keepShow())},_initGlobalListener:function(){var a=this._tooltipModel.get("triggerOn");
Bo("itemTooltip",this._api,K(function(b,c,d){"none"!==a&&(0<=a.indexOf(b)?this._tryShow(c,d):"leave"===b&&this._hide(d))},this))},_keepShow:function(){var a=this._tooltipModel,b=this._ecModel,c=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==a.get("triggerOn")){var d=this;clearTimeout(this._refreshUpdateTimeout);this._refreshUpdateTimeout=setTimeout(function(){d.manuallyShowTip(a,b,c,{x:d._lastX,y:d._lastY})})}},manuallyShowTip:function(a,b,c,d){if(d.from!==this.uid&&!R.node){var e=d.dispatchAction||
K(c.dispatchAction,c);this._ticket="";var f=d.dataByCoordSys;d.tooltip&&null!=d.x&&null!=d.y?(Tg.position=[d.x,d.y],Tg.update(),Tg.tooltip=d.tooltip,this._tryShow({offsetX:d.x,offsetY:d.y,target:Tg},e)):f?this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,event:{},dataByCoordSys:d.dataByCoordSys,tooltipOption:d.tooltipOption},e):null!=d.seriesIndex?this._manuallyAxisShowTip(a,b,c,d)||(a=Zp(d,b),b=a.point[0],c=a.point[1],null!=b&&null!=c&&this._tryShow({offsetX:b,offsetY:c,position:d.position,
target:a.el,event:{}},e)):null!=d.x&&null!=d.y&&(c.dispatchAction({type:"updateAxisPointer",x:d.x,y:d.y}),this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,target:c.getZr().findHover(d.x,d.y).target,event:{}},e))}},manuallyHideTip:function(a,b,c,d){a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay"));this._lastX=this._lastY=null;d.from!==this.uid&&this._hide(d.dispatchAction||K(c.dispatchAction,c))},_manuallyAxisShowTip:function(a,
b,c,d){var e=d.seriesIndex,f=d.dataIndex,g=b.getComponent("axisPointer").coordSysAxesInfo;if(null!=e&&null!=f&&null!=g&&(b=b.getSeriesByIndex(e))&&(g=b.getData(),a=oj([g.getItemModel(f),b,(b.coordinateSystem||{}).model,a]),"axis"===a.get("trigger")))return c.dispatchAction({type:"updateAxisPointer",seriesIndex:e,dataIndex:f,position:d.position}),!0},_tryShow:function(a,b){var c=a.target;if(this._tooltipModel){this._lastX=a.offsetX;this._lastY=a.offsetY;var d=a.dataByCoordSys;d&&d.length?this._showAxisTooltip(d,
a):c&&null!=c.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(a,c,b)):c&&c.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(a,c,b)):(this._lastDataByCoordSys=null,this._hide(b))}},_showOrMove:function(a,b){a=a.get("showDelay");b=K(b,this);clearTimeout(this._showTimout);0<a?this._showTimout=setTimeout(b,a):b()},_showAxisTooltip:function(a,b){var c=this._ecModel,d=[b.offsetX,b.offsetY],e=[],f=[],g=oj([b.tooltipOption,this._tooltipModel]);w(a,function(k){w(k.dataByAxis,
function(l){var m=c.getComponent(l.axisDim+"Axis",l.axisIndex),n=l.value,p=[];if(m&&null!=n){var q=Ho(n,m.axis,c,l.seriesDataIndices,l.valueLabelOpt);w(l.seriesDataIndices,function(r){var t=c.getSeriesByIndex(r.seriesIndex);r=r.dataIndexInside;var u=t&&t.getDataParams(r);u.axisDim=l.axisDim;u.axisIndex=l.axisIndex;u.axisType=l.axisType;u.axisId=l.axisId;u.axisValue=Wi(m.axis,n);u.axisValueLabel=q;u&&(f.push(u),p.push(t.formatTooltip(r,!0)))});e.push((q?sa(q)+"\x3cbr /\x3e":"")+p.join("\x3cbr /\x3e"))}})},
this);e.reverse();e=e.join("\x3cbr /\x3e\x3cbr /\x3e");var h=b.position;this._showOrMove(g,function(){this._updateContentNotChangedOnAxis(a)?this._updatePosition(g,h,d[0],d[1],this._tooltipContent,f):this._showTooltipContent(g,e,f,Math.random(),d[0],d[1],h)})},_showSeriesItemTooltip:function(a,b,c){var d=b.seriesIndex,e=this._ecModel.getSeriesByIndex(d),f=b.dataModel||e,g=b.dataIndex;b=b.dataType;var h=f.getData(),k=oj([h.getItemModel(g),f,e&&(e.coordinateSystem||{}).model,this._tooltipModel]);e=
k.get("trigger");if(null==e||"item"===e){var l=f.getDataParams(g,b),m=f.formatTooltip(g,!1,b),n="item_"+f.name+"_"+g;this._showOrMove(k,function(){this._showTooltipContent(k,m,l,n,a.offsetX,a.offsetY,a.position,a.target)});c({type:"showTip",dataIndexInside:g,dataIndex:h.getRawIndex(g),seriesIndex:d,from:this.uid})}},_showComponentItemTooltip:function(a,b,c){var d=b.tooltip;"string"===typeof d&&(d={content:d,formatter:d});var e=new Z(d,this._tooltipModel,this._ecModel),f=e.get("content"),g=Math.random();
this._showOrMove(e,function(){this._showTooltipContent(e,f,e.get("formatterParams")||{},g,a.offsetX,a.offsetY,a.position,b)});c({type:"showTip",from:this.uid})},_showTooltipContent:function(a,b,c,d,e,f,g,h){this._ticket="";if(a.get("showContent")&&a.get("show")){var k=this._tooltipContent,l=a.get("formatter");g=g||a.get("position");l&&"string"===typeof l?b=si(l,c,!0):"function"===typeof l&&(b=K(function(m,n){m===this._ticket&&(k.setContent(n),this._updatePosition(a,g,e,f,k,c,h))},this),this._ticket=
d,b=l(c,d,b));k.setContent(b);k.show(a);this._updatePosition(a,g,e,f,k,c,h)}},_updatePosition:function(a,b,c,d,e,f,g){var h=this._api.getWidth(),k=this._api.getHeight();b=b||a.get("position");var l=e.getSize(),m=a.get("align"),n=a.get("verticalAlign"),p=g&&g.getBoundingRect().clone();g&&p.applyTransform(g.transform);"function"===typeof b&&(b=b([c,d],f,e.el,p,{viewSize:[h,k],contentSize:l.slice()}));if(E(b))c=F(b[0],h),d=F(b[1],k);else if(O(b))b.width=l[0],b.height=l[1],m=Qb(b,{width:h,height:k}),
c=m.x,d=m.y,n=m=null;else{if("string"===typeof b&&g){c=l[0];d=l[1];g=f=0;var q=p.width,r=p.height;switch(b){case "inside":f=p.x+q/2-c/2;g=p.y+r/2-d/2;break;case "top":f=p.x+q/2-c/2;g=p.y-d-5;break;case "bottom":f=p.x+q/2-c/2;g=p.y+r+5;break;case "left":f=p.x-c-5;g=p.y+r/2-d/2;break;case "right":f=p.x+q+5,g=p.y+r/2-d/2}b=[f,g]}else b=c,p=d,c=m?null:20,d=n?null:20,g=Lo(e.el),f=g.width,g=g.height,null!=c&&(b=b+f+c>h?b-(f+c):b+c),null!=d&&(p=p+g+d>k?p-(g+d):p+d),b=[b,p];c=b[0];d=b[1]}m&&(c-="center"===
m||"middle"===m?l[0]/2:"right"===m?l[0]:0);n&&(d-="center"===n||"middle"===n?l[1]/2:"bottom"===n?l[1]:0);a.get("confine")&&(a=c,l=d,n=Lo(e.el),m=n.width,n=n.height,a=Math.min(a+m,h)-m,l=Math.min(l+n,k)-n,a=Math.max(a,0),l=Math.max(l,0),b=[a,l],c=b[0],d=b[1]);e.moveTo(c,d)},_updateContentNotChangedOnAxis:function(a){var b=this._lastDataByCoordSys,c=!!b&&b.length===a.length;c&&w(b,function(d,e){d=d.dataByAxis||{};var f=(a[e]||{}).dataByAxis||[];(c&=d.length===f.length)&&w(d,function(g,h){h=f[h]||{};
var k=g.seriesDataIndices||[],l=h.seriesDataIndices||[];(c&=g.value===h.value&&g.axisType===h.axisType&&g.axisId===h.axisId&&k.length===l.length)&&w(k,function(m,n){n=l[n];c&=m.seriesIndex===n.seriesIndex&&m.dataIndex===n.dataIndex})})});this._lastDataByCoordSys=a;return!!c},_hide:function(a){this._lastDataByCoordSys=null;a({type:"hideTip",from:this.uid})},dispose:function(a,b){R.node||R.wxa||(this._tooltipContent.hide(),lj("itemTooltip",b))}});Ma({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},
function(){});Ma({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var Ug=Vb({type:"marker",dependencies:["series","grid","polar","geo"],init:function(a,b,c,d){this.mergeDefaultAndTheme(a,c);this.mergeOption(a,c,d.createdBySelf,!0)},isAnimationEnabled:function(){if(R.node)return!1;var a=this.__hostSeries;return this.getShallow("animation")&&a&&a.isAnimationEnabled()},mergeOption:function(a,b,c,d){var e=this.constructor,f=this.mainType+"Model";c||b.eachSeries(function(g){var h=
g.get(this.mainType,!0),k=g[f];h&&h.data?(k?k.mergeOption(h,b,!0):(d&&lg(h),w(h.data,function(l){l instanceof Array?(lg(l[0]),lg(l[1])):lg(l)}),k=new e(h,this,b),P(k,{mainType:this.mainType,seriesIndex:g.seriesIndex,name:g.name,createdBySelf:!0}),k.__hostSeries=g),g[f]=k):g[f]=null},this)},formatTooltip:function(a){var b=this.getData(),c=this.getRawValue(a),d=E(c)?C(c,Sc).join(", "):Sc(c);a=b.getName(a);b=sa(this.name);if(null!=c||a)b+="\x3cbr /\x3e";a&&(b+=sa(a),null!=c&&(b+=" : "));null!=c&&(b+=
sa(d));return b},getData:function(){return this._data},setData:function(a){this._data=a}});ba(Ug,yp);Ug.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 No=V,rj={min:M(pj,"min"),max:M(pj,"max"),average:M(pj,"average")},qk=ub({type:"marker",init:function(){this.markerGroupMap=Q()},render:function(a,b,c){a=this.markerGroupMap;a.each(function(e){e.__keep=
!1});var d=this.type+"Model";b.eachSeries(function(e){var f=e[d];f&&this.renderSeries(e,f,b,c)},this);a.each(function(e){!e.__keep&&this.group.remove(e.group)},this)},renderSeries:function(){}});qk.extend({type:"markPoint",updateTransform:function(a,b,c){b.eachSeries(function(d){var e=d.markPointModel;e&&(Po(e.getData(),d,c),this.markerGroupMap.get(d.id).updateLayout(e))},this)},renderSeries:function(a,b,c,d){c=a.coordinateSystem;var e=a.id,f=a.getData(),g=this.markerGroupMap;e=g.get(e)||g.set(e,
new bj);var h=gt(c,a,b);b.setData(h);Po(b.getData(),a,d);h.each(function(k){var l=h.getItemModel(k),m=l.getShallow("symbolSize");"function"===typeof m&&(m=m(b.getRawValue(k),b.getDataParams(k)));h.setItemVisual(k,{symbolSize:m,color:l.get("itemStyle.color")||f.getVisual("color"),symbol:l.getShallow("symbol")})});e.updateData(h);this.group.add(e.group);h.eachItemGraphicEl(function(k){k.traverse(function(l){l.dataModel=b})});e.__keep=!0;e.group.silent=b.get("silent")||a.get("silent")}});Tb(function(a){a.markPoint=
a.markPoint||{}});Ug.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 aq=yc.prototype,rk=up.prototype,it=Pc({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(a,b){(sj(b)?aq:rk).buildPath(a,b)},pointAt:function(a){return sj(this.shape)?
aq.pointAt.call(this,a):rk.pointAt.call(this,a)},tangentAt:function(a){var b=this.shape;a=sj(b)?[b.x2-b.x1,b.y2-b.y1]:rk.tangentAt.call(this,a);return bf(a,a)}}),sk=["fromSymbol","toSymbol"],Bc=uj.prototype;Bc.beforeUpdate=function(){var a=this.childOfName("fromSymbol"),b=this.childOfName("toSymbol"),c=this.childOfName("label");if(a||b||!c.ignore){for(var d=1,e=this.parent;e;)e.scale&&(d/=e.scale[0]),e=e.parent;var f=this.childOfName("line");if(this.__dirty||f.__dirty){var g=f.shape.percent;e=f.pointAt(0);
var h=f.pointAt(g),k=$e([],h,e);bf(k,k);if(a){a.attr("position",e);var l=f.tangentAt(0);a.attr("rotation",Math.PI/2-Math.atan2(l[1],l[0]));a.attr("scale",[d*g,d*g])}b&&(b.attr("position",h),l=f.tangentAt(1),b.attr("rotation",-Math.PI/2-Math.atan2(l[1],l[0])),b.attr("scale",[d*g,d*g]));c.ignore||(c.attr("position",h),a=5*d,"end"===c.__position?(f=[k[0]*a+h[0],k[1]*a+h[1]],a=.8<k[0]?"left":-.8>k[0]?"right":"center",k=.8<k[1]?"top":-.8>k[1]?"bottom":"middle"):"middle"===c.__position?(b=g/2,l=f.tangentAt(b),
k=[l[1],-l[0]],f=f.pointAt(b),0<k[1]&&(k[0]=-k[0],k[1]=-k[1]),f=[f[0]+k[0]*a,f[1]+k[1]*a],a="center",k="bottom",l=-Math.atan2(l[1],l[0]),h[0]<e[0]&&(l=Math.PI+l),c.attr("rotation",l)):(f=[-k[0]*a+e[0],-k[1]*a+e[1]],a=.8<k[0]?"right":-.8>k[0]?"left":"center",k=.8<k[1]?"bottom":-.8>k[1]?"top":"middle"),c.attr({style:{textVerticalAlign:c.__verticalAlign||k,textAlign:c.__textAlign||a},position:f,scale:[d,d]}))}}};Bc._createLine=function(a,b,c){var d=a.hostModel,e=a.getItemLayout(b);e=ht(e);e.shape.percent=
0;ib(e,{shape:{percent:1}},d,b);this.add(e);d=new ta({name:"label"});this.add(d);w(sk,function(f){var g=Qo(f,a,b);this.add(g);this["_"+f+"Type"]=a.getItemVisual(b,f)},this);this._updateCommonStl(a,b,c)};Bc.updateData=function(a,b,c){var d=a.hostModel,e=this.childOfName("line"),f=a.getItemLayout(b),g={shape:{}};tj(g.shape,f);da(e,g,d,b);w(sk,function(h){var k=a.getItemVisual(b,h),l="_"+h+"Type";this[l]!==k&&(this.remove(this.childOfName(h)),h=Qo(h,a,b),this.add(h));this[l]=k},this);this._updateCommonStl(a,
b,c)};Bc._updateCommonStl=function(a,b,c){var d=a.hostModel,e=this.childOfName("line"),f=c&&c.lineStyle,g=c&&c.hoverLineStyle,h=c&&c.labelModel,k=c&&c.hoverLabelModel;if(!c||a.hasItemOption)k=a.getItemModel(b),f=k.getModel("lineStyle").getLineStyle(),g=k.getModel("emphasis.lineStyle").getLineStyle(),h=k.getModel("label"),k=k.getModel("emphasis.label");var l=a.getItemVisual(b,"color"),m=cd(a.getItemVisual(b,"opacity"),f.opacity,1);e.useStyle(J({strokeNoScale:!0,fill:"none",stroke:l,opacity:m},f));
e.hoverStyle=g;w(sk,function(q){if(q=this.childOfName(q))q.setColor(l),q.setStyle({opacity:m})},this);e=h.getShallow("show");f=k.getShallow("show");g=this.childOfName("label");if(e||f){var n=l||"#000";var p=d.getFormattedLabel(b,"normal",a.dataType);null==p&&(p=d.getRawValue(b),p=null==p?a.getName(b):isFinite(p)?ea(p):p)}c=e?p:null;a=f?Fa(d.getFormattedLabel(b,"emphasis",a.dataType),p):null;b=g.style;if(null!=c||null!=a)Ra(g.style,h,{text:c},{autoColor:n}),g.__textAlign=b.textAlign,g.__verticalAlign=
b.textVerticalAlign,g.__position=h.get("position")||"middle";g.hoverStyle=null!=a?{text:a,textFill:k.getTextColor(!0),fontStyle:k.getShallow("fontStyle"),fontWeight:k.getShallow("fontWeight"),fontSize:k.getShallow("fontSize"),fontFamily:k.getShallow("fontFamily")}:{text:null};g.ignore=!e&&!f;rb(this)};Bc.highlight=function(){this.trigger("emphasis")};Bc.downplay=function(){this.trigger("normal")};Bc.updateLayout=function(a,b){this.setLinePoints(a.getItemLayout(b))};Bc.setLinePoints=function(a){var b=
this.childOfName("line");tj(b.shape,a);b.dirty()};na(uj,L);var bd=Ro.prototype;bd.isPersistent=function(){return!0};bd.updateData=function(a){var b=this,c=b.group,d=b._lineData;b._lineData=a;d||c.removeAll();var e=So(a);a.diff(d).add(function(f){var g=a.getItemLayout(f);vj(g)&&(g=new b._ctor(a,f,e),a.setItemGraphicEl(f,g),b.group.add(g))}).update(function(f,g){g=d.getItemGraphicEl(g);vj(a.getItemLayout(f))?(g?g.updateData(a,f,e):g=new b._ctor(a,f,e),a.setItemGraphicEl(f,g),b.group.add(g)):b.group.remove(g)}).remove(function(f){c.remove(d.getItemGraphicEl(f))}).execute()};
bd.updateLayout=function(){var a=this._lineData;a&&a.eachItemGraphicEl(function(b,c){b.updateLayout(a,c)},this)};bd.incrementalPrepareUpdate=function(a){this._seriesScope=So(a);this._lineData=null;this.group.removeAll()};bd.incrementalUpdate=function(a,b){function c(f){f.isGroup||(f.incremental=f.useHoverLayer=!0)}for(var d=a.start;d<a.end;d++){var e=b.getItemLayout(d);vj(e)&&(e=new this._ctor(b,d,this._seriesScope),e.traverse(c),this.group.add(e),b.setItemGraphicEl(d,e))}};bd.remove=function(){this._clearIncremental();
this._incremental=null;this.group.removeAll()};bd._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var lt=function(a,b,c,d){var e=a.getData(),f=d.type;if(!E(d)&&("min"===f||"max"===f||"average"===f||"median"===f||null!=d.xAxis||null!=d.yAxis)){if(null!=d.yAxis||null!=d.xAxis){var g=null!=d.yAxis?"y":"x";b.getAxis(g);b=Za(d.yAxis,d.xAxis)}else g=Mo(d,e,b,a).valueDataDim,b=qj(e,g,f);g="x"===g?0:1;var h=1-g;e=U(d);var k={};e.type=null;e.coord=[];k.coord=[];e.coord[h]=-Infinity;
k.coord[h]=Infinity;c=c.get("precision");0<=c&&"number"===typeof b&&(b=+b.toFixed(Math.min(c,20)));e.coord[g]=k.coord[g]=b;d=[e,k,{type:f,valueIndex:d.valueIndex,value:b}]}d=[Le(a,d[0]),Le(a,d[1]),P({},d[2])];d[2].type=d[2].type||"";T(d[2],d[0]);T(d[2],d[1]);return d};qk.extend({type:"markLine",updateTransform:function(a,b,c){b.eachSeries(function(d){var e=d.markLineModel;if(e){var f=e.getData(),g=e.__from,h=e.__to;g.each(function(k){wj(g,k,!0,d,c);wj(h,k,!1,d,c)});f.each(function(k){f.setItemLayout(k,
[g.getItemLayout(k),h.getItemLayout(k)])});this.markerGroupMap.get(d.id).updateLayout()}},this)},renderSeries:function(a,b,c,d){function e(q,r,t){var u=q.getItemModel(r);wj(q,r,t,a,d);q.setItemVisual(r,{symbolSize:u.get("symbolSize")||p[t?0:1],symbol:u.get("symbol",!0)||n[t?0:1],color:u.get("itemStyle.color")||g.getVisual("color")})}c=a.coordinateSystem;var f=a.id,g=a.getData(),h=this.markerGroupMap;f=h.get(f)||h.set(f,new Ro);this.group.add(f.group);c=kt(c,a,b);var k=c.from,l=c.to,m=c.line;b.__from=
k;b.__to=l;b.setData(m);var n=b.get("symbol"),p=b.get("symbolSize");E(n)||(n=[n,n]);"number"===typeof p&&(p=[p,p]);c.from.each(function(q){e(k,q,!0);e(l,q,!1)});m.each(function(q){var r=m.getItemModel(q).get("lineStyle.color");m.setItemVisual(q,{color:r||k.getItemVisual(q,"color")});m.setItemLayout(q,[k.getItemLayout(q),l.getItemLayout(q)]);m.setItemVisual(q,{fromSymbolSize:k.getItemVisual(q,"symbolSize"),fromSymbol:k.getItemVisual(q,"symbol"),toSymbolSize:l.getItemVisual(q,"symbolSize"),toSymbol:l.getItemVisual(q,
"symbol")})});f.updateData(m);c.line.eachItemGraphicEl(function(q,r){q.traverse(function(t){t.dataModel=b})});f.__keep=!0;f.group.silent=b.get("silent")||a.get("silent")}});Tb(function(a){a.markLine=a.markLine||{}});Ug.extend({type:"markArea",defaultOption:{zlevel:0,z:3,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var ot=function(a,b,c,d){b=Le(a,d[0]);a=Le(a,d[1]);d=b.coord;c=a.coord;d[0]=Za(d[0],-Infinity);
d[1]=Za(d[1],-Infinity);c[0]=Za(c[0],Infinity);c[1]=Za(c[1],Infinity);d=Yg([{},b,a]);d.coord=[b.coord,a.coord];d.x0=b.x;d.y0=b.y;d.x1=a.x;d.y1=a.y;return d},bq=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];qk.extend({type:"markArea",updateTransform:function(a,b,c){b.eachSeries(function(d){var e=d.markAreaModel;if(e){var f=e.getData();f.each(function(g){var h=C(bq,function(k){return Vo(f,g,k,d,c)});f.setItemLayout(g,h);f.getItemGraphicEl(g).setShape("points",h)})}},this)},renderSeries:function(a,
b,c,d){c=a.coordinateSystem;var e=a.id,f=a.getData(),g=this.markerGroupMap,h=g.get(e)||g.set(e,{group:new L});this.group.add(h.group);h.__keep=!0;var k=nt(c,a,b);b.setData(k);k.each(function(l){k.setItemLayout(l,C(bq,function(m){return Vo(k,l,m,a,d)}));k.setItemVisual(l,{color:f.getVisual("color")})});k.diff(h.__data).add(function(l){var m=new Md({shape:{points:k.getItemLayout(l)}});k.setItemGraphicEl(l,m);h.group.add(m)}).update(function(l,m){m=h.__data.getItemGraphicEl(m);da(m,{shape:{points:k.getItemLayout(l)}},
b,l);h.group.add(m);k.setItemGraphicEl(l,m)}).remove(function(l){l=h.__data.getItemGraphicEl(l);h.group.remove(l)}).execute();k.eachItemGraphicEl(function(l,m){var n=k.getItemModel(m),p=n.getModel("label"),q=n.getModel("emphasis.label"),r=k.getItemVisual(m,"color");l.useStyle(J(n.getModel("itemStyle").getItemStyle(),{fill:Lk(r,.4),stroke:r}));l.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle();Rc(l.style,l.hoverStyle,p,q,{labelFetcher:b,labelDataIndex:m,defaultText:k.getName(m)||"",isRectText:!0,
autoColor:r});rb(l,{});l.dataModel=b});h.__data=k;h.group.silent=b.get("silent")||a.get("silent")}});Tb(function(a){a.markArea=a.markArea||{}});aa.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var Uu=["cartesian2d","polar","singleAxis"],Cc=function(a,b){a=a.slice();var c=C(a,ui);b=(b||[]).slice();var d=C(b,ui);return function(e,f){w(a,function(g,h){h={name:g,capital:c[h]};for(var k=0;k<b.length;k++)h[b[k]]=g+d[k];e.call(f,h)})}}("x y z radius angle single".split(" "),["axisIndex",
"axis","index","id"]),vc=w,tk=function(a,b,c,d){this._dimName=a;this._axisIndex=b;this.ecModel=d;this._dataZoomModel=c};tk.prototype={constructor:tk,hostedBy:function(a){return this._dataZoomModel===a},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var a=[],b=this.ecModel;b.eachSeries(function(c){if(0<=V(Uu,c.get("coordinateSystem"))){var d=this._dimName;d=b.queryComponents({mainType:d+
"Axis",index:c.get(d+"AxisIndex"),id:c.get(d+"AxisId")})[0];this._axisIndex===(d&&d.componentIndex)&&a.push(c)}},this);return a},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var a=this._dimName,b=this.ecModel,c=this.getAxisModel();if("x"===a||"y"===a){var d="gridIndex";a="x"===a?"y":"x"}else d="polarIndex",a="angle"===a?"radius":"angle";var e;b.eachComponent(a+"Axis",function(f){(f.get(d)||0)===(c.get(d)||0)&&(e=f)});
return e},getMinMaxSpan:function(){return U(this._minMaxSpan)},calculateDataWindow:function(a){var b=this._dataExtent,c=this.getAxisModel().axis.scale,d=this._dataZoomModel.getRangePropMode(),e=[0,100],f=[a.start,a.end],g=[];vc(["startValue","endValue"],function(h){g.push(null!=a[h]?c.parse(a[h]):null)});vc([0,1],function(h){var k=g[h],l=f[h];"percent"===d[h]?(null==l&&(l=e[h]),k=c.parse(ma(l,e,b,!0))):l=ma(k,b,e,!0);g[h]=k;f[h]=l});return{valueWindow:Ad(g),percentWindow:Ad(f)}},reset:function(a){if(a===
this._dataZoomModel){var b=this.getTargetSeriesModels();this._dataExtent=qt(this,this._dimName,b);a=this.calculateDataWindow(a.option);this._valueWindow=a.valueWindow;this._percentWindow=a.percentWindow;st(this);Wo(this)}},restore:function(a){a===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Wo(this,!0))},filterData:function(a,b){if(a===this._dataZoomModel){var c=this._dimName;b=this.getTargetSeriesModels();var d=a.get("filterMode"),e=this._valueWindow;"none"!==d&&vc(b,function(f){var g=
f.getData(),h=g.mapDimension(c,!0);"weakFilter"===d?g.filterSelf(function(k){for(var l,m,n,p=0;p<h.length;p++){var q=g.get(h[p],k),r=!isNaN(q),t=q<e[0];q=q>e[1];if(r&&!t&&!q)return!0;r&&(n=!0);t&&(l=!0);q&&(m=!0)}return n&&l&&m}):vc(h,function(k){if("empty"===d)f.setData(g.map(k,function(m){return m>=e[0]&&m<=e[1]?m:NaN}));else{var l={};l[k]=e;g.selectRange(l)}});vc(h,function(k){g.setApproximateExtent(e,k)})})}}};var Od=w,cq=Vb({type:"dataZoom",dependencies:"xAxis yAxis zAxis radiusAxis angleAxis singleAxis series".split(" "),
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(a,b,c){this._dataIntervalByAxis={};this._dataInfo={};this._axisProxies={};this.textStyleModel;this._autoThrottle=!0;this._rangePropMode=["percent","percent"];b=Xo(a);this.mergeDefaultAndTheme(a,c);this.doInit(b)},mergeOption:function(a){var b=Xo(a);T(this.option,
a,!0);this.doInit(b)},doInit:function(a){var b=this.option;R.canvasSupported||(b.realtime=!1);this._setDefaultThrottle(a);Yo(this,a);Od([["start","startValue"],["end","endValue"]],function(c,d){"value"===this._rangePropMode[d]&&(b[c[0]]=null)},this);this.textStyleModel=this.getModel("textStyle");this._resetTarget();this._giveAxisProxies()},_giveAxisProxies:function(){var a=this._axisProxies;this.eachTargetAxis(function(b,c,d,e){d=this.dependentModels[b.axis][c];e=d.__dzAxisProxy||(d.__dzAxisProxy=
new tk(b.name,c,this,e));a[b.name+"_"+c]=e},this)},_resetTarget:function(){var a=this.option,b=this._judgeAutoMode();Cc(function(c){c=c.axisIndex;a[c]=Ka(a[c])},this);"axisIndex"===b?this._autoSetAxisIndex():"orient"===b&&this._autoSetOrient()},_judgeAutoMode:function(){var a=this.option,b=!1;Cc(function(d){null!=a[d.axisIndex]&&(b=!0)},this);var c=a.orient;if(null==c&&b)return"orient";if(!b)return null==c&&(a.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var a=!0,b=this.get("orient",
!0),c=this.option,d=this.dependentModels;if(a){var e="vertical"===b?"y":"x";d[e+"Axis"].length?(c[e+"AxisIndex"]=[0],a=!1):Od(d.singleAxis,function(f){a&&f.get("orient",!0)===b&&(c.singleAxisIndex=[f.componentIndex],a=!1)})}a&&Cc(function(f){if(a){var g=[],h=this.dependentModels[f.axis];if(h.length&&!g.length)for(var k=0,l=h.length;k<l;k++)"category"===h[k].get("type")&&g.push(k);c[f.axisIndex]=g;g.length&&(a=!1)}},this);a&&this.ecModel.eachSeries(function(f){this._isSeriesHasAllAxesTypeOf(f,"value")&&
Cc(function(g){var h=c[g.axisIndex],k=f.get(g.axisIndex),l=f.get(g.axisId);k=f.ecModel.queryComponents({mainType:g.axis,index:k,id:l})[0].componentIndex;0>V(h,k)&&h.push(k)})},this)},_autoSetOrient:function(){var a;this.eachTargetAxis(function(b){!a&&(a=b.name)},this);this.option.orient="y"===a?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(a,b){var c=!0;Cc(function(d){var e=a.get(d.axisIndex);(d=this.dependentModels[d.axis][e])&&d.get("type")===b||(c=!1)},this);return c},_setDefaultThrottle:function(a){a.hasOwnProperty("throttle")&&
(this._autoThrottle=!1);this._autoThrottle&&(a=this.ecModel.option,this.option.throttle=a.animation&&0<a.animationDurationUpdate?100:20)},getFirstTargetAxisModel:function(){var a;Cc(function(b){if(null==a){var c=this.get(b.axisIndex);c.length&&(a=this.dependentModels[b.axis][c[0]])}},this);return a},eachTargetAxis:function(a,b){var c=this.ecModel;Cc(function(d){Od(this.get(d.axisIndex),function(e){a.call(b,d,e,this,c)},this)},this)},getAxisProxy:function(a,b){return this._axisProxies[a+"_"+b]},getAxisModel:function(a,
b){return(a=this.getAxisProxy(a,b))&&a.getAxisModel()},setRawRange:function(a,b){var c=this.option;Od([["start","startValue"],["end","endValue"]],function(d){if(null!=a[d[0]]||null!=a[d[1]])c[d[0]]=a[d[0]],c[d[1]]=a[d[1]]},this);!b&&Yo(this,a)},getPercentRange:function(){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataPercentWindow()},getValueRange:function(a,b){if(null==a&&null==b){if(a=this.findRepresentativeAxisProxy())return a.getDataValueWindow()}else return this.getAxisProxy(a,
b).getDataValueWindow()},findRepresentativeAxisProxy:function(a){if(a)return a.__dzAxisProxy;a=this._axisProxies;for(var b in a)if(a.hasOwnProperty(b)&&a[b].hostedBy(this))return a[b];for(b in a)if(a.hasOwnProperty(b)&&!a[b].hostedBy(this))return a[b]},getRangePropMode:function(){return this._rangePropMode.slice()}}),dq=Sb.extend({type:"dataZoom",render:function(a,b,c,d){this.dataZoomModel=a;this.ecModel=b;this.api=c},getTargetCoordInfo:function(){var a=this.ecModel,b={};this.dataZoomModel.eachTargetAxis(function(c,
d){if(c=a.getComponent(c.axis,d))if(d=c.getCoordSysModel()){for(var e=b[d.mainType]||(b[d.mainType]=[]),f,g=0;g<e.length;g++)if(e[g].model===d){f=e[g];break}f||e.push(f={model:d,axisModels:[],coordIndex:d.componentIndex});f.axisModels.push(c)}},this);return b}});cq.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"}}});var uk=function(a,b,c,d,e,f){b[0]=ng(b[0],c);b[1]=ng(b[1],c);a=a||0;var g=c[1]-c[0];null!=
e&&(e=ng(e,[0,g]));null!=f&&(f=Math.max(f,null!=e?e:0));"all"===d&&(e=f=Math.abs(b[1]-b[0]),d=0);g=xj(b,d);b[d]+=a;a=e||0;c=c.slice();0>g.sign?c[0]+=a:c[1]-=a;b[d]=ng(b[d],c);c=xj(b,d);null!=e&&(c.sign!==g.sign||c.span<e)&&(b[1-d]=b[d]+g.sign*e);c=xj(b,d);null!=f&&c.span>f&&(b[1-d]=b[d]+c.sign*f);return b},Vg=ua,Vu=["line","bar","candlestick","scatter"],vk=dq.extend({type:"dataZoom.slider",init:function(a,b){this._displayables={};this.api=b},render:function(a,b,c,d){vk.superApply(this,"render",arguments);
Ei(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate");this._orient=a.get("orient");!1===this.dataZoomModel.get("show")?this.group.removeAll():(d&&"dataZoom"===d.type&&d.from===this.uid||this._buildView(),this._updateView())},remove:function(){vk.superApply(this,"remove",arguments);an(this,"_dispatchZoomAction")},dispose:function(){vk.superApply(this,"dispose",arguments);an(this,"_dispatchZoomAction")},_buildView:function(){var a=this.group;a.removeAll();this._resetLocation();
this._resetInterval();var b=this._displayables.barGroup=new L;this._renderBackground();this._renderHandle();this._renderDataShadow();a.add(b);this._positionGroup()},_resetLocation:function(){var a=this.dataZoomModel,b=this.api,c=this._findCoordRect();b={width:b.getWidth(),height:b.getHeight()};var d="horizontal"===this._orient?{right:b.width-c.x-c.width,top:b.height-30-7,width:c.width,height:30}:{right:7,top:c.y,width:30,height:c.height},e=Cd({},a.option);w(["right","top","width","height"],function(f){"ph"===
e[f]&&(e[f]=d[f])});a=Qb(e,b,a.padding);this._location={x:a.x,y:a.y};this._size=[a.width,a.height];"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var a=this.group,b=this._location,c=this._orient,d=this.dataZoomModel.getFirstTargetAxisModel();d=d&&d.get("inverse");var e=this._displayables.barGroup,f=(this._dataShadowInfo||{}).otherAxisInverse;e.attr("horizontal"!==c||d?"horizontal"===c&&d?{scale:f?[-1,1]:[-1,-1]}:"vertical"!==c||d?{scale:f?[-1,-1]:[-1,1],rotation:Math.PI/
2}:{scale:f?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:f?[1,1]:[1,-1]});c=a.getBoundingRect([e]);a.attr("position",[b.x-c.x,b.y-c.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var a=this._size,b=this._displayables.barGroup;b.add(new Vg({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:this.dataZoomModel.get("backgroundColor")},z2:-40}));b.add(new Vg({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:K(this._onClickPanelClick,
this)}))},_renderDataShadow:function(){var a=this._dataShadowInfo=this._prepareDataShadowInfo();if(a){var b=this._size,c=a.series,d=c.getRawData();a=c.getShadowDim?c.getShadowDim():a.otherDim;if(null!=a){var e=d.getDataExtent(a);c=.3*(e[1]-e[0]);e=[e[0]-c,e[1]+c];var f=[0,b[1]],g=[[b[0],0],[0,0]],h=[],k=b[0]/(d.count()-1),l=0,m=Math.round(d.count()/b[0]),n;d.each([a],function(p,q){if(0<m&&q%m)l+=k;else{var r=null==p||isNaN(p)||""===p;p=r?0:ma(p,e,f,!0);r&&!n&&q?(g.push([g[g.length-1][0],0]),h.push([h[h.length-
1][0],0])):!r&&n&&(g.push([l,0]),h.push([l,0]));g.push([l,p]);h.push([l,p]);l+=k;n=r}});b=this.dataZoomModel;this._displayables.barGroup.add(new Md({shape:{points:g},style:J({fill:b.get("dataBackgroundColor")},b.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20}));this._displayables.barGroup.add(new Ld({shape:{points:h},style:b.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var a=this.dataZoomModel,b=a.get("showDataShadow");
if(!1!==b){var c,d=this.ecModel;a.eachTargetAxis(function(e,f){var g=a.getAxisProxy(e.name,f).getTargetSeriesModels();w(g,function(h){if(!(c||!0!==b&&0>V(Vu,h.get("type")))){var k=d.getComponent(e.axis,f).axis;var l={x:"y",y:"x",radius:"angle",angle:"radius"}[e.name];var m=h.coordinateSystem;if(null!=l&&m.getOtherAxis)var n=m.getOtherAxis(k).inverse;l=h.getData().mapDimension(l);c={thisAxis:k,series:h,thisDim:e.name,otherDim:l,otherAxisInverse:n}}},this)},this);return c}},_renderHandle:function(){var a=
this._displayables,b=a.handles=[],c=a.handleLabels=[],d=this._displayables.barGroup,e=this._size,f=this.dataZoomModel;d.add(a.filler=new Vg({draggable:!0,cursor:Zo(this._orient),drift:K(this._onDragMove,this,"all"),onmousemove:function(g){Pd(g.event)},ondragstart:K(this._showDataInfo,this,!0),ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1),style:{fill:f.get("fillerColor"),textPosition:"inside"}}));d.add(new Vg(ni({silent:!0,shape:{x:0,
y:0,width:e[0],height:e[1]},style:{stroke:f.get("dataBackgroundColor")||f.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})));w([0,1],function(g){var h=Qf(f.get("handleIcon"),{cursor:Zo(this._orient),draggable:!0,drift:K(this._onDragMove,this,g),onmousemove:function(l){Pd(l.event)},ondragend:K(this._onDragEnd,this),onmouseover:K(this._showDataInfo,this,!0),onmouseout:K(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),k=h.getBoundingRect();this._handleHeight=F(f.get("handleSize"),this._size[1]);
this._handleWidth=k.width/k.height*this._handleHeight;h.setStyle(f.getModel("handleStyle").getItemStyle());k=f.get("handleColor");null!=k&&(h.style.fill=k);d.add(b[g]=h);h=f.textStyleModel;this.group.add(c[g]=new ta({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:h.getTextColor(),textFont:h.getFont()},z2:10}))},this)},_resetInterval:function(){var a=this._range=this.dataZoomModel.getPercentRange(),b=this._getViewExtent();this._handleEnds=[ma(a[0],
[0,100],b,!0),ma(a[1],[0,100],b,!0)]},_updateInterval:function(a,b){var c=this.dataZoomModel,d=this._handleEnds,e=this._getViewExtent(),f=c.findRepresentativeAxisProxy().getMinMaxSpan(),g=[0,100];uk(b,d,e,c.get("zoomLock")?"all":a,null!=f.minSpan?ma(f.minSpan,g,e,!0):null,null!=f.maxSpan?ma(f.maxSpan,g,e,!0):null);a=this._range;d=this._range=Ad([ma(d[0],e,g,!0),ma(d[1],e,g,!0)]);return!a||a[0]!==d[0]||a[1]!==d[1]},_updateView:function(a){var b=this._displayables,c=this._handleEnds,d=Ad(c.slice()),
e=this._size;w([0,1],function(f){var g=this._handleHeight;b.handles[f].attr({scale:[g/2,g/2],position:[c[f],e[1]/2-g/2]})},this);b.filler.setShape({x:d[0],y:0,width:d[1]-d[0],height:e[1]});this._updateDataInfo(a)},_updateDataInfo:function(a){function b(m){var n=um(d.handles[m].parent,this.group),p=vm(0===m?"right":"left",n),q=this._handleWidth/2+5;n=re([l[m]+(0===m?-q:q),this._size[1]/2],n);e[m].setStyle({x:n[0],y:n[1],textVerticalAlign:"horizontal"===f?"middle":p,textAlign:"horizontal"===f?p:"center",
text:g[m]})}var c=this.dataZoomModel,d=this._displayables,e=d.handleLabels,f=this._orient,g=["",""];if(c.get("showDetail")){var h=c.findRepresentativeAxisProxy();if(h){c=h.getAxisModel().axis;var k=this._range;a=a?h.calculateDataWindow({start:k[0],end:k[1]}).valueWindow:h.getDataValueWindow();g=[this._formatLabel(a[0],c),this._formatLabel(a[1],c)]}}var l=Ad(this._handleEnds.slice());b.call(this,0);b.call(this,1)},_formatLabel:function(a,b){var c=this.dataZoomModel,d=c.get("labelFormatter");c=c.get("labelPrecision");
if(null==c||"auto"===c)c=b.getPixelPrecision();b=null==a||isNaN(a)?"":"category"===b.type||"time"===b.type?b.scale.getLabel(Math.round(a)):a.toFixed(Math.min(c,20));return Ya(d)?d(a,b):va(d)?d.replace("{value}",b):b},_showDataInfo:function(a){a=this._dragging||a;var b=this._displayables.handleLabels;b[0].attr("invisible",!a);b[1].attr("invisible",!a)},_onDragMove:function(a,b,c){this._dragging=!0;var d=this._displayables.barGroup.getLocalTransform();b=re([b,c],d,!0);a=this._updateInterval(a,b[0]);
b=this.dataZoomModel.get("realtime");this._updateView(!b);a&&b&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1;this._showDataInfo(!1);!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(a){var b=this._size;a=this._displayables.barGroup.transformCoordToLocal(a.offsetX,a.offsetY);0>a[0]||a[0]>b[0]||0>a[1]||a[1]>b[1]||(b=this._handleEnds,b=this._updateInterval("all",a[0]-(b[0]+b[1])/2),this._updateView(),b&&this._dispatchZoomAction())},_dispatchZoomAction:function(){var a=
this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:a[0],end:a[1]})},_findCoordRect:function(){w(this.getTargetCoordInfo(),function(d){!c&&d.length&&(d=d[0].model.coordinateSystem,c=d.getRect&&d.getRect())});if(!c){var a=this.api.getWidth(),b=this.api.getHeight();var c={x:.2*a,y:.2*b,width:.6*a,height:.6*b}}return c}});cq.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});
Ma({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});ba(ap,tb);var ep=M,eq=dq.extend({type:"dataZoom.inside",init:function(a,b){},render:function(a,b,c,d){eq.superApply(this,"render",arguments);this._range=a.getPercentRange();w(this.getTargetCoordInfo(),function(e,f){var g=C(e,function(h){h=h.model;return h.type+"\x00_"+h.id});w(e,function(h){var k=h.model,l=a.option;yt(c,{coordId:k.type+"\x00_"+k.id,allCoordIds:g,containsPoint:function(m,n,p){return k.coordinateSystem.containPoint([n,
p])},dataZoomId:a.id,throttleRate:a.get("throttle",!0),panGetRange:K(this._onPan,this,h,f),zoomGetRange:K(this._onZoom,this,h,f),zoomLock:l.zoomLock,disabled:l.disabled,roamControllerOpt:{zoomOnMouseWheel:l.zoomOnMouseWheel,moveOnMouseMove:l.moveOnMouseMove,preventDefaultMouseMove:l.preventDefaultMouseMove}})},this)},this)},dispose:function(){Ct(this.api,this.dataZoomModel.id);eq.superApply(this,"dispose",arguments);this._range=null},_onPan:function(a,b,c,d,e,f,g,h,k){d=this._range;e=d.slice();var l=
a.axisModels[0];if(l&&(a=fq[b]([f,g],[h,k],l,c,a),uk(a.signal*(e[1]-e[0])*a.pixel/a.pixelLength,e,[0,100],"all"),this._range=e,d[0]!==e[0]||d[1]!==e[1]))return e},_onZoom:function(a,b,c,d,e,f){var g=this._range,h=g.slice(),k=a.axisModels[0];if(k&&(a=fq[b](null,[e,f],k,c,a),a=(0<a.signal?a.pixelStart+a.pixelLength-a.pixel:a.pixel-a.pixelStart)/a.pixelLength*(h[1]-h[0])+h[0],d=Math.max(1/d,0),h[0]=(h[0]-a)*d+a,h[1]=(h[1]-a)*d+a,d=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan(),uk(0,
h,[0,100],0,d.minSpan,d.maxSpan),this._range=h,g[0]!==h[0]||g[1]!==h[1]))return h}}),fq={grid:function(a,b,c,d,e){c=c.axis;d={};e=e.model.coordinateSystem.getRect();a=a||[0,0];"x"===c.dim?(d.pixel=b[0]-a[0],d.pixelLength=e.width,d.pixelStart=e.x,d.signal=c.inverse?1:-1):(d.pixel=b[1]-a[1],d.pixelLength=e.height,d.pixelStart=e.y,d.signal=c.inverse?-1:1);return d},polar:function(a,b,c,d,e){d=c.axis;var f={};e=e.model.coordinateSystem;var g=e.getRadiusAxis().getExtent(),h=e.getAngleAxis().getExtent();
a=a?e.pointToCoord(a):[0,0];b=e.pointToCoord(b);"radiusAxis"===c.mainType?(f.pixel=b[0]-a[0],f.pixelLength=g[1]-g[0],f.pixelStart=g[0],f.signal=d.inverse?1:-1):(f.pixel=b[1]-a[1],f.pixelLength=h[1]-h[0],f.pixelStart=h[0],f.signal=d.inverse?-1:1);return f},singleAxis:function(a,b,c,d,e){c=c.axis;e=e.model.coordinateSystem.getRect();d={};a=a||[0,0];"horizontal"===c.orient?(d.pixel=b[0]-a[0],d.pixelLength=e.width,d.pixelStart=e.x,d.signal=c.inverse?1:-1):(d.pixel=b[1]-a[1],d.pixelLength=e.height,d.pixelStart=
e.y,d.signal=c.inverse?-1:1);return d}};Ub({getTargetSeries:function(a){var b=Q();a.eachComponent("dataZoom",function(c){c.eachTargetAxis(function(d,e,f){d=f.getAxisProxy(d.name,e);w(d.getTargetSeriesModels(),function(g){b.set(g.uid,g)})})});return b},modifyOutputEnd:!0,overallReset:function(a,b){a.eachComponent("dataZoom",function(c){c.eachTargetAxis(function(d,e,f){f.getAxisProxy(d.name,e).reset(f,b)});c.eachTargetAxis(function(d,e,f){f.getAxisProxy(d.name,e).filterData(f,b)})});a.eachComponent("dataZoom",
function(c){var d=c.findRepresentativeAxisProxy(),e=d.getDataPercentWindow();d=d.getDataValueWindow();c.setRawRange({start:e[0],end:e[1],startValue:d[0],endValue:d[1]},!0)})}});Ma("dataZoom",function(a,b){var c=pt(K(b.eachComponent,b,"dataZoom"),Cc,function(e,f){return e.get(f.axisIndex)}),d=[];b.eachComponent({mainType:"dataZoom",query:a},function(e,f){d.push.apply(d,c(e).nodes)});w(d,function(e,f){e.setRawRange({start:a.start,end:a.end,startValue:a.startValue,endValue:a.endValue})})});Tb(function(a){var b=
a.graphic;E(b)?a.graphic=b[0]&&b[0].elements?[a.graphic[0]]:[{elements:b}]:b&&!b.elements&&(a.graphic=[{elements:[b]}])});var Wu=Vb({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(a){var b=this.option.elements;this.option.elements=null;Wu.superApply(this,"mergeOption",arguments);this.option.elements=b},optionUpdated:function(a,b){var c=this.option;a=(b?c:a).elements;var d=c.elements=b?[]:c.elements;b=[];this._flatten(a,b);b=Jh(d,b);pl(b);var e=
this._elOptionsToUpdate=[];w(b,function(f,g){var h=f.option;if(h){e.push(h);var k=f.exist;h.id=f.keyInfo.id;!h.type&&k&&(h.type=k.type);null==h.parentId&&((f=h.parentOption)?h.parentId=f.id:k&&(h.parentId=k.parentId));h.parentOption=null;k=P({},h);f=d[g];var l=h.$action||"merge";"merge"===l?f?(T(f,k,!0),Tc(f,k,{ignoreSize:!0}),Cd(h,f)):d[g]=k:"replace"===l?d[g]=k:"remove"===l&&f&&(d[g]=null);if(g=d[g])g.hv=h.hv=[hp(h,["left","right"]),hp(h,["top","bottom"])],"group"===g.type&&(null==g.width&&(g.width=
h.width=0),null==g.height&&(g.height=h.height=0))}},this);for(b=d.length-1;0<=b;b--)null==d[b]?d.splice(b,1):delete d[b].$action},_flatten:function(a,b,c){w(a,function(d){if(d){c&&(d.parentOption=c);b.push(d);var e=d.children;"group"===d.type&&e&&this._flatten(e,b,d);delete d.children}},this)},useElOptionsToUpdate:function(){var a=this._elOptionsToUpdate;this._elOptionsToUpdate=null;return a}});ub({type:"graphic",init:function(a,b){this._elMap=Q()},render:function(a,b,c){a!==this._lastGraphicModel&&
this._clear();this._lastGraphicModel=a;this._updateElements(a,c);this._relocate(a,c)},_updateElements:function(a,b){if(a=a.useElOptionsToUpdate()){var c=this._elMap,d=this.group;w(a,function(e){var f=e.$action,g=e.id,h=c.get(g),k=e.parentId;k=null!=k?c.get(k):d;if("text"===e.type){var l=e.style;e.hv&&e.hv[1]&&(l.textVerticalAlign=l.textBaseline=null);!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill);!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}l=Ft(e);f&&"merge"!==f?
"replace"===f?(og(h,c),gp(g,k,l,c)):"remove"===f&&og(h,c):h?h.attr(l):gp(g,k,l,c);if(f=c.get(g))f.__ecGraphicWidth=e.width,f.__ecGraphicHeight=e.height})}},_relocate:function(a,b){a=a.option.elements;for(var c=this.group,d=this._elMap,e=a.length-1;0<=e;e--){var f=a[e],g=d.get(f.id);if(g){var h=g.parent,k=h===c?{width:b.getWidth(),height:b.getHeight()}:{width:h.__ecGraphicWidth||0,height:h.__ecGraphicHeight||0};h=void 0;var l=f,m=k;h={hv:f.hv,boundingMode:f.bounding};var n=!h||!h.hv||h.hv[0];f=!h||
!h.hv||h.hv[1];k=h&&h.boundingMode||"all";if(n||f){if("raw"===k)h="group"===g.type?new ca(0,0,+l.width||0,+l.height||0):g.getBoundingRect();else if(h=g.getBoundingRect(),g.needLocalTransform()){var p=g.getLocalTransform();h=h.clone();h.applyTransform(p)}l=Qb(J({width:h.width,height:h.height},l),m,null);m=g.position;n=n?l.x-h.x:0;h=f?l.y-h.y:0;g.attr("position","raw"===k?[n,h]:[m[0]+n,m[1]+h])}}}},_clear:function(){var a=this._elMap;a.each(function(b){og(b,a)});this._elMap=Q()},dispose:function(){this._clear()}});
G.version="4.1.0";G.dependencies={zrender:"4.0.4"};G.PRIORITY=fk;G.init=function(a,b,c){var d=Ji(a);if(d)return d;b=new ye(a,b,c);b.id="ec_"+hu++;Vc[b.id]=b;ql(a,Ki,b.id);$r(b);return b};G.connect=function(a){if(E(a)){var b=a;a=null;pa(b,function(c){null!=c.group&&(a=c.group)});a=a||"g_"+iu++;pa(b,function(c){c.group=a})}eg[a]=!0;return a};G.disConnect=qn;G.disconnect=qn;G.dispose=function(a){"string"===typeof a?a=Vc[a]:a instanceof ye||(a=Ji(a));a instanceof ye&&!a.isDisposed()&&a.dispose()};G.getInstanceByDom=
Ji;G.getInstanceById=function(a){return Vc[a]};G.registerTheme=function(a,b){$f[a]=b};G.registerPreprocessor=Tb;G.registerProcessor=Ub;G.registerPostUpdate=function(a){pn.push(a)};G.registerAction=Ma;G.registerCoordinateSystem=function(a,b){sb.register(a,b)};G.getCoordinateSystemDimensions=function(a){if(a=sb.get(a))return a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice()};G.registerLayout=Wc;G.registerVisual=qc;G.registerLoading=function(a,b){Hg[a]=b};G.extendComponentModel=Vb;G.extendComponentView=
ub;G.extendSeriesModel=Mi;G.extendChartView=Ni;G.setCanvasCreator=function(a){wk("createCanvas",a)};G.registerMap=function(a,b,c){b.geoJson&&!b.features&&(c=b.specialAreas,b=b.geoJson);"string"===typeof b&&(b="undefined"!==typeof JSON&&JSON.parse?JSON.parse(b):(new Function("return ("+b+");"))());Cp[a]={geoJson:b,specialAreas:c}};G.getMap=function(a){return Cp[a]};G.dataTool={};G.zrender=Pt;G.graphic=Qd;G.number=Xt;G.format=Yt;G.throttle=Di;G.helper=vu;G.matrix=Kt;G.vector=It;G.color=Lt;G.parseGeoJSON=
Gp;G.parseGeoJson=Gp;G.util=Ip;G.List=Ta;G.Model=Z;G.Axis=Zc;G.env=R});