text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1]),o&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11)}}function n(t,e){"createCanvas"===t&&(cd=null),hd[t]=e}function i(t){if(null==t||"object"!=typeof t)return t;var e=t,n=nd.call(t);if("[object Array]"===n){if(!z(t)){e=[];for(var r=0,a=t.length;a>r;r++)e[r]=i(t[r])}}else if(ed[n]){if(!z(t)){var o=t.constructor;if(t.constructor.from)e=o.from(t);else{e=new o(t.length);for(var r=0,a=t.length;a>r;r++)e[r]=i(t[r])}}}else if(!td[n]&&!z(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=i(t[s]))}return e}function r(t,e,n){if(!S(e)||!S(t))return n?i(e):t;for(var a in e)if(e.hasOwnProperty(a)){var o=t[a],s=e[a];!S(s)||!S(o)||_(s)||_(o)||T(s)||T(o)||M(s)||M(o)||z(s)||z(o)?!n&&a in t||(t[a]=i(e[a],!0)):r(o,s,n)}return t}function a(t,e){for(var n=t[0],i=1,a=t.length;a>i;i++)n=r(n,t[i],e);return n}function o(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function s(t,e,n){for(var i in e)e.hasOwnProperty(i)&&(n?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function l(){return cd||(cd=ud().getContext("2d")),cd}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function u(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)t.prototype[r]=i[r];t.prototype.constructor=t,t.superClass=e}function c(t,e,n){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,n)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,n){if(t&&e)if(t.forEach&&t.forEach===rd)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function p(t,e,n){if(t&&e){if(t.map&&t.map===sd)return t.map(e,n);for(var i=[],r=0,a=t.length;a>r;r++)i.push(e.call(n,t[r],r,t));return i}}function g(t,e,n,i){if(t&&e){if(t.reduce&&t.reduce===ld)return t.reduce(e,n,i);for(var r=0,a=t.length;a>r;r++)n=e.call(i,n,t[r],r,t);return n}}function v(t,e,n){if(t&&e){if(t.filter&&t.filter===ad)return t.filter(e,n);for(var i=[],r=0,a=t.length;a>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}}function m(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function y(t,e){var n=od.call(arguments,2);return function(){return t.apply(e,n.concat(od.call(arguments)))}}function x(t){var e=od.call(arguments,1);return function(){return t.apply(this,e.concat(od.call(arguments)))}}function _(t){return"[object Array]"===nd.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===nd.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function M(t){return!!td[nd.call(t)]}function I(t){return!!ed[nd.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function C(t){return t!==t}function D(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function A(t,e){return null!=t?t:e}function k(t,e,n){return null!=t?t:null!=e?e:n}function P(){return Function.call.apply(od,arguments)}function L(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function O(t,e){if(!t)throw new Error(e)}function B(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function E(t){t[dd]=!0}function z(t){return t[dd]}function R(t){function e(t,e){n?i.set(t,e):i.set(e,t)}var n=_(t),i=this;t instanceof R?t.each(e):t&&f(t,e)}function N(t){return new R(t)}function F(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function H(){}function G(t,e){var n=new pd(2);return null==t&&(t=0),null==e&&(e=0),n[0]=t,n[1]=e,n}function V(t,e){return t[0]=e[0],t[1]=e[1],t}function W(t){var e=new pd(2);return e[0]=t[0],e[1]=t[1],e}function X(t,e,n){return t[0]=e,t[1]=n,t}function j(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function q(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function U(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Y(t){return Math.sqrt(Z(t))}function Z(t){return t[0]*t[0]+t[1]*t[1]}function $(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function K(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Q(t,e){return t[0]*e[0]+t[1]*e[1]}function J(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function te(t,e){var n=Y(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ne(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ie(t,e){return t[0]=-e[0],t[1]=-e[1],t}function re(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ae(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function oe(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function se(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function le(){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 he(t,e){return{target:t,topTarget:e&&e.topTarget}}function ue(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which}}function ce(){}function de(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,n))return!1;r.silent&&(i=!0),r=r.parent}return i?bd:!0}return!1}function fe(){var t=new Id(6);return pe(t),t}function pe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ge(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ve(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function me(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ye(t,e,n){var i=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(n),u=Math.cos(n);return t[0]=i*u+o*h,t[1]=-i*h+o*u,t[2]=r*u+s*h,t[3]=-r*h+u*s,t[4]=u*a+h*l,t[5]=u*l-h*a,t}function xe(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function _e(t,e){var n=e[0],i=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-o*r)*l,t[5]=(a*r-n*s)*l,t):null}function we(t){var e=fe();return ge(e,t),e}function be(t){return t>Dd||-Dd>t}function Se(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Me(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ie(t){return t=Math.round(t),0>t?0:t>360?360:t}function Te(t){return 0>t?0:t>1?1:t}function Ce(t){return Me(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function De(t){return Te(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Ae(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function ke(t,e,n){return t+(e-t)*n}function Pe(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Le(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Oe(t,e){Hd&&Le(Hd,e),Hd=Fd.put(t,Hd||e.slice())}function Be(t,e){if(t){e=e||[];var n=Fd.get(t);if(n)return Le(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in Nd)return Le(e,Nd[i]),Oe(t,e),e;if("#"!==i.charAt(0)){var r=i.indexOf("("),a=i.indexOf(")");if(-1!==r&&a+1===i.length){var o=i.substr(0,r),s=i.substr(r+1,a-(r+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return void Pe(e,0,0,0,1);l=De(s.pop());case"rgb":return 3!==s.length?void Pe(e,0,0,0,1):(Pe(e,Ce(s[0]),Ce(s[1]),Ce(s[2]),l),Oe(t,e),e);case"hsla":return 4!==s.length?void Pe(e,0,0,0,1):(s[3]=De(s[3]),Ee(s,e),Oe(t,e),e);case"hsl":return 3!==s.length?void Pe(e,0,0,0,1):(Ee(s,e),Oe(t,e),e);default:return}}Pe(e,0,0,0,1)}else{if(4===i.length){var h=parseInt(i.substr(1),16);return h>=0&&4095>=h?(Pe(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1),Oe(t,e),e):void Pe(e,0,0,0,1)}if(7===i.length){var h=parseInt(i.substr(1),16);return h>=0&&16777215>=h?(Pe(e,(16711680&h)>>16,(65280&h)>>8,255&h,1),Oe(t,e),e):void Pe(e,0,0,0,1)}}}}function Ee(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=De(t[1]),r=De(t[2]),a=.5>=r?r*(i+1):r+i-r*i,o=2*r-a;return e=e||[],Pe(e,Me(255*Ae(o,a,n+1/3)),Me(255*Ae(o,a,n)),Me(255*Ae(o,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ze(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,h=(s+o)/2;if(0===l)e=0,n=0;else{n=.5>h?l/(s+o):l/(2-s-o);var u=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+u-d:a===s&&(e=2/3+c-u),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,h];return null!=t[3]&&f.push(t[3]),f}}function Re(t,e){var n=Be(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return We(n,4===n.length?"rgba":"rgb")}}function Ne(t){var e=Be(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Fe(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=e[r],s=e[a],l=i-r;return n[0]=Me(ke(o[0],s[0],l)),n[1]=Me(ke(o[1],s[1],l)),n[2]=Me(ke(o[2],s[2],l)),n[3]=Te(ke(o[3],s[3],l)),n}}function He(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),o=Be(e[r]),s=Be(e[a]),l=i-r,h=We([Me(ke(o[0],s[0],l)),Me(ke(o[1],s[1],l)),Me(ke(o[2],s[2],l)),Te(ke(o[3],s[3],l))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}function Ge(t,e,n,i){return t=Be(t),t?(t=ze(t),null!=e&&(t[0]=Ie(e)),null!=n&&(t[1]=De(n)),null!=i&&(t[2]=De(i)),We(Ee(t),"rgba")):void 0}function Ve(t,e){return t=Be(t),t&&null!=e?(t[3]=Te(e),We(t,"rgba")):void 0}function We(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function Xe(t,e){return t[e]}function je(t,e,n){t[e]=n}function qe(t,e,n){return(e-t)*n+t}function Ue(t,e,n){return n>.5?e:t}function Ye(t,e,n,i,r){var a=t.length;if(1==r)for(var o=0;a>o;o++)i[o]=qe(t[o],e[o],n);else for(var s=a&&t[0].length,o=0;a>o;o++)for(var l=0;s>l;l++)i[o][l]=qe(t[o][l],e[o][l],n)}function Ze(t,e,n){var i=t.length,r=e.length;if(i!==r){var a=i>r;if(a)t.length=r;else for(var o=i;r>o;o++)t.push(1===n?e[o]:Xd.call(e[o]))}for(var s=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var l=0;s>l;l++)isNaN(t[o][l])&&(t[o][l]=e[o][l])}function $e(t,e,n){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===n){for(var r=0;i>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0].length,r=0;i>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function Ke(t,e,n,i,r,a,o,s,l){var h=t.length;if(1==l)for(var u=0;h>u;u++)s[u]=Qe(t[u],e[u],n[u],i[u],r,a,o);else for(var c=t[0].length,u=0;h>u;u++)for(var d=0;c>d;d++)s[u][d]=Qe(t[u][d],e[u][d],n[u][d],i[u][d],r,a,o)}function Qe(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function Je(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;e>i;i++)n.push(Xd.call(t[i]));return n}return Xd.call(t)}return t}function tn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function en(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function nn(t,e,n,i,r,a){var o=t._getter,s=t._setter,l="spline"===e,h=i.length;if(h){var u,c=i[0].value,f=d(c),p=!1,g=!1,v=f?en(i):0;i.sort(function(t,e){return t.time-e.time}),u=i[h-1].time;for(var m=[],y=[],x=i[0].value,_=!0,w=0;h>w;w++){m.push(i[w].time/u);var b=i[w].value;if(f&&$e(b,x,v)||!f&&b===x||(_=!1),x=b,"string"==typeof b){var S=Be(b);S?(b=S,p=!0):g=!0}y.push(b)}if(a||!_){for(var M=y[h-1],w=0;h-1>w;w++)f?Ze(y[w],M,v):!isNaN(y[w])||isNaN(M)||g||p||(y[w]=M);f&&Ze(o(t._target,r),M,v);var I,T,C,D,A,k,P=0,L=0;if(p)var O=[0,0,0,0];var B=function(t,e){var n;if(0>e)n=0;else if(L>e){for(I=Math.min(P+1,h-1),n=I;n>=0&&!(m[n]<=e);n--);n=Math.min(n,h-2)}else{for(n=P;h>n&&!(m[n]>e);n++);n=Math.min(n-1,h-2)}P=n,L=e;var i=m[n+1]-m[n];if(0!==i)if(T=(e-m[n])/i,l)if(D=y[n],C=y[0===n?n:n-1],A=y[n>h-2?h-1:n+1],k=y[n>h-3?h-1:n+2],f)Ke(C,D,A,k,T,T*T,T*T*T,o(t,r),v);else{var a;if(p)a=Ke(C,D,A,k,T,T*T,T*T*T,O,1),a=tn(O);else{if(g)return Ue(D,A,T);a=Qe(C,D,A,k,T,T*T,T*T*T)}s(t,r,a)}else if(f)Ye(y[n],y[n+1],T,o(t,r),v);else{var a;if(p)Ye(y[n],y[n+1],T,O,1),a=tn(O);else{if(g)return Ue(y[n],y[n+1],T);a=qe(y[n],y[n+1],T)}s(t,r,a)}},E=new Se({target:t._target,life:u,loop:t._loop,delay:t._delay,onframe:B,ondestroy:n});return e&&"spline"!==e&&(E.easing=e),E}}}function rn(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function an(t){for(var e=0;t>=rf;)e|=1&t,t>>=1;return t+e}function on(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;sn(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function sn(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function ln(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var a,o=t[i],s=e,l=i;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var h=i-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=o}}function hn(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])>0){for(s=i-r;s>l&&a(t,e[n+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[n+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}for(o++;l>o;){var u=o+(l-o>>>1);a(t,e[n+u])>0?o=u+1:l=u}return l}function un(t,e,n,i,r,a){var o=0,s=0,l=1;if(a(t,e[n+r])<0){for(s=r+1;s>l&&a(t,e[n+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=o;o=r-l,l=r-h}else{for(s=i-r;s>l&&a(t,e[n+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var u=o+(l-o>>>1);a(t,e[n+u])<0?l=u:o=u+1}return l}function cn(t,e){function n(t,e){l[c]=t,h[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&h[t-1]<=h[t]+h[t+1]||t>=2&&h[t-2]<=h[t]+h[t-1])h[t-1]<h[t+1]&&t--;else if(h[t]>h[t+1])break;a(t)}}function r(){for(;c>1;){var t=c-2;t>0&&h[t-1]<h[t+1]&&t--,a(t)}}function a(n){var i=l[n],r=h[n],a=l[n+1],u=h[n+1];h[n]=r+u,n===c-3&&(l[n+1]=l[n+2],h[n+1]=h[n+2]),c--;var d=un(t[a],t,i,r,0,e);i+=d,r-=d,0!==r&&(u=hn(t[i+r-1],t,a,u,u-1,e),0!==u&&(u>=r?o(i,r,a,u):s(i,r,a,u)))}function o(n,i,r,a){var o=0;for(o=0;i>o;o++)d[o]=t[n+o];var s=0,l=r,h=n;if(t[h++]=t[l++],0!==--a){if(1===i){for(o=0;a>o;o++)t[h+o]=t[l+o];return void(t[h+a]=d[s])}for(var c,f,p,g=u;;){c=0,f=0,p=!1;do if(e(t[l],d[s])<0){if(t[h++]=t[l++],f++,c=0,0===--a){p=!0;break}}else if(t[h++]=d[s++],c++,f=0,1===--i){p=!0;break}while(g>(c|f));if(p)break;do{if(c=un(t[l],d,s,i,0,e),0!==c){for(o=0;c>o;o++)t[h+o]=d[s+o];if(h+=c,s+=c,i-=c,1>=i){p=!0;break}}if(t[h++]=t[l++],0===--a){p=!0;break}if(f=hn(d[s],t,l,a,0,e),0!==f){for(o=0;f>o;o++)t[h+o]=t[l+o];if(h+=f,l+=f,a-=f,0===a){p=!0;break}}if(t[h++]=d[s++],1===--i){p=!0;break}g--}while(c>=af||f>=af);if(p)break;0>g&&(g=0),g+=2}if(u=g,1>u&&(u=1),1===i){for(o=0;a>o;o++)t[h+o]=t[l+o];t[h+a]=d[s]}else{if(0===i)throw new Error;for(o=0;i>o;o++)t[h+o]=d[s+o]}}else for(o=0;i>o;o++)t[h+o]=d[s+o]}function s(n,i,r,a){var o=0;for(o=0;a>o;o++)d[o]=t[r+o];var s=n+i-1,l=a-1,h=r+a-1,c=0,f=0;if(t[h--]=t[s--],0!==--i){if(1===a){for(h-=i,s-=i,f=h+1,c=s+1,o=i-1;o>=0;o--)t[f+o]=t[c+o];return void(t[h]=d[l])}for(var p=u;;){var g=0,v=0,m=!1;do if(e(d[l],t[s])<0){if(t[h--]=t[s--],g++,v=0,0===--i){m=!0;break}}else if(t[h--]=d[l--],v++,g=0,1===--a){m=!0;break}while(p>(g|v));if(m)break;do{if(g=i-un(d[l],t,n,i,i-1,e),0!==g){for(h-=g,s-=g,i-=g,f=h+1,c=s+1,o=g-1;o>=0;o--)t[f+o]=t[c+o];if(0===i){m=!0;break}}if(t[h--]=d[l--],1===--a){m=!0;break}if(v=a-hn(t[s],d,0,a,a-1,e),0!==v){for(h-=v,l-=v,a-=v,f=h+1,c=l+1,o=0;v>o;o++)t[f+o]=d[c+o];if(1>=a){m=!0;break}}if(t[h--]=t[s--],0===--i){m=!0;break}p--}while(g>=af||v>=af);if(m)break;0>p&&(p=0),p+=2}if(u=p,1>u&&(u=1),1===a){for(h-=i,s-=i,f=h+1,c=s+1,o=i-1;o>=0;o--)t[f+o]=t[c+o];t[h]=d[l]}else{if(0===a)throw new Error;for(c=h-(a-1),o=0;a>o;o++)t[c+o]=d[o]}}else for(c=h-(a-1),o=0;a>o;o++)t[c+o]=d[o]}var l,h,u=af,c=0,d=[];l=[],h=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function dn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var a=0;if(rf>r)return a=on(t,n,i,e),void ln(t,n,i,n+a,e);var o=new cn(t,e),s=an(r);do{if(a=on(t,n,i,e),s>a){var l=r;l>s&&(l=s),ln(t,n,n+l,n+a,e),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(0!==r);o.forceMergeRuns()}}function fn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function pn(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y);var s=t.createLinearGradient(i,a,r,o);return s}function gn(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*i+n.x,s=s*r+n.y,l*=a);var h=t.createRadialGradient(o,s,0,o,s,l);return h}function vn(){return!1}function mn(t,e,n){var i=ud(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=a*n,i}function yn(t){if("string"==typeof t){var e=mf.get(t);return e&&e.image}return t}function xn(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var a=mf.get(t),o={hostEl:n,cb:i,cbPayload:r};return a?(e=a.image,!wn(e)&&a.pending.push(o)):(!e&&(e=new Image),e.onload=_n,mf.put(t,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=t),e}return t}return e}function _n(){var t=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function wn(t){return t&&t.width&&t.height}function bn(t,e){e=e||bf;var n=t+":"+e;if(yf[n])return yf[n];for(var i=(t+"").split("\n"),r=0,a=0,o=i.length;o>a;a++)r=Math.max(Bn(i[a],e).width,r);return xf>_f&&(xf=0,yf={}),xf++,yf[n]=r,r}function Sn(t,e,n,i,r,a,o){return a?In(t,e,n,i,r,a,o):Mn(t,e,n,i,r,o)}function Mn(t,e,n,i,r,a){var o=En(t,e,r,a),s=bn(t,e);r&&(s+=r[1]+r[3]);var l=o.outerHeight,h=Tn(0,s,n),u=Cn(0,l,i),c=new rn(h,u,s,l);return c.lineHeight=o.lineHeight,c}function In(t,e,n,i,r,a,o){var s=zn(t,{rich:a,truncate:o,font:e,textAlign:n,textPadding:r}),l=s.outerWidth,h=s.outerHeight,u=Tn(0,l,n),c=Cn(0,h,i);return new rn(u,c,l,h)}function Tn(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Cn(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Dn(t,e,n){var i=e.x,r=e.y,a=e.height,o=e.width,s=a/2,l="left",h="top";switch(t){case"left":i-=n,r+=s,l="right",h="middle";break;case"right":i+=n+o,r+=s,h="middle";break;case"top":i+=o/2,r-=n,l="center",h="bottom";break;case"bottom":i+=o/2,r+=a+n,l="center";break;case"inside":i+=o/2,r+=s,l="center",h="middle";break;case"insideLeft":i+=n,r+=s,h="middle";break;case"insideRight":i+=o-n,r+=s,l="right",h="middle";break;case"insideTop":i+=o/2,r+=n,l="center";break;case"insideBottom":i+=o/2,r+=a-n,l="center",h="bottom";break;case"insideTopLeft":i+=n,r+=n;break;case"insideTopRight":i+=o-n,r+=n,l="right";break;case"insideBottomLeft":i+=n,r+=a-n,h="bottom";break;case"insideBottomRight":i+=o-n,r+=a-n,l="right",h="bottom"}return{x:i,y:r,textAlign:l,textVerticalAlign:h}}function An(t,e,n,i,r){if(!e)return"";var a=(t+"").split("\n");r=kn(e,n,i,r);for(var o=0,s=a.length;s>o;o++)a[o]=Pn(a[o],r);return a.join("\n")}function kn(t,e,n,i){i=o({},i),i.font=e;var n=A(n,"...");i.maxIterations=A(i.maxIterations,2);var r=i.minChar=A(i.minChar,0);i.cnCharWidth=bn("国",e);var a=i.ascCharWidth=bn("a",e);i.placeholder=A(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;r>l&&s>=a;l++)s-=a;var h=bn(n);return h>s&&(n="",h=0),s=t-h,i.ellipsis=n,i.ellipsisWidth=h,i.contentWidth=s,i.containerWidth=t,i}function Pn(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=bn(t,i);if(n>=a)return t;for(var o=0;;o++){if(r>=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?Ln(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,s),a=bn(t,i)}return""===t&&(t=e.placeholder),t}function Ln(t,e,n,i){for(var r=0,a=0,o=t.length;o>a&&e>r;a++){var s=t.charCodeAt(a);r+=s>=0&&127>=s?n:i}return a}function On(t){return bn("国",t)}function Bn(t,e){return Sf.measureText(t,e)}function En(t,e,n,i){null!=t&&(t+="");var r=On(e),a=t?t.split("\n"):[],o=a.length*r,s=o;if(n&&(s+=n[0]+n[2]),t&&i){var l=i.outerHeight,h=i.outerWidth;if(null!=l&&s>l)t="",a=[];else if(null!=h)for(var u=kn(h-(n?n[1]+n[3]:0),e,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),c=0,d=a.length;d>c;c++)a[c]=Pn(a[c],u)}return{lines:a,height:o,outerHeight:s,lineHeight:r}}function zn(t,e){var n={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return n;for(var i,r=wf.lastIndex=0;null!=(i=wf.exec(t));){var a=i.index;a>r&&Rn(n,t.substring(r,a)),Rn(n,i[2],i[1]),r=wf.lastIndex}r<t.length&&Rn(n,t.substring(r,t.length));var o=n.lines,s=0,l=0,h=[],u=e.textPadding,c=e.truncate,d=c&&c.outerWidth,f=c&&c.outerHeight;u&&(null!=d&&(d-=u[1]+u[3]),null!=f&&(f-=u[0]+u[2]));for(var p=0;p<o.length;p++){for(var g=o[p],v=0,m=0,y=0;y<g.tokens.length;y++){var x=g.tokens[y],_=x.styleName&&e.rich[x.styleName]||{},w=x.textPadding=_.textPadding,b=x.font=_.font||e.font,S=x.textHeight=A(_.textHeight,On(b));if(w&&(S+=w[0]+w[2]),x.height=S,x.lineHeight=k(_.textLineHeight,e.textLineHeight,S),x.textAlign=_&&_.textAlign||e.textAlign,x.textVerticalAlign=_&&_.textVerticalAlign||"middle",null!=f&&s+x.lineHeight>f)return{lines:[],width:0,height:0};x.textWidth=bn(x.text,b);var M=_.textWidth,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))x.percentWidth=M,h.push(x),M=0;else{if(I){M=x.textWidth;var T=_.textBackgroundColor,C=T&&T.image;C&&(C=yn(C),wn(C)&&(M=Math.max(M,C.width*S/C.height)))}var D=w?w[1]+w[3]:0;M+=D;var P=null!=d?d-m:null;null!=P&&M>P&&(!I||D>P?(x.text="",x.textWidth=M=0):(x.text=An(x.text,P-D,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=bn(x.text,b),M=x.textWidth+D))}m+=x.width=M,_&&(v=Math.max(v,x.lineHeight))}g.width=m,g.lineHeight=v,s+=v,l=Math.max(l,m)}n.outerWidth=n.width=A(e.textWidth,l),n.outerHeight=n.height=A(e.textHeight,s),u&&(n.outerWidth+=u[1]+u[3],n.outerHeight+=u[0]+u[2]);for(var p=0;p<h.length;p++){var x=h[p],L=x.percentWidth;x.width=parseInt(L,10)/100*l}return n}function Rn(t,e,n){for(var i=""===e,r=e.split("\n"),a=t.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var h=(a[a.length-1]||(a[0]={tokens:[]})).tokens,u=h.length;1===u&&h[0].isLineHolder?h[0]=l:(s||!u||i)&&h.push(l)}}}function Nn(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&B(e)||t.textFont||t.font}function Fn(t,e){var n,i,r,a,o=e.x,s=e.y,l=e.width,h=e.height,u=e.r;0>l&&(o+=l,l=-l),0>h&&(s+=h,h=-h),"number"==typeof u?n=i=r=a=u:u instanceof Array?1===u.length?n=i=r=a=u[0]:2===u.length?(n=r=u[0],i=a=u[1]):3===u.length?(n=u[0],i=a=u[1],r=u[2]):(n=u[0],i=u[1],r=u[2],a=u[3]):n=i=r=a=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),i+r>h&&(c=i+r,i*=h/c,r*=h/c),n+a>h&&(c=n+a,n*=h/c,a*=h/c),t.moveTo(o+n,s),t.lineTo(o+l-i,s),0!==i&&t.quadraticCurveTo(o+l,s,o+l,s+i),t.lineTo(o+l,s+h-r),0!==r&&t.quadraticCurveTo(o+l,s+h,o+l-r,s+h),t.lineTo(o+a,s+h),0!==a&&t.quadraticCurveTo(o,s+h,o,s+h-a),t.lineTo(o,s+n),0!==n&&t.quadraticCurveTo(o,s,o+n,s)}function Hn(t){return Gn(t),f(t.rich,Gn),t}function Gn(t){if(t){t.font=Nn(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Mf[e]?e:"left";var n=t.textVerticalAlign||t.textBaseline;"center"===n&&(n="middle"),t.textVerticalAlign=null==n||If[n]?n:"top";var i=t.textPadding;i&&(t.textPadding=L(t.textPadding))}}function Vn(t,e,n,i,r){i.rich?Xn(t,e,n,i,r):Wn(t,e,n,i,r)}function Wn(t,e,n,i,r){var a=Qn(e,"font",i.font||bf),o=i.textPadding,s=t.__textCotentBlock;(!s||t.__dirty)&&(s=t.__textCotentBlock=En(n,a,o,i.truncate));var l=s.outerHeight,h=s.lines,u=s.lineHeight,c=Kn(l,i,r),d=c.baseX,f=c.baseY,p=c.textAlign,g=c.textVerticalAlign;qn(e,i,r,d,f);var v=Cn(f,l,g),m=d,y=v,x=Yn(i);if(x||o){var _=bn(n,a),w=_;o&&(w+=o[1]+o[3]);var b=Tn(d,w,p);x&&Zn(t,e,i,b,v,w,l),o&&(m=ni(d,p,o),y+=o[0])}Qn(e,"textAlign",p||"left"),Qn(e,"textBaseline","middle"),Qn(e,"shadowBlur",i.textShadowBlur||0),Qn(e,"shadowColor",i.textShadowColor||"transparent"),Qn(e,"shadowOffsetX",i.textShadowOffsetX||0),Qn(e,"shadowOffsetY",i.textShadowOffsetY||0),y+=u/2;var S=i.textStrokeWidth,M=Jn(i.textStroke,S),I=ti(i.textFill);M&&(Qn(e,"lineWidth",S),Qn(e,"strokeStyle",M)),I&&Qn(e,"fillStyle",I);for(var T=0;T<h.length;T++)M&&e.strokeText(h[T],m,y),I&&e.fillText(h[T],m,y),y+=u}function Xn(t,e,n,i,r){var a=t.__textCotentBlock;(!a||t.__dirty)&&(a=t.__textCotentBlock=zn(n,i)),jn(t,e,a,i,r)}function jn(t,e,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,h=Kn(s,i,r),u=h.baseX,c=h.baseY,d=h.textAlign,f=h.textVerticalAlign;qn(e,i,r,u,c);var p=Tn(u,o,d),g=Cn(c,s,f),v=p,m=g;l&&(v+=l[3],m+=l[0]);var y=v+a;Yn(i)&&Zn(t,e,i,p,g,o,s);for(var x=0;x<n.lines.length;x++){for(var _,w=n.lines[x],b=w.tokens,S=b.length,M=w.lineHeight,I=w.width,T=0,C=v,D=y,A=S-1;S>T&&(_=b[T],!_.textAlign||"left"===_.textAlign);)Un(t,e,_,i,M,m,C,"left"),I-=_.width,C+=_.width,T++;for(;A>=0&&(_=b[A],"right"===_.textAlign);)Un(t,e,_,i,M,m,D,"right"),I-=_.width,D-=_.width,A--;for(C+=(a-(C-v)-(y-D)-I)/2;A>=T;)_=b[T],Un(t,e,_,i,M,m,C+_.width/2,"center"),C+=_.width,T++;m+=M}}function qn(t,e,n,i,r){if(n&&e.textRotation){var a=e.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),t.translate(i,r),t.rotate(-e.textRotation),t.translate(-i,-r)}}function Un(t,e,n,i,r,a,o,s){var l=i.rich[n.styleName]||{},h=n.textVerticalAlign,u=a+r/2;"top"===h?u=a+n.height/2:"bottom"===h&&(u=a+r-n.height/2),!n.isLineHolder&&Yn(l)&&Zn(t,e,l,"right"===s?o-n.width:"center"===s?o-n.width/2:o,u-n.height/2,n.width,n.height);var c=n.textPadding;c&&(o=ni(o,s,c),u-=n.height/2-c[2]-n.textHeight/2),Qn(e,"shadowBlur",k(l.textShadowBlur,i.textShadowBlur,0)),Qn(e,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),Qn(e,"shadowOffsetX",k(l.textShadowOffsetX,i.textShadowOffsetX,0)),Qn(e,"shadowOffsetY",k(l.textShadowOffsetY,i.textShadowOffsetY,0)),Qn(e,"textAlign",s),Qn(e,"textBaseline","middle"),Qn(e,"font",n.font||bf);var d=Jn(l.textStroke||i.textStroke,p),f=ti(l.textFill||i.textFill),p=A(l.textStrokeWidth,i.textStrokeWidth);d&&(Qn(e,"lineWidth",p),Qn(e,"strokeStyle",d),e.strokeText(n.text,o,u)),f&&(Qn(e,"fillStyle",f),e.fillText(n.text,o,u))}function Yn(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function Zn(t,e,n,i,r,a,o){var s=n.textBackgroundColor,l=n.textBorderWidth,h=n.textBorderColor,u=b(s);if(Qn(e,"shadowBlur",n.textBoxShadowBlur||0),Qn(e,"shadowColor",n.textBoxShadowColor||"transparent"),Qn(e,"shadowOffsetX",n.textBoxShadowOffsetX||0),Qn(e,"shadowOffsetY",n.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=n.textBorderRadius;c?Fn(e,{x:i,y:r,width:a,height:o,r:c}):e.rect(i,r,a,o),e.closePath()}if(u)Qn(e,"fillStyle",s),e.fill();else if(S(s)){var d=s.image;d=xn(d,null,t,$n,s),d&&wn(d)&&e.drawImage(d,i,r,a,o)}l&&h&&(Qn(e,"lineWidth",l),Qn(e,"strokeStyle",h),e.stroke())}function $n(t,e){e.image=t}function Kn(t,e,n){var i=e.x||0,r=e.y||0,a=e.textAlign,o=e.textVerticalAlign;if(n){var s=e.textPosition;if(s instanceof Array)i=n.x+ei(s[0],n.width),r=n.y+ei(s[1],n.height);else{var l=Dn(s,n,e.textDistance);i=l.x,r=l.y,a=a||l.textAlign,o=o||l.textVerticalAlign}var h=e.textOffset;h&&(i+=h[0],r+=h[1])}return{baseX:i,baseY:r,textAlign:a,textVerticalAlign:o}}function Qn(t,e,n){return t[e]=lf(t,e,n),t[e]}function Jn(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ti(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ei(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ni(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function ii(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function ri(t){t=t||{},Qd.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new uf(t.style,this),this._rect=null,this.__clipPaths=[]}function ai(t){ri.call(this,t)}function oi(t){return parseInt(t,10)}function si(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function li(t,e,n){return Lf.copy(t.getBoundingRect()),t.transform&&Lf.applyTransform(t.transform),Of.width=e,Of.height=n,!Lf.intersect(Of)}function hi(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0}function ui(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.setTransform(e),e.beginPath(),i.buildPath(e,i.shape),e.clip(),i.restoreTransform(e)}}function ci(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function di(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function fi(t,e,n,i){return n=n||{},i||!Jc.canvasSupported?pi(t,e,n):Jc.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):pi(t,e,n),n}function pi(t,e,n){var i=di(t);n.zrX=e.clientX-i.left,n.zrY=e.clientY-i.top}function gi(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var a="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];a&&fi(t,a,e,n)}else fi(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&zf.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function vi(t,e,n){Ef?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function mi(t,e,n){Ef?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}function yi(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function xi(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function _i(t){return"mousewheel"===t&&Jc.browser.firefox?"DOMMouseScroll":t}function wi(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===n&&i.clear(),r){var a=r.type;e.gestureEvent=a,t.handler.dispatchToElement({target:r.target},a,r.event)}}function bi(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function Si(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Mi(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}f(Wf,function(e){t._handlers[e]=y(qf[e],t)
  }),f(jf,function(e){t._handlers[e]=y(qf[e],t)}),f(Vf,function(n){t._handlers[n]=e(qf[n],t)})}function Ii(t){function e(e,n){f(e,function(e){vi(t,_i(e),n._handlers[e])},n)}wd.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new Ff,this._handlers={},Mi(this),Jc.pointerEventsSupported?e(jf,this):(Jc.touchEventsSupported&&e(Wf,this),e(Vf,this))}function Ti(t,e){var n=new Qf(Kc(),t,e);return $f[n.id]=n,n}function Ci(t){if(t)t.dispose();else{for(var e in $f)$f.hasOwnProperty(e)&&$f[e].dispose();$f={}}return this}function Di(t){return $f[t]}function Ai(t,e){Zf[t]=e}function ki(t){delete $f[t]}function Pi(t){return t instanceof Array?t:null==t?[]:[t]}function Li(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}function Oi(t){return!ep(t)||np(t)||t instanceof Date?t:t.value}function Bi(t){return ep(t)&&!(t instanceof Array)}function Ei(t,e){e=(e||[]).slice();var n=p(t||[],function(t){return{exist:t}});return tp(e,function(t,i){if(ep(t)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=t.id&&n[r].exist.id===t.id+"")return n[r].option=t,void(e[i]=null);for(var r=0;r<n.length;r++){var a=n[r].exist;if(!(n[r].option||null!=a.id&&null!=t.id||null==t.name||Ri(t)||Ri(a)||a.name!==t.name+""))return n[r].option=t,void(e[i]=null)}}}),tp(e,function(t){if(ep(t)){for(var e=0;e<n.length;e++){var i=n[e].exist;if(!n[e].option&&!Ri(i)&&null==t.id){n[e].option=t;break}}e>=n.length&&n.push({option:t})}}),n}function zi(t){var e=N();tp(t,function(t){var n=t.exist;n&&e.set(n.id,t)}),tp(t,function(t){var n=t.option;O(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),tp(t,function(t){var n=t.exist,i=t.option,r=t.keyInfo;if(ep(i)){if(r.name=null!=i.name?i.name+"":n?n.name:ip,n)r.id=n.id;else if(null!=i.id)r.id=i.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e.get(r.id))}e.set(r.id,t)}})}function Ri(t){return ep(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function Ni(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?_(e.dataIndex)?p(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?_(e.name)?p(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Fi(){var t="__\x00ec_inner_"+ap++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function Hi(t,e,n){if(b(e)){var i={};i[e+"Index"]=0,e=i}var r=n&&n.defaultMainType;!r||Gi(e,r+"Index")||Gi(e,r+"Id")||Gi(e,r+"Name")||(e[r+"Index"]=0);var a={};return tp(e,function(i,r){var i=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(a[r]=i);var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=o[1],l=(o[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&h(n.includeMainTypes,s)<0)){var u={mainType:s};("index"!==l||"all"!==i)&&(u[l]=i);var c=t.queryComponents(u);a[s+"Models"]=c,a[s+"Model"]=c[0]}}),a}function Gi(t,e){return t&&t.hasOwnProperty(e)}function Vi(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Wi(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Xi(t){var e={main:"",sub:""};return t&&(t=t.split(op),e.main=t[0]||"",e.sub=t[1]||""),e}function ji(t){O(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function qi(t){t.$constructor=t,t.extend=function(t){var e=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return o(n.prototype,t),n.extend=this.extend,n.superCall=Yi,n.superApply=Zi,u(n,this),n.superClass=e,n}}function Ui(t){var e=["__\x00is_clz",lp++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Yi(t,e){var n=P(arguments,2);return this.superClass.prototype[e].apply(t,n)}function Zi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function $i(t,e){function n(t){var e=i[t.main];return e&&e[sp]||(e=i[t.main]={},e[sp]=!0),e}e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(ji(e),e=Xi(e),e.sub){if(e.sub!==sp){var r=n(e);r[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[sp]&&(r=e?r[e]:null),n&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){t=Xi(t);var e=[],n=i[t.main];return n&&n[sp]?f(n,function(t,n){n!==sp&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=Xi(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(i,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=Xi(t);var e=i[t.main];return e&&e[sp]},t.parseClassType=Xi,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var n=r.call(this,e);return t.registerClass(n,e.type)})}return t}function Ki(t){return t>-vp&&vp>t}function Qi(t){return t>vp||-vp>t}function Ji(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function tr(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function er(t,e,n,i,r,a){var o=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),h=t-r,u=s*s-3*o*l,c=s*l-9*o*h,d=l*l-3*s*h,f=0;if(Ki(u)&&Ki(c))if(Ki(s))a[0]=0;else{var p=-l/s;p>=0&&1>=p&&(a[f++]=p)}else{var g=c*c-4*u*d;if(Ki(g)){var v=c/u,p=-s/o+v,m=-v/2;p>=0&&1>=p&&(a[f++]=p),m>=0&&1>=m&&(a[f++]=m)}else if(g>0){var y=gp(g),x=u*s+1.5*o*(-c+y),_=u*s+1.5*o*(-c-y);x=0>x?-pp(-x,xp):pp(x,xp),_=0>_?-pp(-_,xp):pp(_,xp);var p=(-s-(x+_))/(3*o);p>=0&&1>=p&&(a[f++]=p)}else{var w=(2*u*s-3*o*c)/(2*gp(u*u*u)),b=Math.acos(w)/3,S=gp(u),M=Math.cos(b),p=(-s-2*S*M)/(3*o),m=(-s+S*(M+yp*Math.sin(b)))/(3*o),I=(-s+S*(M-yp*Math.sin(b)))/(3*o);p>=0&&1>=p&&(a[f++]=p),m>=0&&1>=m&&(a[f++]=m),I>=0&&1>=I&&(a[f++]=I)}}return f}function nr(t,e,n,i,r){var a=6*n-12*e+6*t,o=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Ki(o)){if(Qi(a)){var h=-s/a;h>=0&&1>=h&&(r[l++]=h)}}else{var u=a*a-4*o*s;if(Ki(u))r[0]=-a/(2*o);else if(u>0){var c=gp(u),h=(-a+c)/(2*o),d=(-a-c)/(2*o);h>=0&&1>=h&&(r[l++]=h),d>=0&&1>=d&&(r[l++]=d)}}return l}function ir(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,h=(s-o)*r+o,u=(l-s)*r+s,c=(u-h)*r+h;a[0]=t,a[1]=o,a[2]=h,a[3]=c,a[4]=c,a[5]=u,a[6]=l,a[7]=i}function rr(t,e,n,i,r,a,o,s,l,h,u){var c,d,f,p,g,v=.005,m=1/0;_p[0]=l,_p[1]=h;for(var y=0;1>y;y+=.05)wp[0]=Ji(t,n,r,o,y),wp[1]=Ji(e,i,a,s,y),p=yd(_p,wp),m>p&&(c=y,m=p);m=1/0;for(var x=0;32>x&&!(mp>v);x++)d=c-v,f=c+v,wp[0]=Ji(t,n,r,o,d),wp[1]=Ji(e,i,a,s,d),p=yd(wp,_p),d>=0&&m>p?(c=d,m=p):(bp[0]=Ji(t,n,r,o,f),bp[1]=Ji(e,i,a,s,f),g=yd(bp,_p),1>=f&&m>g?(c=f,m=g):v*=.5);return u&&(u[0]=Ji(t,n,r,o,c),u[1]=Ji(e,i,a,s,c)),gp(m)}function ar(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function or(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function sr(t,e,n,i,r){var a=t-2*e+n,o=2*(e-t),s=t-i,l=0;if(Ki(a)){if(Qi(o)){var h=-s/o;h>=0&&1>=h&&(r[l++]=h)}}else{var u=o*o-4*a*s;if(Ki(u)){var h=-o/(2*a);h>=0&&1>=h&&(r[l++]=h)}else if(u>0){var c=gp(u),h=(-o+c)/(2*a),d=(-o-c)/(2*a);h>=0&&1>=h&&(r[l++]=h),d>=0&&1>=d&&(r[l++]=d)}}return l}function lr(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function hr(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function ur(t,e,n,i,r,a,o,s,l){var h,u=.005,c=1/0;_p[0]=o,_p[1]=s;for(var d=0;1>d;d+=.05){wp[0]=ar(t,n,r,d),wp[1]=ar(e,i,a,d);var f=yd(_p,wp);c>f&&(h=d,c=f)}c=1/0;for(var p=0;32>p&&!(mp>u);p++){var g=h-u,v=h+u;wp[0]=ar(t,n,r,g),wp[1]=ar(e,i,a,g);var f=yd(wp,_p);if(g>=0&&c>f)h=g,c=f;else{bp[0]=ar(t,n,r,v),bp[1]=ar(e,i,a,v);var m=yd(bp,_p);1>=v&&c>m?(h=v,c=m):u*=.5}}return l&&(l[0]=ar(t,n,r,h),l[1]=ar(e,i,a,h)),gp(c)}function cr(t,e,n){if(0!==t.length){var i,r=t[0],a=r[0],o=r[0],s=r[1],l=r[1];for(i=1;i<t.length;i++)r=t[i],a=Sp(a,r[0]),o=Mp(o,r[0]),s=Sp(s,r[1]),l=Mp(l,r[1]);e[0]=a,e[1]=s,n[0]=o,n[1]=l}}function dr(t,e,n,i,r,a){r[0]=Sp(t,n),r[1]=Sp(e,i),a[0]=Mp(t,n),a[1]=Mp(e,i)}function fr(t,e,n,i,r,a,o,s,l,h){var u,c=nr,d=Ji,f=c(t,n,r,o,Pp);for(l[0]=1/0,l[1]=1/0,h[0]=-1/0,h[1]=-1/0,u=0;f>u;u++){var p=d(t,n,r,o,Pp[u]);l[0]=Sp(p,l[0]),h[0]=Mp(p,h[0])}for(f=c(e,i,a,s,Lp),u=0;f>u;u++){var g=d(e,i,a,s,Lp[u]);l[1]=Sp(g,l[1]),h[1]=Mp(g,h[1])}l[0]=Sp(t,l[0]),h[0]=Mp(t,h[0]),l[0]=Sp(o,l[0]),h[0]=Mp(o,h[0]),l[1]=Sp(e,l[1]),h[1]=Mp(e,h[1]),l[1]=Sp(s,l[1]),h[1]=Mp(s,h[1])}function pr(t,e,n,i,r,a,o,s){var l=lr,h=ar,u=Mp(Sp(l(t,n,r),1),0),c=Mp(Sp(l(e,i,a),1),0),d=h(t,n,r,u),f=h(e,i,a,c);o[0]=Sp(t,r,d),o[1]=Sp(e,a,f),s[0]=Mp(t,r,d),s[1]=Mp(e,a,f)}function gr(t,e,n,i,r,a,o,s,l){var h=oe,u=se,c=Math.abs(r-a);if(1e-4>c%Cp&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Dp[0]=Tp(r)*n+t,Dp[1]=Ip(r)*i+e,Ap[0]=Tp(a)*n+t,Ap[1]=Ip(a)*i+e,h(s,Dp,Ap),u(l,Dp,Ap),r%=Cp,0>r&&(r+=Cp),a%=Cp,0>a&&(a+=Cp),r>a&&!o?a+=Cp:a>r&&o&&(r+=Cp),o){var d=a;a=r,r=d}for(var f=0;a>f;f+=Math.PI/2)f>r&&(kp[0]=Tp(f)*n+t,kp[1]=Ip(f)*i+e,h(s,kp,s),u(l,kp,l))}function vr(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,h=t;if(o>e+s&&o>i+s||e-s>o&&i-s>o||a>t+s&&a>n+s||t-s>a&&n-s>a)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),h=(t*i-n*e)/(t-n);var u=l*a-o+h,c=u*u/(l*l+1);return s/2*s/2>=c}function mr(t,e,n,i,r,a,o,s,l,h,u){if(0===l)return!1;var c=l;if(u>e+c&&u>i+c&&u>a+c&&u>s+c||e-c>u&&i-c>u&&a-c>u&&s-c>u||h>t+c&&h>n+c&&h>r+c&&h>o+c||t-c>h&&n-c>h&&r-c>h&&o-c>h)return!1;var d=rr(t,e,n,i,r,a,o,s,h,u,null);return c/2>=d}function yr(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var h=o;if(l>e+h&&l>i+h&&l>a+h||e-h>l&&i-h>l&&a-h>l||s>t+h&&s>n+h&&s>r+h||t-h>s&&n-h>s&&r-h>s)return!1;var u=ur(t,e,n,i,r,a,s,l,null);return h/2>=u}function xr(t){return t%=qp,0>t&&(t+=qp),t}function _r(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var h=o;s-=t,l-=e;var u=Math.sqrt(s*s+l*l);if(u-h>n||n>u+h)return!1;if(Math.abs(i-r)%Up<1e-4)return!0;if(a){var c=i;i=xr(r),r=xr(c)}else i=xr(i),r=xr(r);i>r&&(r+=Up);var d=Math.atan2(l,s);return 0>d&&(d+=Up),d>=i&&r>=d||d+Up>=i&&r>=d+Up}function wr(t,e,n,i,r,a){if(a>e&&a>i||e>a&&i>a)return 0;if(i===e)return 0;var o=e>i?1:-1,s=(a-e)/(i-e);(1===s||0===s)&&(o=e>i?.5:-.5);var l=s*(n-t)+t;return l>r?o:0}function br(t,e){return Math.abs(t-e)<$p}function Sr(){var t=Qp[0];Qp[0]=Qp[1],Qp[1]=t}function Mr(t,e,n,i,r,a,o,s,l,h){if(h>e&&h>i&&h>a&&h>s||e>h&&i>h&&a>h&&s>h)return 0;var u=er(e,i,a,s,h,Kp);if(0===u)return 0;for(var c,d,f=0,p=-1,g=0;u>g;g++){var v=Kp[g],m=0===v||1===v?.5:1,y=Ji(t,n,r,o,v);l>y||(0>p&&(p=nr(e,i,a,s,Qp),Qp[1]<Qp[0]&&p>1&&Sr(),c=Ji(e,i,a,s,Qp[0]),p>1&&(d=Ji(e,i,a,s,Qp[1]))),f+=2==p?v<Qp[0]?e>c?m:-m:v<Qp[1]?c>d?m:-m:d>s?m:-m:v<Qp[0]?e>c?m:-m:c>s?m:-m)}return f}function Ir(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||e>s&&i>s&&a>s)return 0;var l=sr(e,i,a,s,Kp);if(0===l)return 0;var h=lr(e,i,a);if(h>=0&&1>=h){for(var u=0,c=ar(e,i,a,h),d=0;l>d;d++){var f=0===Kp[d]||1===Kp[d]?.5:1,p=ar(t,n,r,Kp[d]);o>p||(u+=Kp[d]<h?e>c?f:-f:c>a?f:-f)}return u}var f=0===Kp[0]||1===Kp[0]?.5:1,p=ar(t,n,r,Kp[0]);return o>p?0:e>a?f:-f}function Tr(t,e,n,i,r,a,o,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);Kp[0]=-l,Kp[1]=l;var h=Math.abs(i-r);if(1e-4>h)return 0;if(1e-4>h%Zp){i=0,r=Zp;var u=a?1:-1;return o>=Kp[0]+t&&o<=Kp[1]+t?u:0}if(a){var l=i;i=xr(r),r=xr(l)}else i=xr(i),r=xr(r);i>r&&(r+=Zp);for(var c=0,d=0;2>d;d++){var f=Kp[d];if(f+t>o){var p=Math.atan2(s,f),u=a?1:-1;0>p&&(p=Zp+p),(p>=i&&r>=p||p+Zp>=i&&r>=p+Zp)&&(p>Math.PI/2&&p<1.5*Math.PI&&(u=-u),c+=u)}}return c}function Cr(t,e,n,i,r){for(var a=0,o=0,s=0,l=0,h=0,u=0;u<t.length;){var c=t[u++];switch(c===Yp.M&&u>1&&(n||(a+=wr(o,s,l,h,i,r))),1==u&&(o=t[u],s=t[u+1],l=o,h=s),c){case Yp.M:l=t[u++],h=t[u++],o=l,s=h;break;case Yp.L:if(n){if(vr(o,s,t[u],t[u+1],e,i,r))return!0}else a+=wr(o,s,t[u],t[u+1],i,r)||0;o=t[u++],s=t[u++];break;case Yp.C:if(n){if(mr(o,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else a+=Mr(o,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],i,r)||0;o=t[u++],s=t[u++];break;case Yp.Q:if(n){if(yr(o,s,t[u++],t[u++],t[u],t[u+1],e,i,r))return!0}else a+=Ir(o,s,t[u++],t[u++],t[u],t[u+1],i,r)||0;o=t[u++],s=t[u++];break;case Yp.A:var d=t[u++],f=t[u++],p=t[u++],g=t[u++],v=t[u++],m=t[u++],y=(t[u++],1-t[u++]),x=Math.cos(v)*p+d,_=Math.sin(v)*g+f;u>1?a+=wr(o,s,x,_,i,r):(l=x,h=_);var w=(i-d)*g/p+d;if(n){if(_r(d,f,g,v,v+m,y,e,w,r))return!0}else a+=Tr(d,f,g,v,v+m,y,w,r);o=Math.cos(v+m)*p+d,s=Math.sin(v+m)*g+f;break;case Yp.R:l=o=t[u++],h=s=t[u++];var b=t[u++],S=t[u++],x=l+b,_=h+S;if(n){if(vr(l,h,x,h,e,i,r)||vr(x,h,x,_,e,i,r)||vr(x,_,l,_,e,i,r)||vr(l,_,l,h,e,i,r))return!0}else a+=wr(x,h,x,_,i,r),a+=wr(l,_,l,h,i,r);break;case Yp.Z:if(n){if(vr(o,s,l,h,e,i,r))return!0}else a+=wr(o,s,l,h,i,r);o=l,s=h}}return n||br(s,h)||(a+=wr(o,s,l,h,i,r)||0),0!==a}function Dr(t,e,n){return Cr(t,0,!1,e,n)}function Ar(t,e,n,i){return Cr(t,e,!0,n,i)}function kr(t){ri.call(this,t),this.path=null}function Pr(t,e,n,i,r,a,o,s,l,h,u){var c=l*(cg/180),d=ug(c)*(t-n)/2+hg(c)*(e-i)/2,f=-1*hg(c)*(t-n)/2+ug(c)*(e-i)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=lg(p),s*=lg(p));var g=(r===a?-1:1)*lg((o*o*s*s-o*o*f*f-s*s*d*d)/(o*o*f*f+s*s*d*d))||0,v=g*o*f/s,m=g*-s*d/o,y=(t+n)/2+ug(c)*v-hg(c)*m,x=(e+i)/2+hg(c)*v+ug(c)*m,_=pg([1,0],[(d-v)/o,(f-m)/s]),w=[(d-v)/o,(f-m)/s],b=[(-1*d-v)/o,(-1*f-m)/s],S=pg(w,b);fg(w,b)<=-1&&(S=cg),fg(w,b)>=1&&(S=0),0===a&&S>0&&(S-=2*cg),1===a&&0>S&&(S+=2*cg),u.addData(h,y,x,o,s,_,S,c,a)}function Lr(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/  /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<sg.length;e++)n=n.replace(new RegExp(sg[e],"g"),"|"+sg[e]);var i,r=n.split("|"),a=0,o=0,s=new jp,l=jp.CMD;for(e=1;e<r.length;e++){var h,u=r[e],c=u.charAt(0),d=0,f=u.slice(1).replace(/e,-/g,"e-").split(",");f.length>0&&""===f[0]&&f.shift();for(var p=0;p<f.length;p++)f[p]=parseFloat(f[p]);for(;d<f.length&&!isNaN(f[d])&&!isNaN(f[0]);){var g,v,m,y,x,_,w,b=a,S=o;switch(c){case"l":a+=f[d++],o+=f[d++],h=l.L,s.addData(h,a,o);break;case"L":a=f[d++],o=f[d++],h=l.L,s.addData(h,a,o);break;case"m":a+=f[d++],o+=f[d++],h=l.M,s.addData(h,a,o),c="l";break;case"M":a=f[d++],o=f[d++],h=l.M,s.addData(h,a,o),c="L";break;case"h":a+=f[d++],h=l.L,s.addData(h,a,o);break;case"H":a=f[d++],h=l.L,s.addData(h,a,o);break;case"v":o+=f[d++],h=l.L,s.addData(h,a,o);break;case"V":o=f[d++],h=l.L,s.addData(h,a,o);break;case"C":h=l.C,s.addData(h,f[d++],f[d++],f[d++],f[d++],f[d++],f[d++]),a=f[d-2],o=f[d-1];break;case"c":h=l.C,s.addData(h,f[d++]+a,f[d++]+o,f[d++]+a,f[d++]+o,f[d++]+a,f[d++]+o),a+=f[d-2],o+=f[d-1];break;case"S":g=a,v=o;var M=s.len(),I=s.data;i===l.C&&(g+=a-I[M-4],v+=o-I[M-3]),h=l.C,b=f[d++],S=f[d++],a=f[d++],o=f[d++],s.addData(h,g,v,b,S,a,o);break;case"s":g=a,v=o;var M=s.len(),I=s.data;i===l.C&&(g+=a-I[M-4],v+=o-I[M-3]),h=l.C,b=a+f[d++],S=o+f[d++],a+=f[d++],o+=f[d++],s.addData(h,g,v,b,S,a,o);break;case"Q":b=f[d++],S=f[d++],a=f[d++],o=f[d++],h=l.Q,s.addData(h,b,S,a,o);break;case"q":b=f[d++]+a,S=f[d++]+o,a+=f[d++],o+=f[d++],h=l.Q,s.addData(h,b,S,a,o);break;case"T":g=a,v=o;var M=s.len(),I=s.data;i===l.Q&&(g+=a-I[M-4],v+=o-I[M-3]),a=f[d++],o=f[d++],h=l.Q,s.addData(h,g,v,a,o);break;case"t":g=a,v=o;var M=s.len(),I=s.data;i===l.Q&&(g+=a-I[M-4],v+=o-I[M-3]),a+=f[d++],o+=f[d++],h=l.Q,s.addData(h,g,v,a,o);break;case"A":m=f[d++],y=f[d++],x=f[d++],_=f[d++],w=f[d++],b=a,S=o,a=f[d++],o=f[d++],h=l.A,Pr(b,S,a,o,_,w,m,y,x,h,s);break;case"a":m=f[d++],y=f[d++],x=f[d++],_=f[d++],w=f[d++],b=a,S=o,a+=f[d++],o+=f[d++],h=l.A,Pr(b,S,a,o,_,w,m,y,x,h,s)}}("z"===c||"Z"===c)&&(h=l.Z,s.addData(h)),i=h}return s.toStatic(),s}function Or(t,e){var n=Lr(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;n.rebuildPath(e)}},e.applyTransform=function(t){og(n,t),this.dirty(!0)},e}function Br(t,e){return new kr(Or(t,e))}function Er(t,e){return kr.extend(Or(t,e))}function zr(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var a=t[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var o=new kr(e);return o.createPathProxy(),o.buildPath=function(t){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e)},o}function Rr(t,e,n,i,r,a,o){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*o+(-3*(e-n)-2*s-l)*a+s*r+e}function Nr(t,e,n){var i=e.points,r=e.smooth;if(i&&i.length>=2){if(r&&"spline"!==r){var a=bg(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;(n?o:o-1)>s;s++){var l=a[2*s],h=a[2*s+1],u=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===r&&(i=wg(i,n)),t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;c>s;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}function Fr(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?tr:Ji)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?tr:Ji)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?or:ar)(t.x1,t.cpx1,t.x2,e),(n?or:ar)(t.y1,t.cpy1,t.y2,e)]}function Hr(t){ri.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function Gr(t){return kr.extend(t)}function Vr(t,e){return Er(t,e)}function Wr(t,e,n,i){var r=Br(t,e),a=r.getBoundingRect();return n&&("center"===i&&(n=jr(n,a)),qr(r,n)),r}function Xr(t,e,n){var i=new ai({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(jr(e,r))}}});return i}function jr(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}function qr(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function Ur(t){var e=t.shape,n=t.style.lineWidth;return Eg(2*e.x1)===Eg(2*e.x2)&&(e.x1=e.x2=Zr(e.x1,n,!0)),Eg(2*e.y1)===Eg(2*e.y2)&&(e.y1=e.y2=Zr(e.y1,n,!0)),t}function Yr(t){var e=t.shape,n=t.style.lineWidth,i=e.x,r=e.y,a=e.width,o=e.height;return e.x=Zr(e.x,n,!0),e.y=Zr(e.y,n,!0),e.width=Math.max(Zr(i+a,n,!1)-e.x,0===a?0:1),e.height=Math.max(Zr(r+o,n,!1)-e.y,0===o?0:1),t}function Zr(t,e,n){var i=Eg(2*t);return(i+Eg(e))%2===0?i/2:(i+(n?1:-1))/2}function $r(t){return null!=t&&"none"!=t}function Kr(t){return"string"==typeof t?Re(t,-.1):t}function Qr(t){if(t.__hoverStlDirty){var e=t.style.stroke,n=t.style.fill,i=t.__hoverStl;i.fill=i.fill||($r(n)?Kr(n):null),i.stroke=i.stroke||($r(e)?Kr(e):null);var r={};for(var a in i)null!=i[a]&&(r[a]=t.style[a]);t.__normalStl=r,t.__hoverStlDirty=!1}}function Jr(t){if(!t.__isHover){if(Qr(t),t.useHoverLayer)t.__zr&&t.__zr.addHover(t,t.__hoverStl);else{var e=t.style,n=e.insideRollbackOpt;n&&ma(e),e.extendFrom(t.__hoverStl),n&&(va(e,e.insideOriginalTextPosition,n),null==e.textFill&&(e.textFill=n.autoColor)),t.dirty(!1),t.z2+=1}t.__isHover=!0}}function ta(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function ea(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&Jr(t)}):Jr(t)}function na(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&ta(t)}):ta(t)}function ia(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&Qr(t)}function ra(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&ea(this)}function aa(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&na(this)}function oa(){this.__isEmphasis=!0,ea(this)}function sa(){this.__isEmphasis=!1,na(this)}function la(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&ia(t,e)}):ia(t,e),t.on("mouseover",ra).on("mouseout",aa),t.on("emphasis",oa).on("normal",sa)}function ha(t,e,n,i,r,a,o){r=r||Ng;var s,l=r.labelFetcher,h=r.labelDataIndex,u=r.labelDimIndex,c=n.getShallow("show"),d=i.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(h,"normal",null,u)),null==s&&(s=w(r.defaultText)?r.defaultText(h,r):r.defaultText));var f=c?s:null,p=d?A(l?l.getFormattedLabel(h,"emphasis",null,u):null,s):null;(null!=f||null!=p)&&(ua(t,n,a,r),ua(e,i,o,r,!0)),t.text=f,e.text=p}function ua(t,e,n,i,r){return da(t,e,i,r),n&&o(t,n),t.host&&t.host.dirty&&t.host.dirty(!1),t}function ca(t,e,n){var i,r={isRectText:!0};n===!1?i=!0:r.autoColor=n,da(t,e,r,i),t.host&&t.host.dirty&&t.host.dirty(!1)}function da(t,e,n,i){if(n=n||Ng,n.isRectText){var r=e.getShallow("position")||(i?null:"inside");"outside"===r&&(r="top"),t.textPosition=r,t.textOffset=e.getShallow("offset");var a=e.getShallow("rotate");null!=a&&(a*=Math.PI/180),t.textRotation=a,t.textDistance=A(e.getShallow("distance"),i?null:5)}var o,s=e.ecModel,l=s&&s.option.textStyle,h=fa(e);if(h){o={};for(var u in h)if(h.hasOwnProperty(u)){var c=e.getModel(["rich",u]);pa(o[u]={},c,l,n,i)}}return t.rich=o,pa(t,e,l,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),t}function fa(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Ng).rich;if(n){e=e||{};for(var i in n)n.hasOwnProperty(i)&&(e[i]=1)}t=t.parentModel}return e}function pa(t,e,n,i,r,a){if(n=!r&&n||Ng,t.textFill=ga(e.getShallow("color"),i)||n.color,t.textStroke=ga(e.getShallow("textBorderColor"),i)||n.textBorderColor,t.textStrokeWidth=A(e.getShallow("textBorderWidth"),n.textBorderWidth),!r){if(a){var o=t.textPosition;t.insideRollback=va(t,o,i),t.insideOriginalTextPosition=o,t.insideRollbackOpt=i}null==t.textFill&&(t.textFill=i.autoColor)}t.fontStyle=e.getShallow("fontStyle")||n.fontStyle,t.fontWeight=e.getShallow("fontWeight")||n.fontWeight,t.fontSize=e.getShallow("fontSize")||n.fontSize,t.fontFamily=e.getShallow("fontFamily")||n.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),a&&i.disableBox||(t.textBackgroundColor=ga(e.getShallow("backgroundColor"),i),t.textPadding=e.getShallow("padding"),t.textBorderColor=ga(e.getShallow("borderColor"),i),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||n.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||n.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||n.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function ga(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function va(t,e,n){var i,r=n.useInsideStyle;return null==t.textFill&&r!==!1&&(r===!0||n.isRectText&&e&&"string"==typeof e&&e.indexOf("inside")>=0)&&(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=n.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),i}function ma(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth)}function ya(t,e){var n=e||e.getModel("textStyle");return B([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function xa(t,e,n,i,r,a){"function"==typeof r&&(a=r,r=null);var o=i&&i.isAnimationEnabled();if(o){var s=t?"Update":"",l=i.getShallow("animationDuration"+s),h=i.getShallow("animationEasing"+s),u=i.getShallow("animationDelay"+s);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(n,l,u||0,h,a,!!a):(e.stopAnimation(),e.attr(n),a&&a())}else e.stopAnimation(),e.attr(n),a&&a()}function _a(t,e,n,i,r){xa(!0,t,e,n,i,r)}function wa(t,e,n,i,r){xa(!1,t,e,n,i,r)}function ba(t,e){for(var n=pe([]);t&&t!==e;)ve(n,t.getLocalTransform(),n),t=t.parent;return n}function Sa(t,e,n){return e&&!d(e)&&(e=Ad.getLocalTransform(e)),n&&(e=_e([],e)),ae([],t,e)}function Ma(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Sa(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Ia(t,e,n){function i(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:W(t.position),rotation:t.rotation};return t.shape&&(e.shape=o({},t.shape)),e}if(t&&e){var a=i(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=r(t);t.attr(r(e)),_a(t,i,n,t.dataIndex)}}})}}function Ta(t,e){return p(t,function(t){var n=t[0];n=zg(n,e.x),n=Rg(n,e.x+e.width);var i=t[1];return i=zg(i,e.y),i=Rg(i,e.y+e.height),[n,i]})}function Ca(t,e){var n=zg(t.x,e.x),i=Rg(t.x+t.width,e.x+e.width),r=zg(t.y,e.y),a=Rg(t.y+t.height,e.y+e.height);return i>=n&&a>=r?{x:n,y:r,width:i-n,height:a-r}:void 0}function Da(t,e,n){e=o({rectHover:!0},e);var i=e.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(i.image=t.slice(8),s(i,n),new ai(e)):Wr(t.replace("path://",""),e,n,"center"):void 0}function Aa(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function ka(t,e,n){for(var i=0;i<e.length&&(!e[i]||(t=t&&"object"==typeof t?t[e[i]]:null,null!=t));i++);return null==t&&n&&(t=n.get(e)),t}function Pa(t,e){var n=qg(t).getParent;return n?n.call(t,e):t.parentModel}function La(t){return[t||"",Ug++,Math.random().toFixed(5)].join("_")}function Oa(t){var e={};return t.registerSubTypeDefaulter=function(t,n){t=Xi(t),e[t.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=Xi(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r},t}function Ba(t,e){function n(t){var n={},a=[];return f(t,function(o){var s=i(n,o),l=s.originalDeps=e(o),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&a.push(o),f(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);h(e.successor,t)<0&&e.successor.push(o)})}),{graph:n,noEntryList:a}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return f(t,function(t){h(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function a(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function o(t){u[t]=!0,a(t)}if(t.length){var s=n(e),l=s.graph,h=s.noEntryList,u={};for(f(t,function(t){u[t]=!0});h.length;){var c=h.pop(),d=l[c],p=!!u[c];p&&(i.call(r,c,d.originalDeps.slice()),delete u[c]),f(d.successor,p?o:a)}f(u,function(){throw new Error("Circle dependency may exists")})}}}function Ea(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function za(t,e,n,i){var r=e[1]-e[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*a+n[0]}function Ra(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?Ea(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Na(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Fa(t){return t.sort(function(t,e){return t-e}),t}function Ha(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ga(t){var e=t.toString(),n=e.indexOf("e");if(n>0){var i=+e.slice(n+1);return 0>i?-i:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function Va(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function Wa(t,e,n){if(!t[e])return 0;var i=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),a=p(t,function(t){return(isNaN(t)?0:t)/i*r*100}),o=100*r,s=p(a,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),h=p(a,function(t,e){return t-s[e]});o>l;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,f=h.length;f>d;++d)h[d]>u&&(u=h[d],c=d);++s[c],h[c]=0,++l}return s[e]/r}function Xa(t){var e=2*Math.PI;return(t%e+e)%e}function ja(t){return t>-Yg&&Yg>t}function qa(t){if(t instanceof Date)return t;if("string"==typeof t){var e=$g.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return new Date(null==t?0/0:Math.round(t))}function Ua(t){return Math.pow(10,Ya(t))}function Ya(t){return Math.floor(Math.log(t)/Math.LN10)}function Za(t,e){var n,i=Ya(t),r=Math.pow(10,i),a=t/r;return n=e?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,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function $a(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var a=t[r].interval,o=t[r].close,s=0;2>s;s++)a[s]<=n&&(a[s]=n,o[s]=s?1:1-i),n=a[s],i=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t}function Ka(t){return t-parseFloat(t)>=0}function Qa(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function Ja(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function to(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function eo(t,e,n){_(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var o=Jg[a];t=t.replace(tv(o),tv(o,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var h=e[s][r[l]];t=t.replace(tv(Jg[l],s),n?to(h):h)}return t}function no(t,e,n){return f(e,function(e,i){t=t.replace("{"+i+"}",n?to(e):e)}),t}function io(t,e){t=b(t)?{color:t,extraCssText:e}:t||{};var n=t.color,i=t.type,e=t.extraCssText;return n?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+to(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+to(n)+";"+(e||"")+'"></span>':""}function ro(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=qa(e),r=n?"UTC":"",a=i["get"+r+"FullYear"](),o=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),h=i["get"+r+"Minutes"](),u=i["get"+r+"Seconds"]();return t=t.replace("MM",ev(o)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",ev(s)).replace("d",s).replace("hh",ev(l)).replace("h",l).replace("mm",ev(h)).replace("m",h).replace("ss",ev(u)).replace("s",u)}function ao(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function oo(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,h){var u,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(h+1),g=p&&p.getBoundingRect();if("horizontal"===t){var v=f.width+(g?-g.x+f.x:0);u=a+v,u>i||l.newline?(a=0,u=v,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(g?-g.y+f.y:0);c=o+m,c>r||l.newline?(a+=s+n,o=0,c=m,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===t?a=u+n:o=c+n)})}function so(t,e,n){n=Qg(n||0);var i=e.width,r=e.height,a=Ra(t.left,i),o=Ra(t.top,r),s=Ra(t.right,i),l=Ra(t.bottom,r),h=Ra(t.width,i),u=Ra(t.height,r),c=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(h)&&(h=i-s-d-a),isNaN(u)&&(u=r-l-c-o),null!=f&&(isNaN(h)&&isNaN(u)&&(f>i/r?h=.8*i:u=.8*r),isNaN(h)&&(h=f*u),isNaN(u)&&(u=h/f)),isNaN(a)&&(a=i-s-h-d),isNaN(o)&&(o=r-l-u-c),t.left||t.right){case"center":a=i/2-h/2-n[3];break;case"right":a=i-h-d}switch(t.top||t.bottom){case"middle":case"center":o=r/2-u/2-n[0];break;case"bottom":o=r-u-c}a=a||0,o=o||0,isNaN(h)&&(h=i-d-a-(s||0)),isNaN(u)&&(u=r-c-o-(l||0));var p=new rn(a+n[3],o+n[0],h,u);return p.margin=n,p
  }function lo(t,e,n){function i(n,i){var o={},l=0,h={},u=0,c=2;if(av(n,function(e){h[e]=t[e]}),av(n,function(t){r(e,t)&&(o[t]=h[t]=e[t]),a(o,t)&&l++,a(h,t)&&u++}),s[i])return a(e,n[1])?h[n[2]]=null:a(e,n[2])&&(h[n[1]]=null),h;if(u!==c&&l){if(l>=c)return o;for(var d=0;d<n.length;d++){var f=n[d];if(!r(o,f)&&r(t,f)){o[f]=t[f];break}}return o}return h}function r(t,e){return t.hasOwnProperty(e)}function a(t,e){return null!=t[e]&&"auto"!==t[e]}function o(t,e,n){av(t,function(t){e[t]=n[t]})}!S(n)&&(n={});var s=n.ignoreSize;!_(s)&&(s=[s,s]);var l=i(sv[0],0),h=i(sv[1],1);o(sv[0],t,l),o(sv[1],t,h)}function ho(t){return uo({},t)}function uo(t,e){return e&&t&&av(ov,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function co(t){var e=[];return f(cv.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=p(e,function(t){return Xi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function fo(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function po(t){var e=t.get("coordinateSystem"),n={coordSysName:e,coordSysDims:[],axisMap:N(),categoryAxisMap:N()},i=vv[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function go(t){return"category"===t.get("type")}function vo(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===_v?{}:[]),this.sourceFormat=t.sourceFormat||wv,this.seriesLayoutBy=t.seriesLayoutBy||Sv,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&N(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function mo(t){return Iv(t).source}function yo(t){Iv(t).datasetMap=N()}function xo(t){var e=t.option,n=e.data,i=I(n)?bv:mv,r=!1,a=e.seriesLayoutBy,o=e.sourceHeader,s=e.dimensions,l=Io(t);if(l){var h=l.option;n=h.source,i=Iv(l).sourceFormat,r=!0,a=a||h.seriesLayoutBy,null==o&&(o=h.sourceHeader),s=s||h.dimensions}var u=_o(n,i,a,o,s),c=e.encode;!c&&l&&(c=Mo(t,l,n,i,a,u)),Iv(t).source=new vo({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:c})}function _o(t,e,n,i,r){if(!t)return{dimensionsDefine:wo(r)};var a,o,s;if(e===yv)"auto"===i||null==i?bo(function(t){null!=t&&"-"!==t&&(b(t)?null==o&&(o=1):o=0)},n,t,10):o=i?1:0,r||1!==o||(r=[],bo(function(t,e){r[e]=null!=t?t:""},n,t)),a=r?r.length:n===Mv?t.length:t[0]?t[0].length:null;else if(e===xv)r||(r=So(t),s=!0);else if(e===_v)r||(r=[],s=!0,f(t,function(t,e){r.push(e)}));else if(e===mv){var l=Oi(t[0]);a=_(l)&&l.length||1}var h;return s&&f(r,function(t,e){"name"===(S(t)?t.name:t)&&(h=e)}),{startIndex:o,dimensionsDefine:wo(r),dimensionsDetectCount:a,potentialNameDimIndex:h}}function wo(t){if(t){var e=N();return p(t,function(t){if(t=o({},S(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t})}}function bo(t,e,n,i){if(null==i&&(i=1/0),e===Mv)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var a=n[0]||[],r=0;r<a.length&&i>r;r++)t(a[r],r)}function So(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return f(e,function(t,e){i.push(e)}),i}}function Mo(t,e,n,i,r,a){var o=po(t),s={},l=[],h=[],u=t.subType,c=N(["pie","map","funnel"]),d=N(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(o&&null!=d.get(u)){var p=t.ecModel,g=Iv(p).datasetMap,v=e.uid+"_"+r,m=g.get(v)||g.set(v,{categoryWayDim:1,valueWayDim:0});f(o.coordSysDims,function(t){if(null==o.firstCategoryDimIndex){var e=m.valueWayDim++;s[t]=e,h.push(e)}else if(o.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=m.categoryWayDim++;s[t]=e,h.push(e)}})}else if(null!=c.get(u)){for(var y,x=0;5>x&&null==y;x++)Co(n,i,r,a.dimensionsDefine,a.startIndex,x)||(y=x);if(null!=y){s.value=y;var _=a.potentialNameDimIndex||Math.max(y-1,0);h.push(_),l.push(_)}}return l.length&&(s.itemName=l),h.length&&(s.seriesName=h),s}function Io(t){var e=t.option,n=e.data;return n?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function To(t,e){return Co(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Co(t,e,n,i,r,a){function o(t){return null!=t&&isFinite(t)&&""!==t?!1:b(t)&&"-"!==t?!0:void 0}var s,l=5;if(I(t))return!1;var h;if(i&&(h=i[a],h=S(h)?h.name:h),e===yv)if(n===Mv){for(var u=t[a],c=0;c<(u||[]).length&&l>c;c++)if(null!=(s=o(u[r+c])))return s}else for(var c=0;c<t.length&&l>c;c++){var d=t[r+c];if(d&&null!=(s=o(d[a])))return s}else if(e===xv){if(!h)return;for(var c=0;c<t.length&&l>c;c++){var f=t[c];if(f&&null!=(s=o(f[h])))return s}}else if(e===_v){if(!h)return;var u=t[h];if(!u||I(u))return!1;for(var c=0;c<u.length&&l>c;c++)if(null!=(s=o(u[c])))return s}else if(e===mv)for(var c=0;c<t.length&&l>c;c++){var f=t[c],p=Oi(f);if(!_(p))return!1;if(null!=(s=o(p[a])))return s}return!1}function Do(t,e){if(e){var n=e.seiresIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Ao(t,e){f(e,function(e,n){cv.hasClass(n)||("object"==typeof e?t[n]=t[n]?r(t[n],e,!1):i(e):null==t[n]&&(t[n]=e))})}function ko(t){t=t,this.option={},this.option[Tv]=1,this._componentsMap=N({series:[]}),this._seriesIndices,this._seriesIndicesMap,Ao(t,this._theme.option),r(t,fv,!1),this.mergeOption(t)}function Po(t,e){_(e)||(e=e?[e]:[]);var n={};return f(e,function(e){n[e]=(t.get(e)||[]).slice()}),n}function Lo(t,e,n){var i=e.type?e.type:n?n.subType:cv.determineSubType(t,e);return i}function Oo(t,e){t._seriesIndicesMap=N(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function Bo(t,e){return e.hasOwnProperty("subType")?v(t,function(t){return t.subType===e.subType}):t}function Eo(t){f(Dv,function(e){this[e]=y(t[e],t)},this)}function zo(){this._coordinateSystems=[]}function Ro(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function No(t,e,n){var i,r,a=[],o=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;kv(l,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})}return r||(r=t),r.timeline||(r.timeline=s),kv([r].concat(a).concat(p(o,function(t){return t.option})),function(t){kv(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:a,mediaDefault:i,mediaList:o}}function Fo(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return f(t,function(t,e){var n=e.match(Bv);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();Ho(i[o],t,a)||(r=!1)}}),r}function Ho(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function Go(t,e){return t.join(",")===e.join(",")}function Vo(t,e){e=e||{},kv(e,function(e,n){if(null!=e){var i=t[n];if(cv.hasClass(n)){e=Pi(e),i=Pi(i);var r=Ei(i,e);t[n]=Lv(r,function(t){return t.option&&t.exist?Ov(t.exist,t.option,!0):t.exist||t.option})}else t[n]=Ov(i,e,!0)}})}function Wo(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Rv.length;i>n;n++){var a=Rv[n],o=e.normal,s=e.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?r(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?r(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function Xo(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,s(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function jo(t){Xo(t,"itemStyle"),Xo(t,"lineStyle"),Xo(t,"areaStyle"),Xo(t,"label"),Xo(t,"labelLine"),Xo(t,"upperLabel"),Xo(t,"edgeLabel")}function qo(t){var e=zv(t)&&t.textStyle;if(e)for(var n=0,i=rp.length;i>n;n++){var r=rp[n];e.hasOwnProperty(r)&&(t[r]=e[r])}}function Uo(t){t&&(jo(t),qo(t.label),t.emphasis&&qo(t.emphasis.label))}function Yo(t){if(zv(t)){Wo(t),jo(t),qo(t.label),qo(t.upperLabel),qo(t.edgeLabel),t.emphasis&&(qo(t.emphasis.label),qo(t.emphasis.upperLabel),qo(t.emphasis.edgeLabel));var e=t.markPoint;e&&(Wo(e),Uo(e));var n=t.markLine;n&&(Wo(n),Uo(n));var i=t.markArea;i&&Uo(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!I(a))for(var o=0;o<a.length;o++)Uo(a[o]);f(t.categories,function(t){jo(t)})}if(r&&!I(r))for(var o=0;o<r.length;o++)Uo(r[o]);var e=t.markPoint;if(e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Uo(s[o]);var n=t.markLine;if(n&&n.data)for(var l=n.data,o=0;o<l.length;o++)_(l[o])?(Uo(l[o][0]),Uo(l[o][1])):Uo(l[o]);"gauge"===t.type?(qo(t,"axisLabel"),qo(t,"title"),qo(t,"detail")):"treemap"===t.type&&(Xo(t.breadcrumb,"itemStyle"),f(t.levels,function(t){jo(t)}))}}function Zo(t){return _(t)?t:t?[t]:[]}function $o(t){return(_(t)?t[0]:t)||{}}function Ko(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&(n=n&&n[e[i]],null!=n);i++);return n}function Qo(t,e,n,i){e=e.split(",");for(var r,a=t,o=0;o<e.length-1;o++)r=e[o],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[e[o]])&&(a[e[o]]=n)}function Jo(t){f(Fv,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function ts(t,e){vo.isInstance(t)||(t=vo.seriesDataToSource(t)),this._source=t;var n=this._data=t.data,i=t.sourceFormat;i===bv&&(this._offset=0,this._dimSize=e,this._data=n);var r=Wv[i===yv?i+"_"+t.seriesLayoutBy:i];o(this,r)}function es(){return this._data.length}function ns(t){return this._data[t]}function is(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function rs(t,e,n){return null!=n?t[n]:t}function as(t,e,n,i){return os(t[i],this._dimensionInfos[e])}function os(t,e){var n=e&&e.type;if("ordinal"===n){var i=e&&e.ordinalMeta;return i?i.parseAndCollect(t):t}return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+qa(t)),null==t||""===t?0/0:+t}function ss(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r,a,o=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(n);return s&&(r=s.name,a=s.index),Xv[o](i,e,a,r)}}}function ls(t,e,n){if(t){var i=t.getProvider().getSource().sourceFormat;if(i===mv||i===xv){var r=t.getRawDataItem(e);return i!==mv||S(r)||(r=null),r?r[n]:void 0}}}function hs(t){return new us(t)}function us(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function cs(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,t._progress=!e&&t._reset&&t._reset(t.context);var n=t._downstream;n&&n.dirty()}function ds(t){var e=t.name;ip===e&&(t.name=fs(t)||e)}function fs(t){var e=t.getRawData(),n=e.mapDimension("seriesName",!0),i=[];return f(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function ps(t){return t.model.getRawData().count()}function gs(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),vs}function vs(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ms(t,e){f(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,x(ys,e))})}function ys(t){var e=xs(t);e&&e.setOutputEnd(this.count())}function xs(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function _s(){this.group=new nf,this.uid=La("viewChart"),this.renderTask=hs({plan:Ss,reset:Ms}),this.renderTask.context={view:this}}function ws(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;n<t.childCount();n++)ws(t.childAt(n),e)}function bs(t,e,n){var i=Ni(t,e);null!=i?f(Pi(i),function(e){ws(t.getItemGraphicEl(e),n)}):t.eachItemGraphicEl(function(t){ws(t,n)})}function Ss(t){return em(t.model)}function Ms(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.incrementalRender,o=t.view,s=r&&tm(r).updateMethod,l=a&&o.incrementalPrepareRender?"incrementalPrepareRender":s&&o[s]?s:"render";return o[l](e,n,i,r),a?Is:null}function Is(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}function Ts(t,e,n){function i(){u=(new Date).getTime(),c=null,t.apply(o,s||[])}var r,a,o,s,l,h=0,u=0,c=null;e=e||0;var d=function(){r=(new Date).getTime(),o=this,s=arguments;var t=l||e,d=l||n;l=null,a=r-(d?h:u)-t,clearTimeout(c),d?c=setTimeout(i,t):a>=0?i():c=setTimeout(i,-a),h=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function Cs(t,e,n,i){var r=t[e];if(r){var a=r[im]||r,o=r[am],s=r[rm];if(s!==n||o!==i){if(null==n||!i)return t[e]=a;r=t[e]=Ts(a,n,"debounce"===i),r[im]=a,r[am]=i,r[rm]=n}return r}}function Ds(t,e){this.ecInstance=t,this.api=e,this.unfinished,this._stageTaskMap=N()}function As(t,e,n,i,r){function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var o;f(e,function(e){if(!r.visualType||r.visualType===e.visualType){var s=t._stageTaskMap.get(e.uid),l=s.seriesTaskMap,h=s.overallTask;if(h){var u,c=h.agentStubMap;c.each(function(t){a(r,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),dm(h,i);var d=t.getPerformArgs(h,r.block);c.each(function(t){t.perform(d)}),o|=h.perform(d)}else l&&l.each(function(s){a(r,s)&&s.dirty();var l=t.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&n.isSeriesFiltered(s.context.model),dm(s,i),o|=s.perform(l)})}}),t.unfinished|=o}function ks(t,e,n,i,r){function a(n){var a=n.uid,s=o.get(a)||o.set(a,hs({plan:zs,reset:Rs,count:Fs}));s.context={model:n,ecModel:i,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Hs(t,n,s)}var o=n.seriesTaskMap||(n.seriesTaskMap=N()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(a):s?i.eachRawSeriesByType(s,a):l&&l(i,r).each(a);var h=t._pipelineMap;o.each(function(t,e){h.get(e)||(t.dispose(),o.removeKey(e))})}function Ps(t,e,n,i,r){function a(e){var n=e.uid,i=s.get(n)||s.set(n,hs({reset:Os,onDirty:Es}));i.context={model:e,overallProgress:u,isOverallFilter:c},i.agent=o,i.__block=u,Hs(t,e,i)}var o=n.overallTask=n.overallTask||hs({reset:Ls});o.context={ecModel:i,api:r,overallReset:e.overallReset,scheduler:t};var s=o.agentStubMap=o.agentStubMap||N(),l=e.seriesType,h=e.getTargetSeries,u=!0,c=e.isOverallFilter;l?i.eachRawSeriesByType(l,a):h?h(i,r).each(a):(u=!1,f(i.getSeries(),a));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),s.removeKey(e))})}function Ls(t){t.overallReset(t.ecModel,t.api,t.payload)}function Os(t){return t.overallProgress&&Bs}function Bs(){this.agent.dirty(),this.getDownstream().dirty()}function Es(){this.agent&&this.agent.dirty()}function zs(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Rs(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Pi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length?Ns:void 0}function Ns(t,e){for(var n=e.data,i=e.resetDefines,r=0;r<i.length;r++){var a=i[r];if(a&&a.dataEach)for(var o=t.start;o<t.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(t,n)}}function Fs(t){return t.data.count()}function Hs(t,e,n){var i=e.uid,r=t._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function Gs(t){fm=null;try{t(pm,gm)}catch(e){}return fm}function Vs(t,e){for(var n in e.prototype)t[n]=H}function Ws(t){return function(e,n,i){e=e&&e.toLowerCase(),wd.prototype[t].call(this,e,n,i)}}function Xs(){wd.call(this)}function js(t,e,n){function r(t,e){return t.__prio-e.__prio}n=n||{},"string"==typeof e&&(e=Km[e]),this.id,this.group,this._dom=t;var a="canvas",o=this._zr=Ti(t,{renderer:n.renderer||a,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=Ts(y(o.flush,o),17);var e=i(e);e&&Gv(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new zo;var s=this._api=ul(this);this._scheduler=new Ds(this,s),wd.call(this),this._messageCenter=new Xs,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],dn($m,r),dn(Um,r),o.animation.on("frame",this._onframe,this),E(this)}function qs(t,e,n){var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();e=Hi(r,e);for(var o=0;o<a.length;o++){var s=a[o];if(s[t]&&null!=(i=s[t](r,e,n)))return i}}function Us(t){var e=t._model,n=t._scheduler;n.restorePipelines(e),n.prepareStageTasks(Um),n.prepareStageTasks($m),tl(t,"component",e,n),tl(t,"chart",e,n),n.plan()}function Ys(t,e,n,i,r){function a(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}var o=t._model;if(!i)return void Sm(t._componentsViews.concat(t._chartsViews),a);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r),o&&o.eachComponent(l,function(e){a(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function Zs(t,e,n){t[Nm]=!0,e&&Us(t),Wm.update.call(t),t[Nm]=!1,Qs.call(t,n),Js.call(t,n)}function $s(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})}function Ks(t,e){var n=t.type,i=t.escapeConnect,r=jm[n],a=r.actionInfo,l=(a.update||"update").split(":"),h=l.pop();l=null!=l[0]&&Tm(l[0]),this[Nm]=!0;var u=[t],c=!1;t.batch&&(c=!0,u=p(t.batch,function(e){return e=s(o({},e),t),e.batch=null,e}));var d,f=[],g="highlight"===n||"downplay"===n;Sm(u,function(t){d=r.action(t,this._model,this._api),d=d||o({},t),d.type=a.event||d.type,f.push(d),g?Ys(this,h,t,"series"):l&&Ys(this,h,t,l.main,l.sub)},this),"none"===h||g||l||(this[Hm]?(Us(this),Wm.update.call(this,t),this[Hm]=!1):Wm[h].call(this,t)),d=c?{type:a.event||n,escapeConnect:i,batch:f}:f[0],this[Nm]=!1,!e&&this._messageCenter.trigger(d.type,d)}function Qs(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Ks.call(this,n,t)}}function Js(t){!t&&this.trigger("updated")}function tl(t,e,n,i){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var u=Tm(t.type),c=a?Kv.getClass(u.main,u.sub):_s.getClass(u.sub);r=new c,r.init(n,h),s[e]=r,o.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!a&&i.prepareView(r,t,n,h)}for(var a="component"===e,o=a?t._componentsViews:t._chartsViews,s=a?t._componentsMap:t._chartsMap,l=t._zr,h=t._api,u=0;u<o.length;u++)o[u].__alive=!1;a?n.eachComponent(function(t,e){"series"!==t&&r(e)}):n.eachSeries(r);for(var u=0;u<o.length;){var c=o[u];c.__alive?u++:(!a&&c.renderTask.dispose(),l.remove(c.group),c.dispose(n,h),o.splice(u,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function el(t){var e={};t.eachSeries(function(t){var n=t.get("stack"),i=t.getData();if(n&&"list"===i.type){var r=e[n];e.hasOwnProperty(n)&&r&&(i.stackedOn=r),e[n]=i}})}function nl(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function il(t,e,n,i){rl(t,e,n,i),Sm(t._chartsViews,function(t){t.__alive=!1}),al(t,e,n,i),Sm(t._chartsViews,function(t){t.__alive||t.remove(e,n)})}function rl(t,e,n,i,r){Sm(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,n,i),hl(r,t)})}function al(t,e,n,i,r){var a,o=t._scheduler;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var s=n.renderTask;o.updatePayload(s,i),r&&r.get(e.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!e.get("silent"),hl(e,n),ll(e,n)}),o.unfinished|=a,sl(t._zr,e),lm(t._zr.dom,e)}function ol(t,e){Sm(Zm,function(n){n(t,e)})}function sl(t,e){var n=t.storage,i=0;n.traverse(function(t){t.isGroup||i++}),i>e.get("hoverLayerThreshold")&&!Jc.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function ll(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||t.style.blend!==n&&t.setStyle("blend",n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",n)})})}function hl(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function ul(t){var e=t._coordSysMgr;return o(new Eo(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}}})}function cl(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[a]=e}}var n=0,i=1,r=2,a="__connectUpdateStatus";Sm(qm,function(o,s){t._messageCenter.on(s,function(o){if(ty[t.group]&&t[a]!==n){if(o&&o.escapeConnect)return;var s=t.makeActionFromEvent(o),l=[];Sm(Jm,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,n),Sm(l,function(t){t[a]!==i&&t.dispatchAction(s)}),e(l,r)}})})}function dl(t,e,n){var i=vl(t);if(i)return i;var r=new js(t,e,n);return r.id="ec_"+ey++,Jm[r.id]=r,Vi(t,iy,r.id),cl(r),r}function fl(t){if(_(t)){var e=t;t=null,Sm(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ny++,Sm(e,function(e){e.group=t})}return ty[t]=!0,t}function pl(t){ty[t]=!1}function gl(t){"string"==typeof t?t=Jm[t]:t instanceof js||(t=vl(t)),t instanceof js&&!t.isDisposed()&&t.dispose()}function vl(t){return Jm[Wi(t,iy)]}function ml(t){return Jm[t]}function yl(t,e){Km[t]=e}function xl(t){Ym.push(t)}function _l(t,e){Cl(Um,t,e,km)}function wl(t){Zm.push(t)}function bl(t,e,n){"function"==typeof e&&(n=e,e="");var i=Im(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,bm(Gm.test(i)&&Gm.test(e)),jm[i]||(jm[i]={action:n,actionInfo:t}),qm[e]=i}function Sl(t,e){zo.register(t,e)}function Ml(t){var e=zo.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function Il(t,e){Cl($m,t,e,Lm,"layout")}function Tl(t,e){Cl($m,t,e,Bm,"visual")}function Cl(t,e,n,i,r){(Mm(e)||Im(e))&&(n=e,e=i);var a=Ds.wrapStageHandler(n,r);return a.__prio=e,a.__raw=n,t.push(a),a}function Dl(t,e){Qm[t]=e}function Al(t){return cv.extend(t)}function kl(t){return Kv.extend(t)}function Pl(t){return $v.extend(t)}function Ll(t){return _s.extend(t)}function Ol(t){n("createCanvas",t)}function Bl(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),ry[t]={geoJson:e,specialAreas:n}}function El(t){return ry[t]}function zl(t){return t}function Rl(t,e,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=n||zl,this._newKeyGetter=i||zl,this.context=r}function Nl(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}function Fl(t){var e={},n=e.encode={},i=e.coordDimMap=N(),r=[];f(t.dimensions,function(e){var a=t.getDimensionInfo(e),o=a.coordDim;if(o){var s=n[o];n.hasOwnProperty(o)||(s=n[o]=[]),s[a.coordDimIndex]=e,a.isSysCoord&&Gl(a.type)&&(r[0]=e),i.set(o,1)}sy.each(function(t,e){var i=n[e];n.hasOwnProperty(e)||(i=n[e]=[]);var r=a.otherDims[e];null!=r&&r!==!1&&(i[r]=a.name)})});var a=[];i.each(function(t,e){a=a.concat(n[e])}),e.dataDimsOnCoord=a;var o=n.label;o&&o.length&&(r=o.slice());var s=r.slice(),l=n.tooltip;return l&&l.length&&(s=l.slice()),n.defaultedLabel=r,n.defaultedTooltip=s,e}function Hl(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Gl(t){return!("ordinal"===t||"time"===t)}function Vl(t){var e=typeof uy.Uint32Array===hy?Array:uy.Uint32Array,n=typeof uy.Uint16Array===hy?Array:uy.Uint16Array;return t._rawCount>65535?e:n}function Wl(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Xl(t,e){f(fy.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods}function jl(t){return t}function ql(t){return t<this._count&&t>=0?this._indices[t]:-1}function Ul(t,e){var n=t._idList[e];return null==n&&(n=t._getIdFromStore(e)),null==n&&(n=cy+e),n}function Yl(t){return _(t)||(t=[t]),t}function Zl(t,e){var n=t.dimensions,i=new py(p(n,t.getDimensionInfo,t),t.hostModel);Xl(i,t);for(var r=i._storage={},a=t._storage,o=0;o<n.length;o++){var s=n[o];a[s]&&(r[s]=h(e,s)>=0?$l(a[s]):a[s])}return i}function $l(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=Wl(t[n]);return e}function Kl(t,e,n){function r(t,e,n){null!=sy.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}vo.isInstance(e)||(e=vo.seriesDataToSource(e)),n=n||{},t=(t||[]).slice();for(var a=(n.dimsDef||[]).slice(),l=N(n.encodeDef),h=N(),u=N(),c=[],d=Ql(e,t,a,n.dimCount),p=0;d>p;p++){var g=a[p]=o({},S(a[p])?a[p]:{name:a[p]}),v=g.name,m=c[p]={otherDims:{}};null!=v&&null==h.get(v)&&(m.name=m.displayName=v,h.set(v,p)),null!=g.type&&(m.type=g.type),null!=g.displayName&&(m.displayName=g.displayName)}l.each(function(t,e){t=Pi(t).slice();var n=l.set(e,[]);f(t,function(t,i){b(t)&&(t=h.get(t)),null!=t&&d>t&&(n[i]=t,r(c[t],e,i))})});var y=0;f(t,function(t){var e,t,n,a;if(b(t))e=t,t={};else{e=t.name;var o=t.ordinalMeta;t.ordinalMeta=null,t=i(t),t.ordinalMeta=o,n=t.dimsDef,a=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var h=Pi(l.get(e));if(!h.length)for(var u=0;u<(n&&n.length||1);u++){for(;y<c.length&&null!=c[y].coordDim;)y++;y<c.length&&h.push(y++)}f(h,function(i,o){var l=c[i];r(s(l,t),e,o),null==l.name&&n&&(l.name=l.displayName=n[o]),l.isSysCoord=!0,a&&s(l.otherDims,a)})});for(var x=n.extraPrefix||"value",_=0;d>_;_++){var m=c[_]=c[_]||{},w=m.coordDim;null==w&&(m.coordDim=Jl(x,u,n.extraFromZero),m.coordDimIndex=0,m.isExtraCoord=!0),null==m.name&&(m.name=Jl(m.coordDim,h)),null==m.type&&To(e,_,m.name)&&(m.type="ordinal")}return c}function Ql(t,e,n,i){return null==i&&(i=Math.max(t.dimensionsDetectCount||1,e.length,n.length),f(e,function(t){var e=t.dimsDef;e&&(i=Math.max(i,e.length))})),i}function Jl(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function th(t,e){vo.isInstance(t)||(t=vo.seriesDataToSource(t));var n,i=e.get("coordinateSystem"),r=zo.get(i),a=po(e);a&&(n=p(a.coordSysDims,function(t){var e={name:t},n=a.axisMap.get(t);if(n){var i=n.get("type");e.type=Hl(i),e.stackable=eh(i)}return e})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]);var o,s,l=my(t,{coordDimensions:n});a&&f(l,function(t,e){var n=t.coordDim,i=a.categoryAxisMap.get(n);i&&(null==o&&(o=e),t.ordinalMeta=i.getOrdinalMeta()),null!=t.otherDims.itemName&&(s=!0)}),s||null==o||(l[o].otherDims.itemName=0);var h=new py(l,e),u=null!=o&&nh(t)?function(t,e,n,i){return i===o?n:this.defaultDimValueGetter(t,e,n,i)}:null;return h.hasItemOption=!1,h.initData(t,null,u),h}function eh(t){return"category"!==t&&"time"!==t}function nh(t){if(t.sourceFormat===mv){var e=ih(t.data||[]);return null!=e&&!_(Oi(e))}}function ih(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function rh(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function ah(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function oh(t){return t._map||(t._map=N(t.categories))}function sh(t){return S(t)&&null!=t.value?t.value:t+""}function lh(t,e,n,i){var r={},a=t[1]-t[0],o=r.interval=Za(a/e,!0);null!=n&&n>o&&(o=r.interval=n),null!=i&&o>i&&(o=r.interval=i);var s=r.intervalPrecision=hh(o),l=r.niceTickExtent=[wy(Math.ceil(t[0]/o)*o,s),wy(Math.floor(t[1]/o)*o,s)];return ch(l,t),r}function hh(t){return Ga(t)+2}function uh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ch(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),uh(t,0,e),uh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function dh(t,e,n,i){var r=[];if(!t)return r;var a=1e4;e[0]<n[0]&&r.push(e[0]);for(var o=n[0];o<=n[1]&&(r.push(o),o=wy(o+t,i),o!==r[r.length-1]);)if(r.length>a)return[];return e[1]>(r.length?r[r.length-1]:n[1])&&r.push(e[1]),r}function fh(t){return t.get("stack")||My+t.seriesIndex}function ph(t){return t.dim+t.index}function gh(t,e){var n=p(t,function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=i.getExtent(),a="category"===i.type?i.getBandWidth():Math.abs(r[1]-r[0])/e.count(),o=Ra(t.get("barWidth"),a),s=Ra(t.get("barMaxWidth"),a),l=t.get("barGap"),h=t.get("barCategoryGap");return{bandWidth:a,barWidth:o,barMaxWidth:s,barGap:l,barCategoryGap:h,axisKey:ph(i),stackId:fh(t)}});return vh(n,e)}function vh(t){var e={};f(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=r.stacks;e[n]=r;var o=t.stackId;a[o]||r.autoWidthCount++,a[o]=a[o]||{width:0,maxWidth:0};var s=t.barWidth;s&&!a[o].width&&(a[o].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(a[o].maxWidth=l);var h=t.barGap;null!=h&&(r.gap=h);var u=t.barCategoryGap;null!=u&&(r.categoryGap=u)});var n={};return f(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,a=Ra(t.categoryGap,r),o=Ra(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-a)/(l+(l-1)*o);h=Math.max(h,0),f(i,function(t){var e=t.maxWidth;e&&h>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),h=(s-a)/(l+(l-1)*o),h=Math.max(h,0);var u,c=0;f(i,function(t){t.width||(t.width=h),u=t,c+=t.width*(1+o)}),u&&(c-=u.width*o);var d=-c/2;f(i,function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+o)})}),n}function mh(t,e){var n=gh(v(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),i={},r={};e.eachSeriesByType(t,function(t){if("cartesian2d"===t.coordinateSystem.type){var e=t.getData(),a=t.coordinateSystem,o=a.getBaseAxis(),s=fh(t),l=n[ph(o)][s],h=l.offset,u=l.width,c=a.getOtherAxis(o),d=t.get("barMinHeight")||0,f=o.onZero?c.toGlobalCoord(c.dataToCoord(0)):c.getGlobalExtent()[0],p=[e.mapDimension("x"),e.mapDimension("y")],g=e.mapArray(p,function(t,e){return a.dataToPoint([t,e])},!0);i[s]=i[s]||[],r[s]=r[s]||[],e.setLayout({offset:h,size:u}),e.each(e.mapDimension(c.dim),function(t,n){if(!isNaN(t)){i[s][n]||(i[s][n]={p:f,n:f},r[s][n]={p:f,n:f});var a,o,l,p,v=t>=0?"p":"n",m=g[n],y=i[s][n][v],x=r[s][n][v];c.isHorizontal()?(a=y,o=m[1]+h,l=m[0]-x,p=u,r[s][n][v]+=l,Math.abs(l)<d&&(l=(0>l?-1:1)*d),i[s][n][v]+=l):(a=m[0]+h,o=y,l=u,p=m[1]-x,r[s][n][v]+=p,Math.abs(p)<d&&(p=(0>=p?-1:1)*d),i[s][n][v]+=p),e.setItemLayout(n,{x:a,y:o,width:l,height:p})}},!0)}},this)}function yh(t,e){return Ny(t,Ry(e))}function xh(t,e){var n,i,r,a=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,h=null!=s,u=t.getExtent();"ordinal"===a?n=e.getCategories().length:(i=e.get("boundaryGap"),_(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=Ra(i[0],1),i[1]=Ra(i[1],1),r=u[1]-u[0]||Math.abs(u[0])),null==o&&(o="ordinal"===a?n?0:0/0:u[0]-i[0]*r),null==s&&(s="ordinal"===a?n?n-1:0/0:u[1]+i[1]*r),"dataMin"===o?o=u[0]:"function"==typeof o&&(o=o({min:u[0],max:u[1]})),"dataMax"===s?s=u[1]:"function"==typeof s&&(s=s({min:u[0],max:u[1]})),(null==o||!isFinite(o))&&(o=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(C(o)||C(s)),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),0>o&&0>s&&!h&&(s=0));var c=e.ecModel;if(c){var d=v(c.getSeriesByType("bar"),function(t){return t.getBaseAxis()===e.axis}).length>0;if(("time"===a||"interval"===a)&&d){var f=_h(o,s,e);o=f.min,s=f.max}}return[o,s]}function _h(t,e,n){var i=n.ecModel,r=n.axis.getExtent(),a=r[1]-r[0],o=gh(v(i.getSeriesByType("bar"),function(t){return!i.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),s=n.axis.dim+n.axis.index,l=o[s];if(void 0===l)return{min:t,max:e};var h=1/0;f(l,function(t){h=Math.min(t.offset,h)});var u=-1/0;f(l,function(t){u=Math.max(t.offset+t.width,u)});var c=Math.abs(h)+u,d=e-t,p=1-(h+u)/a,g=d/p-d;return e+=g*(u/c),t-=g*(h/c),{min:t,max:e}}function wh(t,e){var n=xh(t,e),i=null!=e.getMin(),r=null!=e.getMax(),a=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:a,fixMin:i,fixMax:r,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function bh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new _y(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new Sy;default:return(rh.getClass(e)||Sy).create(t)}}function Sh(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Mh(t,e,n,i,r){var a,o=0,s=0,l=(i-r)/180*Math.PI,h=1;e.length>40&&(h=Math.floor(e.length/40));
  for(var u=0;u<t.length;u+=h){var c=t[u],d=Sn(e[u],n,"center","top");d.x+=c*Math.cos(l),d.y+=c*Math.sin(l),d.width*=1.3,d.height*=1.3,a?a.intersect(d)?(s++,o=Math.max(o,s)):(a.union(d),s=0):a=d.clone()}return 0===o&&h>1?h:(o+1)*h-1}function Ih(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),p(i,e)):"function"==typeof e?p(r,function(n,i){return e(Th(t,n),i)},this):i}function Th(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Ch(t,e){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=t:this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff"):(n.fill&&(n.fill=t),n.stroke&&(n.stroke=t)),this.dirty(!1)}}function Dh(t,e,n,i,r,a,o){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?Xr(t.slice(8),new rn(e,n,i,r),o?"center":"cover"):0===t.indexOf("path://")?Wr(t.slice(7),{},new rn(e,n,i,r),o?"center":"cover"):new Qy({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=Ch,l.setColor(a),l}function Ah(t){return th(t.getSource(),t)}function kh(t,e){var n=e;Aa.isInstance(e)||(n=new Aa(e),c(n,Xy));var i=bh(n);return i.setExtent(t[0],t[1]),wh(i,n),i}function Ph(t){c(t,Xy)}function Lh(t,e){return Math.abs(t-e)<tx}function Oh(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=wr(r[0],r[1],o[0],o[1],e,n),r=o}var s=t[0];return Lh(r[0],s[0])&&Lh(r[1],s[1])||(i+=wr(r[0],r[1],s[0],s[1],e,n)),0!==i}function Bh(t,e,n){if(this.name=t,this.geometries=e,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}function Eh(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++)for(var r=n[i],a=r.geometry,o=a.coordinates,s=a.encodeOffsets,l=0;l<o.length;l++){var h=o[l];if("Polygon"===a.type)o[l]=zh(h,s[l],e);else if("MultiPolygon"===a.type)for(var u=0;u<h.length;u++){var c=h[u];h[u]=zh(c,s[l][u],e)}}return t.UTF8Encoding=!1,t}function zh(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function Rh(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function Nh(t){return this._axes[t]}function Fh(t){sx.call(this,t)}function Hh(t,e){return e.type||(e.data?"category":"value")}function Gh(t,e){return t.getCoordSysModel()===e}function Vh(t,e){var n=e*Math.PI/180,i=t.plain(),r=i.width,a=i.height,o=r*Math.cos(n)+a*Math.sin(n),s=r*Math.sin(n)+a*Math.cos(n),l=new rn(i.x,i.y,o,s);return l}function Wh(t){var e,n=t.model,i=n.get("axisLabel.show")?n.getFormattedLabels():[],r=n.getModel("axisLabel"),a=1,o=i.length;o>40&&(a=Math.ceil(o/40));for(var s=0;o>s;s+=a)if(!t.isLabelIgnored(s)){var l=r.getTextRect(i[s]),h=Vh(l,r.get("rotate")||0);e?e.union(h):e=h}return e}function Xh(t,e,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,n),this.model=t}function jh(t,e,n){var i=t[e];if(n.onZero){var r=n.onZeroAxisIndex;if(null!=r){var a=i[r];return void(a&&qh(a)&&(n.onZero=!1))}for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];if(a&&!qh(a)){r=+o;break}}null==r&&(n.onZero=!1),n.onZeroAxisIndex=r}}function qh(t){return"category"===t.type||"time"===t.type||!vx(t)}function Uh(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function Yh(t){return p(xx,function(e){var n=t.getReferringComponents(e)[0];return n})}function Zh(t){return"cartesian2d"===t.get("coordinateSystem")}function $h(t,e){var n=t.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return ss(t,e,n[0]);if(i){for(var r=[],a=0;a<n.length;a++){var o=ss(t,e,n[a]);r.push(o)}return r.join(" ")}}function Kh(t,e,n,i,r,a){var o=n.getModel("label"),s=n.getModel("emphasis.label");ha(t,e,o,s,{labelFetcher:r,labelDataIndex:a,defaultText:$h(r.getData(),a),isRectText:!0,autoColor:i}),Qh(t),Qh(e)}function Qh(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function Jh(t,e,n){n.style.text=null,_a(n,{shape:{width:0}},e,t,function(){n.parent&&n.parent.remove(n)})}function tu(t,e,n){n.style.text=null,_a(n,{shape:{r:n.shape.r0}},e,t,function(){n.parent&&n.parent.remove(n)})}function eu(t,e,n,i,r,a,o,l){var h=e.getItemVisual(n,"color"),u=e.getItemVisual(n,"opacity"),c=i.getModel("itemStyle"),d=i.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",c.get("barBorderRadius")||0),t.useStyle(s({fill:h,opacity:u},c.getBarItemStyle()));var f=i.getShallow("cursor");f&&t.attr("cursor",f);var p=o?r.height>0?"bottom":"top":r.width>0?"left":"right";l||Kh(t.style,d,i,h,a,n,p),la(t,d)}function nu(t,e){var n=t.get(Mx)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}function iu(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function ru(t,e,n,i){var r,a,o=Xa(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return ja(o-Cx/2)?(a=l?"bottom":"top",r="center"):ja(o-1.5*Cx)?(a=l?"top":"bottom",r="center"):(a="middle",r=1.5*Cx>o&&o>Cx/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function au(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function ou(t,e,n){var i=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],h=n[0],u=n[1],c=n[n.length-1],d=n[n.length-2];i===!1?(su(a),su(h)):lu(a,o)&&(i?(su(o),su(u)):(su(a),su(h))),r===!1?(su(s),su(c)):lu(l,s)&&(r?(su(l),su(d)):(su(s),su(c)))}function su(t){t&&(t.ignore=!0)}function lu(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=pe([]);return ye(r,r,-t.rotation),n.applyTransform(ve([],r,t.getLocalTransform())),i.applyTransform(ve([],r,e.getLocalTransform())),n.intersect(i)}}function hu(t){return"middle"===t||"center"===t}function uu(t,e,n){var i=e.axis;if(e.get("axisTick.show")&&!i.scale.isBlank()){for(var r=e.getModel("axisTick"),a=r.getModel("lineStyle"),o=r.get("length"),l=Lx(r,n.labelInterval),h=i.getTicksCoords(r.get("alignWithLabel")),u=i.scale.getTicks(),c=e.get("axisLabel.showMinLabel"),d=e.get("axisLabel.showMaxLabel"),f=[],p=[],g=t._transform,v=[],m=h.length,y=0;m>y;y++)if(!Px(i,y,l,m,c,d)){var x=h[y];f[0]=x,f[1]=0,p[0]=x,p[1]=n.tickDirection*o,g&&(ae(f,f,g),ae(p,p,g));var _=new Tg(Ur({anid:"tick_"+u[y],shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:s(a.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));t.group.add(_),v.push(_)}return v}}function cu(t,e,n){var i=e.axis,r=D(n.axisLabelShow,e.get("axisLabel.show"));if(r&&!i.scale.isBlank()){var a=e.getModel("axisLabel"),o=a.get("margin"),s=i.scale.getTicks(),l=e.getFormattedLabels(),h=(D(n.labelRotate,a.get("rotate"))||0)*Cx/180,u=kx(n.rotation,h,n.labelDirection),c=e.getCategories(),d=[],p=au(e),g=e.get("triggerEvent"),v=e.get("axisLabel.showMinLabel"),m=e.get("axisLabel.showMaxLabel");return f(s,function(r,h){if(!Px(i,h,n.labelInterval,s.length,v,m)){var f=a;c&&c[r]&&c[r].textStyle&&(f=new Aa(c[r].textStyle,a,e.ecModel));var y=f.getTextColor()||e.get("axisLine.lineStyle.color"),x=i.dataToCoord(r),_=[x,n.labelOffset+n.labelDirection*o],w=i.scale.getLabel(r),b=new gg({anid:"label_"+r,position:_,rotation:u.rotation,silent:p,z2:10});ua(b.style,f,{text:l[h],textAlign:f.getShallow("align",!0)||u.textAlign,textVerticalAlign:f.getShallow("verticalAlign",!0)||f.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof y?y("category"===i.type?w:"value"===i.type?r+"":r,h):y}),g&&(b.eventData=iu(e),b.eventData.targetType="axisLabel",b.eventData.value=w),t._dumbGroup.add(b),b.updateTransform(),d.push(b),t.group.add(b),b.decomposeTransform()}}),d}}function du(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fu(n,t,e),n.seriesInvolved&&gu(n,t),n}function fu(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];Ox(n.getCoordinateSystems(),function(n){function s(i,s,l){var u=l.model.getModel("axisPointer",r),d=u.get("show");if(d&&("auto"!==d||i||wu(u))){null==s&&(s=u.get("triggerTooltip")),u=i?pu(l,c,r,e,i,s):u;var f=u.get("snap"),p=bu(l.model),g=s||f||"category"===l.type,v=t.axesInfo[p]={key:p,axis:l,coordSys:n,axisPointerModel:u,triggerTooltip:s,involveSeries:g,snap:f,useHandle:wu(u),seriesModels:[]};h[p]=v,t.seriesInvolved|=g;var m=vu(a,l);if(null!=m){var y=o[m]||(o[m]={axesInfo:{}});y.axesInfo[p]=v,y.mapper=a[m].mapper,v.linkGroup=y}}}if(n.axisPointerEnabled){var l=bu(n.model),h=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var u=n.model,c=u.getModel("tooltip",i);if(Ox(n.getAxes(),Bx(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get("axisPointer.type"),p=n.getTooltipAxes(c.get("axisPointer.axis"));(d||f)&&Ox(p.baseAxes,Bx(s,f?"cross":!0,d)),f&&Ox(p.otherAxes,Bx(s,"cross",!1))}}})}function pu(t,e,n,r,a,o){var l=e.getModel("axisPointer"),h={};Ox(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){h[t]=i(l.get(t))}),h.snap="category"!==t.type&&!!o,"cross"===l.get("type")&&(h.type="line");var u=h.label||(h.label={});if(null==u.show&&(u.show=!1),"cross"===a&&(u.show=!0,!o)){var c=h.lineStyle=l.get("crossStyle");c&&s(u,c.textStyle)}return t.model.getModel("axisPointer",new Aa(h,n,r))}function gu(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get("axisPointer.show",!0)!==!1&&Ox(t.coordSysAxesInfo[bu(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function vu(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(mu(a[i+"AxisId"],n.id)||mu(a[i+"AxisIndex"],n.componentIndex)||mu(a[i+"AxisName"],n.name))return r}}function mu(t,e){return"all"===t||_(t)&&h(t,e)>=0||t===e}function yu(t){var e=xu(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=wu(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function xu(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bu(t)]}function _u(t){var e=xu(t);return e&&e.axisPointerModel}function wu(t){return!!t.get("handle.show")}function bu(t){return t.type+"||"+t.id}function Su(t,e,n,i,r,a){var o=Ex.getAxisPointerClass(t.axisPointerClass);if(o){var s=_u(e);s?(t._axisPointer||(t._axisPointer=new o)).render(e,s,i,a):Mu(t,i)}}function Mu(t,e,n){var i=t._axisPointer;i&&i.dispose(e,n),t._axisPointer=null}function Iu(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,a={},o=r.position,s=r.onZero?"onZero":o,l=r.dim,h=i.getRect(),u=[h.x,h.x+h.width,h.y,h.y+h.height],c={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===l?[u[2]-d,u[3]+d]:[u[0]-d,u[1]+d];if(r.onZero){var p=i.getAxis("x"===l?"y":"x",r.onZeroAxisIndex),g=p.toGlobalCoord(p.dataToCoord(0));f[c.onZero]=Math.max(Math.min(g,f[1]),f[0])}a.position=["y"===l?f[c[s]]:u[0],"x"===l?f[c[s]]:u[3]],a.rotation=Math.PI/2*("x"===l?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[o],a.labelOffset=r.onZero?f[c[o]]-f[c.onZero]:0,e.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),D(n.labelInside,e.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var m=e.get("axisLabel.rotate");return a.labelRotate="top"===s?-m:m,a.labelInterval=r.getLabelInterval(),a.z2=1,a}function Tu(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]}function Cu(t){return[t[0]/2,t[1]/2]}function Du(t,e,n){nf.call(this),this.updateData(t,e,n)}function Au(t,e){this.parent.drift(t,e)}function ku(t){this.group=new nf,this._symbolCtor=t||Du}function Pu(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i&&i(n)||"none"===t.getItemVisual(n,"symbol"))}function Lu(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function Ou(t){return t>=0?1:-1}function Bu(t,e,n){for(var i,r=t.getBaseAxis(),a=t.getOtherAxis(r),o=r.onZero?0:a.scale.getExtent()[0],s=a.dim,l="x"===s||"radius"===s?1:0,h=e.stackedOn,u=e.get(s,n);h&&Ou(h.get(s,n))===Ou(u);){i=h;break}var c=[];return c[l]=e.get(r.dim,n),c[1-l]=i?i.get(s,n,!0):o,t.dataToPoint(c)}function Eu(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function zu(t){return isNaN(t[0])||isNaN(t[1])}function Ru(t,e,n,i,r,a,o,s,l,h,u){for(var c=0,d=n,f=0;i>f;f++){var p=e[d];if(d>=r||0>d)break;if(zu(p)){if(u){d+=a;continue}break}if(d===n)t[a>0?"moveTo":"lineTo"](p[0],p[1]),Qx(t_,p);else if(l>0){var g=d+a,v=e[g];if(u)for(;v&&zu(e[g]);)g+=a,v=e[g];var m=.5,y=e[c],v=e[g];if(!v||zu(v))Qx(e_,p);else{zu(v)&&!u&&(v=p),U(Jx,v,y);var x,_;if("x"===h||"y"===h){var w="x"===h?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-v[w])}else x=md(p,y),_=md(p,v);m=_/(_+x),Kx(e_,p,Jx,-l*(1-m))}Zx(t_,t_,s),$x(t_,t_,o),Zx(e_,e_,s),$x(e_,e_,o),t.bezierCurveTo(t_[0],t_[1],e_[0],e_[1],p[0],p[1]),Kx(t_,p,Jx,l*m)}else t.lineTo(p[0],p[1]);c=d,d+=a}return f}function Nu(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var a=t[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:e?n:i,max:e?i:n}}function Fu(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++){var i=t[n],r=e[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function Hu(t){return"number"==typeof t?t:t?.3:0}function Gu(t){var e=t.getGlobalExtent();if(t.onBand){var n=t.getBandWidth()/2-1,i=e[1]>e[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function Vu(t){return t>=0?1:-1}function Wu(t,e,n,i){var r=e.getBaseAxis(),a=e.getOtherAxis(r),o=0,s=a.scale.getExtent();if("start"===i)o=s[0];else if("end"===i)o=s[1];else{var s=a.scale.getExtent();s[0]>0?o=s[0]:s[1]<0&&(o=s[1])}var l=a.dim,h="x"===l||"radius"===l?1:0,u=n.mapDimension(l);return n.mapArray(u?[u]:[],function(t,i){for(var a,s=n.stackedOn;s&&Vu(s.get(u,i))===Vu(t);){a=s;break}var l=[];return l[h]=n.get(r.dim,i),l[1-h]=a?a.get(u,i,!0):o,e.dataToPoint(l)},!0)}function Xu(t,e,n){var i=Gu(t.getAxis("x")),r=Gu(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),o=Math.min(i[0],i[1]),s=Math.min(r[0],r[1]),l=Math.max(i[0],i[1])-o,h=Math.max(r[0],r[1])-s,u=n.get("lineStyle.width")||2,c=n.get("clipOverflow")?u/2:Math.max(l,h);a?(s-=c,h+=2*c):(o-=c,l+=2*c);var d=new Ig({shape:{x:o,y:s,width:l,height:h}});return e&&(d.shape[a?"width":"height"]=0,wa(d,{shape:{width:l,height:h}},n)),d}function ju(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis(),a=r.getExtent(),o=i.getExtent(),s=Math.PI/180,l=new xg({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-o[0]*s,endAngle:-o[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-o[0]*s,wa(l,{shape:{endAngle:-o[1]*s}},n)),l}function qu(t,e,n){return"polar"===t.type?ju(t,e,n):Xu(t,e,n)}function Uu(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<t.length-1;o++){var s=t[o+1],l=t[o];a.push(l);var h=[];switch(n){case"end":h[r]=s[r],h[1-r]=l[1-r],a.push(h);break;case"middle":var u=(l[r]+s[r])/2,c=[];h[r]=c[r]=u,h[1-r]=l[1-r],c[1-r]=s[1-r],a.push(h),a.push(c);break;default:h[r]=l[r],h[1-r]=s[1-r],a.push(h)}}return t[o]&&a.push(t[o]),a}function Yu(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()){for(var i,r=n.length-1;r>=0;r--)if(n[r].dimension<2){i=n[r];break}if(i&&"cartesian2d"===e.type){var a=i.dimension,o=t.dimensions[a],s=e.getAxis(o),l=p(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),h=l.length,u=i.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),u.reverse());var c=10,d=l[0].coord-c,g=l[h-1].coord+c,v=g-d;if(.001>v)return"transparent";f(l,function(t){t.offset=(t.coord-d)/v}),l.push({offset:h?l[h-1].offset:.5,color:u[1]||"transparent"}),l.unshift({offset:h?l[0].offset:.5,color:u[0]||"transparent"});var m=new Lg(0,0,0,0,l,!0);return m[o]=d,m[o+"2"]=g,m}}}function Zu(t,e,n,i){var r=e.getData(),a=this.dataIndex,o=r.getName(a),s=e.get("selectedOffset");i.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),r.each(function(t){$u(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,n)})}function $u(t,e,n,i,r){var a=(e.startAngle+e.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=n?i:0,h=[o*l,s*l];r?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function Ku(t,e){function n(){a.ignore=a.hoverIgnore,o.ignore=o.hoverIgnore}function i(){a.ignore=a.normalIgnore,o.ignore=o.normalIgnore}nf.call(this);var r=new xg({z2:2}),a=new Mg,o=new gg;this.add(r),this.add(a),this.add(o),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function Qu(t,e,n,i,r,a,o){function s(e,n,i){for(var r=e;n>r;r++)if(t[r].y+=i,r>e&&n>r+1&&t[r+1].y>t[r].y+t[r].height)return void l(r,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function h(t,e,n,i,r,a){for(var o=a>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++)if("center"!==t[s].position){var h=Math.abs(t[s].y-i),u=t[s].len,c=t[s].len2,d=r+u>h?Math.sqrt((r+u+c)*(r+u+c)-h*h):Math.abs(t[s].x-n);e&&d>=o&&(d=o-10),!e&&o>=d&&(d=o+10),t[s].x=n+d*a,o=d}}t.sort(function(t,e){return t.y-e.y});for(var u,c=0,d=t.length,f=[],p=[],g=0;d>g;g++)u=t[g].y-c,0>u&&s(g,d,-u,r),c=t[g].y+t[g].height;0>o-c&&l(d-1,c-o);for(var g=0;d>g;g++)t[g].y>=n?p.push(t[g]):f.push(t[g]);h(f,!1,e,n,i,r),h(p,!0,e,n,i,r)}function Ju(t,e,n,i,r,a){for(var o=[],s=[],l=0;l<t.length;l++)t[l].x<e?o.push(t[l]):s.push(t[l]);Qu(s,e,n,i,1,r,a),Qu(o,e,n,i,-1,r,a);for(var l=0;l<t.length;l++){var h=t[l].linePoints;if(h){var u=h[1][0]-h[2][0];h[2][0]=t[l].x<e?t[l].x+3:t[l].x-3,h[1][1]=h[2][1]=t[l].y,h[1][0]=h[2][0]+u}}}function tc(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name));var o=n.getData();f(o,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),{name:e.name,selected:r}}function ec(t,e){var n=Qg(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var t=new Ig({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return t}function nc(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function ic(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function rc(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:t.name,name:e})}function ac(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,lo(e,n,{type:"box",ignoreSize:r})}function oc(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var s=sc(e,t),l=s.payloadBatch,h=s.snapToValue;l[0]&&null==r.seriesIndex&&o(r,l[0]),!i&&t.snap&&a.containData(h)&&null!=h&&(e=h),n.showPointer(t,e,l,r),n.showTooltip(t,s,h)}}function sc(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return L_(e.seriesModels,function(e){var l,h,u=e.getData().mapDimension(i,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(u,t,n);h=c.dataIndices,l=c.nestestValue}else{if(h=e.getData().indicesOfNearest(u[0],t,!1,"category"===n.type?.5:null),!h.length)return;l=e.getData().get(u[0],h[0])}if(null!=l&&isFinite(l)){var d=t-l,f=Math.abs(d);o>=f&&((o>f||d>=0&&0>s)&&(o=f,s=d,r=l,a.length=0),L_(h,function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:a,snapToValue:r}}function lc(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function hc(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=bu(l),u=t.map[h];u||(u=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function uc(t,e,n){var i=n.axesInfo=[];L_(e,function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function cc(t,e,n,i){if(gc(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function dc(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=B_(i)[r]||{},o=B_(i)[r]={};L_(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&L_(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t})});var s=[],l=[];f(a,function(t,e){!o[e]&&l.push(t)}),f(o,function(t,e){!a[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function fc(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function pc(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function gc(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function vc(t,e,n){if(!Jc.node){var i=e.getZr();z_(i).records||(z_(i).records={}),mc(i,e);var r=z_(i).records[t]||(z_(i).records[t]={});r.handler=n}}function mc(t,e){function n(n,i){t.on(n,function(n){var r=wc(e);R_(z_(t).records,function(t){t&&i(t,n,r.dispatchAction)}),yc(r.pendings,e)})}z_(t).initialized||(z_(t).initialized=!0,n("click",x(_c,"click")),n("mousemove",x(_c,"mousemove")),n("globalout",xc))}function yc(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function xc(t,e,n){t.handler("leave",null,n)}function _c(t,e,n,i){e.handler(t,n,i)}function wc(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function bc(t,e){if(!Jc.node){var n=e.getZr(),i=(z_(n).records||{})[t];i&&(z_(n).records[t]=null)}}function Sc(){}function Mc(t,e,n,i){Ic(F_(n).lastProp,i)||(F_(n).lastProp=i,e?_a(n,i,t):(n.stopAnimation(),n.attr(i)))}function Ic(t,e){if(S(t)&&S(e)){var n=!0;return f(e,function(e,i){n=n&&Ic(t[i],e)}),!!n}return t===e}function Tc(t,e){t[e.get("label.show")?"show":"hide"]()}function Cc(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Dc(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Ac(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function kc(t,e,n,i,r){var a=n.get("value"),o=Lc(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),s=n.getModel("label"),l=Qg(s.get("padding")||0),h=s.getFont(),u=Sn(o,h),c=r.position,d=u.width+l[1]+l[3],f=u.height+l[0]+l[2],p=r.align;"right"===p&&(c[0]-=d),"center"===p&&(c[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),Pc(c,d,f,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:d,height:f,r:s.get("borderRadius")},position:c.slice(),style:{text:o,textFont:h,textFill:s.getTextColor(),textPosition:"inside",fill:v,stroke:s.get("borderColor")||"transparent",lineWidth:s.get("borderWidth")||0,shadowBlur:s.get("shadowBlur"),shadowColor:s.get("shadowColor"),shadowOffsetX:s.get("shadowOffsetX"),shadowOffsetY:s.get("shadowOffsetY")},z2:10}}function Pc(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Lc(t,e,n,i,r){var a=e.scale.getLabel(t,{precision:r.precision}),o=r.formatter;if(o){var s={value:Th(e,t),seriesData:[]};f(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),b(o)?a=o.replace("{value}",a):w(o)&&(a=o(s))}return a}function Oc(t,e,n){var i=fe();return ye(i,i,n.rotation),me(i,i,n.position),Sa([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Bc(t,e,n,i,r,a){var o=Dx.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),kc(e,i,r,a,{position:Oc(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ec(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function zc(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function Rc(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Nc(t){return"x"===t.dim?0:1}function Fc(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return p(q_,function(t){return t+"transition:"+n}).join(";")}function Hc(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),X_(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Gc(t){var e=[],n=t.get("transitionDuration"),i=t.get("backgroundColor"),r=t.getModel("textStyle"),a=t.get("padding");return n&&e.push(Fc(n)),i&&(Jc.canvasSupported?e.push("background-Color:"+i):(e.push("background-Color:#"+Ne(i)),e.push("filter:alpha(opacity=70)"))),X_(["width","color","radius"],function(n){var i="border-"+n,r=j_(i),a=t.get(r);null!=a&&e.push(i+":"+a+("color"===n?"":"px"))}),e.push(Hc(r)),null!=a&&e.push("padding:"+Qg(a).join("px ")+"px"),e.join(";")+";"}function Vc(t,e){if(Jc.wxa)return null;var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r._enterable){var n=i.handler;gi(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}function Wc(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(Aa.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),e=new Aa(n,e,e.ecModel))}return e}function Xc(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function jc(t,e,n,i,r,a,o){var s=Uc(n),l=s.width,h=s.height;return null!=a&&(t+l+a>i?t-=l+a:t+=a),null!=o&&(e+h+o>r?e-=h+o:e+=o),[t,e]}function qc(t,e,n,i,r){var a=Uc(n),o=a.width,s=a.height;return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Uc(t){var e=t.clientWidth,n=t.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(t);i&&(e+=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),n+=parseInt(i.paddingTop,10)+parseInt(i.paddingBottom,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:e,height:n}}function Yc(t,e,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=e.width,h=e.height;switch(t){case"inside":o=e.x+l/2-i/2,s=e.y+h/2-r/2;break;case"top":o=e.x+l/2-i/2,s=e.y-r-a;break;case"bottom":o=e.x+l/2-i/2,s=e.y+h+a;break;case"left":o=e.x-i-a,s=e.y+h/2-r/2;break;case"right":o=e.x+l+a,s=e.y+h/2-r/2}return[o,s]}function Zc(t){return"center"===t||"middle"===t}var $c=2311,Kc=function(){return $c++},Qc={};Qc="undefined"!=typeof wx?{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}:e(navigator.userAgent);var Jc=Qc,td={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},ed={"[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},nd=Object.prototype.toString,id=Array.prototype,rd=id.forEach,ad=id.filter,od=id.slice,sd=id.map,ld=id.reduce,hd={},ud=function(){return hd.createCanvas()};hd.createCanvas=function(){return document.createElement("canvas")};var cd,dd="__ec_primitive__";R.prototype={constructor:R,get:function(t){return this.hasOwnProperty(t)?this[t]:null},set:function(t,e){return this[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var n in this)this.hasOwnProperty(n)&&t(this[n],n)},removeKey:function(t){delete this[t]}};var fd=(Object.freeze||Object)({$override:n,clone:i,merge:r,mergeAll:a,extend:o,defaults:s,createCanvas:ud,getContext:l,indexOf:h,inherits:u,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:v,find:m,bind:y,curry:x,isArray:_,isFunction:w,isString:b,isObject:S,isBuiltInObject:M,isTypedArray:I,isDom:T,eqNaN:C,retrieve:D,retrieve2:A,retrieve3:k,slice:P,normalizeCssArray:L,assert:O,trim:B,setAsPrimitive:E,isPrimitive:z,createHashMap:N,concatArray:F,noop:H}),pd="undefined"==typeof Float32Array?Array:Float32Array,gd=Y,vd=Z,md=ee,yd=ne,xd=(Object.freeze||Object)({create:G,copy:V,clone:W,set:X,add:j,scaleAndAdd:q,sub:U,len:Y,length:gd,lenSquare:Z,lengthSquare:vd,mul:$,div:K,dot:Q,scale:J,normalize:te,distance:ee,dist:md,distanceSquare:ne,distSquare:yd,negate:ie,lerp:re,applyTransform:ae,min:oe,max:se});le.prototype={constructor:le,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(he(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this.dispatchToElement(he(e,t),"drag",t.event);var o=this.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=o,e!==o&&(s&&o!==s&&this.dispatchToElement(he(s,t),"dragleave",t.event),o&&o!==s&&this.dispatchToElement(he(o,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(he(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(he(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null
  }};var _d=Array.prototype.slice,wd=function(){this._$handlers={}};wd.prototype={constructor:wd,one:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t].length;r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!0,ctx:n||this}),this},on:function(t,e,n){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var r=0;r<i[t].length;r++)if(i[t][r].h===e)return this;return i[t].push({h:e,one:!1,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var n=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,a=n[t].length;a>r;r++)n[t][r].h!=e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>3&&(e=_d.call(e,1));for(var i=this._$handlers[t],r=i.length,a=0;r>a;){switch(n){case 1:i[a].h.call(i[a].ctx);break;case 2:i[a].h.call(i[a].ctx,e[1]);break;case 3:i[a].h.call(i[a].ctx,e[1],e[2]);break;default:i[a].h.apply(i[a].ctx,e)}i[a].one?(i.splice(a,1),r--):a++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>4&&(e=_d.call(e,1,e.length-1));for(var i=e[e.length-1],r=this._$handlers[t],a=r.length,o=0;a>o;){switch(n){case 1:r[o].h.call(i);break;case 2:r[o].h.call(i,e[1]);break;case 3:r[o].h.call(i,e[1],e[2]);break;default:r[o].h.apply(i,e)}r[o].one?(r.splice(o,1),a--):o++}}return this}};var bd="silent";ce.prototype.dispose=function(){};var Sd=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Md=function(t,e,n,i){wd.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new ce,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,le.call(this),this.setHandlerProxy(n)};Md.prototype={constructor:Md,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(Sd,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,r=i.target;r&&!r.__zr&&(i=this.findHover(i.x,i.y),r=i.target);var a=this._hovered=this.findHover(e,n),o=a.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),r&&o!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),o&&o!==r&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do n=n&&n.parentNode;while(n&&9!=n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,a=ue(e,t,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(e,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),r={x:t,y:e},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=de(i[a],t,e))&&(!r.topTarget&&(r.topTarget=i[a]),o!==bd)){r.target=i[a];break}}return r}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Md.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||md(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),c(Md,wd),c(Md,le);var Id="undefined"==typeof Float32Array?Array:Float32Array,Td=(Object.freeze||Object)({create:fe,identity:pe,copy:ge,mul:ve,translate:me,rotate:ye,scale:xe,invert:_e,clone:we}),Cd=pe,Dd=5e-5,Ad=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},kd=Ad.prototype;kd.transform=null,kd.needLocalTransform=function(){return be(this.rotation)||be(this.position[0])||be(this.position[1])||be(this.scale[0]-1)||be(this.scale[1]-1)},kd.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;return n||e?(i=i||fe(),n?this.getLocalTransform(i):Cd(i),e&&(n?ve(i,t.transform,i):ge(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||fe(),void _e(this.invTransform,i)):void(i&&Cd(i))},kd.getLocalTransform=function(t){return Ad.getLocalTransform(this,t)},kd.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},kd.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Pd=[];kd.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(ve(Pd,t.invTransform,e),e=Pd);var n=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],r=this.position,a=this.scale;be(n-1)&&(n=Math.sqrt(n)),be(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(n=-n),e[3]<0&&(i=-i),r[0]=e[4],r[1]=e[5],a[0]=n,a[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/n)}},kd.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},kd.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ae(n,n,i),n},kd.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ae(n,n,i),n},Ad.getLocalTransform=function(t,e){e=e||[],Cd(e);var n=t.origin,i=t.scale||[1,1],r=t.rotation||0,a=t.position||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),xe(e,e,i),r&&ye(e,e,r),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=a[0],e[5]+=a[1],e};var Ld={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ld.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Ld.bounceIn(2*t):.5*Ld.bounceOut(2*t-1)+.5}};Se.prototype={constructor:Se,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;if(!(0>n)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?Ld[i]:i,a="function"==typeof r?r(n):n;return this.fire("frame",a),1==n?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Od=function(){this.head=null,this.tail=null,this._len=0},Bd=Od.prototype;Bd.insert=function(t){var e=new Ed(t);return this.insertEntry(e),e},Bd.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Bd.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Bd.len=function(){return this._len},Bd.clear=function(){this.head=this.tail=null,this._len=0};var Ed=function(t){this.value=t,this.next,this.prev},zd=function(t){this._list=new Od,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Rd=zd.prototype;Rd.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new Ed(e),o.key=t,n.insertEntry(o),i[t]=o}return r},Rd.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},Rd.clear=function(){this._list.clear(),this._map={}};var Nd={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]},Fd=new zd(20),Hd=null,Gd=Fe,Vd=He,Wd=(Object.freeze||Object)({parse:Be,lift:Re,toHex:Ne,fastLerp:Fe,fastMapToColor:Gd,lerp:He,mapToColor:Vd,modifyHSL:Ge,modifyAlpha:Ve,stringify:We}),Xd=Array.prototype.slice,jd=function(t,e,n,i){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||Xe,this._setter=i||je,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};jd.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:Je(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;e>n;n++)t[n].call(this)},start:function(t,e){var n,i=this,r=0,a=function(){r--,r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=nn(this,t,a,this._tracks[o],o,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(t,e){l(t,e);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,n=this.animation,i=0;i<e.length;i++){var r=e[i];t&&r.onframe(this._target,1),n&&n.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var qd=1;"undefined"!=typeof window&&(qd=Math.max(window.devicePixelRatio||1,1));var Ud=0,Yd=qd,Zd=function(){};1===Ud?Zd=function(){for(var t in arguments)throw new Error(arguments[t])}:Ud>1&&(Zd=function(){for(var t in arguments)console.log(arguments[t])});var $d=Zd,Kd=function(){this.animators=[]};Kd.prototype={constructor:Kd,animate:function(t,e){var n,i=!1,r=this,a=this.__zr;if(t){var o=t.split("."),s=r;i="shape"===o[0];for(var l=0,u=o.length;u>l;l++)s&&(s=s[o[l]]);s&&(n=s)}else n=r;if(!n)return void $d('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,d=new jd(n,e);return d.during(function(){r.dirty(i)}).done(function(){c.splice(h(c,d),1)}),c.push(d),a&&a.animation.addAnimator(d),d},stopAnimation:function(t){for(var e=this.animators,n=e.length,i=0;n>i;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,n,i,r,a){function o(){l--,l||r&&r()}b(n)?(r=i,i=n,n=0):w(i)?(r=i,i="linear",n=0):w(n)?(r=n,n=0):w(e)?(r=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,n);var s=this.animators.slice(),l=s.length;l||r&&r();for(var h=0;h<s.length;h++)s[h].done(o).start(i,a)},_animateToShallow:function(t,e,n,i,r){var a={},o=0;for(var s in n)if(n.hasOwnProperty(s))if(null!=e[s])S(n[s])&&!d(n[s])?this._animateToShallow(t?t+"."+s:s,e[s],n[s],i,r):(a[s]=n[s],o++);else if(null!=n[s])if(t){var l={};l[t]={},l[t][s]=n[s],this.attr(l)}else this.attr(s,n[s]);return o>0&&this.animate(t,!1).when(null==i?500:i,a).delay(r||0),this}};var Qd=function(t){Ad.call(this,t),wd.call(this,t),Kd.call(this,t),this.id=t.id||Kc()};Qd.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var n=this[t];n||(n=this[t]=[]),n[0]=e[0],n[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(S(t))for(var n in t)t.hasOwnProperty(n)&&this.attrKV(n,t[n]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(Qd,Kd),c(Qd,Ad),c(Qd,wd);var Jd=ae,tf=Math.min,ef=Math.max;rn.prototype={constructor:rn,union:function(t){var e=tf(t.x,this.x),n=tf(t.y,this.y);this.width=ef(t.x+t.width,this.x+this.width)-e,this.height=ef(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},applyTransform:function(){var t=[],e=[],n=[],i=[];return function(r){if(r){t[0]=n[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=n[1]=this.y+this.height,Jd(t,t,r),Jd(e,e,r),Jd(n,n,r),Jd(i,i,r),this.x=tf(t[0],e[0],n[0],i[0]),this.y=tf(t[1],e[1],n[1],i[1]);var a=ef(t[0],e[0],n[0],i[0]),o=ef(t[1],e[1],n[1],i[1]);this.width=a-this.x,this.height=o-this.y}}}(),calculateTransform:function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=fe();return me(r,r,[-e.x,-e.y]),xe(r,r,[n,i]),me(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof rn||(t=rn.create(t));var e=this,n=e.x,i=e.x+e.width,r=e.y,a=e.y+e.height,o=t.x,s=t.x+t.width,l=t.y,h=t.y+t.height;return!(o>i||n>s||l>a||r>h)},contain:function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new rn(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},rn.create=function(t){return new rn(t.x,t.y,t.width,t.height)};var nf=function(t){t=t||{},Qd.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};nf.prototype={constructor:nf,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof nf&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,i=this._children,r=h(i,t);return 0>r?this:(i.splice(r,1),t.parent=null,n&&(n.delFromStorage(t),t instanceof nf&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e<n.length;e++)t=n[e],i&&(i.delFromStorage(t),t instanceof nf&&t.delChildrenFromStorage(i)),t.parent=null;return n.length=0,this},eachChild:function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},traverse:function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.addToStorage(n),n instanceof nf&&n.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var n=this._children[e];t.delFromStorage(n),n instanceof nf&&n.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,n=new rn(0,0,0,0),i=t||this._children,r=[],a=0;a<i.length;a++){var o=i[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),e=e||n.clone(),e.union(n)):(e=e||s.clone(),e.union(s))}}return e||n}},u(nf,Qd);var rf=32,af=7,of=function(){this._roots=[],this._displayList=[],this._displayListLen=0};of.prototype={constructor:of,traverse:function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Jc.canvasSupported&&dn(n,fn)},_updateAndAddDisplayable:function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var i=t.clipPath;if(i){e=e?e.slice():[];for(var r=i,a=t;r;)r.parent=a,r.updateTransform(),e.push(r),a=r,r=r.clipPath}if(t.isGroup){for(var o=t._children,s=0;s<o.length;s++){var l=o[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,n)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof nf&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var n=this._roots[e];n instanceof nf&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,i=t.length;i>e;e++)this.delRoot(t[e]);else{var r=h(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof nf&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:fn};var sf={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},lf=function(t,e,n){return sf.hasOwnProperty(e)?n*=t.dpr:n},hf=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],uf=function(t,e){this.extendFrom(t,!1),this.host=e};uf.prototype={constructor:uf,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(t,e,n){for(var i=this,r=n&&n.style,a=!r,o=0;o<hf.length;o++){var s=hf[o],l=s[0];(a||i[l]!==r[l])&&(t[l]=lf(t,l,i[l]||s[1]))}if((a||i.fill!==r.fill)&&(t.fillStyle=i.fill),(a||i.stroke!==r.stroke)&&(t.strokeStyle=i.stroke),(a||i.opacity!==r.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(a||i.blend!==r.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var h=i.lineWidth;t.lineWidth=h/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var n in t)!t.hasOwnProperty(n)||e!==!0&&(e===!1?this.hasOwnProperty(n):null==t[n])||(this[n]=t[n])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var i="radial"===e.type?gn:pn,r=i(t,e,n),a=e.colorStops,o=0;o<a.length;o++)r.addColorStop(a[o].offset,a[o].color);return r}};for(var cf=uf.prototype,df=0;df<hf.length;df++){var ff=hf[df];ff[0]in cf||(cf[ff[0]]=ff[1])}uf.getGradient=cf.getGradient;var pf=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};pf.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var gf=function(t,e,n){var i;n=n||Yd,"string"==typeof t?i=mn(t,e,n):S(t)&&(i=t,t=i.id),this.id=t,this.dom=i;var r=i.style;r&&(i.onselectstart=vn,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};gf.prototype={constructor:gf,__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 t=this.dpr;this.domBack=mn("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r.width=t+"px",r.height=e+"px",i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e.height,a=this.clearColor,o=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(o&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/l,r/l)),n.clearRect(0,0,i,r),a){var h;a.colorStops?(h=a.__canvasGradient||uf.getGradient(n,a,{x:0,y:0,width:i,height:r}),a.__canvasGradient=h):a.image&&(h=pf.prototype.getCanvasPattern.call(a,n)),n.save(),n.fillStyle=h||a,n.fillRect(0,0,i,r),n.restore()}if(o){var u=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(u,0,0,i,r),n.restore()}}};var vf="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},mf=new zd(50),yf={},xf=0,_f=5e3,wf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,bf="12px sans-serif",Sf={};Sf.measureText=function(t,e){var n=l();return n.font=e||bf,n.measureText(t)};var Mf={left:1,right:1,center:1},If={top:1,bottom:1,middle:1},Tf=new rn,Cf=function(){};Cf.prototype={constructor:Cf,drawRectText:function(t,e){var n=this.style;e=n.textRect||e,this.__dirty&&Hn(n,!0);var i=n.text;if(null!=i&&(i+=""),ii(i,n)){t.save();var r=this.transform;n.transformText?this.setTransform(t):r&&(Tf.copy(e),Tf.applyTransform(r),e=Tf),Vn(this,t,i,n,e),t.restore()}}},ri.prototype={constructor:ri,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(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?Qd.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new uf(t,this),this.dirty(!1),this}},u(ri,Qd),c(ri,Cf),ai.prototype={constructor:ai,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=xn(i,this._image,this,this.onload);if(r&&wn(r)){var a=n.x||0,o=n.y||0,s=n.width,l=n.height,h=r.width/r.height;if(null==s&&null!=l?s=l*h:null==l&&null!=s?l=s/h:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,d=s-u,f=l-c;t.drawImage(r,u,c,d,f,a,o,s,l)}else t.drawImage(r,a,o,s,l);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new rn(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},u(ai,ri);var Df=1e5,Af=314159,kf=.01,Pf=.001,Lf=new rn(0,0,0,0),Of=new rn(0,0,0,0),Bf=function(t,e,n){this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=o({},n||{}),this.dpr=n.devicePixelRatio||Yd,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){null!=n.width&&(t.width=n.width),null!=n.height&&(t.height=n.height);var l=t.width,h=t.height;this._width=l,this._height=h;var u=new gf(t,this,1);u.__builtin__=!0,u.initContext(),s[Af]=u,a.push(Af),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=ci(this._width,this._height);t.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};Bf.prototype={constructor:Bf,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot
  },getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];!a.__builtin__&&a.refresh&&a.refresh()}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var n=new t.constructor({style:t.style,shape:t.shape});n.__from=t,t.__hoverMir=n,n.setStyle(e),this._hoverElements.push(n)}},removeHover:function(t){var e=t.__hoverMir,n=this._hoverElements,i=h(n,e);i>=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t.length;e++){var n=t[e].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){dn(t,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(Df));var i={};n.ctx.save();for(var r=0;e>r;){var a=t[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(t.splice(r,1),o.__hoverMir=null,e--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(Df)},_paintList:function(t,e,n){if(this._redrawId===n){e=e||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;vf(function(){r._paintList(t,e,n)})}}},_compositeManually:function(){var t=this.getLayer(Af).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},_doPaintList:function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||e)&&n.push(a)}for(var o=!0,s=0;s<n.length;s++){var a=n[s],l=a.ctx,h={};l.save();var u=e?a.__startIndex:a.__drawIndex,c=!e&&a.incremental&&Date.now,d=c&&Date.now();if(a.__startIndex===a.__endIndex)a.clear();else if(u===a.__startIndex){var p=t[u];p.incremental&&p.notClear&&!e||a.clear()}-1===u&&(console.error("For some unknown reason. drawIndex is -1"),u=a.__startIndex);for(var g=u;g<a.__endIndex;g++){var v=t[g];if(this._doPaintEl(v,a,e,h),v.__dirty=!1,c){var m=Date.now()-d;if(m>15)break}}a.__drawIndex=g,a.__drawIndex<a.__endIndex&&(o=!1),h.prevElClipPaths&&l.restore(),l.restore()}return Jc.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),o},_doPaintEl:function(t,e,n,i){var r=e.ctx,a=t.transform;if(!(!e.__dirty&&!n||t.invisible||0===t.style.opacity||a&&!a[0]&&!a[3]||t.culling&&li(t,this._width,this._height))){var o=t.__clipPaths;(!i.prevElClipPaths||hi(o,i.prevElClipPaths))&&(i.prevElClipPaths&&(e.ctx.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),ui(o,r),i.prevElClipPaths=o)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Af);var n=this._layers[t];return n||(n=new gf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]&&r(n,this._layerConfig[t],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=null,o=-1,s=this._domRoot;if(n[t])return void $d("ZLevel "+t+" has been used already");if(!si(e))return void $d("Layer of zlevel "+t+" is not valid");if(r>0&&t>i[0]){for(o=0;r-1>o&&!(i[o]<t&&i[o+1]>t);o++);a=n[i[o]]}if(i.splice(o+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],t.call(e,this._layers[n],n)},eachBuiltinLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__&&t.call(e,n,i)},eachOtherLayer:function(t,e){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],n=this._layers[i],n.__builtin__||t.call(e,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var r=null,a=0,n=0;n<t.length;n++){var o,i=t[n],s=i.zlevel;i.incremental?(o=this.getLayer(s+Pf,this._needsManuallyCompositing),o.incremental=!0,a=1):o=this.getLayer(s+(a>0?kf:0),this._needsManuallyCompositing),o.__builtin__||$d("ZLevel "+s+" has been used by unkown layer "+o.id),o!==r&&(o.__used=!0,o.__startIndex!==n&&(o.__dirty=!0),o.__startIndex=n,o.__drawIndex=o.incremental?-1:n,e(n),r=o),i.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=n))}e(n),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?r(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+kf){var o=this._layers[a];r(o,n[t],!0)}}}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(h(n,t),1))},resize:function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Af).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Af].dom;var e=new gf("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clearColor=t.backgroundColor,e.clear(),t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,n,i):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,e,!0,a)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||oi(s[n])||oi(o.style[n]))-(oi(s[r])||0)-(oi(s[a])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),a=t.style,o=a.shadowBlur*e,s=a.shadowOffsetX*e,l=a.shadowOffsetY*e,h=a.hasStroke()?a.lineWidth:0,u=Math.max(h/2,-s+o),c=Math.max(h/2,s+o),d=Math.max(h/2,-l+o),f=Math.max(h/2,l+o),p=r.width+u+c,g=r.height+d+f;n.width=p*e,n.height=g*e,i.scale(e,e),i.clearRect(0,0,p,g),i.dpr=e;var v={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[u-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(i);var m=ai,y=new m({style:{x:0,y:0,image:n}});return null!=v.position&&(y.position=t.position=v.position),null!=v.rotation&&(y.rotation=t.rotation=v.rotation),null!=v.scale&&(y.scale=t.scale=v.scale),y}};var Ef="undefined"!=typeof window&&!!window.addEventListener,zf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Rf=Ef?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},Nf=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,wd.call(this)};Nf.prototype={constructor:Nf,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n<e.length;n++)this.addClip(e[n])},removeClip:function(t){var e=h(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;n<e.length;n++)this.removeClip(e[n]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;i>o;o++){var s=n[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(var o=0;i>o;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(var o=0;i>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(vf(t),!e._paused&&e._update())}var e=this;this._running=!0,vf(t)},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=[]},animate:function(t,e){e=e||{};var n=new jd(t,e.loop,e.getter,e.setter);return this.addAnimator(n),n}},c(Nf,wd);var Ff=function(){this._track=[]};Ff.prototype={constructor:Ff,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,o=i.length;o>a;a++){var s=i[a],l=fi(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in Hf)if(Hf.hasOwnProperty(e)){var n=Hf[e](this._track,t);if(n)return n}}};var Hf={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var a=yi(i)/yi(r);!isFinite(a)&&(a=1),e.pinchScale=a;var o=xi(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},Gf=300,Vf=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wf=["touchstart","touchend","touchmove"],Xf={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},jf=p(Vf,function(t){var e=t.replace("mouse","pointer");return Xf[e]?e:t}),qf={mousemove:function(t){t=gi(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=gi(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=gi(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,wi(this,t,"start"),qf.mousemove.call(this,t),qf.mousedown.call(this,t),bi(this)},touchmove:function(t){t=gi(this.dom,t),t.zrByTouch=!0,wi(this,t,"change"),qf.mousemove.call(this,t),bi(this)},touchend:function(t){t=gi(this.dom,t),t.zrByTouch=!0,wi(this,t,"end"),qf.mouseup.call(this,t),+new Date-this._lastTouchMoment<Gf&&qf.click.call(this,t),bi(this)},pointerdown:function(t){qf.mousedown.call(this,t)},pointermove:function(t){Si(t)||qf.mousemove.call(this,t)},pointerup:function(t){qf.mouseup.call(this,t)},pointerout:function(t){Si(t)||qf.mouseout.call(this,t)}};f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){qf[t]=function(e){e=gi(this.dom,e),this.trigger(t,e)}});var Uf=Ii.prototype;Uf.dispose=function(){for(var t=Vf.concat(Wf),e=0;e<t.length;e++){var n=t[e];mi(this.dom,_i(n),this._handlers[n])}},Uf.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(Ii,wd);var Yf=!Jc.canvasSupported,Zf={canvas:Bf},$f={},Kf="4.0.1",Qf=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new of,a=n.renderer;if(Yf){if(!Zf.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&Zf[a]||(a="canvas");var o=new Zf[a](e,r,n,t);this.storage=r,this.painter=o;var s=Jc.node||Jc.worker?null:new Ii(o.getViewportRoot());this.handler=new Md(r,o,s,o.root),this.animation=new Nf({stage:{update:y(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,h=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(i)},r.addToStorage=function(t){h.call(r,t),t.addSelfToZr(i)}};Qf.prototype={constructor:Qf,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),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(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},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,ki(this.id)}};var Jf=(Object.freeze||Object)({version:Kf,init:Ti,dispose:Ci,getInstance:Di,registerPainter:Ai}),tp=f,ep=S,np=_,ip="\x00-",rp=["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"],ap=0,op=".",sp="___EC__COMPONENT__CONTAINER___",lp=0,hp=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,n,i){for(var r={},a=0;a<t.length;a++){var o=t[a][1];if(!(n&&h(n,o)>=0||i&&h(i,o)<0)){var s=e.getShallow(o);null!=s&&(r[t[a][0]]=s)}}return r}},up=hp([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cp={getLineStyle:function(t){var e=up(this,t),n=this.getLineDash(e.lineWidth);return n&&(e.lineDash=n),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),n=Math.max(t,2),i=4*t;return"solid"===e||null==e?null:"dashed"===e?[i,i]:[n,n]}},dp=hp([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),fp={getAreaStyle:function(t,e){return dp(this,t,e)}},pp=Math.pow,gp=Math.sqrt,vp=1e-8,mp=1e-4,yp=gp(3),xp=1/3,_p=G(),wp=G(),bp=G(),Sp=Math.min,Mp=Math.max,Ip=Math.sin,Tp=Math.cos,Cp=2*Math.PI,Dp=G(),Ap=G(),kp=G(),Pp=[],Lp=[],Op={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bp=[],Ep=[],zp=[],Rp=[],Np=Math.min,Fp=Math.max,Hp=Math.cos,Gp=Math.sin,Vp=Math.sqrt,Wp=Math.abs,Xp="undefined"!=typeof Float32Array,jp=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};jp.prototype={constructor:jp,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Wp(1/Yd/t)||0,this._uy=Wp(1/Yd/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(Op.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=Wp(t-this._xi)>this._ux||Wp(e-this._yi)>this._uy||this._len<5;return this.addData(Op.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,a){return this.addData(Op.C,t,e,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,a):this._ctx.bezierCurveTo(t,e,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(t,e,n,i){return this.addData(Op.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,a){return this.addData(Op.A,t,e,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=Hp(r)*n+t,this._yi=Gp(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Op.R,t,e,n,i),this},closePath:function(){this.addData(Op.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!Xp||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();Xp&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var n=0;n<arguments.length;n++)e[this._len++]=arguments[n];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,h=this._yi,u=t-l,c=e-h,d=Vp(u*u+c*c),f=l,p=h,g=o.length;for(u/=d,c/=d,0>a&&(a=r+a),a%=r,f-=a*u,p-=a*c;u>0&&t>=f||0>u&&f>=t||0==u&&(c>0&&e>=p||0>c&&p>=e);)i=this._dashIdx,n=o[i],f+=u*n,p+=c*n,this._dashIdx=(i+1)%g,u>0&&l>f||0>u&&f>l||c>0&&h>p||0>c&&p>h||s[i%2?"moveTo":"lineTo"](u>=0?Np(f,t):Fp(f,t),c>=0?Np(p,e):Fp(p,e));u=f-t,c=p-e,this._dashOffset=-Vp(u*u+c*c)},_dashedBezierTo:function(t,e,n,i,r,a){var o,s,l,h,u,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,v=this._yi,m=Ji,y=0,x=this._dashIdx,_=f.length,w=0;for(0>d&&(d=c+d),d%=c,o=0;1>o;o+=.1)s=m(g,t,n,r,o+.1)-m(g,t,n,r,o),l=m(v,e,i,a,o+.1)-m(v,e,i,a,o),y+=Vp(s*s+l*l);for(;_>x&&(w+=f[x],!(w>d));x++);for(o=(w-d)/y;1>=o;)h=m(g,t,n,r,o),u=m(v,e,i,a,o),x%2?p.moveTo(h,u):p.lineTo(h,u),o+=f[x]/y,x=(x+1)%_;x%2!==0&&p.lineTo(r,a),s=r-h,l=a-u,this._dashOffset=-Vp(s*s+l*l)},_dashedQuadraticTo:function(t,e,n,i){var r=n,a=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Xp&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Bp[0]=Bp[1]=zp[0]=zp[1]=Number.MAX_VALUE,Ep[0]=Ep[1]=Rp[0]=Rp[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,r=0,a=0;a<t.length;){var o=t[a++];switch(1==a&&(e=t[a],n=t[a+1],i=e,r=n),o){case Op.M:i=t[a++],r=t[a++],e=i,n=r,zp[0]=i,zp[1]=r,Rp[0]=i,Rp[1]=r;break;case Op.L:dr(e,n,t[a],t[a+1],zp,Rp),e=t[a++],n=t[a++];break;case Op.C:fr(e,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],zp,Rp),e=t[a++],n=t[a++];break;case Op.Q:pr(e,n,t[a++],t[a++],t[a],t[a+1],zp,Rp),e=t[a++],n=t[a++];break;case Op.A:var s=t[a++],l=t[a++],h=t[a++],u=t[a++],c=t[a++],d=t[a++]+c,f=(t[a++],1-t[a++]);1==a&&(i=Hp(c)*h+s,r=Gp(c)*u+l),gr(s,l,h,u,c,d,f,zp,Rp),e=Hp(d)*h+s,n=Gp(d)*u+l;break;case Op.R:i=e=t[a++],r=n=t[a++];var p=t[a++],g=t[a++];dr(i,r,i+p,r+g,zp,Rp);break;case Op.Z:e=i,n=r}oe(Bp,Bp,zp),se(Ep,Ep,Rp)}return 0===a&&(Bp[0]=Bp[1]=Ep[0]=Ep[1]=0),new rn(Bp[0],Bp[1],Ep[0]-Bp[0],Ep[1]-Bp[1])},rebuildPath:function(t){for(var e,n,i,r,a,o,s=this.data,l=this._ux,h=this._uy,u=this._len,c=0;u>c;){var d=s[c++];switch(1==c&&(i=s[c],r=s[c+1],e=i,n=r),d){case Op.M:e=i=s[c++],n=r=s[c++],t.moveTo(i,r);break;case Op.L:a=s[c++],o=s[c++],(Wp(a-i)>l||Wp(o-r)>h||c===u-1)&&(t.lineTo(a,o),i=a,r=o);break;case Op.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Op.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),i=s[c-2],r=s[c-1];break;case Op.A:var f=s[c++],p=s[c++],g=s[c++],v=s[c++],m=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>v?g:v,b=g>v?1:g/v,S=g>v?v/g:1,M=Math.abs(g-v)>.001,I=m+y;M?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,m,I,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,m,I,1-_),1==c&&(e=Hp(m)*g+f,n=Gp(m)*v+p),i=Hp(I)*g+f,r=Gp(I)*v+p;break;case Op.R:e=i=s[c],n=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Op.Z:t.closePath(),i=e,r=n}}}},jp.CMD=Op;var qp=2*Math.PI,Up=2*Math.PI,Yp=jp.CMD,Zp=2*Math.PI,$p=1e-4,Kp=[-1,-1,-1],Qp=[-1,-1],Jp=pf.prototype.getCanvasPattern,tg=Math.abs,eg=new jp(!0);kr.prototype={constructor:kr,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path||eg,r=n.hasStroke(),a=n.hasFill(),o=n.fill,s=n.stroke,l=a&&!!o.colorStops,h=r&&!!s.colorStops,u=a&&!!o.image,c=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=n.getGradient(t,o,d)),h&&(d=d||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:u&&(t.fillStyle=Jp.call(o,t)),h?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=Jp.call(s,t));var f=n.lineDash,p=n.lineDashOffset,g=!!t.setLineDash,v=this.getGlobalScale();i.setScale(v[0],v[1]),this.__dirtyPath||f&&!g&&r?(i.beginPath(t),f&&!g&&(i.setLineDash(f),i.setLineDashOffset(p)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),a&&i.fill(t),f&&g&&(t.setLineDash(f),t.lineDashOffset=p),r&&i.stroke(t),f&&g&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new jp},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;i||(i=this.path=new jp),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var a=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r.height+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path.data;if(r.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Ar(a,o/s,t,e)))return!0}if(r.hasFill())return Dr(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ri.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(S(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&tg(t[0]-1)>1e-10&&tg(t[3]-1)>1e-10?Math.sqrt(tg(t[0]*t[3]-t[2]*t[1])):1}},kr.extend=function(t){var e=function(e){kr.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}t.init&&t.init.call(this,e)};u(e,kr);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},u(kr,ri);var ng=jp.CMD,ig=[[],[],[]],rg=Math.sqrt,ag=Math.atan2,og=function(t,e){var n,i,r,a,o,s,l=t.data,h=ng.M,u=ng.C,c=ng.L,d=ng.R,f=ng.A,p=ng.Q;for(r=0,a=0;r<l.length;){switch(n=l[r++],a=r,i=0,n){case h:i=1;break;case c:i=1;break;case u:i=3;break;case p:i=2;break;case f:var g=e[4],v=e[5],m=rg(e[0]*e[0]+e[1]*e[1]),y=rg(e[2]*e[2]+e[3]*e[3]),x=ag(-e[1]/y,e[0]/m);l[r]*=m,l[r++]+=g,l[r]*=y,l[r++]+=v,l[r++]*=m,l[r++]*=y,l[r++]+=x,l[r++]+=x,r+=2,a=r;break;case d:s[0]=l[r++],s[1]=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1]}for(o=0;i>o;o++){var s=ig[o];s[0]=l[r++],s[1]=l[r++],ae(s,s,e),l[a++]=s[0],l[a++]=s[1]}}},sg=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],lg=Math.sqrt,hg=Math.sin,ug=Math.cos,cg=Math.PI,dg=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},fg=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(dg(t)*dg(e))},pg=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(fg(t,e))},gg=function(t){ri.call(this,t)};gg.prototype={constructor:gg,type:"text",brush:function(t,e){var n=this.style;this.__dirty&&Hn(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),n.bind(t,this,e),ii(i,n)&&(this.setTransform(t),Vn(this,t,i,n),this.restoreTransform(t))},getBoundingRect:function(){var t=this.style;if(this.__dirty&&Hn(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var n=Sn(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(n.x+=t.x||0,n.y+=t.y||0,Jn(t.textStroke,t.textStrokeWidth)){var i=t.textStrokeWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect}},u(gg,ri);var vg=kr.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),mg=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],yg=function(t){return Jc.browser.ie&&Jc.browser.version>=11?function(){var e,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var a=n[r],o=a&&a.shape,s=a&&a.type;if(o&&("sector"===s&&o.startAngle===o.endAngle||"rect"===s&&(!o.width||!o.height))){for(var l=0;l<mg.length;l++)mg[l][2]=i[mg[l][0]],i[mg[l][0]]=mg[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<mg.length;l++)i[mg[l][0]]=mg[l][2]}:t},xg=kr.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:yg(kr.prototype.brush),buildPath:function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,l=e.clockwise,h=Math.cos(o),u=Math.sin(o);t.moveTo(h*r+n,u*r+i),t.lineTo(h*a+n,u*a+i),t.arc(n,i,a,o,s,!l),t.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&t.arc(n,i,r,s,o,l),t.closePath()}}),_g=kr.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}}),wg=function(t,e){for(var n=t.length,i=[],r=0,a=1;n>a;a++)r+=ee(t[a-1],t[a]);var o=r/2;o=n>o?n:o;for(var a=0;o>a;a++){var s,l,h,u=a/(o-1)*(e?n:n-1),c=Math.floor(u),d=u-c,f=t[c%n];e?(s=t[(c-1+n)%n],l=t[(c+1)%n],h=t[(c+2)%n]):(s=t[0===c?c:c-1],l=t[c>n-2?n-1:c+1],h=t[c>n-3?n-1:c+2]);var p=d*d,g=d*p;i.push([Rr(s[0],f[0],l[0],h[0],d,p,g),Rr(s[1],f[1],l[1],h[1],d,p,g)])}return i},bg=function(t,e,n,i){var r,a,o,s,l=[],h=[],u=[],c=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;f>d;d++)oe(o,o,t[d]),se(s,s,t[d]);oe(o,o,i[0]),se(s,s,i[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(n)r=t[d?d-1:f-1],a=t[(d+1)%f];else{if(0===d||d===f-1){l.push(W(t[d]));continue}r=t[d-1],a=t[d+1]}U(h,a,r),J(h,h,e);var g=ee(p,r),v=ee(p,a),m=g+v;0!==m&&(g/=m,v/=m),J(u,h,-g),J(c,h,v);var y=j([],p,u),x=j([],p,c);i&&(se(y,y,o),oe(y,y,s),se(x,x,o),oe(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l},Sg=kr.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){Nr(t,e,!0)}}),Mg=kr.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){Nr(t,e,!1)}}),Ig=kr.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width,a=e.height;e.r?Fn(t,e):t.rect(n,i,r,a),t.closePath()}}),Tg=kr.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(n,i),1>o&&(r=n*(1-o)+r*o,a=i*(1-o)+a*o),t.lineTo(r,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),Cg=[],Dg=kr.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(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,u=e.percent;0!==u&&(t.moveTo(n,i),null==l||null==h?(1>u&&(hr(n,o,r,u,Cg),o=Cg[1],r=Cg[2],hr(i,s,a,u,Cg),s=Cg[1],a=Cg[2]),t.quadraticCurveTo(o,s,r,a)):(1>u&&(ir(n,o,l,r,u,Cg),o=Cg[1],l=Cg[2],r=Cg[3],ir(i,s,h,a,u,Cg),s=Cg[1],h=Cg[2],a=Cg[3]),t.bezierCurveTo(o,s,l,h,r,a)))},pointAt:function(t){return Fr(this.shape,t,!1)},tangentAt:function(t){var e=Fr(this.shape,t,!0);return te(e,e)}}),Ag=kr.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(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),h=Math.sin(a);t.moveTo(l*r+n,h*r+i),t.arc(n,i,r,a,o,!s)}}),kg=kr.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),kr.prototype.getBoundingRect.call(this)}}),Pg=function(t){this.colorStops=t||[]};Pg.prototype={constructor:Pg,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var Lg=function(t,e,n,i,r,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,Pg.call(this,r)};Lg.prototype={constructor:Lg},u(Lg,Pg);
  var Og=function(t,e,n,i,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,Pg.call(this,i)};Og.prototype={constructor:Og},u(Og,Pg),Hr.prototype.incremental=!0,Hr.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},Hr.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},Hr.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Hr.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Hr.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},Hr.prototype.brush=function(t){for(var e=this._cursor;e<this._displayables.length;e++){var n=this._temporaryDisplayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,e===this._cursor?null:this._displayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._cursor=e;for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===e?null:this._temporaryDisplayables[e-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var Bg=[];Hr.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new rn(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Bg)),t.union(i)}this._rect=t}return this._rect},Hr.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},u(Hr,ri);var Eg=Math.round,zg=Math.max,Rg=Math.min,Ng={},Fg=zr,Hg=(Object.freeze||Object)({extendShape:Gr,extendPath:Vr,makePath:Wr,makeImage:Xr,mergePath:Fg,resizePath:qr,subPixelOptimizeLine:Ur,subPixelOptimizeRect:Yr,subPixelOptimize:Zr,setHoverStyle:la,setLabelStyle:ha,setTextStyle:ua,setText:ca,getFont:ya,updateProps:_a,initProps:wa,getTransform:ba,applyTransform:Sa,transformDirection:Ma,groupTransition:Ia,clipPointsByRect:Ta,clipRectByRect:Ca,createIcon:Da,Group:nf,Image:ai,Text:gg,Circle:vg,Sector:xg,Ring:_g,Polygon:Sg,Polyline:Mg,Rect:Ig,Line:Tg,BezierCurve:Dg,Arc:Ag,IncrementalDisplayable:Hr,CompoundPath:kg,LinearGradient:Lg,RadialGradient:Og,BoundingRect:rn}),Gg=["textStyle","color"],Vg={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Gg):null)},getFont:function(){return ya({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Sn(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},Wg=hp([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),Xg={getItemStyle:function(t,e){var n=Wg(this,t,e),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},jg=c,qg=Fi();Aa.prototype={constructor:Aa,init:null,mergeOption:function(t){r(this.option,t,!0)},get:function(t,e){return null==t?this.option:ka(this.option,this.parsePath(t),!e&&Pa(this,t))},getShallow:function(t,e){var n=this.option,i=null==n?n:n[t],r=!e&&Pa(this,t);return null==i&&r&&(i=r.getShallow(t)),i},getModel:function(t,e){var n,i=null==t?this.option:ka(this.option,t=this.parsePath(t));return e=e||(n=Pa(this,t))&&n.getModel(t),new Aa(i,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(i(this.option))},setReadOnly:function(){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){qg(this).getParent=t},isAnimationEnabled:function(){if(!Jc.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},qi(Aa),Ui(Aa),jg(Aa,cp),jg(Aa,fp),jg(Aa,Vg),jg(Aa,Xg);var Ug=0,Yg=1e-4,Zg=9007199254740991,$g=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Kg=(Object.freeze||Object)({linearMap:za,parsePercent:Ra,round:Na,asc:Fa,getPrecision:Ha,getPrecisionSafe:Ga,getPixelPrecision:Va,getPercentWithPrecision:Wa,MAX_SAFE_INTEGER:Zg,remRadian:Xa,isRadianAroundZero:ja,parseDate:qa,quantity:Ua,nice:Za,reformIntervals:$a,isNumeric:Ka}),Qg=L,Jg=["a","b","c","d","e","f","g"],tv=function(t,e){return"{"+t+(null==e?"":e)+"}"},ev=function(t){return 10>t?"0"+t:t},nv=An,iv=Sn,rv=(Object.freeze||Object)({addCommas:Qa,toCamelCase:Ja,normalizeCssArray:Qg,encodeHTML:to,formatTpl:eo,formatTplSimple:no,getTooltipMarker:io,formatTime:ro,capitalFirst:ao,truncateText:nv,getTextRect:iv}),av=f,ov=["left","right","top","bottom","width","height"],sv=[["width","left","right"],["height","top","bottom"]],lv=oo,hv=(x(oo,"vertical"),x(oo,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),uv=Fi(),cv=Aa.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,n,i){Aa.call(this,t,e,n,i),this.uid=La("ec_cpt_model")},init:function(t,e,n){this.mergeDefaultAndTheme(t,n)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?ho(t):{},a=e.getTheme();r(t,a.get(this.mainType)),r(t,this.getDefaultOption()),n&&lo(t,i,n)},mergeOption:function(t){r(this.option,t,!0);var e=this.layoutMode;e&&lo(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=uv(this);if(!t.defaultOption){for(var e=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&e.push(i),n=n.superClass}for(var a={},o=e.length-1;o>=0;o--)a=r(a,e[o],!0);t.defaultOption=a}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});$i(cv,{registerWhenExtend:!0}),Oa(cv),Ba(cv,co),c(cv,hv);var dv="";"undefined"!=typeof navigator&&(dv=navigator.platform||"");var fv={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:dv.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},pv=Fi(),gv={clearColorPalette:function(){pv(this).colorIdx=0,pv(this).colorNameMap={}},getColorFromPalette:function(t,e,n){e=e||this;var i=pv(e),r=i.colorIdx||0,a=i.colorNameMap=i.colorNameMap||{};if(a.hasOwnProperty(t))return a[t];var o=Pi(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?fo(s,n):o;if(l=l||o,l&&l.length){var h=l[r];return t&&(a[t]=h),i.colorIdx=(r+1)%l.length,h}}},vv={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis")[0],a=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),go(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),go(a)&&(i.set("y",a),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],n.set("single",r),go(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),go(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),go(o)&&(i.set("angle",o),e.firstCategoryDimIndex=1)},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();f(a.parallelAxisIndex,function(t,a){var s=r.getComponent("parallelAxis",t),l=o[a];n.set(l,s),go(s)&&null==e.firstCategoryDimIndex&&(i.set(l,s),e.firstCategoryDimIndex=a)})}},mv="original",yv="arrayRows",xv="objectRows",_v="keyedColumns",wv="unknown",bv="typedArray",Sv="column",Mv="row";vo.seriesDataToSource=function(t){return new vo({data:t,sourceFormat:I(t)?bv:mv,fromDataset:!1})},Ui(vo);var Iv=Fi(),Tv="\x00_ec_inner",Cv=Aa.extend({constructor:Cv,init:function(t,e,n,i){n=n||{},this.option=null,this._theme=new Aa(n),this._optionManager=i},setOption:function(t,e){O(!(Tv in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(i)):ko.call(this,i),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this,this._api);a.length&&f(a,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,i){var r=Pi(t[e]),s=Ei(a.get(e),r);zi(s),f(s,function(t){var n=t.option;S(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Lo(e,n,t.exist))});var l=Po(a,i);n[e]=[],a.set(e,[]),f(s,function(t,i){var r=t.exist,s=t.option;if(O(S(s)||r,"Empty component definition"),s){var h=cv.getClass(e,t.keyInfo.subType,!0);if(r&&r instanceof h)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var u=o({dependentModels:l,componentIndex:i},t.keyInfo);r=new h(s,this,this,u),o(r,u),r.init(s,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);a.get(e)[i]=r,n[e][i]=r.option},this),"series"===e&&Oo(this,a.get("series"))}var n=this.option,a=this._componentsMap,s=[];yo(this),f(t,function(t,e){null!=t&&(cv.hasClass(e)?e&&s.push(e):n[e]=null==n[e]?i(t):r(n[e],t,!0))}),cv.topologicalTravel(s,cv.getAllClassMainTypes(),e,this),this._seriesIndicesMap=N(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=i(this.option);return f(t,function(e,n){if(cv.hasClass(n)){for(var e=Pi(e),i=e.length-1;i>=0;i--)Ri(e[i])&&e.splice(i,1);t[n]=e}}),delete t[Tv],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap.get(t);return n?n[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,a=this._componentsMap.get(e);if(!a||!a.length)return[];var o;if(null!=n)_(n)||(n=[n]),o=v(p(n,function(t){return a[t]}),function(t){return!!t});else if(null!=i){var s=_(i);o=v(a,function(t){return s&&h(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var l=_(r);o=v(a,function(t){return l&&h(r,t.name)>=0||!l&&t.name===r})}else o=a.slice();return Bo(o,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}function n(e){return t.filter?v(e,t.filter):e}var i=t.query,r=t.mainType,a=e(i),o=a?this.queryComponents(a):this._componentsMap.get(r);return n(Bo(o,t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,i.each(function(t,i){f(t,function(t,r){e.call(n,i,t,r)})});else if(b(t))f(i.get(t),e,n);else if(S(t)){var r=this.findComponents(t);f(r,e,n)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return v(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){f(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,n){f(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return f(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var n=v(this._componentsMap.get("series"),t,e);Oo(this,n)},restoreData:function(t){var e=this._componentsMap;Oo(this,e.get("series"));var n=[];e.each(function(t,e){n.push(e)}),cv.topologicalTravel(n,cv.getAllClassMainTypes(),function(n){f(e.get(n),function(e){("series"!==n||!Do(e,t))&&e.restoreData()})})}});c(Cv,gv);var Dv=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],Av={};zo.prototype={constructor:zo,create:function(t,e){var n=[];f(Av,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},update:function(t,e){f(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},zo.register=function(t,e){Av[t]=e},zo.get=function(t){return Av[t]};var kv=f,Pv=i,Lv=p,Ov=r,Bv=/^(min|max)?(.+)$/;Ro.prototype={constructor:Ro,setOption:function(t,e){t&&f(Pi(t.series),function(t){t&&t.data&&I(t.data)&&E(t.data)}),t=Pv(t,!0);var n=this._optionBackup,i=No.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(Vo(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Lv(e.timelineOptions,Pv),this._mediaList=Lv(e.mediaList,Pv),this._mediaDefault=Pv(e.mediaDefault),this._currentMediaIndices=[],Pv(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Pv(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],a=[];if(!n.length&&!i)return a;for(var o=0,s=n.length;s>o;o++)Fo(n[o].query,t,e)&&r.push(o);return!r.length&&i&&(r=[-1]),r.length&&!Go(r,this._currentMediaIndices)&&(a=Lv(r,function(t){return Pv(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,a}};var Ev=f,zv=S,Rv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Nv=function(t,e){Ev(Zo(t.series),function(t){zv(t)&&Yo(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ev(n,function(e){Ev(Zo(t[e]),function(t){t&&(qo(t,"axisLabel"),qo(t.axisPointer,"label"))})}),Ev(Zo(t.parallel),function(t){var e=t&&t.parallelAxisDefault;qo(e,"axisLabel"),qo(e&&e.axisPointer,"label")}),Ev(Zo(t.calendar),function(t){Xo(t,"itemStyle"),qo(t,"dayLabel"),qo(t,"monthLabel"),qo(t,"yearLabel")}),Ev(Zo(t.radar),function(t){qo(t,"name")}),Ev(Zo(t.geo),function(t){zv(t)&&(Uo(t),Ev(Zo(t.regions),function(t){Uo(t)}))}),Ev(Zo(t.timeline),function(t){Uo(t),Xo(t,"label"),Xo(t,"itemStyle"),Xo(t,"controlStyle",!0),Xo(t,"checkpointStyle");var e=t.data;_(e)&&f(e,function(t){S(t)&&(Xo(t,"label"),Xo(t,"itemStyle"))})}),Ev(Zo(t.toolbox),function(t){Xo(t,"iconStyle"),Ev(t.feature,function(t){Xo(t,"iconStyle")})}),qo($o(t.axisPointer),"label"),qo($o(t.tooltip).axisPointer,"label")},Fv=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Hv=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Gv=function(t,e){Nv(t,e),t.series=Pi(t.series),f(t.series,function(t){if(S(t)){var e=t.type;if(("pie"===e||"gauge"===e)&&null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var n=Ko(t,"pointer.color");null!=n&&Qo(t,"itemStyle.normal.color",n)}Jo(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Hv,function(e){var n=t[e];n&&(_(n)||(n=[n]),f(n,function(t){Jo(t)}))})},Vv=ts.prototype;Vv.pure=!1,Vv.persistent=!0,Vv.getSource=function(){return this._source};var Wv={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:is},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],n=this._data,i=0;i<n.length;i++){var r=n[i];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:es,getItem:ns,appendData:is},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;f(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},original:{count:es,getItem:ns,appendData:is},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t){t-=this._offset;for(var e=[],n=this._dimSize*t,i=0;i<this._dimSize;i++)e[i]=this._data[n+i];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},Xv={arrayRows:rs,objectRows:function(t,e,n,i){return null!=n?t[i]:t},keyedColumns:rs,original:function(t,e,n){var i=Oi(t);return null!=n&&i instanceof Array?i[n]:i},typedArray:rs},jv={arrayRows:as,objectRows:function(t,e){return os(t[e],this._dimensionInfos[e])},keyedColumns:as,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Bi(t)&&(this.hasItemOption=!0),os(r instanceof Array?r[i]:r,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},qv=/\{@(.+?)\}/g,Uv={getDataParams:function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t,!0),o=n.getRawDataItem(t),s=n.getItemVisual(t,"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:a,dataIndex:r,data:o,dataType:e,value:i,color:s,marker:io(s),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,n,i,r){e=e||"normal";var a=this.getData(n),o=a.getItemModel(t),s=this.getDataParams(t,n);null!=i&&s.value instanceof Array&&(s.value=s.value[i]);var l=o.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);if("function"==typeof l)return s.status=e,l(s);if("string"==typeof l){var h=eo(l,s);return h.replace(qv,function(e,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),ss(a,t,n)})}},getRawValue:function(t,e){return ss(this.getData(e),t)},formatTooltip:function(){}},Yv=us.prototype;Yv.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!n&&(r=this._plan(this.context)),(this._dirty||"reset"===r)&&(this._dirty=!1,cs(this,n));var a=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var o=this._dueIndex,s=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);!n&&s>o&&this._progress({start:o,end:s},this.context),this._dueIndex=s;var l=null!=this._settedOutputEnd?this._settedOutputEnd:s;this._outputDueEnd=l}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Yv.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Yv.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Yv.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},Yv.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Yv.getUpstream=function(){return this._upstream},Yv.getDownstream=function(){return this._downstream},Yv.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Zv=Fi(),$v=cv.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=hs({count:ps,reset:gs}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),xo(this);var i=this.getInitialData(t,n);ms(i,this),this.dataTask.context.data=i,Zv(this).dataBeforeProcessed=i,ds(this)},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,i=n?ho(t):{},a=this.subType;cv.hasClass(a)&&(a+="Series"),r(t,e.getTheme().get(this.subType)),r(t,this.getDefaultOption()),Li(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&lo(t,i,n)},mergeOption:function(t,e){t=r(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&lo(this.option,t,n),xo(this);var i=this.getInitialData(t,e);ms(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Zv(this).dataBeforeProcessed=i,ds(this)},fillDataTextStyle:function(t){if(t)for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Li(t[n],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=xs(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Zv(this).data},setData:function(t){var e=xs(this);if(e){var n=e.context;n.data!==t&&e.isOverallFilter&&e.setOutputEnd(t.count()),n.outputData=t,e!==this.dataTask&&(n.data=t)}Zv(this).data=t},getSource:function(){return mo(this)},getRawData:function(){return Zv(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e){function n(n){function i(t,n){var i=r.getDimensionInfo(n);if(i&&i.otherDims.tooltip!==!1){var a=i.type,l=io({color:h,type:"subItem"}),u=(o?l+to(i.displayName||"-")+": ":"")+to("ordinal"===a?t+"":"time"===a?e?"":ro("yyyy/MM/dd hh:mm:ss",t):Qa(t));u&&s.push(u)}}var o=g(n,function(t,e,n){var i=r.getDimensionInfo(n);return t|=i&&i.tooltip!==!1&&null!=i.displayName},0),s=[];return a.length?f(a,function(e){i(ss(r,t,e),e)}):f(n,i),(o?"<br/>":"")+s.join(o?"<br/>":", ")}function i(t){return to(Qa(t))}var r=this.getData(),a=r.mapDimension("defaultedTooltip",!0),o=a.length,s=this.getRawValue(t),l=_(s),h=r.getItemVisual(t,"color");S(h)&&h.colorStops&&(h=(h.colorStops[0]||{}).color),h=h||"transparent";var u=o>1||l&&!o?n(s):i(o?ss(r,t,a[0]):l?s[0]:s),c=io(h),d=r.getName(t),p=this.name;return p===ip&&(p=""),p=p?to(p)+(e?": ":"<br/>"):"",e?c+p+u:p+c+(d?to(d)+": "+u:u)},isAnimationEnabled:function(){if(Jc.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,n){var i=this.ecModel,r=gv.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c($v,Uv),c($v,gv);var Kv=function(){this.group=new nf,this.uid=La("viewComponent")};Kv.prototype={constructor:Kv,init:function(){},render:function(){},dispose:function(){}};var Qv=Kv.prototype;Qv.updateView=Qv.updateLayout=Qv.updateVisual=function(){},qi(Kv),$i(Kv,{registerWhenExtend:!0});var Jv=function(){var t=Fi();return function(e){var n=t(e),i=e.pipelineContext,r=n.large,a=n.incrementalRender,o=n.large=i.large,s=n.incrementalRender=i.incrementalRender;return(r^o||a^s)&&"reset"}},tm=Fi(),em=Jv();_s.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,n,i){bs(t.getData(),i,"emphasis")},downplay:function(t,e,n,i){bs(t.getData(),i,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null};var nm=_s.prototype;nm.updateView=nm.updateLayout=nm.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},qi(_s,["dispose"]),$i(_s,{registerWhenExtend:!0}),_s.markUpdateMethod=function(t,e){tm(t).updateMethod=e};var im="\x00__throttleOriginMethod",rm="\x00__throttleRate",am="\x00__throttleType",om={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(i)||t.getColorFromPalette(t.get("name"),null,e.getSeriesCount());if(n.setVisual("color",r),!e.isSeriesFiltered(t)){"function"!=typeof r||r instanceof Pg||n.each(function(e){n.setItemVisual(e,"color",r(t.getDataParams(e)))});var a=function(t,e){var n=t.getItemModel(e),r=n.get(i,!0);null!=r&&t.setItemVisual(e,"color",r)};return{dataEach:n.hasItemOption?a:null}}}},sm={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},lm=function(t,e){function n(t,e){if("string"!=typeof t)return t;var n=t;return f(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}function i(t){var e=o.get(t);if(null==e){for(var n=t.split("."),i=sm.aria,r=0;r<n.length;++r)i=i[n[r]];return i}return e}function r(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function a(t){return sm.series.typeNames[t]||"自定义图"}var o=e.getModel("aria");if(o.get("show")){if(o.get("description"))return void t.setAttribute("aria-label",o.get("description"));var s=0;e.eachSeries(function(){++s},this);var l,h=o.get("data.maxCount")||10,u=o.get("series.maxCount")||10,c=Math.min(s,u);if(!(1>s)){var d=r();l=d?n(i("general.withTitle"),{title:d}):i("general.withoutTitle");var p=[],g=s>1?"series.multiple.prefix":"series.single.prefix";l+=n(i(g),{seriesCount:s}),e.eachSeries(function(t,e){if(c>e){var r,o=t.get("name"),l="series."+(s>1?"multiple":"single")+".";r=i(o?l+"withName":l+"withoutName"),r=n(r,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:a(t.subType)});var u=t.getData();window.data=u,r+=u.count()>h?n(i("data.partialData"),{displayCnt:h}):i("data.allData");for(var d=[],f=0;f<u.count();f++)if(h>f){var g=u.getName(f),v=ss(u,f);d.push(n(i(g?"data.withName":"data.withoutName"),{name:g,value:v}))}r+=d.join(i("data.separator.middle"))+i("data.separator.end"),p.push(r)}}),l+=p.join(i("series.multiple.separator.middle"))+i("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},hm=Math.PI,um=function(t,e){e=e||{},s(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var n=new Ig({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),i=new Ag({shape:{startAngle:-hm/2,endAngle:-hm/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),r=new Ig({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});i.animateShape(!0).when(1e3,{endAngle:3*hm/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*hm/2}).delay(300).start("circularInOut");var a=new nf;return a.add(i),a.add(r),a.add(n),a.resize=function(){var e=t.getWidth()/2,a=t.getHeight()/2;i.setShape({cx:e,cy:a});var o=i.shape.r;r.setShape({x:e-o,y:a-o,width:2*o,height:2*o}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},a.resize(),a},cm=Ds.prototype;cm.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.incrementalRender)&&t.__idxInPipeline>n.bockIndex;return{step:r?n.step:null}}},cm.getPipeline=function(t){return this._pipelineMap.get(t)},cm.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold");t.pipelineContext=n.context={incrementalRender:a,large:o}},cm.restorePipelines=function(t){var e=this,n=e._pipelineMap=N();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),bockIndex:-1,step:i||700,count:0}),Hs(e,t,t.dataTask)})},cm.prepareStageTasks=function(t){var e=this._stageTaskMap,n=this.ecInstance.getModel(),i=this.api;f(t,function(t){var r=e.get(t.uid)||e.set(t.uid,[]);t.reset&&ks(this,t,r,n,i),t.overallReset&&Ps(this,t,r,n,i)},this)},cm.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,Hs(this,e,r)},cm.performDataProcessorTasks=function(t,e,n){As(this,t,e,n,{block:!0})},cm.performVisualTasks=function(t,e,n,i){As(this,t,e,n,i)},cm.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},cm.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.bockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var dm=cm.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)};Ds.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:Gs(t)}),t.uid=La("stageHandler"),e&&(t.visualType=e),t};var fm,pm={},gm={};Vs(pm,Cv),Vs(gm,Eo),pm.eachSeriesByType=pm.eachRawSeriesByType=function(t){fm=t},pm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(fm=t.subType)};var vm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],mm={color:vm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vm]},ym="#eee",xm=function(){return{axisLine:{lineStyle:{color:ym}},axisTick:{lineStyle:{color:ym}},axisLabel:{textStyle:{color:ym}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:ym}}}
  },_m=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],wm={color:_m,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:ym},crossStyle:{color:ym}}},legend:{textStyle:{color:ym}},textStyle:{color:ym},title:{textStyle:{color:ym}},toolbox:{iconStyle:{normal:{borderColor:ym}}},dataZoom:{textStyle:{color:ym}},visualMap:{textStyle:{color:ym}},timeline:{lineStyle:{color:ym},itemStyle:{normal:{color:_m[1]}},label:{normal:{textStyle:{color:ym}}},controlStyle:{normal:{color:ym,borderColor:ym}}},timeAxis:xm(),logAxis:xm(),valueAxis:xm(),categoryAxis:xm(),line:{symbol:"circle"},graph:{color:_m},gauge:{title:{textStyle:{color:ym}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};wm.categoryAxis.splitLine.show=!1;var bm=O,Sm=f,Mm=w,Im=S,Tm=cv.parseClassType,Cm="4.0.2",Dm={zrender:"4.0.1"},Am=1,km=1e3,Pm=5e3,Lm=1e3,Om=2e3,Bm=3e3,Em=4e3,zm=5e3,Rm={PROCESSOR:{FILTER:km,STATISTIC:Pm},VISUAL:{LAYOUT:Lm,GLOBAL:Om,CHART:Bm,COMPONENT:Em,BRUSH:zm}},Nm="__flagInMainProcess",Fm="__hasGradientOrPatternBg",Hm="__optionUpdated",Gm=/^[a-zA-Z0-9_]+$/;Xs.prototype.on=Ws("on"),Xs.prototype.off=Ws("off"),Xs.prototype.one=Ws("one"),c(Xs,wd);var Vm=js.prototype;Vm._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[Hm]){var e=this[Hm].silent;this[Nm]=!0,Us(this),Wm.update.call(this),this[Nm]=!1,this[Hm]=!1,Qs.call(this,e),Js.call(this,e)}else if(t.unfinished){var n=Am,i=this._model,r=this._api;t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(Um,i),$s(this,i),t.performVisualTasks($m,i),al(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&t.unfinished);t.unfinished||(this._zr&&this._zr.flush(),this.trigger("finished"))}}},Vm.getDom=function(){return this._dom},Vm.getZr=function(){return this._zr},Vm.setOption=function(t,e,n){var i;if(Im(e)&&(n=e.lazyUpdate,i=e.silent,e=e.notMerge),this[Nm]=!0,!this._model||e){var r=new Ro(this._api),a=this._theme,o=this._model=new Cv(null,null,a,r);o.scheduler=this._scheduler,o.init(null,null,a,r)}this._model.setOption(t,Ym),n?(this[Hm]={silent:i},this[Nm]=!1):(Us(this),Wm.update.call(this),this._zr.flush(),this[Hm]=!1,this[Nm]=!1,Qs.call(this,i),Js.call(this,i))},Vm.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Vm.getModel=function(){return this._model},Vm.getOption=function(){return this._model&&this._model.getOption()},Vm.getWidth=function(){return this._zr.getWidth()},Vm.getHeight=function(){return this._zr.getHeight()},Vm.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Vm.getRenderedCanvas=function(t){if(Jc.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return f(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},Vm.getSvgDataUrl=function(){if(Jc.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.pathToSvg()}},Vm.getDataURL=function(t){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Sm(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var a="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Sm(i,function(t){t.group.ignore=!1}),a},Vm.getConnectedDataURL=function(t){if(Jc.canvasSupported){var e=this.group,n=Math.min,r=Math.max,a=1/0;if(ty[e]){var o=a,s=a,l=-a,h=-a,u=[],c=t&&t.pixelRatio||1;f(Jm,function(a){if(a.group===e){var c=a.getRenderedCanvas(i(t)),d=a.getDom().getBoundingClientRect();o=n(d.left,o),s=n(d.top,s),l=r(d.right,l),h=r(d.bottom,h),u.push({dom:c,left:d.left,top:d.top})}}),o*=c,s*=c,l*=c,h*=c;var d=l-o,p=h-s,g=ud();g.width=d,g.height=p;var v=Ti(g);return Sm(u,function(t){var e=new ai({style:{x:t.left*c-o,y:t.top*c-s,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},Vm.convertToPixel=x(qs,"convertToPixel"),Vm.convertFromPixel=x(qs,"convertFromPixel"),Vm.containPixel=function(t,e){var n,i=this._model;return t=Hi(i,t),f(t,function(t,i){i.indexOf("Models")>=0&&f(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n|=a.containPoint(e,t))}},this)},this),!!n},Vm.getVisual=function(t,e){var n=this._model;t=Hi(n,t,{defaultMainType:"series"});var i=t.seriesModel,r=i.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=a?r.getItemVisual(a,e):r.getVisual(e)},Vm.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Vm.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var Wm={prepareAndUpdate:function(t){Us(this),Wm.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(e){e.restoreData(t),a.performSeriesTasks(e),r.create(e,n),a.performDataProcessorTasks(Um,e,t),$s(this,e),el(e),r.update(e,n),nl(e),a.performVisualTasks($m,e,t),il(this,e,n,t);var o=e.get("backgroundColor")||"transparent",s=i.painter;if(s.isSingleCanvas&&s.isSingleCanvas())i.configLayer(0,{clearColor:o});else{if(!Jc.canvasSupported){var l=Be(o);o=We(l,"rgb"),0===l[3]&&(o="transparent")}o.colorStops||o.image?(i.configLayer(0,{clearColor:o}),this[Fm]=!0,this._dom.style.background="transparent"):(this[Fm]&&i.configLayer(0,{clearColor:null}),this[Fm]=!1,this._dom.style.background=o)}ol(e,n)}},updateTransform:function(t){var e=this._model,n=this,i=this._api;if(e){var r=[];e.eachComponent(function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,e,i,t);l&&l.update&&r.push(s)}else r.push(s)});var a=N();e.eachSeries(function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,e,i,t);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)}),nl(e),this._scheduler.performVisualTasks($m,e,t,{setDirty:!0,dirtyMap:a}),al(n,e,i,t,a),ol(e,this._api)}},updateView:function(t){var e=this._model;e&&(_s.markUpdateMethod(t,"updateView"),nl(e),this._scheduler.performVisualTasks($m,e,t,{setDirty:!0}),il(this,this._model,this._api,t),ol(e,this._api))},updateVisual:function(t){Wm.update.call(this,t)},updateLayout:function(t){Wm.update.call(this,t)}};Vm.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media");Zs(this,n,t&&t.silent)}},Vm.showLoading=function(t,e){if(Im(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Qm[t]){var n=Qm[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},Vm.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Vm.makeActionFromEvent=function(t){var e=o({},t);return e.type=qm[t.type],e},Vm.dispatchAction=function(t,e){if(Im(e)||(e={silent:!!e}),jm[t.type]&&this._model){if(this[Nm])return void this._pendingActions.push(t);Ks.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&Jc.browser.weChat&&this._throttledZrFlush(),Qs.call(this,e.silent),Js.call(this,e.silent)}},Vm.appendData=function(t){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0},Vm.on=Ws("on"),Vm.off=Ws("off"),Vm.one=Ws("one");var Xm=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Vm._initEvents=function(){Sm(Xm,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=o({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),Sm(qm,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Vm.isDisposed=function(){return this._disposed},Vm.clear=function(){this.setOption({series:[]},!0)},Vm.dispose=function(){if(!this._disposed){this._disposed=!0,Vi(this.getDom(),iy,"");var t=this._api,e=this._model;Sm(this._componentsViews,function(n){n.dispose(e,t)}),Sm(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete Jm[this.id]}},c(js,wd);var jm={},qm={},Um=[],Ym=[],Zm=[],$m=[],Km={},Qm={},Jm={},ty={},ey=new Date-0,ny=new Date-0,iy="_echarts_instance_",ry={},ay=pl;Tl(Om,om),xl(Gv),Dl("default",um),bl({type:"highlight",event:"highlight",update:"highlight"},H),bl({type:"downplay",event:"downplay",update:"downplay"},H),yl("light",mm),yl("dark",wm);var oy={};Rl.prototype={constructor:Rl,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t,e=this._old,n=this._new,i={},r={},a=[],o=[];for(Nl(e,i,a,"_oldKeyGetter",this),Nl(n,r,o,"_newKeyGetter",this),t=0;t<e.length;t++){var s=a[t],l=r[s];if(null!=l){var h=l.length;h?(1===h&&(r[s]=null),l=l.unshift()):r[s]=null,this._update&&this._update(l,t)}else this._remove&&this._remove(t)}for(var t=0;t<o.length;t++){var s=o[t];if(r.hasOwnProperty(s)){var l=r[s];if(null==l)continue;if(l.length)for(var u=0,h=l.length;h>u;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}};var sy=N(["tooltip","label","itemName","itemId","seriesName"]),ly=S,hy="undefined",uy=typeof window===hy?global:window,cy="e\x00\x00",dy={"float":typeof uy.Float64Array===hy?Array:uy.Float64Array,"int":typeof uy.Int32Array===hy?Array:uy.Int32Array,ordinal:Array,number:Array,time:Array},fy=["stackedOn","hasItemOption","_nameList","_idList","_rawData","_rawExtent","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],py=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r<t.length;r++){var a,o={};"string"==typeof t[r]?(a=t[r],o={name:a,coordDim:a,coordDimIndex:0,stackable:!1,type:"float"}):(o=t[r],a=o.name,o.type=o.type||"float",o.coordDim||(o.coordDim=a,o.coordDimIndex=0)),o.otherDims=o.otherDims||{},i.push(a),n[a]=o,o.index=r}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this.stackedOn=null,this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=Fl(this)},gy=py.prototype;gy.type="list",gy.hasItemOption=!0,gy.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},gy.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},gy.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},gy.mapDimension=function(t,e){var n=this._dimensionsSummary.encode[t];return e===!0?n&&n.slice()||[]:n?n[e||0]:null},gy.initData=function(t,e,n){var i=vo.isInstance(t)||d(t);i&&(t=new ts(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=jv[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},gy.getProvider=function(){return this._rawData},gy.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);var i=e.count();e.persistent||(i+=n),this._initDataFromProvider(n,i)},gy._initDataFromProvider=function(t,e){if(!(t>=e)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=this._dimensionInfos,l=this._nameList,h=this._idList,u=this._rawExtent,c=this._nameRepeatCount={},d=this._chunkCount,f=d-1,p=0;p<o.length;p++){var g=o[p];u[g]||(u[g]=[1/0,-1/0]);var v=s[g];0===v.otherDims.itemName&&(n=this._nameDimIdx=p),0===v.otherDims.itemId&&(this._idDimIdx=p);var m=dy[v.type];a[g]||(a[g]=[]);var y=a[g][f];if(y&&y.length<i){for(var x=new m(Math.min(e-f*i,i)),_=0;_<y.length;_++)x[_]=y[_];a[g][f]=x}for(var w=d*i;e>w;w+=i)a[g].push(new m(Math.min(e-w,i)));this._chunkCount=a[g].length}for(var b=t;e>b;b++){for(var S=r.getItem(b),M=Math.floor(b/i),I=b%i,w=0;w<o.length;w++){var g=o[w],T=a[g][M],C=this._dimValueGetter(S,g,b,w);T[I]=C,C<u[g][0]&&(u[g][0]=C),C>u[g][1]&&(u[g][1]=C)}if(!r.pure){var D=l[b];S&&!D&&(null!=n?D=this._getNameFromStore(b):null!=S.name&&(l[b]=D=S.name));var A=null==S?null:S.id;null==A&&null!=D&&(c[D]=c[D]||0,A=D,c[D]>0&&(A+="__ec__"+c[D]),c[D]++),null!=A&&(h[b]=A)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={}}},gy._getNameFromStore=function(t){var e=this._nameDimIdx;if(null!=e){var n=this._chunkSize,i=Math.floor(t/n),r=t%n,a=this.dimensions[e],o=this._dimensionInfos[a].ordinalMeta;if(o)return o.categories[t];var s=this._storage[a][i];return s&&s[r]}},gy._getIdFromStore=function(t){var e=this._idDimIdx;if(null!=e){var n=this._chunkSize,i=Math.floor(t/n),r=t%n,a=this.dimensions[e],o=this._dimensionInfos[a].ordinalMeta;if(o)return o.categories[t];var s=this._storage[a][i];return s&&s[r]}},gy.count=function(){return this._count},gy.getIndices=function(){if(this._indices){var t=this._indices.constructor;return new t(this._indices.buffer,0,this._count)}for(var t=Vl(this),e=new t(this.count()),n=0;n<e.length;n++)e[n]=n;return e},gy.get=function(t,e,n){if(!(e>=0&&e<this._count))return 0/0;var i=this._storage;if(!i[t])return 0/0;e=this.getRawIndex(e);var r=Math.floor(e/this._chunkSize),a=e%this._chunkSize,o=i[t][r],s=o[a];if(n){var l=this._dimensionInfos[t];if(l&&l.stackable)for(var h=this.stackedOn;h;){var u=h.get(t,e);(s>=0&&u>0||0>=s&&0>u)&&(s+=u),h=h.stackedOn}}return s},gy._getFast=function(t,e){var n=Math.floor(e/this._chunkSize),i=e%this._chunkSize,r=this._storage[t][n];return r[i]},gy.getValues=function(t,e,n){var i=[];_(t)||(n=e,e=t,t=this.dimensions);for(var r=0,a=t.length;a>r;r++)i.push(this.get(t[r],e,n));return i},gy.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=this._dimensionInfos,i=0,r=e.length;r>i;i++)if("ordinal"!==n[e[i]].type&&isNaN(this.get(e[i],t)))return!1;return!0},gy.getDataExtent=function(t,e){t=this.getDimension(t);var n=this._storage[t],i=[1/0,-1/0];if(e=(e||!1)&&this.isStacked(t),!n)return i;var r,a=this.count(),o=[t,!!e].join("_"),s=!this._indices&&!e;if(s)return this._rawExtent[t].slice();if(r=this._extent[o])return r.slice();r=i;for(var l=r[0],h=r[1],u=0;a>u;u++){var c=e?this.get(t,u,!0):this._getFast(t,this.getRawIndex(u));l>c&&(l=c),c>h&&(h=c)}return r=[l,h],this._extent[o]=r,r},gy.getApproximateExtent=function(t,e){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t,e)},gy.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},gy.isStacked=function(t){var e=this._dimensionInfos[t];return e&&e.stackable&&this.stackedOn},gy.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isNaN(o)||(i+=o)}return i},gy.indexOf=function(t,e){var n=this._storage,i=n[t],r=this._chunkSize;if(i)for(var a=0,o=this.count();o>a;a++){var s=Math.floor(a/r),l=a%r;if(i[s][l]===e)return a}return-1},gy.indexOfName=function(t){for(var e=0,n=this.count();n>e;e++)if(this.getName(e)===t)return e;return-1},gy.indexOfRawIndex=function(t){if(!this._indices)return t;if(t>=this._rawCount||0>t)return-1;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},gy.indicesOfNearest=function(t,e,n,i){var r=this._storage,a=r[t],o=[];if(!a)return o;null==i&&(i=1/0);for(var s=Number.MAX_VALUE,l=-1,h=0,u=this.count();u>h;h++){var c=e-this.get(t,h,n),d=Math.abs(c);i>=c&&s>=d&&((s>d||c>=0&&0>l)&&(s=d,l=c,o.length=0),o.push(h))}return o},gy.getRawIndex=jl,gy.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},gy.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||this._getNameFromStore(e)||""},gy.getId=function(t){return Ul(this,this.getRawIndex(t))},gy.each=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),t=p(Yl(t),this.getDimension,this);var r=t.length;i=i||this;for(var a=0;a<this.count();a++)switch(r){case 0:e.call(i,a);break;case 1:e.call(i,this.get(t[0],a,n),a);break;case 2:e.call(i,this.get(t[0],a,n),this.get(t[1],a,n),a);break;default:for(var o=0,s=[];r>o;o++)s[o]=this.get(t[o],a,n);s[o]=a,e.apply(i,s)}}},gy.filterSelf=function(t,e,n,i){if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||!1,i=i||this,t=p(Yl(t),this.getDimension,this);for(var r=this.count(),a=Vl(this),o=new a(r),s=[],l=t.length,h=0,u=t[0],c=0;r>c;c++){var d,f=this.getRawIndex(c);if(0===l)d=e.call(i,c);else if(1===l){var g=n?this.get(u,c,!0):this._getFast(u,f);d=e.call(i,g,c)}else{for(var v=0;l>v;v++)s[v]=n?this.get(t[v],c,!0):this._getFast(u,f);s[v]=c,d=e.apply(i,s)}d&&(o[h++]=f)}return r>h&&(this._indices=o),this._count=h,this._extent={},this.getRawIndex=this._indices?ql:jl,this}},gy.selectRange=function(t,e){if(this._count){e=e||!1;var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(i);var r=n.length;if(r){var a=this.count(),o=Vl(this),s=new o(a),l=0,h=n[0],u=t[h][0],c=t[h][1],d=!1;if(!this._indices&&!e){var f=0;if(1===r){for(var p=this._storage[n[0]],g=0;g<this._chunkCount;g++)for(var v=p[g],m=Math.min(this._count-g*this._chunkSize,this._chunkSize),y=0;m>y;y++){var x=v[y];x>=u&&c>=x&&(s[l++]=f),f++}d=!0}else if(2===r){for(var p=this._storage[h],_=this._storage[n[1]],w=t[n[1]][0],b=t[n[1]][1],g=0;g<this._chunkCount;g++)for(var v=p[g],S=_[g],m=Math.min(this._count-g*this._chunkSize,this._chunkSize),y=0;m>y;y++){var x=v[y],M=S[y];x>=u&&c>=x&&M>=w&&b>=M&&(s[l++]=f),f++}d=!0}}if(!d)if(1===r){e=e||this.isStacked(h);for(var y=0;a>y;y++){var I=this.getRawIndex(y),x=e?this.get(h,y,!0):this._getFast(h,I);x>=u&&c>=x&&(s[l++]=I)}}else for(var y=0;a>y;y++){for(var T=!0,I=this.getRawIndex(y),g=0;r>g;g++){var C=n[g],x=e?this.get(C,y,!0):this._getFast(i,I);(x<t[C][0]||x>t[C][1])&&(T=!1)}T&&(s[l++]=this.getRawIndex(y))}return a>l&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?ql:jl,this}}},gy.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},n,i),r},gy.map=function(t,e,n,i){t=p(Yl(t),this.getDimension,this);var r=Zl(this,t);r._indices=this._indices,r.getRawIndex=r._indices?ql:jl;for(var a=r._storage,o=[],s=this._chunkSize,l=t.length,h=this.count(),u=[],c=0;h>c;c++){for(var d=0;l>d;d++)u[d]=this.get(t[d],c,n);u[l]=c;var f=e&&e.apply(i,u);if(null!=f){"object"!=typeof f&&(o[0]=f,f=o);for(var g=this.getRawIndex(c),v=Math.floor(g/s),m=g%s,y=0;y<f.length;y++){var x=t[y],_=a[x];_&&(_[v][m]=f[y])}}}return r},gy.downSample=function(t,e,n,i){for(var r=Zl(this,[t]),a=r._storage,o=[],s=Math.floor(1/e),l=a[t],h=this.count(),u=this._chunkSize,c=new(Vl(this))(h),d=0,f=0;h>f;f+=s){s>h-f&&(s=h-f,o.length=s);for(var p=0;s>p;p++){var g=this.getRawIndex(f+p),v=Math.floor(g/u),m=g%u;o[p]=l[v][m]}var y=n(o),x=this.getRawIndex(Math.min(f+i(o,y)||0,h-1)),_=Math.floor(x/u),w=x%u;l[_][w]=y,c[d++]=x}return r._count=d,r._indices=c,r.getRawIndex=ql,r},gy.getItemModel=function(t){var e=this.hostModel;return new Aa(this.getRawDataItem(t),e,e&&e.ecModel)},gy.diff=function(t){var e=this;return new Rl(t?t.getIndices():[],this.getIndices(),function(e){return Ul(t,e)},function(t){return Ul(e,t)})},gy.getVisual=function(t){var e=this._visual;return e&&e[t]},gy.setVisual=function(t,e){if(ly(t))for(var n in t)t.hasOwnProperty(n)&&this.setVisual(n,t[n]);else this._visual=this._visual||{},this._visual[t]=e},gy.setLayout=function(t,e){if(ly(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},gy.getLayout=function(t){return this._layout[t]},gy.getItemLayout=function(t){return this._itemLayouts[t]},gy.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?o(this._itemLayouts[t]||{},e):e},gy.clearItemLayouts=function(){this._itemLayouts.length=0},gy.getItemVisual=function(t,e,n){var i=this._itemVisuals[t],r=i&&i[e];return null!=r||n?r:this.getVisual(e)},gy.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=i,ly(e))for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a],r[a]=!0);else i[e]=n,r[e]=!0},gy.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var vy=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};gy.setItemGraphicEl=function(t,e){var n=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(vy,e)),this._graphicEls[t]=e},gy.getItemGraphicEl=function(t){return this._graphicEls[t]},gy.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},gy.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new py(e,this.hostModel)}if(t._storage=this._storage,Xl(t,this),this._indices){var n=this._indices.constructor;t._indices=new n(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?ql:jl,t._extent=i(this._extent),t._approximateExtent=i(this._approximateExtent),t},gy.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(P(arguments)))})},gy.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],gy.CHANGABLE_METHODS=["filterSelf","selectRange"];var my=function(t,e){return e=e||{},Kl(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,extraPrefix:e.extraPrefix,extraFromZero:e.extraFromZero})};rh.prototype.parse=function(t){return t},rh.prototype.getSetting=function(t){return this._setting[t]},rh.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},rh.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},rh.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},rh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},rh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e,!0))},rh.prototype.getExtent=function(){return this._extent.slice()},rh.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},rh.prototype.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},rh.prototype.isBlank=function(){return this._isBlank},rh.prototype.setBlank=function(t){this._isBlank=t},qi(rh),$i(rh,{registerWhenExtend:!0}),ah.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&p(n,sh);return new ah({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})};var yy=ah.prototype;yy.getOrdinal=function(t){return oh(this).get(t)},yy.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=oh(this);return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e};var xy=rh.prototype,_y=rh.extend({type:"ordinal",init:function(t,e){(!t||_(t))&&(t=new ah({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),xy.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return xy.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(xy.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e,!1))},niceTicks:H,niceExtent:H});_y.create=function(){return new _y};var wy=Na,by=Na,Sy=rh.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),Sy.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=hh(t)},getTicks:function(){return dh(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n<e.length;n++)t.push(this.getLabel(e[n]));return t},getLabel:function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Ga(t)||0:"auto"===n&&(n=this._intervalPrecision),t=by(t,n,!0),Qa(t)},niceTicks:function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var a=lh(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=by(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=by(Math.ceil(e[1]/r)*r))}});Sy.create=function(){return new Sy};var My="__ec_stack_",Iy=Sy.prototype,Ty=Math.ceil,Cy=Math.floor,Dy=1e3,Ay=60*Dy,ky=60*Ay,Py=24*ky,Ly=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},Oy=Sy.extend({type:"time",getLabel:function(t){var e=this._stepLvl,n=new Date(t);return ro(e[0],n,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Py,e[1]+=Py),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Py}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Na(Cy(e[0]/i)*i)),t.fixMax||(e[1]=Na(Ty(e[1]/i)*i))},niceTicks:function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0],a=r/t;null!=e&&e>a&&(a=e),null!=n&&a>n&&(a=n);var o=By.length,s=Ly(By,a,0,o),l=By[Math.min(s,o-1)],h=l[1];if("year"===l[0]){var u=r/h,c=Za(u/t,!0);h*=c}var d=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,f=[Math.round(Ty((i[0]-d)/h)*h+d),Math.round(Cy((i[1]-d)/h)*h+d)];ch(f,i),this._stepLvl=l,this._interval=h,this._niceExtent=f},parse:function(t){return+qa(t)}});f(["contain","normalize"],function(t){Oy.prototype[t]=function(e){return Iy[t].call(this,this.parse(e))}});var By=[["hh:mm:ss",Dy],["hh:mm:ss",5*Dy],["hh:mm:ss",10*Dy],["hh:mm:ss",15*Dy],["hh:mm:ss",30*Dy],["hh:mm\nMM-dd",Ay],["hh:mm\nMM-dd",5*Ay],["hh:mm\nMM-dd",10*Ay],["hh:mm\nMM-dd",15*Ay],["hh:mm\nMM-dd",30*Ay],["hh:mm\nMM-dd",ky],["hh:mm\nMM-dd",2*ky],["hh:mm\nMM-dd",6*ky],["hh:mm\nMM-dd",12*ky],["MM-dd\nyyyy",Py],["MM-dd\nyyyy",2*Py],["MM-dd\nyyyy",3*Py],["MM-dd\nyyyy",4*Py],["MM-dd\nyyyy",5*Py],["MM-dd\nyyyy",6*Py],["week",7*Py],["MM-dd\nyyyy",10*Py],["week",14*Py],["week",21*Py],["month",31*Py],["week",42*Py],["month",62*Py],["week",42*Py],["quarter",380*Py/4],["month",31*Py*4],["month",31*Py*5],["half-year",380*Py/2],["month",31*Py*8],["month",31*Py*10],["year",380*Py]];Oy.create=function(t){return new Oy({useUTC:t.ecModel.get("useUTC")})};var Ey=rh.prototype,zy=Sy.prototype,Ry=Ga,Ny=Na,Fy=Math.floor,Hy=Math.ceil,Gy=Math.pow,Vy=Math.log,Wy=rh.extend({type:"log",base:10,$constructor:function(){rh.apply(this,arguments),this._originalScale=new Sy},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return p(zy.getTicks.call(this),function(i){var r=Na(Gy(this.base,i));return r=i===e[0]&&t.__fixMin?yh(r,n[0]):r,r=i===e[1]&&t.__fixMax?yh(r,n[1]):r},this)},getLabel:zy.getLabel,scale:function(t){return t=Ey.scale.call(this,t),Gy(this.base,t)},setExtent:function(t,e){var n=this.base;t=Vy(t)/Vy(n),e=Vy(e)/Vy(n),zy.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=Ey.getExtent.call(this);e[0]=Gy(t,e[0]),e[1]=Gy(t,e[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(e[0]=yh(e[0],i[0])),n.__fixMax&&(e[1]=yh(e[1],i[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Vy(t[0])/Vy(e),t[1]=Vy(t[1])/Vy(e),Ey.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=Ua(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var a=[Na(Hy(e[0]/i)*i),Na(Fy(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:function(t){zy.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){Wy.prototype[t]=function(e){return e=Vy(e)/Vy(this.base),Ey[t].call(this,e)}}),Wy.create=function(){return new Wy};var Xy={getFormattedLabels:function(){return Ih(this.axis,this.get("axisLabel.formatter"))},getMin:function(t){var e=this.option,n=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!C(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(t){var e=this.option,n=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!C(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:H,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},jy=Gr({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),qy=Gr({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),Uy=Gr({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,h=Math.asin(s/o),u=Math.cos(h)*o,c=Math.sin(h),d=Math.cos(h),f=.6*o,p=.7*o;t.moveTo(n-u,l+s),t.arc(n,l,o,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(n+u-c*f,l+s+d*f,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-u+c*f,l+s+d*f,n-u,l+s),t.closePath()}}),Yy=Gr({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),Zy={line:Tg,rect:Ig,roundRect:Ig,square:Ig,circle:vg,diamond:qy,pin:Uy,arrow:Yy,triangle:jy},$y={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i
  },arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},Ky={};f(Zy,function(t,e){Ky[e]=new t});var Qy=Gr({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,n){var i=e.symbolType,r=Ky[i];"none"!==e.symbolType&&(r||(i="rect",r=Ky[i]),$y[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n))}}),Jy=(Object.freeze||Object)({createList:Ah,getLayoutRect:so,createScale:kh,mixinAxisModelCommonMethods:Ph,completeDimensions:Kl,createDimensions:my,createSymbol:Dh}),tx=1e-8;Bh.prototype={constructor:Bh,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],a=[],o=this.geometries,s=0;s<o.length;s++)if("polygon"===o[s].type){var l=o[s].exterior;cr(l,r,a),oe(n,n,r),se(i,i,a)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new rn(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++)if("polygon"===n[i].type){var a=n[i].exterior,o=n[i].interiors;if(Oh(a,t[0],t[1])){for(var s=0;s<(o?o.length:0);s++)if(Oh(o[s]))continue t;return!0}}return!1},transformTo:function(t,e,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new rn(t,e,n,i),s=r.calculateTransform(o),l=this.geometries,h=0;h<l.length;h++)if("polygon"===l[h].type){for(var u=l[h].exterior,c=l[h].interiors,d=0;d<u.length;d++)ae(u[d],u[d],s);for(var f=0;f<(c?c.length:0);f++)for(var d=0;d<c[f].length;d++)ae(c[f][d],c[f][d],s)}r=this._rect,r.copy(o),this.center=[r.x+r.width/2,r.y+r.height/2]}};var ex=function(t){return Eh(t),p(v(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,n=t.geometry,i=n.coordinates,r=[];"Polygon"===n.type&&r.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),"MultiPolygon"===n.type&&f(i,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new Bh(e.name,r,e.cp);return a.properties=e,a})},nx=za,ix=[0,1],rx=function(t,e,n){this.dim=t,this.scale=e,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};rx.prototype={constructor:rx,contain:function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Va(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),Rh(n,i.count())),nx(t,ix,n,e)},coordToData:function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),Rh(n,i.count()));var r=nx(t,n,ix,e);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;i<e.length;i++)n.push(e[i][0]);return e[i-1]&&n.push(e[i-1][1]),n}return p(this.scale.getTicks(),this.dataToCoord,this)},getLabelsCoords:function(){return p(this.scale.getTicks(),this.dataToCoord,this)},getBands:function(){for(var t=this.getExtent(),e=[],n=this.scale.count(),i=t[0],r=t[1],a=r-i,o=0;n>o;o++)e.push([a*o/n+i,a*(o+1)/n+i]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,getLabelInterval:function(){var t=this._labelInterval;if(!t){var e=this.model,n=e.getModel("axisLabel");t=n.get("interval"),"category"!==this.type||null!=t&&"auto"!==t||(t=Mh(p(this.scale.getTicks(),this.dataToCoord,this),e.getFormattedLabels(),n.getFont(),this.getRotate?this.getRotate():this.isHorizontal&&!this.isHorizontal()?90:0,n.get("rotate"))),this._labelInterval=t}return t}};var ax=ex,ox={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){ox[t]=fd[t]});var sx=function(t){this._axes={},this._dimList=[],this.name=t||""};sx.prototype={constructor:sx,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,Nh,this)},getAxesByScale:function(t){return t=t.toLowerCase(),v(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[e](t[a])}return i}},Fh.prototype={constructor:Fh,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,n){var i=this.getAxis("x"),r=this.getAxis("y");return n=n||[],n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=r.toGlobalCoord(r.dataToCoord(t[1])),n},clampData:function(t,e){var n=this.getAxis("x").scale.getExtent(),i=this.getAxis("y").scale.getExtent();return e=e||[],e[0]=Math.min(Math.max(Math.min(n[0],n[1]),t[0]),Math.max(n[0],n[1])),e[1]=Math.min(Math.max(Math.min(i[0],i[1]),t[1]),Math.max(i[0],i[1])),e},pointToData:function(t,e){var n=this.getAxis("x"),i=this.getAxis("y");return e=e||[],e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},u(Fh,sx);var lx=function(t,e,n,i,r){rx.call(this,t,e,n),this.type=i||"value",this.position=r||"bottom"};lx.prototype={constructor:lx,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},u(lx,rx);var hx={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)"]}}},ux={};ux.categoryAxis=r({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hx),ux.valueAxis=r({boundaryGap:[0,0],splitNumber:5},hx),ux.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},ux.valueAxis),ux.logAxis=s({scale:!0,logBase:10},ux.valueAxis);var cx=["value","category","time","log"],dx=function(t,e,n,i){f(cx,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,i){var a=this.layoutMode,s=a?ho(e):{},l=i.getTheme();r(e,l.get(o+"Axis")),r(e,this.getDefaultOption()),e.type=n(t,e),a&&lo(e,s,a)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=ah.createByAxisModel(this))},getCategories:function(){return"category"===this.option.type?this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:a([{},ux[o+"Axis"],i],!0)})}),cv.registerSubTypeDefaulter(t+"Axis",x(n,t))},fx=cv.extend({type:"cartesian2dAxis",axis:null,init:function(){fx.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){fx.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){fx.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r(fx.prototype,Xy);var px={offset:0};dx("x",fx,Hh,px),dx("y",fx,Hh,px),cv.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 gx=f,vx=Sh,mx=wh,yx=Xh.prototype;yx.type="grid",yx.axisPointerEnabled=!0,yx.getRect=function(){return this._rect},yx.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),gx(n.x,function(t){mx(t.scale,t.model)}),gx(n.y,function(t){mx(t.scale,t.model)}),gx(n.x,function(t){jh(n,"y",t)}),gx(n.y,function(t){jh(n,"x",t)}),this.resize(this.model,e)},yx.resize=function(t,e,n){function i(){gx(a,function(t){var e=t.isHorizontal(),n=e?[0,r.width]:[0,r.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Uh(t,e?r.x:r.y)})}var r=so(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;i(),!n&&t.get("containLabel")&&(gx(a,function(t){if(!t.model.get("axisLabel.inside")){var e=Wh(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i)}}}),i())},yx.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n){if(null==e)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[e]}},yx.getAxes=function(){return this._axesList.slice()},yx.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}S(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},yx.getCartesians=function(){return this._coordsList.slice()},yx.convertToPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},yx.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(t,e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},yx._findConvertTarget=function(t,e){var n,i,r=e.seriesModel,a=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,h(l,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},yx.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},yx._initCartesian=function(t,e){function n(n){return function(o,s){if(Gh(o,t,e)){var l=o.get("position");"x"===n?"top"!==l&&"bottom"!==l&&(l="bottom",i[l]&&(l="top"===l?"bottom":"top")):"left"!==l&&"right"!==l&&(l="left",i[l]&&(l="left"===l?"right":"left")),i[l]=!0;var h=new lx(n,bh(o),[0,0],o.get("type"),l),u="category"===h.type;h.onBand=u&&o.get("boundaryGap"),h.inverse=o.get("inverse"),h.onZero=o.get("axisLine.onZero"),h.onZeroAxisIndex=o.get("axisLine.onZeroAxisIndex"),o.axis=h,h.model=o,h.grid=this,h.index=s,this._axesList.push(h),r[n][s]=h,a[n]++}}}var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),a.x&&a.y?(this._axesMap=r,void gx(r.x,function(e,n){gx(r.y,function(i,r){var a="x"+n+"y"+r,o=new Fh(a);o.grid=this,o.model=t,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(e),o.addAxis(i)},this)},this)):(this._axesMap={},void(this._axesList=[]))},yx._updateScale=function(t,e){function n(t,e){gx(t.mapDimension(e.dim,!0),function(n){e.scale.unionExtentFromData(t,n)})}f(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(i){if(Zh(i)){var r=Yh(i,t),a=r[0],o=r[1];if(!Gh(a,e,t)||!Gh(o,e,t))return;var s=this.getCartesian(a.componentIndex,o.componentIndex),l=i.getData(),h=s.getAxis("x"),u=s.getAxis("y");"list"===l.type&&(n(l,h,i),n(l,u,i))}},this)},yx.getTooltipAxes=function(t){var e=[],n=[];return gx(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,a)<0&&n.push(a)}),{baseAxes:e,otherAxes:n}};var xx=["xAxis","yAxis"];Xh.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,r){var a=new Xh(i,t,e);a.name="grid_"+r,a.resize(i,e,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if(Zh(e)){var n=Yh(e,t),i=n[0],r=n[1],a=i.getCoordSysModel(),o=a.coordinateSystem;e.coordinateSystem=o.getCartesian(i.componentIndex,r.componentIndex)}}),n},Xh.dimensions=Xh.prototype.dimensions=Fh.prototype.dimensions,zo.register("cartesian2d",Xh);var _x=$v.extend({type:"series.__base_bar__",getInitialData:function(){return th(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),a=i.getLayout("size"),o=e.getBaseAxis().isHorizontal()?0:1;return n[o]+=r+a/2,n}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,itemStyle:{},emphasis:{}}});_x.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"});var bx=hp([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Sx={getBarItemStyle:function(t){var e=bx(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}},Mx=["itemStyle","barBorderWidth"];o(Aa.prototype,Sx),Ll({type:"bar",render:function(t,e,n){var i=t.get("coordinateSystem");return("cartesian2d"===i||"polar"===i)&&this._render(t,e,n),this.group},dispose:H,_render:function(t){var e,n=this.group,i=t.getData(),r=this._data,a=t.coordinateSystem,o=a.getBaseAxis();"cartesian2d"===a.type?e=o.isHorizontal():"polar"===a.type&&(e="angle"===o.dim);var s=t.isAnimationEnabled()?t:null;i.diff(r).add(function(r){if(i.hasValue(r)){var o=i.getItemModel(r),l=Tx[a.type](i,r,o),h=Ix[a.type](i,r,o,l,e,s);i.setItemGraphicEl(r,h),n.add(h),eu(h,i,r,o,l,t,e,"polar"===a.type)}}).update(function(o,l){var h=r.getItemGraphicEl(l);if(!i.hasValue(o))return void n.remove(h);var u=i.getItemModel(o),c=Tx[a.type](i,o,u);h?_a(h,{shape:c},s,o):h=Ix[a.type](i,o,u,c,e,s,!0),i.setItemGraphicEl(o,h),n.add(h),eu(h,i,o,u,c,t,e,"polar"===a.type)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===a.type?e&&Jh(t,s,e):e&&tu(t,s,e)}).execute(),this._data=i},remove:function(t){var e=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(e){"sector"===e.type?tu(e.dataIndex,t,e):Jh(e.dataIndex,t,e)}):e.removeAll()}});var Ix={cartesian2d:function(t,e,n,i,r,a,s){var l=new Ig({shape:o({},i)});if(a){var h=l.shape,u=r?"height":"width",c={};h[u]=0,c[u]=i[u],Hg[s?"updateProps":"initProps"](l,{shape:c},a,e)}return l},polar:function(t,e,n,i,r,a,s){var l=new xg({shape:o({},i)});if(a){var h=l.shape,u=r?"r":"endAngle",c={};h[u]=r?0:i.startAngle,c[u]=i[u],Hg[s?"updateProps":"initProps"](l,{shape:c},a,e)}return l}},Tx={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=nu(n,i),a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},Cx=Math.PI,Dx=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new nf;var n=new nf({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};Dx.prototype={constructor:Dx,hasBuilder:function(t){return!!Ax[t]},add:function(t){Ax[t].call(this)},getGroup:function(){return this.group}};var Ax={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(ae(r,r,i),ae(a,a,i));var s=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new Tg(Ur({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})));var l=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize");if(null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof h||"number"==typeof h)&&(h=[h,h]);var u=h[0],c=h[1];f([[t.rotation+Math.PI/2,r],[t.rotation-Math.PI/2,a]],function(t,e){if("none"!==l[e]&&null!=l[e]){var n=Dh(l[e],-u/2,-c/2,u,c,s.stroke,!0);n.attr({rotation:t[0],position:t[1],silent:!0}),this.group.add(n)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=uu(this,t,e),i=cu(this,t,e);ou(t,i,n)},axisName:function(){var t=this.opt,e=this.axisModel,n=D(t.axisName,e.get("name"));if(n){var i,r=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,h=this.axisModel.axis.getExtent(),u=h[0]>h[1]?-1:1,c=["start"===r?h[0]-u*l:"end"===r?h[1]+u*l:(h[0]+h[1])/2,hu(r)?t.labelOffset+a*l:0],d=e.get("nameRotate");null!=d&&(d=d*Cx/180);var f;hu(r)?i=kx(t.rotation,null!=d?d:t.rotation,a):(i=ru(t,r,d||0,h),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(i.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},v=g.ellipsis,m=D(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=v&&null!=m?nv(n,m,p,v,{minChar:2,placeholder:g.placeholder}):n,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:n,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new gg({anid:"name",__fullText:n,__truncatedText:y,position:c,rotation:i.rotation,silent:au(e),z2:1,tooltip:x&&x.show?o({content:n,formatter:function(){return n},formatterParams:w},x):null});ua(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:i.textAlign,textVerticalAlign:i.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=iu(e),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},kx=Dx.innerTextLayout=function(t,e,n){var i,r,a=Xa(e-t);return ja(a)?(r=n>0?"top":"bottom",i="center"):ja(a-Cx)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&Cx>a?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},Px=Dx.ifIgnoreOnTick=function(t,e,n,i,r,a){if(0===e&&r||e===i-1&&a)return!1;var o,s=t.scale;return"ordinal"===s.type&&("function"==typeof n?(o=s.getTicks()[e],!n(o,s.getLabel(o))):e%(n+1))},Lx=Dx.getInterval=function(t,e){var n=t.get("interval");return(null==n||"auto"==n)&&(n=e),n},Ox=f,Bx=x,Ex=kl({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,n,i){this.axisPointerClass&&yu(t),Ex.superApply(this,"render",arguments),Su(this,t,e,n,i,!0)},updateAxisPointer:function(t,e,n,i){Su(this,t,e,n,i,!1)},remove:function(t,e){var n=this._axisPointer;n&&n.remove(e),Ex.superApply(this,"remove",arguments)},dispose:function(t,e){Mu(this,e),Ex.superApply(this,"dispose",arguments)}}),zx=[];Ex.registerAxisPointerClass=function(t,e){zx[t]=e},Ex.getAxisPointerClass=function(t){return t&&zx[t]};var Rx=Dx.ifIgnoreOnTick,Nx=Dx.getInterval,Fx=["axisLine","axisTickLabel","axisName"],Hx=["splitArea","splitLine"],Gx=Ex.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new nf,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),o=Iu(a,t),s=new Dx(t,o);f(Fx,s.add,s),this._axisGroup.add(s.getGroup()),f(Hx,function(e){t.get(e+".show")&&this["_"+e](t,a,o.labelInterval)},this),Ia(r,this._axisGroup,t),Gx.superCall(this,"render",t,e,n,i)}},_splitLine:function(t,e,n){var i=t.axis;if(!i.scale.isBlank()){var r=t.getModel("splitLine"),a=r.getModel("lineStyle"),o=a.get("color"),l=Nx(r,n);o=_(o)?o:[o];for(var h=e.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords(),f=i.scale.getTicks(),p=t.get("axisLabel.showMinLabel"),g=t.get("axisLabel.showMaxLabel"),v=[],m=[],y=a.getLineStyle(),x=0;x<d.length;x++)if(!Rx(i,x,l,d.length,p,g)){var w=i.toGlobalCoord(d[x]);u?(v[0]=w,v[1]=h.y,m[0]=w,m[1]=h.y+h.height):(v[0]=h.x,v[1]=w,m[0]=h.x+h.width,m[1]=w);var b=c++%o.length;this._axisGroup.add(new Tg(Ur({anid:"line_"+f[x],shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:s({stroke:o[b]},y),silent:!0})))}}},_splitArea:function(t,e,n){var i=t.axis;if(!i.scale.isBlank()){var r=t.getModel("splitArea"),a=r.getModel("areaStyle"),o=a.get("color"),l=e.coordinateSystem.getRect(),h=i.getTicksCoords(),u=i.scale.getTicks(),c=i.toGlobalCoord(h[0]),d=i.toGlobalCoord(h[0]),f=0,p=Nx(r,n),g=a.getAreaStyle();o=_(o)?o:[o];for(var v=t.get("axisLabel.showMinLabel"),m=t.get("axisLabel.showMaxLabel"),y=1;y<h.length;y++)if(!Rx(i,y,p,h.length,v,m)){var x,w,b,S,M=i.toGlobalCoord(h[y]);i.isHorizontal()?(x=c,w=l.y,b=M-x,S=l.height):(x=l.x,w=d,b=l.width,S=M-w);var I=f++%o.length;this._axisGroup.add(new Ig({anid:"area_"+u[y],shape:{x:x,y:w,width:b,height:S},style:s({fill:o[I]},g),silent:!0})),c=x+b,d=w+S}}}});Gx.extend({type:"xAxis"}),Gx.extend({type:"yAxis"}),kl({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new Ig({shape:t.coordinateSystem.getRect(),style:s({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),xl(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),Il(x(mh,"bar")),Tl(function(t){t.eachSeriesByType("bar",function(t){var e=t.getData();e.setVisual("legendSymbol","roundRect")})}),$v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return th(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:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var Vx=Du.prototype;Vx._createSymbol=function(t,e,n,i){this.removeAll();var r=e.getItemVisual(n,"color"),a=Dh(t,-1,-1,2,2,r);a.attr({z2:100,culling:!0,scale:Cu(i)}),a.drift=Au,this._symbolType=t,this.add(a)},Vx.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},Vx.getSymbolPath=function(){return this.childAt(0)},Vx.getScale=function(){return this.childAt(0).scale},Vx.highlight=function(){this.childAt(0).trigger("emphasis")},Vx.downplay=function(){this.childAt(0).trigger("normal")},Vx.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Vx.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},Vx.updateData=function(t,e,n){this.silent=!1;var i=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,a=Tu(t,e),o=i!==this._symbolType;if(o)this._createSymbol(i,t,e,a);else{var s=this.childAt(0);s.silent=!1,_a(s,{scale:Cu(a)},r,e)}if(this._updateCommon(t,e,a,n),o){var s=this.childAt(0),l=n&&n.fadeIn,h={scale:s.scale.slice()};l&&(h.style={opacity:s.style.opacity}),s.scale=[0,0],l&&(s.style.opacity=0),wa(s,h,r,e)}this._seriesModel=r};var Wx=["itemStyle"],Xx=["emphasis","itemStyle"],jx=["label"],qx=["emphasis","label"];Vx._updateCommon=function(t,e,n,i){function r(e){return _?t.getName(e):$h(t,e)}var a=this.childAt(0),s=t.hostModel,l=t.getItemVisual(e,"color");"image"!==a.type&&a.useStyle({strokeNoScale:!0});var h=i&&i.itemStyle,u=i&&i.hoverItemStyle,c=i&&i.symbolRotate,d=i&&i.symbolOffset,f=i&&i.labelModel,p=i&&i.hoverLabelModel,g=i&&i.hoverAnimation,v=i&&i.cursorStyle;if(!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e);h=m.getModel(Wx).getItemStyle(["color"]),u=m.getModel(Xx).getItemStyle(),c=m.getShallow("symbolRotate"),d=m.getShallow("symbolOffset"),f=m.getModel(jx),p=m.getModel(qx),g=m.getShallow("hoverAnimation"),v=m.getShallow("cursor")}else u=o({},u);var y=a.style;a.attr("rotation",(c||0)*Math.PI/180||0),d&&a.attr("position",[Ra(d[0],n[0]),Ra(d[1],n[1])]),v&&a.attr("cursor",v),a.setColor(l,i&&i.symbolInnerColor),a.setStyle(h);var x=t.getItemVisual(e,"opacity");null!=x&&(y.opacity=x);var _=i&&i.useNameLabel;ha(y,u,f,p,{labelFetcher:s,labelDataIndex:e,defaultText:r,isRectText:!0,autoColor:l}),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),a.hoverStyle=u,la(a);var w=Cu(n);if(g&&s.isAnimationEnabled()){var b=function(){var t=w[1]/w[0];this.animateTo({scale:[Math.max(1.1*w[0],w[0]+3),Math.max(1.1*w[1],w[1]+3*t)]},400,"elasticOut")},S=function(){this.animateTo({scale:w},400,"elasticOut")};a.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}},Vx.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,!(e&&e.keepLabel)&&(n.style.text=null),_a(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},u(Du,nf);var Ux=ku.prototype;Ux.updateData=function(t,e){var n=this.group,i=t.hostModel,r=this._data,a=this._symbolCtor,o=Lu(t);r||n.removeAll(),t.diff(r).add(function(i){var r=t.getItemLayout(i);if(Pu(t,r,i,e)){var s=new a(t,i,o);s.attr("position",r),t.setItemGraphicEl(i,s),n.add(s)}}).update(function(s,l){var h=r.getItemGraphicEl(l),u=t.getItemLayout(s);return Pu(t,u,s,e)?(h?(h.updateData(t,s,o),_a(h,{position:u},i)):(h=new a(t,s),h.attr("position",u)),n.add(h),void t.setItemGraphicEl(s,h)):void n.remove(h)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},Ux.isPersistent=function(){return!0},Ux.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},Ux.incrementalPrepareUpdate=function(t){this._seriesScope=Lu(t),this._data=null,this.group.removeAll()},Ux.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if(Pu(e,a,r,n)){var o=new this._symbolCtor(e,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(r,o)}}},Ux.remove=function(t){var e=this.group,n=this._data;n&&(t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())};var Yx=function(t,e,n,i,r,a){for(var o=Eu(t,e),s=[],l=[],h=[],u=[],c=[],d=[],f=[],p=a.dimensions,g=0;g<o.length;g++){var v=o[g],m=!0;switch(v.cmd){case"=":var y=t.getItemLayout(v.idx),x=e.getItemLayout(v.idx1);(isNaN(y[0])||isNaN(y[1]))&&(y=x.slice()),s.push(y),l.push(x),h.push(n[v.idx]),u.push(i[v.idx1]),f.push(e.getRawIndex(v.idx1));break;case"+":var _=v.idx;s.push(r.dataToPoint([e.get(p[0],_,!0),e.get(p[1],_,!0)])),l.push(e.getItemLayout(_).slice()),h.push(Bu(r,e,_)),u.push(i[_]),f.push(e.getRawIndex(_));break;case"-":var _=v.idx,w=t.getRawIndex(_);w!==_?(s.push(t.getItemLayout(_)),l.push(a.dataToPoint([t.get(p[0],_,!0),t.get(p[1],_,!0)])),h.push(n[_]),u.push(Bu(a,t,_)),f.push(w)):m=!1}m&&(c.push(v),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var b=[],S=[],M=[],I=[],T=[],g=0;g<d.length;g++){var _=d[g];b[g]=s[_],S[g]=l[_],M[g]=h[_],I[g]=u[_],T[g]=c[_]}return{current:b,next:S,stackedOnCurrent:M,stackedOnNext:I,status:T}},Zx=oe,$x=se,Kx=q,Qx=V,Jx=[],t_=[],e_=[],n_=kr.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:yg(kr.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,r=n.length,a=Nu(n,e.smoothConstraint);if(e.connectNulls){for(;r>0&&zu(n[r-1]);r--);for(;r>i&&zu(n[i]);i++);}for(;r>i;)i+=Ru(t,n,i,r,r,1,a.min,a.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),i_=kr.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:yg(kr.prototype.brush),buildPath:function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length,o=e.smoothMonotone,s=Nu(n,e.smoothConstraint),l=Nu(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&zu(n[a-1]);a--);for(;a>r&&zu(n[r]);r++);}for(;a>r;){var h=Ru(t,n,r,a,a,1,s.min,s.max,e.smooth,o,e.connectNulls);Ru(t,i,r+h-1,h,a,-1,l.min,l.max,e.stackedOnSmooth,o,e.connectNulls),r+=h+1,t.closePath()}}});_s.extend({type:"line",init:function(){var t=new nf,e=new ku;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),o=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.mapArray(a.getItemLayout,!0),u="polar"===i.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),y=l.get("origin"),x=Wu(t,i,a,y),_=t.get("showSymbol"),w=_&&!u&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(a,i),b=this._data;b&&b.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),b.setItemGraphicEl(e,null))}),_||d.remove(),r.add(g);var S=!u&&t.get("step");f&&c.type===i.type&&S===this._step?(m&&!p?p=this._newPolygon(h,x,i,v):p&&!m&&(g.remove(p),p=this._polygon=null),g.setClipPath(qu(i,!1,t)),_&&d.updateData(a,w),a.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Fu(this._stackedOnPoints,x)&&Fu(this._points,h)||(v?this._updateAnimation(a,x,i,n,S):(S&&(h=Uu(h,i,S),x=Uu(x,i,S)),f.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:x})))):(_&&d.updateData(a,w),S&&(h=Uu(h,i,S),x=Uu(x,i,S)),f=this._newPolyline(h,i,v),m&&(p=this._newPolygon(h,x,i,v)),g.setClipPath(qu(i,!0,t)));var M=Yu(a,i)||a.getVisual("color");f.useStyle(s(o.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"}));var I=t.get("smooth");if(I=Hu(t.get("smooth")),f.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var T=a.stackedOn,C=0;if(p.useStyle(s(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel"})),T){var D=T.hostModel;C=Hu(D.get("smooth"))}p.setShape({smooth:I,stackedOnSmooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=h,this._step=S},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),a=Ni(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;o=new Du(r,a),o.position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else _s.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),a=Ni(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else _s.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new n_({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new i_({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n
  },_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];return n&&n.isLabelIgnored?y(n.isLabelIgnored,n):void 0},_updateAnimation:function(t,e,n,i,r){var a=this._polyline,o=this._polygon,s=t.hostModel,l=Yx(this._data,t,this._stackedOnPoints,e,this._coordSys,n),h=l.current,u=l.stackedOnCurrent,c=l.next,d=l.stackedOnNext;r&&(h=Uu(l.current,n,r),u=Uu(l.stackedOnCurrent,n,r),c=Uu(l.next,n,r),d=Uu(l.stackedOnNext,n,r)),a.shape.__points=l.current,a.shape.points=h,_a(a,{shape:{points:c}},s),o&&(o.setShape({points:h,stackedOnPoints:u}),_a(o,{shape:{points:c,stackedOnPoints:d}},s));for(var f=[],p=l.status,g=0;g<p.length;g++){var v=p[g].cmd;if("="===v){var m=t.getItemGraphicEl(p[g].idx1);m&&f.push({el:m,ptIdx:g})}}a.animators&&a.animators.length&&a.animators[0].during(function(){for(var t=0;t<f.length;t++){var e=f[t].el;e.attr("position",a.shape.__points[f[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var r_=function(t,e,n){return{seriesType:t,performRawSeries:!0,reset:function(t,i){function r(e,n){if("function"==typeof s){var i=t.getRawValue(n),r=t.getDataParams(n);e.setItemVisual(n,"symbolSize",s(i,r))}if(e.hasItemOption){var a=e.getItemModel(n),o=a.getShallow("symbol",!0),l=a.getShallow("symbolSize",!0);null!=o&&e.setItemVisual(n,"symbol",o),null!=l&&e.setItemVisual(n,"symbolSize",l)}}var a=t.getData(),o=t.get("symbol")||e,s=t.get("symbolSize");if(a.setVisual({legendSymbol:n||o,symbol:o,symbolSize:s}),!i.isSeriesFiltered(t)){var l="function"==typeof s;return{dataEach:a.hasItemOption||l?r:null}}}}},a_=function(t){return{seriesType:t,plan:Jv(),reset:function(t){function e(t,e){for(var n=t.end-t.start,r=a&&new Float32Array(n*s),l=t.start,h=0,u=[],c=[];l<t.end;l++){var d;if(1===s){var f=e.get(o[0],l,!0);d=!isNaN(f)&&i.dataToPoint(f,null,c)}else{var f=u[0]=e.get(o[0],l,!0),p=u[1]=e.get(o[1],l,!0);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(u,null,c)}a?(r[h++]=d?d[0]:0/0,r[h++]=d?d[1]:0/0):e.setItemLayout(l,d&&d.slice()||[0/0,0/0])}a&&e.setLayout("symbolPoints",r)}var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,a=r.large;if(i){var o=p(i.dimensions,function(t){return n.getDimension(n.mapDimension(t))}).slice(0,2),s=o.length;return s&&{progress:e}}}}},o_={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?0/0:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return e},nearest:function(t){return t[0]}},s_=function(t){return Math.round(t.length/2)},l_=function(t){return{seriesType:t,reset:function(t){var e=t.getData(),n=t.get("sampling"),i=t.coordinateSystem;if("cartesian2d"===i.type&&n){var r=i.getBaseAxis(),a=i.getOtherAxis(r),o=r.getExtent(),s=o[1]-o[0],l=Math.round(e.count()/s);if(l>1){var h;"string"==typeof n?h=o_[n]:"function"==typeof n&&(h=n),h&&t.setData(e.downSample(a.dim,1/l,h,s_))}}}}};Tl(r_("line","circle","line")),Il(a_("line")),_l(Rm.PROCESSOR.STATISTIC,l_("line"));var h_=function(t,e,n){e=_(e)&&{coordDimensions:e}||o({},e);var i=t.getSource(),r=my(i,e),a=new py(r,t);return a.initData(i,n),a},u_={updateSelectedMap:function(t){if(_(t))this._targetList=t.slice();else for(var e=t,n=e.mapDimension("value"),t=this._targetList=[],i=0,r=e.count();r>i;i++)t.push({name:e.getName(i),value:e.get(n,i),selected:ls(e,i,"selected")});this._selectTargetMap=g(t||[],function(t,e){return t.set(e.name,e),t},N())},select:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t),i=this.get("selectedMode");"single"===i&&this._selectTargetMap.each(function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);n&&(n.selected=!1)},toggleSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return null!=n?(this[n.selected?"unSelect":"select"](t,e),n.selected):void 0},isSelected:function(t,e){var n=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return n&&n.selected}},c_=Pl({type:"series.pie",init:function(t){c_.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this.getRawData()),this._defaultLabelLine(t)},mergeOption:function(t){c_.superCall(this,"mergeOption",t),this.updateSelectedMap(this.getRawData())},getInitialData:function(){return h_(this,["value"])},getDataParams:function(t){var e=this.getData(),n=c_.superCall(this,"getDataParams",t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=Wa(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(t){Li(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.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"}});c(c_,u_);var d_=Ku.prototype;d_.updateData=function(t,e,n){function i(){a.stopAnimation(!0),a.animateTo({shape:{r:u.r+l.get("hoverOffset")}},300,"elasticOut")}function r(){a.stopAnimation(!0),a.animateTo({shape:{r:u.r}},300,"elasticOut")}var a=this.childAt(0),l=t.hostModel,h=t.getItemModel(e),u=t.getItemLayout(e),c=o({},u);if(c.label=null,n){a.setShape(c);var d=l.getShallow("animationType");"scale"===d?(a.shape.r=u.r0,wa(a,{shape:{r:u.r}},l,e)):(a.shape.endAngle=u.startAngle,_a(a,{shape:{endAngle:u.endAngle}},l,e))}else _a(a,{shape:c},l,e);var f=t.getItemVisual(e,"color");a.useStyle(s({lineJoin:"bevel",fill:f},h.getModel("itemStyle").getItemStyle())),a.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var p=h.getShallow("cursor");p&&a.attr("cursor",p),$u(this,t.getItemLayout(e),l.isSelected(null,e),l.get("selectedOffset"),l.get("animation")),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),h.get("hoverAnimation")&&l.isAnimationEnabled()&&a.on("mouseover",i).on("mouseout",r).on("emphasis",i).on("normal",r),this._updateLabel(t,e),la(this)},d_._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),r=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),s=o.label,l=t.getItemVisual(e,"color");_a(n,{shape:{points:s.linePoints||[[s.x,s.y],[s.x,s.y],[s.x,s.y]]}},r,e),_a(i,{style:{x:s.x,y:s.y}},r,e),i.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var h=a.getModel("label"),u=a.getModel("emphasis.label"),c=a.getModel("labelLine"),d=a.getModel("emphasis.labelLine"),l=t.getItemVisual(e,"color");ha(i.style,i.hoverStyle={},h,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!u.get("show"),n.ignore=n.normalIgnore=!c.get("show"),n.hoverIgnore=!d.get("show"),n.setStyle({stroke:l,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(c.getModel("lineStyle").getLineStyle()),n.hoverStyle=d.getModel("lineStyle").getLineStyle();var f=c.get("smooth");f&&f===!0&&(f=.4),n.setShape({smooth:f})},u(Ku,nf);var f_=(_s.extend({type:"pie",init:function(){var t=new nf;this._sectorGroup=t},render:function(t,e,n,i){if(!i||i.from!==this.uid){var r=t.getData(),a=this._data,o=this.group,s=e.get("animation"),l=!a,h=t.get("animationType"),u=x(Zu,this.uid,t,s,n),c=t.get("selectedMode");if(r.diff(a).add(function(t){var e=new Ku(r,t);l&&"scale"!==h&&e.eachChild(function(t){t.stopAnimation(!0)}),c&&e.on("click",u),r.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=a.getItemGraphicEl(e);n.updateData(r,t),n.off("click"),c&&n.on("click",u),o.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=a.getItemGraphicEl(t);o.remove(e)}).execute(),s&&l&&r.count()>0&&"scale"!==h){var d=r.getItemLayout(0),f=Math.max(n.getWidth(),n.getHeight())/2,p=y(o.removeClipPath,o);o.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}this._data=r}},dispose:function(){},_createClipPath:function(t,e,n,i,r,a,o){var s=new xg({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return wa(s,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},o,a),s},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}}}),function(t,e){f(e,function(e){e.update="updateView",bl(e,function(n,i){var r={};return i.eachComponent({mainType:"series",subType:t,query:n},function(t){t[e.method]&&t[e.method](n.name,n.dataIndex);var i=t.getData();i.each(function(e){var n=i.getName(e);r[n]=t.isSelected(n)||!1})}),{name:n.name,selected:r}})})}),p_=function(t){return{getTargetSeries:function(e){var n={},i=N();return e.eachSeriesByType(t,function(t){t.__paletteScope=n,i.set(t.uid,t)}),i},reset:function(t){var e=t.getRawData(),n={},i=t.getData();i.each(function(t){var e=i.getRawIndex(t);n[e]=t}),e.each(function(r){var a=n[r],o=null!=a&&i.getItemVisual(a,"color",!0);if(o)e.setItemVisual(r,"color",o);else{var s=e.getItemModel(r),l=s.get("itemStyle.color")||t.getColorFromPalette(e.getName(r),t.__paletteScope,e.count());e.setItemVisual(r,"color",l),null!=a&&i.setItemVisual(a,"color",l)}})}}},g_=function(t,e,n,i){var r,a,o=t.getData(),s=[],l=!1;o.each(function(n){var i,h,u,c,d=o.getItemLayout(n),f=o.getItemModel(n),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),v=f.getModel("labelLine"),m=v.get("length"),y=v.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),w=Math.sin(x);r=d.cx,a=d.cy;var b="inside"===g||"inner"===g;if("center"===g)i=d.cx,h=d.cy,c="center";else{var S=(b?(d.r+d.r0)/2*_:d.r*_)+r,M=(b?(d.r+d.r0)/2*w:d.r*w)+a;if(i=S+3*_,h=M+3*w,!b){var I=S+_*(m+e-d.r),T=M+w*(m+e-d.r),C=I+(0>_?-1:1)*y,D=T;i=C+(0>_?-5:5),h=D,u=[[S,M],[I,T],[C,D]]}c=b?"center":_>0?"left":"right"}var A=p.getFont(),k=p.get("rotate")?0>_?-x+Math.PI:-x:0,P=t.getFormattedLabel(n,"normal")||o.getName(n),L=Sn(P,A,c,"top");l=!!k,d.label={x:i,y:h,position:g,height:L.height,len:m,len2:y,linePoints:u,textAlign:c,verticalAlign:"middle",rotation:k,inside:b},b||s.push(d.label)}),!l&&t.get("avoidLabelOverlap")&&Ju(s,r,a,e,n,i)},v_=2*Math.PI,m_=Math.PI/180,y_=function(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=t.get("center"),a=t.get("radius");_(a)||(a=[0,a]),_(r)||(r=[r,r]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),h=Ra(r[0],o),u=Ra(r[1],s),c=Ra(a[0],l/2),d=Ra(a[1],l/2),f=-t.get("startAngle")*m_,p=t.get("minAngle")*m_,g=0;e.each(i,function(t){!isNaN(t)&&g++});var v=e.getSum(i),m=Math.PI/(v||g)*2,y=t.get("clockwise"),x=t.get("roseType"),w=t.get("stillShowZeroSum"),b=e.getDataExtent(i);b[0]=0;var S=v_,M=0,I=f,T=y?1:-1;if(e.each(i,function(t,n){var i;if(isNaN(t))return void e.setItemLayout(n,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:y,cx:h,cy:u,r0:c,r:x?0/0:d});i="area"!==x?0===v&&w?m:t*m:v_/g,p>i?(i=p,S-=p):M+=t;var r=I+T*i;e.setItemLayout(n,{angle:i,startAngle:I,endAngle:r,clockwise:y,cx:h,cy:u,r0:c,r:x?za(t,b,[c,d]):d}),I=r},!0),v_>S&&g)if(.001>=S){var C=v_/g;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=C,i.startAngle=f+T*n*C,i.endAngle=f+T*(n+1)*C}})}else m=S/M,I=f,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m;i.startAngle=I,i.endAngle=I+T*r,I+=T*r}});g_(t,d,o,s)})},x_=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0},this)}}}};f_("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),Tl(p_("pie")),Il(x(y_,"pie")),_l(x_("pie")),Al({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"}}}),kl({type:"title",render:function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),s=t.get("textBaseline"),l=new gg({style:ua({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),h=l.getBoundingRect(),u=t.get("subtext"),c=new gg({style:ua({},a,{text:u,textFill:a.getTextColor(),y:h.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink");l.silent=!d,c.silent=!f,d&&l.on("click",function(){window.open(d,"_"+t.get("target"))}),f&&c.on("click",function(){window.open(f,"_"+t.get("subtarget"))}),i.add(l),u&&i.add(c);var p=i.getBoundingRect(),g=t.getBoxLayoutParams();g.width=p.width,g.height=p.height;var v=so(g,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));o||(o=t.get("left")||t.get("right"),"middle"===o&&(o="center"),"right"===o?v.x+=v.width:"center"===o&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.attr("position",[v.x,v.y]);var m={textAlign:o,textVerticalAlign:s};l.setStyle(m),c.setStyle(m),p=i.getBoundingRect();var y=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var _=new Ig({shape:{x:p.x-y[3],y:p.y-y[0],width:p.width+y[1]+y[3],height:p.height+y[0]+y[2],r:t.get("borderRadius")},style:x,silent:!0});Yr(_),i.add(_)}}});var __=Al({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){__.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],n=[];t.eachRawSeries(function(i){var r=i.name;n.push(r);var a;if(i.legendDataProvider){var o=i.legendDataProvider(),s=o.mapArray(o.getName);t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):a=r}else a=r;a&&a!==ip&&e.push(a)}),this._availableNames=n;var i=this.get("data")||e,r=p(i,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new Aa(t,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;f(i,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&h(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});bl("legendToggleSelect","legendselectchanged",x(tc,"toggleSelected")),bl("legendSelect","legendselected",x(tc,"select")),bl("legendUnSelect","legendunselected",x(tc,"unSelect"));var w_=x,b_=f,S_=nf,M_=kl({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new S_),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,n){if(this.resetInner(),t.get("show",!0)){var i=t.get("align");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(i,t,e,n);var r=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},o=t.get("padding"),l=so(r,a,o),h=this.layoutInner(t,i,l),u=so(s({width:h.width,height:h.height},r),a,o);this.group.attr("position",[u.x-h.x,u.y-h.y]),this.group.add(this._backgroundEl=ec(h,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,n,i){var r=this.getContentGroup(),a=N(),o=e.get("selectedMode");b_(e.getData(),function(s,l){var h=s.get("name");if(!this.newlineDisabled&&(""===h||"\n"===h))return void r.add(new S_({newline:!0}));var u=n.getSeriesByName(h)[0];if(!a.get(h))if(u){var c=u.getData(),d=c.getVisual("color");"function"==typeof d&&(d=d(u.getDataParams(0)));var f=c.getVisual("legendSymbol")||"roundRect",p=c.getVisual("symbol"),g=this._createItem(h,l,s,e,f,p,t,d,o);g.on("click",w_(nc,h,i)).on("mouseover",w_(ic,u,null,i)).on("mouseout",w_(rc,u,null,i)),a.set(h,!0)}else n.eachRawSeries(function(n){if(!a.get(h)&&n.legendDataProvider){var r=n.legendDataProvider(),u=r.indexOfName(h);if(0>u)return;var c=r.getItemVisual(u,"color"),d="roundRect",f=this._createItem(h,l,s,e,d,null,t,c,o);f.on("click",w_(nc,h,i)).on("mouseover",w_(ic,n,h,i)).on("mouseout",w_(rc,n,h,i)),a.set(h,!0)}},this)},this)},_createItem:function(t,e,n,i,r,a,s,l,h){var u=i.get("itemWidth"),c=i.get("itemHeight"),d=i.get("inactiveColor"),f=i.isSelected(t),p=new S_,g=n.getModel("textStyle"),v=n.get("icon"),m=n.getModel("tooltip"),y=m.parentModel;if(r=v||r,p.add(Dh(r,0,0,u,c,f?l:d,!0)),!v&&a&&(a!==r||"none"==a)){var x=.8*c;"none"===a&&(a="circle"),p.add(Dh(a,(u-x)/2,(c-x)/2,x,x,f?l:d))}var _="left"===s?u+5:-5,w=s,b=i.get("formatter"),S=t;"string"==typeof b&&b?S=b.replace("{name}",null!=t?t:""):"function"==typeof b&&(S=b(t)),p.add(new gg({style:ua({},g,{text:S,x:_,y:c/2,textFill:f?g.getTextColor():d,textAlign:w,textVerticalAlign:"middle"})}));var M=new Ig({shape:p.getBoundingRect(),invisible:!0,tooltip:m.get("show")?o({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},m.option):null});return p.add(M),p.eachChild(function(t){t.silent=!0}),M.silent=!h,this.getContentGroup().add(p),la(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,n){var i=this.getContentGroup();lv(t.get("orient"),i,t.get("itemGap"),n.width,n.height);var r=i.getBoundingRect();return i.attr("position",[-r.x,-r.y]),this.group.getBoundingRect()}}),I_=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})};_l(I_),cv.registerSubTypeDefaulter("legend",function(){return"plain"});var T_=__.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},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(t,e,n,i){var r=ho(t);T_.superCall(this,"init",t,e,n,i),ac(this,t,r)},mergeOption:function(t,e){T_.superCall(this,"mergeOption",t,e),ac(this,this.option,t)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),C_=nf,D_=["width","height"],A_=["x","y"],k_=M_.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){k_.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new C_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C_),this._showController},resetInner:function(){k_.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,n,i){function r(t,n){var r=t+"DataIndex",l=Da(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:y(a._pageGo,a,r,e,i)},{x:-s[0]/2,y:-s[1]/2,width:s[0],height:s[1]});l.name=t,o.add(l)}var a=this;k_.superCall(this,"renderInner",t,e,n,i);var o=this._controllerGroup,s=e.get("pageIconSize",!0);_(s)||(s=[s,s]),r("pagePrev",0);var l=e.getModel("pageTextStyle");o.add(new gg({name:"pageText",style:{textFill:l.getTextColor(),font:l.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),r("pageNext",1)},layoutInner:function(t,e,n){var i=this.getContentGroup(),r=this._containerGroup,a=this._controllerGroup,o=t.getOrient().index,s=D_[o],l=D_[1-o],h=A_[1-o];lv(t.get("orient"),i,t.get("itemGap"),o?n.width:null,o?null:n.height),lv("horizontal",a,t.get("pageButtonItemGap",!0));var u=i.getBoundingRect(),c=a.getBoundingRect(),d=this._showController=u[s]>n[s],f=[-u.x,-u.y];f[o]=i.position[o];var p=[0,0],g=[-c.x,-c.y],v=A(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var m=t.get("pageButtonPosition",!0);"end"===m?g[o]+=n[s]-c[s]:p[o]+=c[s]+v}g[1-o]+=u[l]/2-c[l]/2,i.attr("position",f),r.attr("position",p),a.attr("position",g);var y=this.group.getBoundingRect(),y={x:0,y:0};if(y[s]=d?n[s]:u[s],y[l]=Math.max(u[l],c[l]),y[h]=Math.min(0,c[h]+g[1-o]),r.__rectSize=n[s],d){var x={x:0,y:0};x[s]=Math.max(n[s]-c[s]-v,0),x[l]=y[l],r.setClipPath(new Ig({shape:x})),r.__rectSize=x[s]}else a.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&_a(i,{position:_.contentPosition},d?t:!1),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},_updatePageInfoView:function(t,e){var n=this._controllerGroup;f(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;i&&r&&i.setStyle("text",b(r)?r.replace("{current}",o).replace("{total}",s):r({current:o,total:s}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[f]+=t.position[u],e}var n,i,r,a,o=t.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),h=this._containerGroup.__rectSize,u=t.getOrient().index,c=D_[u],d=D_[1-u],f=A_[u],p=s.position.slice();this._showController?s.eachChild(function(t){t.__legendDataIndex===o&&(a=t)}):a=s.childAt(0);var g=h?Math.ceil(l[c]/h):0;if(a){var v=a.getBoundingRect(),m=a.position[u]+v[f];p[u]=-m-l[f],n=Math.floor(g*(m+v[f]+h/2)/l[c]),n=l[c]&&g?Math.max(0,Math.min(g-1,n)):-1;var y={x:0,y:0};y[c]=h,y[d]=l[d],y[f]=-p[u]-l[f];var x,_=s.children();if(s.eachChild(function(t,n){var i=e(t);i.intersect(y)&&(null==x&&(x=n),r=t.__legendDataIndex),n===_.length-1&&i[f]+i[c]<=y[f]+y[c]&&(r=null)}),null!=x){var w=_[x],b=e(w);if(y[f]=b[f]+b[c]-y[c],0>=x&&b[f]>=y[f])i=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;i=_[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:n,pageCount:g,pagePrevDataIndex:i,pageNextDataIndex:r}}});bl("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})});var P_=function(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=Ni(a,t);if(null==o||0>o||_(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)i=l.dataToPoint(a.getValues(p(l.dimensions,function(t){return a.mapDimension(t)}),o,!0))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),i=[h.x+h.width/2,h.y+h.height/2]}return{point:i,el:s}},L_=f,O_=x,B_=Fi(),E_=function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||y(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){gc(r)&&(r=P_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=gc(r),h=a.axesInfo,u=s.axesInfo,c="leave"===i||gc(r),d={},f={},p={list:[],map:{}},g={showPointer:O_(lc,f),showTooltip:O_(hc,p)};L_(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);L_(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=fc(h,t);if(!c&&n&&(!h||i)){var a=i&&i.value;null!=a||l||(a=e.pointToData(r)),null!=a&&oc(t,a,g,!1,d)}})});var v={};return L_(u,function(t,e){var n=t.linkGroup;n&&!f[e]&&L_(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,pc(e),pc(t)))),v[t.key]=a}})}),L_(v,function(t,e){oc(u[e],t,g,!0,d)}),uc(f,u,d),cc(p,r,t,o),dc(u,o,n),d}},z_=(Al({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}}}),Fi()),R_=f,N_=kl({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";vc("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){bc(e.getZr(),"axisPointer"),N_.superApply(this._model,"remove",arguments)},dispose:function(t,e){bc("axisPointer",e),N_.superApply(this._model,"dispose",arguments)}}),F_=Fi(),H_=i,G_=y;Sc.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=x(Mc,e,u);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new nf,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);Dc(o,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=xu(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},makeElOption:function(){},createPointerEl:function(t,e){var n=e.pointer;if(n){var i=F_(t).pointerEl=new Hg[n.type](H_(e.pointer));t.add(i)}},createLabelEl:function(t,e,n,i){if(e.label){var r=F_(t).labelEl=new Ig(H_(e.label));t.add(r),Tc(r,i)}},updatePointerEl:function(t,e,n){var i=F_(t).pointerEl;i&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,n,i){var r=F_(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{shape:e.label.shape,position:e.label.position}),Tc(r,i))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status");if(!r.get("show")||!a||"hide"===a)return i&&n.remove(i),void(this._handle=null);var o;this._handle||(o=!0,i=this._handle=Da(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Rf(t.event)},onmousedown:G_(this._onHandleDragMove,this,0,0),drift:G_(this._onHandleDragMove,this),ondragend:G_(this._onHandleDragEnd,this)}),n.add(i)),Dc(i,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.setStyle(r.getItemStyle(null,s));var l=r.get("size");_(l)||(l=[l,l]),i.attr("scale",[l[0]/2,l[1]/2]),Cs(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},_moveHandleToValue:function(t,e){Mc(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Cc(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Cc(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Cc(i)),F_(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}},Sc.prototype.constructor=Sc,qi(Sc);var V_=Sc.extend({makeElOption:function(t,e,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=Rc(o,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var u=Ac(i),c=W_[s](a,h,l,u);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=Iu(o.model,n);Bc(e,t,d,n,i,r)},getHandleTransform:function(t,e,n){var i=Iu(e.axis.grid.model,e,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:Oc(e.axis,t,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,n){var i=n.axis,r=i.grid,a=i.getGlobalExtent(!0),o=Rc(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=t.position;l[s]+=e[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var h=(o[1]+o[0])/2,u=[h,h];u[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:t.rotation,cursorPoint:u,tooltipOption:c[s]}}}),W_={line:function(t,e,n,i){var r=Ec([e,n[0]],[e,n[1]],Nc(t));return Ur({shape:r,style:i}),{type:"Line",shape:r}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:zc([e-i/2,n[0]],[i,r],Nc(t))}}};Ex.registerAxisPointerClass("CartesianAxisPointer",V_),xl(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!_(e)&&(t.axisPointer.link=[e])}}),_l(Rm.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=du(t,e)}),bl({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},E_),Al({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 X_=f,j_=Ja,q_=["","-webkit-","-moz-","-o-"],U_="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";Vc.prototype={constructor:Vc,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=U_+Gc(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var r=this.el.style;r.left=t+"px",r.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var Y_=y,Z_=f,$_=Ra,K_=new Ig({shape:{x:-1,y:-1,width:2,height:2}});kl({type:"tooltip",init:function(t,e){if(!Jc.node){var n=new Vc(e.getDom(),e);this._tooltipContent=n}},render:function(t,e,n){if(!Jc.node&&!Jc.wxa){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");vc("itemTooltip",this._api,Y_(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY})})}},manuallyShowTip:function(t,e,n,i){if(i.from!==this.uid&&!Jc.node){var r=Xc(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var o=K_;o.position=[i.x,i.y],o.update(),o.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:o},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,event:{},dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var s=P_(i,e),l=s.point[0],h=s.point[1];null!=l&&null!=h&&this._tryShow({offsetX:l,offsetY:h,position:i.position,target:s.el,event:{}},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target,event:{}},r))}},manuallyHideTip:function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(Xc(i,n))},_manuallyAxisShowTip:function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),t=Wc([l.getItemModel(a),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},_tryShow:function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,n,e)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,n,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var n=t.get("showDelay");e=y(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},_showAxisTooltip:function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=[],o=[],s=Wc([e.tooltipOption,i]);Z_(t,function(t){Z_(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,r=[];if(e&&null!=i){var s=Lc(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(a){var l=n.getSeriesByIndex(a.seriesIndex),h=a.dataIndexInside,u=l&&l.getDataParams(h);u.axisDim=t.axisDim,u.axisIndex=t.axisIndex,u.axisType=t.axisType,u.axisId=t.axisId,u.axisValue=Th(e.axis,i),u.axisValueLabel=s,u&&(o.push(u),r.push(l.formatTooltip(h,!0)))});var l=s;a.push((l?to(l)+"<br />":"")+r.join("<br />"))}})},this),a.reverse(),a=a.join("<br /><br />");var l=e.position;this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,l,r[0],r[1],this._tooltipContent,o):this._showTooltipContent(s,a,o,Math.random(),r[0],r[1],l)})},_showSeriesItemTooltip:function(t,e,n){var i=this._ecModel,r=e.seriesIndex,a=i.getSeriesByIndex(r),o=e.dataModel||a,s=e.dataIndex,l=e.dataType,h=o.getData(),u=Wc([h.getItemModel(s),o,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(null==c||"item"===c){var d=o.getDataParams(s,l),f=o.formatTooltip(s,!1,l),p="item_"+o.name+"_"+s;this._showOrMove(u,function(){this._showTooltipContent(u,f,d,p,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:s,dataIndex:h.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var r=i;i={content:r,formatter:r}}var a=new Aa(i,this._tooltipModel,this._ecModel),o=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,o,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,r,a,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var u=e;if(h&&"string"==typeof h)u=eo(h,n,!0);else if("function"==typeof h){var c=Y_(function(e,i){e===this._ticket&&(l.setContent(i),this._updatePosition(t,o,r,a,l,n,s))},this);this._ticket=i,u=h(n,i,c)}l.setContent(u),l.show(t),this._updatePosition(t,o,r,a,l,n,s)}},_updatePosition:function(t,e,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),u=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([n,i],a,r.el,d,{viewSize:[s,l],contentSize:h.slice()})),_(e))n=$_(e[0],s),i=$_(e[1],l);else if(S(e)){e.width=h[0],e.height=h[1];var f=so(e,{width:s,height:l});n=f.x,i=f.y,u=null,c=null}else if("string"==typeof e&&o){var p=Yc(e,d,h);n=p[0],i=p[1]}else{var p=jc(n,i,r.el,s,l,u?null:20,c?null:20);n=p[0],i=p[1]}if(u&&(n-=Zc(u)?h[0]/2:"right"===u?h[0]:0),c&&(i-=Zc(c)?h[1]/2:"bottom"===c?h[1]:0),t.get("confine")){var p=qc(n,i,r.el,s,l);n=p[0],i=p[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&Z_(e,function(e,i){var r=e.dataByAxis||{},a=t[i]||{},o=a.dataByAxis||[];n&=r.length===o.length,n&&Z_(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length,n&&Z_(r,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){Jc.node||(this._tooltipContent.hide(),bc("itemTooltip",e))}}),bl({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),bl({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){}),t.version=Cm,t.dependencies=Dm,t.PRIORITY=Rm,t.init=dl,t.connect=fl,t.disConnect=pl,t.disconnect=ay,t.dispose=gl,t.getInstanceByDom=vl,t.getInstanceById=ml,t.registerTheme=yl,t.registerPreprocessor=xl,t.registerProcessor=_l,t.registerPostUpdate=wl,t.registerAction=bl,t.registerCoordinateSystem=Sl,t.getCoordinateSystemDimensions=Ml,t.registerLayout=Il,t.registerVisual=Tl,t.registerLoading=Dl,t.extendComponentModel=Al,t.extendComponentView=kl,t.extendSeriesModel=Pl,t.extendChartView=Ll,t.setCanvasCreator=Ol,t.registerMap=Bl,t.getMap=El,t.dataTool=oy,t.zrender=Jf,t.graphic=Hg,t.number=Kg,t.format=rv,t.throttle=Ts,t.helper=Jy,t.matrix=Td,t.vector=xd,t.color=Wd,t.parseGeoJSON=ex,t.parseGeoJson=ax,t.util=ox,t.List=py,t.Model=Aa,t.Axis=rx,t.env=Jc});