!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={},i={},n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1]),a&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}function i(t,e){"createCanvas"===t&&(mv=null),pv[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=sv.call(t);if("[object Array]"===i){if(!R(t)){e=[];for(var r=0,o=t.length;o>r;r++)e[r]=n(t[r])}}else if(av[i]){if(!R(t)){var a=t.constructor;if(t.constructor.from)e=a.from(t);else{e=new a(t.length);for(var r=0,o=t.length;o>r;r++)e[r]=n(t[r])}}}else if(!ov[i]&&!R(t)&&!T(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function r(t,e,i){if(!S(e)||!S(t))return i?n(e):t;for(var o in e)if(e.hasOwnProperty(o)){var a=t[o],s=e[o];!S(s)||!S(a)||_(s)||_(a)||T(s)||T(a)||M(s)||M(a)||R(s)||R(a)?!i&&o in t||(t[o]=n(e[o],!0)):r(a,s,i)}return t}function o(t,e){for(var i=t[0],n=1,o=t.length;o>n;n++)i=r(i,t[n],e);return i}function a(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return mv||(mv=gv().getContext("2d")),mv}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function u(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function c(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,i)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===hv)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===dv)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===fv)return t.reduce(e,i,n);for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===uv)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=cv.call(arguments,2);return function(){return t.apply(e,i.concat(cv.call(arguments)))}}function x(t){var e=cv.call(arguments,1);return function(){return t.apply(this,e.concat(cv.call(arguments)))}}function _(t){return"[object Array]"===sv.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===sv.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function M(t){return!!ov[sv.call(t)]}function I(t){return!!av[sv.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function A(t){return t!==t}function C(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function D(t,e){return null!=t?t:e}function k(t,e,i){return null!=t?t:null!=e?e:i}function P(){return Function.call.apply(cv,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 z(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function E(t){t[vv]=!0}function R(t){return t[vv]}function B(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=_(t);this.data={};var n=this;t instanceof B?t.each(e):t&&f(t,e)}function N(t){return new B(t)}function F(t,e){for(var i=new t.constructor(t.length+e.length),n=0;nd;d++){var p=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*de(i,7,0===a?1:0,1<o;o++){var a=document.createElement("div"),s=a.style,l=o%2,h=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[h]+":0",n[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function ve(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=!0,s=[],l=[],h=0;4>h;h++){var u=t[h].getBoundingClientRect(),c=2*h,d=u.left,f=u.top;s.push(d,f),a=a&&o&&d===o[c]&&f===o[c+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return a&&r?r:(e.srcCoords=s,e[n]=i?fe(l,s):fe(s,l))}function ye(t){return"CANVAS"===t.nodeName.toUpperCase()}function xe(t,e,i,n){return i=i||{},n||!rv.canvasSupported?_e(t,e,i):rv.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):_e(t,e,i),i}function _e(t,e,i){if(rv.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(ye(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(ge(Lv,t,n,r))return i.zrX=Lv[0],void(i.zrY=Lv[1])}i.zrX=i.zrY=0}function we(t){return t||window.event}function be(t,e,i){if(e=we(e),null!=e.zrX)return e;var n=e.type,r=n&&n.indexOf("touch")>=0;if(r){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&xe(t,o,e,i)}else xe(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var a=e.button;return null==e.which&&void 0!==a&&Pv.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Se(t,e,i,n){kv?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Me(t,e,i,n){kv?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function Ie(t){return 2===t.which||3===t.which}function Te(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Ae(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Ce(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:De}}function De(){Ov(this.event)}function ke(){}function Pe(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,r=t;r;){if(r.clipPath&&!r.clipPath.contain(e,i))return!1;r.silent&&(n=!0),r=r.parent}return n?Rv:!0}return!1}function Le(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function Oe(){var t=new Fv(6);return ze(t),t}function ze(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ee(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 Re(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Be(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Ne(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],h=Math.sin(i),u=Math.cos(i);return t[0]=n*u+a*h,t[1]=-n*h+a*u,t[2]=r*u+s*h,t[3]=-r*h+u*s,t[4]=u*o+h*l,t[5]=u*l-h*o,t}function Fe(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Ve(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Ge(t){var e=Oe();return Ee(e,t),e}function We(t){return t>Wv||-Wv>t}function He(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 Ze(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ue(t){return t=Math.round(t),0>t?0:t>360?360:t}function Xe(t){return 0>t?0:t>1?1:t}function Ye(t){return Ze(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function je(t){return Xe(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function qe(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function Ke(t,e,i){return t+(e-t)*i}function $e(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function Qe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Je(t,e){iy&&Qe(iy,e),iy=ey.put(t,iy||e.slice())}function ti(t,e){if(t){e=e||[];var i=ey.get(t);if(i)return Qe(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in ty)return Qe(e,ty[n]),Je(t,e),e;if("#"!==n.charAt(0)){var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===n.length){var a=n.substr(0,r),s=n.substr(r+1,o-(r+1)).split(","),l=1;switch(a){case"rgba":if(4!==s.length)return void $e(e,0,0,0,1);l=je(s.pop());case"rgb":return 3!==s.length?void $e(e,0,0,0,1):($e(e,Ye(s[0]),Ye(s[1]),Ye(s[2]),l),Je(t,e),e);case"hsla":return 4!==s.length?void $e(e,0,0,0,1):(s[3]=je(s[3]),ei(s,e),Je(t,e),e);case"hsl":return 3!==s.length?void $e(e,0,0,0,1):(ei(s,e),Je(t,e),e);default:return}}$e(e,0,0,0,1)}else{if(4===n.length){var h=parseInt(n.substr(1),16);return h>=0&&4095>=h?($e(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1),Je(t,e),e):void $e(e,0,0,0,1)}if(7===n.length){var h=parseInt(n.substr(1),16);return h>=0&&16777215>=h?($e(e,(16711680&h)>>16,(65280&h)>>8,255&h,1),Je(t,e),e):void $e(e,0,0,0,1)}}}}function ei(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=je(t[1]),r=je(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],$e(e,Ze(255*qe(a,o,i+1/3)),Ze(255*qe(a,o,i)),Ze(255*qe(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function ii(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>h?l/(s+a):l/(2-s-a);var u=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-c:r===s?e=1/3+u-d:o===s&&(e=2/3+c-u),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,h];return null!=t[3]&&f.push(t[3]),f}}function ni(t,e){var i=ti(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return hi(i,4===i.length?"rgba":"rgb")}}function ri(t){var e=ti(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function oi(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=Ze(Ke(a[0],s[0],l)),i[1]=Ze(Ke(a[1],s[1],l)),i[2]=Ze(Ke(a[2],s[2],l)),i[3]=Xe(Ke(a[3],s[3],l)),i}}function ai(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=ti(e[r]),s=ti(e[o]),l=n-r,h=hi([Ze(Ke(a[0],s[0],l)),Ze(Ke(a[1],s[1],l)),Ze(Ke(a[2],s[2],l)),Xe(Ke(a[3],s[3],l))],"rgba");return i?{color:h,leftIndex:r,rightIndex:o,value:n}:h}}function si(t,e,i,n){return t=ti(t),t?(t=ii(t),null!=e&&(t[0]=Ue(e)),null!=i&&(t[1]=je(i)),null!=n&&(t[2]=je(n)),hi(ei(t),"rgba")):void 0}function li(t,e){return t=ti(t),t&&null!=e?(t[3]=Xe(e),hi(t,"rgba")):void 0}function hi(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function ui(t,e){return t[e]}function ci(t,e,i){t[e]=i}function di(t,e,i){return(e-t)*i+t}function fi(t,e,i){return i>.5?e:t}function pi(t,e,i,n,r){var o=t.length;if(1===r)for(var a=0;o>a;a++)n[a]=di(t[a],e[a],i);else for(var s=o&&t[0].length,a=0;o>a;a++)for(var l=0;s>l;l++)n[a][l]=di(t[a][l],e[a][l],i)}function gi(t,e,i){var n=t.length,r=e.length;if(n!==r){var o=n>r;if(o)t.length=r;else for(var a=n;r>a;a++)t.push(1===i?e[a]:ay.call(e[a]))}for(var s=t[0]&&t[0].length,a=0;al;l++)isNaN(t[a][l])&&(t[a][l]=e[a][l])}function mi(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var o=t[0].length,r=0;n>r;r++)for(var a=0;o>a;a++)if(t[r][a]!==e[r][a])return!1;return!0}function vi(t,e,i,n,r,o,a,s,l){var h=t.length;if(1===l)for(var u=0;h>u;u++)s[u]=yi(t[u],e[u],i[u],n[u],r,o,a);else for(var c=t[0].length,u=0;h>u;u++)for(var d=0;c>d;d++)s[u][d]=yi(t[u][d],e[u][d],i[u][d],n[u][d],r,o,a)}function yi(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function xi(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(ay.call(t[n]));return i}return ay.call(t)}return t}function _i(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function wi(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function bi(t,e,i,n,r,o){var a=t._getter,s=t._setter,l="spline"===e,h=n.length;if(h){var u,c=n[0].value,f=d(c),p=!1,g=!1,m=f?wi(n):0;n.sort(function(t,e){return t.time-e.time}),u=n[h-1].time;for(var v=[],y=[],x=n[0].value,_=!0,w=0;h>w;w++){v.push(n[w].time/u);var b=n[w].value;if(f&&mi(b,x,m)||!f&&b===x||(_=!1),x=b,"string"==typeof b){var S=ti(b);S?(b=S,p=!0):g=!0}y.push(b)}if(o||!_){for(var M=y[h-1],w=0;h-1>w;w++)f?gi(y[w],M,m):!isNaN(y[w])||isNaN(M)||g||p||(y[w]=M);f&&gi(a(t._target,r),M,m);var I,T,A,C,D,k,P=0,L=0;if(p)var O=[0,0,0,0];var z=function(t,e){var i;if(0>e)i=0;else if(L>e){for(I=Math.min(P+1,h-1),i=I;i>=0&&!(v[i]<=e);i--);i=Math.min(i,h-2)}else{for(i=P;h>i&&!(v[i]>e);i++);i=Math.min(i-1,h-2)}P=i,L=e;var n=v[i+1]-v[i];if(0!==n)if(T=(e-v[i])/n,l)if(C=y[i],A=y[0===i?i:i-1],D=y[i>h-2?h-1:i+1],k=y[i>h-3?h-1:i+2],f)vi(A,C,D,k,T,T*T,T*T*T,a(t,r),m);else{var o;if(p)o=vi(A,C,D,k,T,T*T,T*T*T,O,1),o=_i(O);else{if(g)return fi(C,D,T);o=yi(A,C,D,k,T,T*T,T*T*T)}s(t,r,o)}else if(f)pi(y[i],y[i+1],T,a(t,r),m);else{var o;if(p)pi(y[i],y[i+1],T,O,1),o=_i(O);else{if(g)return fi(y[i],y[i+1],T);o=di(y[i],y[i+1],T)}s(t,r,o)}},E=new He({target:t._target,life:u,loop:t._loop,delay:t._delay,onframe:z,ondestroy:i});return e&&"spline"!==e&&(E.easing=e),E}}}function Si(t,e,i,n,r,o,a,s){function l(){u--,u||o&&o()}b(n)?(o=r,r=n,n=0):w(r)?(o=r,r="linear",n=0):w(n)?(o=n,n=0):w(i)?(o=i,i=500):i||(i=500),t.stopAnimation(),Mi(t,"",t,e,i,n,s);var h=t.animators.slice(),u=h.length;u||o&&o();for(var c=0;c0&&t.animate(e,!1).when(null==r?500:r,s).delay(o||0)}function Ii(t,e,i,n){if(e){var r={};r[e]={},r[e][i]=n,t.attr(r)}else t.attr(i,n)}function Ti(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function Ai(t){for(var e=0;t>=xy;)e|=1&t,t>>=1;return t+e}function Ci(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Di(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Di(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function ki(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var h=n-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]=a}}function Pi(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[i+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}for(a++;l>a;){var u=a+(l-a>>>1);o(t,e[i+u])>0?a=u+1:l=u}return l}function Li(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=n-r;s>l&&o(t,e[i+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var u=a+(l-a>>>1);o(t,e[i+u])<0?l=u:a=u+1}return l}function Oi(t,e){function i(t,e){l[c]=t,h[c]=e,c+=1}function n(){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])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&h[t-1]=r?a(n,r,o,u):s(n,r,o,u)))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)d[a]=t[i+a];var s=0,l=r,h=i;if(t[h++]=t[l++],0!==--o){if(1===n){for(a=0;o>a;a++)t[h+a]=t[l+a];return void(t[h+o]=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===--o){p=!0;break}}else if(t[h++]=d[s++],c++,f=0,1===--n){p=!0;break}while(g>(c|f));if(p)break;do{if(c=Li(t[l],d,s,n,0,e),0!==c){for(a=0;c>a;a++)t[h+a]=d[s+a];if(h+=c,s+=c,n-=c,1>=n){p=!0;break}}if(t[h++]=t[l++],0===--o){p=!0;break}if(f=Pi(d[s],t,l,o,0,e),0!==f){for(a=0;f>a;a++)t[h+a]=t[l+a];if(h+=f,l+=f,o-=f,0===o){p=!0;break}}if(t[h++]=d[s++],1===--n){p=!0;break}g--}while(c>=_y||f>=_y);if(p)break;0>g&&(g=0),g+=2}if(u=g,1>u&&(u=1),1===n){for(a=0;o>a;a++)t[h+a]=t[l+a];t[h+o]=d[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[h+a]=d[s+a]}}else for(a=0;n>a;a++)t[h+a]=d[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)d[a]=t[r+a];var s=i+n-1,l=o-1,h=r+o-1,c=0,f=0;if(t[h--]=t[s--],0!==--n){if(1===o){for(h-=n,s-=n,f=h+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[h]=d[l])}for(var p=u;;){var g=0,m=0,v=!1;do if(e(d[l],t[s])<0){if(t[h--]=t[s--],g++,m=0,0===--n){v=!0;break}}else if(t[h--]=d[l--],m++,g=0,1===--o){v=!0;break}while(p>(g|m));if(v)break;do{if(g=n-Li(d[l],t,i,n,n-1,e),0!==g){for(h-=g,s-=g,n-=g,f=h+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){v=!0;break}}if(t[h--]=d[l--],1===--o){v=!0;break}if(m=o-Pi(t[s],d,0,o,o-1,e),0!==m){for(h-=m,l-=m,o-=m,f=h+1,c=l+1,a=0;m>a;a++)t[f+a]=d[c+a];if(1>=o){v=!0;break}}if(t[h--]=t[s--],0===--n){v=!0;break}p--}while(g>=_y||m>=_y);if(v)break;0>p&&(p=0),p+=2}if(u=p,1>u&&(u=1),1===o){for(h-=n,s-=n,f=h+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[h]=d[l]}else{if(0===o)throw new Error;for(c=h-(o-1),a=0;o>a;a++)t[c+a]=d[a]}}else for(c=h-(o-1),a=0;o>a;a++)t[c+a]=d[a]}var l,h,u=_y,c=0,d=[];l=[],h=[],this.mergeRuns=n,this.forceMergeRuns=r,this.pushRun=i}function zi(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(xy>r)return o=Ci(t,i,n,e),void ki(t,i,n,i+o,e);var a=new Oi(t,e),s=Ai(r);do{if(o=Ci(t,i,n,e),s>o){var l=r;l>s&&(l=s),ki(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function Ei(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Ri(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=t.createLinearGradient(n,o,r,a);return s}function Bi(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*n+i.x,s=s*r+i.y,l*=o);var h=t.createRadialGradient(a,s,0,a,s,l);return h}function Ni(){return!1}function Fi(t,e,i){var n=gv(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function Vi(t){if("string"==typeof t){var e=zy.get(t);return e&&e.image}return t}function Gi(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=zy.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Hi(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Wi,zy.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Wi(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;eo;o++)r=Math.max(rn(n[o],e).width,r);return Ry>By&&(Ry=0,Ey={}),Ry++,Ey[i]=r,r}function Xi(t,e,i,n,r,o,a,s){return a?ji(t,e,i,n,r,o,a,s):Yi(t,e,i,n,r,o,s)}function Yi(t,e,i,n,r,o,a){var s=on(t,e,r,o,a),l=Ui(t,e);r&&(l+=r[1]+r[3]);var h=s.outerHeight,u=qi(0,l,i),c=Ki(0,h,n),d=new Ti(u,c,l,h);return d.lineHeight=s.lineHeight,d}function ji(t,e,i,n,r,o,a,s){var l=an(t,{rich:a,truncate:s,font:e,textAlign:i,textPadding:r,textLineHeight:o}),h=l.outerWidth,u=l.outerHeight,c=qi(0,h,i),d=Ki(0,u,n);return new Ti(c,d,h,u)}function qi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ki(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function $i(t,e,i){var n=e.textPosition,r=e.textDistance,o=i.x,a=i.y;r=r||0;var s=i.height,l=i.width,h=s/2,u="left",c="top";switch(n){case"left":o-=r,a+=h,u="right",c="middle";break;case"right":o+=r+l,a+=h,c="middle";break;case"top":o+=l/2,a-=r,u="center",c="bottom";break;case"bottom":o+=l/2,a+=s+r,u="center";break;case"inside":o+=l/2,a+=h,u="center",c="middle";break;case"insideLeft":o+=r,a+=h,c="middle";break;case"insideRight":o+=l-r,a+=h,u="right",c="middle";break;case"insideTop":o+=l/2,a+=r,u="center";break;case"insideBottom":o+=l/2,a+=s-r,u="center",c="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,u="right";break;case"insideBottomLeft":o+=r,a+=s-r,c="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,u="right",c="bottom"}return t=t||{},t.x=o,t.y=a,t.textAlign=u,t.textVerticalAlign=c,t}function Qi(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=Ji(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=tn(o[a],r);return o.join("\n")}function Ji(t,e,i,n){n=a({},n),n.font=e;var i=D(i,"...");n.maxIterations=D(n.maxIterations,2);var r=n.minChar=D(n.minChar,0);n.cnCharWidth=Ui("国",e);var o=n.ascCharWidth=Ui("a",e);n.placeholder=D(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;r>l&&s>=o;l++)s-=o;var h=Ui(i,e);return h>s&&(i="",h=0),s=t-h,n.ellipsis=i,n.ellipsisWidth=h,n.contentWidth=s,n.containerWidth=t,n}function tn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Ui(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?en(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ui(t,n)}return""===t&&(t=e.placeholder),t}function en(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function nn(t){return Ui("国",t)}function rn(t,e){return Vy.measureText(t,e)}function on(t,e,i,n,r){null!=t&&(t+="");var o=D(n,nn(e)),a=t?t.split("\n"):[],s=a.length*o,l=s,h=!0;if(i&&(l+=i[0]+i[2]),t&&r){h=!1;var u=r.outerHeight,c=r.outerWidth;if(null!=u&&l>u)t="",a=[];else if(null!=c)for(var d=Ji(c-(i?i[1]+i[3]:0),e,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,p=a.length;p>f;f++)a[f]=tn(a[f],d)}return{lines:a,height:s,outerHeight:l,lineHeight:o,canCacheByTextString:h}}function an(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,r=Ny.lastIndex=0;null!=(n=Ny.exec(t));){var o=n.index;o>r&&sn(i,t.substring(r,o)),sn(i,n[2],n[1]),r=Ny.lastIndex}rf)return{lines:[],width:0,height:0};x.textWidth=Ui(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,A=T&&T.image;A&&(A=Vi(A),Hi(A)&&(M=Math.max(M,A.width*S/A.height)))}var C=w?w[1]+w[3]:0;M+=C;var P=null!=d?d-v:null;null!=P&&M>P&&(!I||C>P?(x.text="",x.textWidth=M=0):(x.text=Qi(x.text,P-C,b,c.ellipsis,{minChar:c.minChar}),x.textWidth=Ui(x.text,b),M=x.textWidth+C))}v+=x.width=M,_&&(m=Math.max(m,x.lineHeight))}g.width=v,g.lineHeight=m,s+=m,l=Math.max(l,v)}i.outerWidth=i.width=D(e.textWidth,l),i.outerHeight=i.height=D(e.textHeight,s),u&&(i.outerWidth+=u[1]+u[3],i.outerHeight+=u[0]+u[2]);for(var p=0;pl&&(a+=l,l=-l),0>h&&(s+=h,h=-h),"number"==typeof u?i=n=r=o=u:u instanceof Array?1===u.length?i=n=r=o=u[0]:2===u.length?(i=r=u[0],n=o=u[1]):3===u.length?(i=u[0],n=o=u[1],r=u[2]):(i=u[0],n=u[1],r=u[2],o=u[3]):i=n=r=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),n+r>h&&(c=n+r,n*=h/c,r*=h/c),i+o>h&&(c=i+o,i*=h/c,o*=h/c),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-Math.PI/2,0),t.lineTo(a+l,s+h-r),0!==r&&t.arc(a+l-r,s+h-r,r,0,Math.PI/2),t.lineTo(a+o,s+h),0!==o&&t.arc(a+o,s+h-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function un(t){return cn(t),f(t.rich,cn),t}function cn(t){if(t){t.font=ln(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Wy[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||Hy[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=L(t.textPadding))}}function dn(t,e,i,n,r,o){n.rich?pn(t,e,i,n,r,o):fn(t,e,i,n,r,o)}function fn(t,e,i,n,r,o){var a,s=yn(n),l=!1,h=e.__attrCachedBy===My.PLAIN_TEXT;o!==Iy?(o&&(a=o.style,l=!s&&h&&a),e.__attrCachedBy=s?My.NONE:My.PLAIN_TEXT):h&&(e.__attrCachedBy=My.NONE);var u=n.font||Gy;l&&u===(a.font||Gy)||(e.font=u);var c=t.__computedFont;t.__styleFont!==u&&(t.__styleFont=u,c=t.__computedFont=e.font);var d=n.textPadding,f=n.textLineHeight,p=t.__textCotentBlock;(!p||t.__dirtyText)&&(p=t.__textCotentBlock=on(i,c,d,f,n.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=wn(Xy,t,n,r),x=y.baseX,_=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;mn(e,n,r,x,_);var S=Ki(_,g,b),M=x,I=S;if(s||d){var T=Ui(i,c),A=T;d&&(A+=d[1]+d[3]);var C=qi(x,A,w);s&&xn(t,e,n,C,S,A,g),d&&(M=Tn(x,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var D=0;DT&&(_=b[T],!_.textAlign||"left"===_.textAlign);)vn(t,e,_,n,M,v,A,"left"),I-=_.width,A+=_.width,T++;for(;D>=0&&(_=b[D],"right"===_.textAlign);)vn(t,e,_,n,M,v,C,"right"),I-=_.width,C-=_.width,D--;for(A+=(o-(A-m)-(y-C)-I)/2;D>=T;)_=b[T],vn(t,e,_,n,M,v,A+_.width/2,"center"),A+=_.width,T++;v+=M}}function mn(t,e,i,n,r){if(i&&e.textRotation){var o=e.textOrigin;"center"===o?(n=i.width/2+i.x,r=i.height/2+i.y):o&&(n=o[0]+i.x,r=o[1]+i.y),t.translate(n,r),t.rotate(-e.textRotation),t.translate(-n,-r)}}function vn(t,e,i,n,r,o,a,s){var l=n.rich[i.styleName]||{}; l.text=i.text;var h=i.textVerticalAlign,u=o+r/2;"top"===h?u=o+i.height/2:"bottom"===h&&(u=o+r-i.height/2),!i.isLineHolder&&yn(l)&&xn(t,e,l,"right"===s?a-i.width:"center"===s?a-i.width/2:a,u-i.height/2,i.width,i.height);var c=i.textPadding;c&&(a=Tn(a,s,c),u-=i.height/2-c[2]-i.textHeight/2),bn(e,"shadowBlur",k(l.textShadowBlur,n.textShadowBlur,0)),bn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),bn(e,"shadowOffsetX",k(l.textShadowOffsetX,n.textShadowOffsetX,0)),bn(e,"shadowOffsetY",k(l.textShadowOffsetY,n.textShadowOffsetY,0)),bn(e,"textAlign",s),bn(e,"textBaseline","middle"),bn(e,"font",i.font||Gy);var d=Sn(l.textStroke||n.textStroke,p),f=Mn(l.textFill||n.textFill),p=D(l.textStrokeWidth,n.textStrokeWidth);d&&(bn(e,"lineWidth",p),bn(e,"strokeStyle",d),e.strokeText(i.text,a,u)),f&&(bn(e,"fillStyle",f),e.fillText(i.text,a,u))}function yn(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function xn(t,e,i,n,r,o,a){var s=i.textBackgroundColor,l=i.textBorderWidth,h=i.textBorderColor,u=b(s);if(bn(e,"shadowBlur",i.textBoxShadowBlur||0),bn(e,"shadowColor",i.textBoxShadowColor||"transparent"),bn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),bn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=i.textBorderRadius;c?hn(e,{x:n,y:r,width:o,height:a,r:c}):e.rect(n,r,o,a),e.closePath()}if(u)if(bn(e,"fillStyle",s),null!=i.fillOpacity){var d=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=d}else e.fill();else if(S(s)){var f=s.image;f=Gi(f,null,t,_n,s),f&&Hi(f)&&e.drawImage(f,n,r,o,a)}if(l&&h)if(bn(e,"lineWidth",l),bn(e,"strokeStyle",h),null!=i.strokeOpacity){var d=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=d}else e.stroke()}function _n(t,e){e.image=t}function wn(t,e,i,n){var r=i.x||0,o=i.y||0,a=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)r=n.x+In(l[0],n.width),o=n.y+In(l[1],n.height);else{var h=e&&e.calculateTextPosition?e.calculateTextPosition(Uy,i,n):$i(Uy,i,n);r=h.x,o=h.y,a=a||h.textAlign,s=s||h.textVerticalAlign}var u=i.textOffset;u&&(r+=u[0],o+=u[1])}return t=t||{},t.baseX=r,t.baseY=o,t.textAlign=a,t.textVerticalAlign=s,t}function bn(t,e,i){return t[e]=Sy(t,e,i),t[e]}function Sn(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Mn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function In(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Tn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function An(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function Cn(t){t=t||{},py.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new Ay(t.style,this),this._rect=null,this.__clipPaths=null}function Dn(t){Cn.call(this,t)}function kn(t){return parseInt(t,10)}function Pn(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Ln(t,e,i){return Jy.copy(t.getBoundingRect()),t.transform&&Jy.applyTransform(t.transform),tx.width=e,tx.height=i,!Jy.intersect(tx)}function On(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;in;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function nr(t){return!yx(t)||xx(t)||t instanceof Date?t:t.value}function rr(t){return yx(t)&&!(t instanceof Array)}function or(t,e){e=(e||[]).slice();var i=p(t||[],function(t){return{exist:t}});return vx(e,function(t,n){if(yx(t)){for(var r=0;r=i.length&&i.push({option:t})}}),i}function ar(t){var e=N();vx(t,function(t){var i=t.exist;i&&e.set(i.id,t)}),vx(t,function(t){var i=t.option;O(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),vx(t,function(t,i){var n=t.exist,r=t.option,o=t.keyInfo;if(yx(r)){if(o.name=null!=r.name?r.name+"":n?n.name:_x+i,n)o.id=n.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function sr(t){var e=t.name;return!(!e||!e.indexOf(_x))}function lr(t){return yx(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function hr(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 ur(){var t="__\x00ec_inner_"+Sx++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function cr(t,e,i){if(b(e)){var n={};n[e+"Index"]=0,e=n}var r=i&&i.defaultMainType;!r||dr(e,r+"Index")||dr(e,r+"Id")||dr(e,r+"Name")||(e[r+"Index"]=0);var o={};return vx(e,function(n,r){var n=e[r];if("dataIndex"===r||"dataIndexInside"===r)return void(o[r]=n);var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=a[1],l=(a[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||i&&i.includeMainTypes&&h(i.includeMainTypes,s)<0)){var u={mainType:s};("index"!==l||"all"!==n)&&(u[l]=n);var c=t.queryComponents(u);o[s+"Models"]=c,o[s+"Model"]=c[0]}}),o}function dr(t,e){return t&&t.hasOwnProperty(e)}function fr(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function pr(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function gr(t){return"auto"===t?rv.domSupported?"html":"richText":t||"html"}function mr(t){var e={main:"",sub:""};return t&&(t=t.split(Mx),e.main=t[0]||"",e.sub=t[1]||""),e}function vr(t){O(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function yr(t,e){t.$constructor=t,t.extend=function(t){tv&&f(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var i=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):i.apply(this,arguments)};return a(n.prototype,t),n.extend=this.extend,n.superCall=_r,n.superApply=wr,u(n,this),n.superClass=i,n}}function xr(t){var e=["__\x00is_clz",Tx++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,tv&&O(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(t){return!(!t||!t[e])}}function _r(t,e){var i=P(arguments,2);return this.superClass.prototype[e].apply(t,i)}function wr(t,e,i){return this.superClass.prototype[e].apply(t,i)}function br(t,e){function i(t){var e=n[t.main];return e&&e[Ix]||(e=n[t.main]={},e[Ix]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){if(e)if(vr(e),e=mr(e),e.sub){if(e.sub!==Ix){var r=i(e);r[e.sub]=t}}else tv&&n[e.main]&&console.warn(e.main+" exists."),n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Ix]&&(r=e?r[e]:null),i&&!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=mr(t);var e=[],i=n[t.main];return i&&i[Ix]?f(i,function(t,i){i!==Ix&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=mr(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(n,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=mr(t);var e=n[t.main];return e&&e[Ix]},t.parseClassType=mr,e.registerWhenExtend){var r=t.extend;r&&(t.extend=function(e){var i=r.call(this,e);return t.registerClass(i,e.type)})}return t}function Sr(t){return t>-zx&&zx>t}function Mr(t){return t>zx||-zx>t}function Ir(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Tr(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Ar(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-r,u=s*s-3*a*l,c=s*l-9*a*h,d=l*l-3*s*h,f=0;if(Sr(u)&&Sr(c))if(Sr(s))o[0]=0;else{var p=-l/s;p>=0&&1>=p&&(o[f++]=p)}else{var g=c*c-4*u*d;if(Sr(g)){var m=c/u,p=-s/a+m,v=-m/2;p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v)}else if(g>0){var y=Ox(g),x=u*s+1.5*a*(-c+y),_=u*s+1.5*a*(-c-y);x=0>x?-Lx(-x,Bx):Lx(x,Bx),_=0>_?-Lx(-_,Bx):Lx(_,Bx);var p=(-s-(x+_))/(3*a);p>=0&&1>=p&&(o[f++]=p)}else{var w=(2*u*s-3*a*c)/(2*Ox(u*u*u)),b=Math.acos(w)/3,S=Ox(u),M=Math.cos(b),p=(-s-2*S*M)/(3*a),v=(-s+S*(M+Rx*Math.sin(b)))/(3*a),I=(-s+S*(M-Rx*Math.sin(b)))/(3*a);p>=0&&1>=p&&(o[f++]=p),v>=0&&1>=v&&(o[f++]=v),I>=0&&1>=I&&(o[f++]=I)}}return f}function Cr(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Sr(a)){if(Mr(o)){var h=-s/o;h>=0&&1>=h&&(r[l++]=h)}}else{var u=o*o-4*a*s;if(Sr(u))r[0]=-o/(2*a);else if(u>0){var c=Ox(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 Dr(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,h=(s-a)*r+a,u=(l-s)*r+s,c=(u-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=c,o[4]=c,o[5]=u,o[6]=l,o[7]=n}function kr(t,e,i,n,r,o,a,s,l,h,u){var c,d,f,p,g,m=.005,v=1/0;Nx[0]=l,Nx[1]=h;for(var y=0;1>y;y+=.05)Fx[0]=Ir(t,i,r,a,y),Fx[1]=Ir(e,n,o,s,y),p=Sv(Nx,Fx),v>p&&(c=y,v=p);v=1/0;for(var x=0;32>x&&!(Ex>m);x++)d=c-m,f=c+m,Fx[0]=Ir(t,i,r,a,d),Fx[1]=Ir(e,n,o,s,d),p=Sv(Fx,Nx),d>=0&&v>p?(c=d,v=p):(Vx[0]=Ir(t,i,r,a,f),Vx[1]=Ir(e,n,o,s,f),g=Sv(Vx,Nx),1>=f&&v>g?(c=f,v=g):m*=.5);return u&&(u[0]=Ir(t,i,r,a,c),u[1]=Ir(e,n,o,s,c)),Ox(v)}function Pr(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function Lr(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Or(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Sr(o)){if(Mr(a)){var h=-s/a;h>=0&&1>=h&&(r[l++]=h)}}else{var u=a*a-4*o*s;if(Sr(u)){var h=-a/(2*o);h>=0&&1>=h&&(r[l++]=h)}else if(u>0){var c=Ox(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 zr(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function Er(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function Rr(t,e,i,n,r,o,a,s,l){var h,u=.005,c=1/0;Nx[0]=a,Nx[1]=s;for(var d=0;1>d;d+=.05){Fx[0]=Pr(t,i,r,d),Fx[1]=Pr(e,n,o,d);var f=Sv(Nx,Fx);c>f&&(h=d,c=f)}c=1/0;for(var p=0;32>p&&!(Ex>u);p++){var g=h-u,m=h+u;Fx[0]=Pr(t,i,r,g),Fx[1]=Pr(e,n,o,g);var f=Sv(Fx,Nx);if(g>=0&&c>f)h=g,c=f;else{Vx[0]=Pr(t,i,r,m),Vx[1]=Pr(e,n,o,m);var v=Sv(Vx,Nx);1>=m&&c>v?(h=m,c=v):u*=.5}}return l&&(l[0]=Pr(t,i,r,h),l[1]=Pr(e,n,o,h)),Ox(c)}function Br(t,e,i){if(0!==t.length){var n,r=t[0],o=r[0],a=r[0],s=r[1],l=r[1];for(n=1;nu;u++){var p=d(t,i,r,a,qx[u]);l[0]=Gx(p,l[0]),h[0]=Wx(p,h[0])}for(f=c(e,n,o,s,Kx),u=0;f>u;u++){var g=d(e,n,o,s,Kx[u]);l[1]=Gx(g,l[1]),h[1]=Wx(g,h[1])}l[0]=Gx(t,l[0]),h[0]=Wx(t,h[0]),l[0]=Gx(a,l[0]),h[0]=Wx(a,h[0]),l[1]=Gx(e,l[1]),h[1]=Wx(e,h[1]),l[1]=Gx(s,l[1]),h[1]=Wx(s,h[1])}function Vr(t,e,i,n,r,o,a,s){var l=zr,h=Pr,u=Wx(Gx(l(t,i,r),1),0),c=Wx(Gx(l(e,n,o),1),0),d=h(t,i,r,u),f=h(e,n,o,c);a[0]=Gx(t,r,d),a[1]=Gx(e,o,f),s[0]=Wx(t,r,d),s[1]=Wx(e,o,f)}function Gr(t,e,i,n,r,o,a,s,l){var h=ae,u=se,c=Math.abs(r-o);if(1e-4>c%Ux&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(Xx[0]=Zx(r)*i+t,Xx[1]=Hx(r)*n+e,Yx[0]=Zx(o)*i+t,Yx[1]=Hx(o)*n+e,h(s,Xx,Yx),u(l,Xx,Yx),r%=Ux,0>r&&(r+=Ux),o%=Ux,0>o&&(o+=Ux),r>o&&!a?o+=Ux:o>r&&a&&(r+=Ux),a){var d=o;o=r,r=d}for(var f=0;o>f;f+=Math.PI/2)f>r&&(jx[0]=Zx(f)*i+t,jx[1]=Hx(f)*n+e,h(s,jx,s),u(l,jx,l))}function Wr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,h=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),h=(t*n-i*e)/(t-i);var u=l*o-a+h,c=u*u/(l*l+1);return s/2*s/2>=c}function Hr(t,e,i,n,r,o,a,s,l,h,u){if(0===l)return!1;var c=l;if(u>e+c&&u>n+c&&u>o+c&&u>s+c||e-c>u&&n-c>u&&o-c>u&&s-c>u||h>t+c&&h>i+c&&h>r+c&&h>a+c||t-c>h&&i-c>h&&r-c>h&&a-c>h)return!1;var d=kr(t,e,i,n,r,o,a,s,h,u,null);return c/2>=d}function Zr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=a;if(l>e+h&&l>n+h&&l>o+h||e-h>l&&n-h>l&&o-h>l||s>t+h&&s>i+h&&s>r+h||t-h>s&&i-h>s&&r-h>s)return!1;var u=Rr(t,e,i,n,r,o,s,l,null);return h/2>=u}function Ur(t){return t%=u_,0>t&&(t+=u_),t}function Xr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=a;s-=t,l-=e;var u=Math.sqrt(s*s+l*l);if(u-h>i||i>u+h)return!1;if(Math.abs(n-r)%c_<1e-4)return!0;if(o){var c=n;n=Ur(r),r=Ur(c)}else n=Ur(n),r=Ur(r);n>r&&(r+=c_);var d=Math.atan2(l,s);return 0>d&&(d+=c_),d>=n&&r>=d||d+c_>=n&&r>=d+c_}function Yr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=e>n?1:-1,s=(o-e)/(n-e);(1===s||0===s)&&(a=e>n?.5:-.5);var l=s*(i-t)+t;return l===r?1/0:l>r?a:0}function jr(t,e){return Math.abs(t-e)e&&h>n&&h>o&&h>s||e>h&&n>h&&o>h&&s>h)return 0;var u=Ar(e,n,o,s,h,g_);if(0===u)return 0;for(var c,d,f=0,p=-1,g=0;u>g;g++){var m=g_[g],v=0===m||1===m?.5:1,y=Ir(t,i,r,a,m);l>y||(0>p&&(p=Cr(e,n,o,s,m_),m_[1]1&&qr(),c=Ir(e,n,o,s,m_[0]),p>1&&(d=Ir(e,n,o,s,m_[1]))),f+=2===p?mc?v:-v:md?v:-v:d>s?v:-v:mc?v:-v:c>s?v:-v)}return f}function $r(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=Or(e,n,o,s,g_);if(0===l)return 0;var h=zr(e,n,o);if(h>=0&&1>=h){for(var u=0,c=Pr(e,n,o,h),d=0;l>d;d++){var f=0===g_[d]||1===g_[d]?.5:1,p=Pr(t,i,r,g_[d]);a>p||(u+=g_[d]c?f:-f:c>o?f:-f)}return u}var f=0===g_[0]||1===g_[0]?.5:1,p=Pr(t,i,r,g_[0]);return a>p?0:e>o?f:-f}function Qr(t,e,i,n,r,o,a,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);g_[0]=-l,g_[1]=l;var h=Math.abs(n-r);if(1e-4>h)return 0;if(1e-4>h%f_){n=0,r=f_;var u=o?1:-1;return a>=g_[0]+t&&a<=g_[1]+t?u:0}if(o){var l=n;n=Ur(r),r=Ur(l)}else n=Ur(n),r=Ur(r);n>r&&(r+=f_);for(var c=0,d=0;2>d;d++){var f=g_[d];if(f+t>a){var p=Math.atan2(s,f),u=o?1:-1;0>p&&(p=f_+p),(p>=n&&r>=p||p+f_>=n&&r>=p+f_)&&(p>Math.PI/2&&p<1.5*Math.PI&&(u=-u),c+=u)}}return c}function Jr(t,e,i,n,r){for(var o=0,a=0,s=0,l=0,h=0,u=0;u1&&(i||(o+=Yr(a,s,l,h,n,r))),1===u&&(a=t[u],s=t[u+1],l=a,h=s),c){case d_.M:l=t[u++],h=t[u++],a=l,s=h;break;case d_.L:if(i){if(Wr(a,s,t[u],t[u+1],e,n,r))return!0}else o+=Yr(a,s,t[u],t[u+1],n,r)||0;a=t[u++],s=t[u++];break;case d_.C:if(i){if(Hr(a,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],e,n,r))return!0}else o+=Kr(a,s,t[u++],t[u++],t[u++],t[u++],t[u],t[u+1],n,r)||0;a=t[u++],s=t[u++];break;case d_.Q:if(i){if(Zr(a,s,t[u++],t[u++],t[u],t[u+1],e,n,r))return!0}else o+=$r(a,s,t[u++],t[u++],t[u],t[u+1],n,r)||0;a=t[u++],s=t[u++];break;case d_.A:var d=t[u++],f=t[u++],p=t[u++],g=t[u++],m=t[u++],v=t[u++];u+=1;var y=1-t[u++],x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;u>1?o+=Yr(a,s,x,_,n,r):(l=x,h=_);var w=(n-d)*g/p+d;if(i){if(Xr(d,f,g,m,m+v,y,e,w,r))return!0}else o+=Qr(d,f,g,m,m+v,y,w,r);a=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case d_.R:l=a=t[u++],h=s=t[u++];var b=t[u++],S=t[u++],x=l+b,_=h+S;if(i){if(Wr(l,h,x,h,e,n,r)||Wr(x,h,x,_,e,n,r)||Wr(x,_,l,_,e,n,r)||Wr(l,_,l,h,e,n,r))return!0}else o+=Yr(x,h,x,_,n,r),o+=Yr(l,_,l,h,n,r);break;case d_.Z:if(i){if(Wr(a,s,l,h,e,n,r))return!0}else o+=Yr(a,s,l,h,n,r);a=l,s=h}}return i||jr(s,h)||(o+=Yr(a,s,l,h,n,r)||0),0!==o}function to(t,e,i){return Jr(t,0,!1,e,i)}function eo(t,e,i,n){return Jr(t,e,!0,i,n)}function io(t){Cn.call(this,t),this.path=null}function no(t,e,i,n,r,o,a,s,l,h,u){var c=l*(C_/180),d=A_(c)*(t-i)/2+T_(c)*(e-n)/2,f=-1*T_(c)*(t-i)/2+A_(c)*(e-n)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=I_(p),s*=I_(p));var g=(r===o?-1:1)*I_((a*a*s*s-a*a*f*f-s*s*d*d)/(a*a*f*f+s*s*d*d))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+i)/2+A_(c)*m-T_(c)*v,x=(e+n)/2+T_(c)*m+A_(c)*v,_=P_([1,0],[(d-m)/a,(f-v)/s]),w=[(d-m)/a,(f-v)/s],b=[(-1*d-m)/a,(-1*f-v)/s],S=P_(w,b);k_(w,b)<=-1&&(S=C_),k_(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*C_),1===o&&0>S&&(S+=2*C_),u.addData(h,y,x,a,s,_,S,c,o)}function ro(t){if(!t)return new h_;for(var e,i=0,n=0,r=i,o=n,a=new h_,s=h_.CMD,l=t.match(L_),h=0;hg;g++)f[g]=parseFloat(f[g]);for(var m=0;p>m;){var v,y,x,_,w,b,S,M=i,I=n;switch(d){case"l":i+=f[m++],n+=f[m++],u=s.L,a.addData(u,i,n);break;case"L":i=f[m++],n=f[m++],u=s.L,a.addData(u,i,n);break;case"m":i+=f[m++],n+=f[m++],u=s.M,a.addData(u,i,n),r=i,o=n,d="l";break;case"M":i=f[m++],n=f[m++],u=s.M,a.addData(u,i,n),r=i,o=n,d="L";break;case"h":i+=f[m++],u=s.L,a.addData(u,i,n);break;case"H":i=f[m++],u=s.L,a.addData(u,i,n);break;case"v":n+=f[m++],u=s.L,a.addData(u,i,n);break;case"V":n=f[m++],u=s.L,a.addData(u,i,n);break;case"C":u=s.C,a.addData(u,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":u=s.C,a.addData(u,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n),i+=f[m-2],n+=f[m-1];break;case"S":v=i,y=n;var T=a.len(),A=a.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),u=s.C,M=f[m++],I=f[m++],i=f[m++],n=f[m++],a.addData(u,v,y,M,I,i,n);break;case"s":v=i,y=n;var T=a.len(),A=a.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),u=s.C,M=i+f[m++],I=n+f[m++],i+=f[m++],n+=f[m++],a.addData(u,v,y,M,I,i,n);break;case"Q":M=f[m++],I=f[m++],i=f[m++],n=f[m++],u=s.Q,a.addData(u,M,I,i,n);break;case"q":M=f[m++]+i,I=f[m++]+n,i+=f[m++],n+=f[m++],u=s.Q,a.addData(u,M,I,i,n);break;case"T":v=i,y=n;var T=a.len(),A=a.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i=f[m++],n=f[m++],u=s.Q,a.addData(u,v,y,i,n);break;case"t":v=i,y=n;var T=a.len(),A=a.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i+=f[m++],n+=f[m++],u=s.Q,a.addData(u,v,y,i,n);break;case"A":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i=f[m++],n=f[m++],u=s.A,no(M,I,i,n,b,S,x,_,w,u,a);break;case"a":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i+=f[m++],n+=f[m++],u=s.A,no(M,I,i,n,b,S,x,_,w,u,a)}}("z"===d||"Z"===d)&&(u=s.Z,a.addData(u),i=r,n=o),e=u}return a.toStatic(),a}function oo(t,e){var i=ro(t);return e=e||{},e.buildPath=function(t){if(t.setData){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e)}else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){M_(i,t),this.dirty(!0)},e}function ao(t,e){return new io(oo(t,e))}function so(t,e){return io.extend(oo(t,e))}function lo(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var a=new io(e);return a.createPathProxy(),a.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},a}function ho(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function uo(t,e,i){var n=e.points,r=e.smooth;if(n&&n.length>=2){if(r&&"spline"!==r){var o=G_(n,r,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],h=o[2*s+1],u=n[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===r&&(n=V_(n,i)),t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;c>s;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}function co(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;s&&(Z_(2*n)===Z_(2*r)&&(t.x1=t.x2=po(n,s,!0)),Z_(2*o)===Z_(2*a)&&(t.y1=t.y2=po(o,s,!0)))}}function fo(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;s&&(t.x=po(n,s,!0),t.y=po(r,s,!0),t.width=Math.max(po(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(po(r+a,s,!1)-t.y,0===a?0:1))}}function po(t,e,i){if(!e)return t;var n=Z_(2*t);return(n+Z_(e))%2===0?n/2:(n+(i?1:-1))/2}function go(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?Tr:Ir)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Tr:Ir)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?Lr:Pr)(t.x1,t.cpx1,t.x2,e),(i?Lr:Pr)(t.y1,t.cpy1,t.y2,e)]}function mo(t){Cn.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function vo(t){return io.extend(t)}function yo(t,e){return so(t,e)}function xo(t,e){dw[t]=e}function _o(t){return dw.hasOwnProperty(t)?dw[t]:void 0}function wo(t,e,i,n){var r=ao(t,e);return i&&("center"===n&&(i=So(i,r.getBoundingRect())),Mo(r,i)),r}function bo(t,e,i){var n=new Dn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(So(e,r))}}});return n}function So(t,e){var i,n=e.width/e.height,r=t.height*n;r<=t.width?i=t.height:(r=t.width,i=r/n);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}function Mo(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function Io(t){return co(t.shape,t.shape,t.style),t}function To(t){return fo(t.shape,t.shape,t.style),t}function Ao(t){return null!=t&&"none"!==t}function Co(t){if("string"!=typeof t)return t;var e=gw.get(t);return e||(e=ni(t,-.1),1e4>mw&&(gw.set(t,e),mw++)),e}function Do(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(!e)return void(t.__cachedNormalStl=t.__cachedNormalZ2=null);var i=t.__cachedNormalStl={};t.__cachedNormalZ2=t.z2;var n=t.style;for(var r in e)null!=e[r]&&(i[r]=n[r]);i.fill=n.fill,i.stroke=n.stroke}}function ko(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.__zr,n=t.useHoverLayer&&i&&"canvas"===i.painter.type;if(t.__highlighted=n?"layer":"plain",!(t.isGroup||!i&&t.useHoverLayer)){var r=t,o=t.style;n&&(r=i.addHover(t),o=r.style),Jo(o),n||Do(r),o.extendFrom(e),Po(o,e,"fill"),Po(o,e,"stroke"),Qo(o),n||(t.dirty(!1),t.z2+=aw)}}}function Po(t,e,i){!Ao(e[i])&&Ao(t[i])&&(t[i]=Co(t[i]))}function Lo(t){var e=t.__highlighted;if(e&&(t.__highlighted=!1,!t.isGroup))if("layer"===e)t.__zr&&t.__zr.removeHover(t);else{var i=t.style,n=t.__cachedNormalStl;n&&(Jo(i),t.setStyle(n),Qo(i));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===aw&&(t.z2=r)}}function Oo(t,e,i){var n,r=hw,o=hw;t.__highlighted&&(r=lw,n=!0),e(t,i),t.__highlighted&&(o=lw,n=!0),t.isGroup&&t.traverse(function(t){!t.isGroup&&e(t,i)}),n&&t.__highDownOnUpdate&&t.__highDownOnUpdate(r,o)}function zo(t,e){e=t.__hoverStl=e!==!1&&(t.hoverStyle||e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(t.__cachedNormalStl=null,Lo(t),ko(t))}function Eo(t){!Fo(this,t)&&!this.__highByOuter&&Oo(this,ko)}function Ro(t){!Fo(this,t)&&!this.__highByOuter&&Oo(this,Lo)}function Bo(t){this.__highByOuter|=1<<(t||0),Oo(this,ko)}function No(t){!(this.__highByOuter&=~(1<<(t||0)))&&Oo(this,Lo)}function Fo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Vo(t,e){Go(t,!0),Oo(t,zo,e)}function Go(t,e){var i=e===!1;if(t.__highDownSilentOnTouch=t.highDownSilentOnTouch,t.__highDownOnUpdate=t.highDownOnUpdate,!i||t.__highDownDispatcher){var n=i?"off":"on";t[n]("mouseover",Eo)[n]("mouseout",Ro),t[n]("emphasis",Bo)[n]("normal",No),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function Wo(t){return!(!t||!t.__highDownDispatcher)}function Ho(t){var e=cw[t];return null==e&&32>=uw&&(e=cw[t]=uw++),e}function Zo(t,e,i,n,r,o,a){r=r||ow;var s,l=r.labelFetcher,h=r.labelDataIndex,u=r.labelDimIndex,c=r.labelProp,d=i.getShallow("show"),f=n.getShallow("show");(d||f)&&(l&&(s=l.getFormattedLabel(h,"normal",null,u,c)),null==s&&(s=w(r.defaultText)?r.defaultText(h,r):r.defaultText));var p=d?s:null,g=f?D(l?l.getFormattedLabel(h,"emphasis",null,u,c):null,s):null;(null!=p||null!=g)&&(Xo(t,i,o,r),Xo(e,n,a,r,!0)),t.text=p,e.text=g}function Uo(t,e,i){var n=t.style;e&&(Jo(n),t.setStyle(e),Qo(n)),n=t.__hoverStl,i&&n&&(Jo(n),a(n,i),Qo(n))}function Xo(t,e,i,n,r){return jo(t,e,n,r),i&&a(t,i),t}function Yo(t,e,i){var n,r={isRectText:!0};i===!1?n=!0:r.autoColor=i,jo(t,e,r,n)}function jo(t,e,i,n){if(i=i||ow,i.isRectText){var r;i.getTextPosition?r=i.getTextPosition(e,n):(r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r="top")),t.textPosition=r,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=D(e.getShallow("distance"),n?null:5)}var a,s=e.ecModel,l=s&&s.option.textStyle,h=qo(e);if(h){a={};for(var u in h)if(h.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Ko(a[u]={},c,l,i,n)}}return t.rich=a,Ko(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function qo(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||ow).rich;if(i){e=e||{};for(var n in i)i.hasOwnProperty(n)&&(e[n]=1)}t=t.parentModel}return e}function Ko(t,e,i,n,r,o){i=!r&&i||ow,t.textFill=$o(e.getShallow("color"),n)||i.color,t.textStroke=$o(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=D(e.getShallow("textBorderWidth"),i.textBorderWidth),r||(o&&(t.insideRollbackOpt=n,Qo(t)),null==t.textFill&&(t.textFill=n.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.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"),o&&n.disableBox||(t.textBackgroundColor=$o(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=$o(e.getShallow("borderColor"),n),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")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function $o(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function Qo(t){var e,i=t.textPosition,n=t.insideRollbackOpt;if(n&&null==t.textFill){var r=n.autoColor,o=n.isRectText,a=n.useInsideStyle,s=a!==!1&&(a===!0||o&&i&&"string"==typeof i&&i.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(e={textFill:t.textFill,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth}),s&&(t.textFill="#fff",null==t.textStroke&&(t.textStroke=r,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),l&&(t.textFill=r)}t.insideRollback=e}function Jo(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function ta(t,e){var i=e&&e.getModel("textStyle");return z([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function ea(t,e,i,n,r,o){"function"==typeof r&&(o=r,r=null);var a=n&&n.isAnimationEnabled();if(a){var s=t?"Update":"",l=n.getShallow("animationDuration"+s),h=n.getShallow("animationEasing"+s),u=n.getShallow("animationDelay"+s);"function"==typeof u&&(u=u(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(i,l,u||0,h,o,!!o):(e.stopAnimation(),e.attr(i),o&&o())}else e.stopAnimation(),e.attr(i),o&&o()}function ia(t,e,i,n,r){ea(!0,t,e,i,n,r)}function na(t,e,i,n,r){ea(!1,t,e,i,n,r)}function ra(t,e){for(var i=ze([]);t&&t!==e;)Re(i,t.getLocalTransform(),i),t=t.parent;return i}function oa(t,e,i){return e&&!d(e)&&(e=Hv.getLocalTransform(e)),i&&(e=Ve([],e)),oe([],t,e)}function aa(t,e,i){var n=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]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=oa(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function sa(t,e,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:H(t.position),rotation:t.rotation};return t.shape&&(e.shape=a({},t.shape)),e}if(t&&e){var o=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=r(t);t.attr(r(e)),ia(t,n,i,t.dataIndex)}}})}}function la(t,e){return p(t,function(t){var i=t[0];i=nw(i,e.x),i=rw(i,e.x+e.width);var n=t[1];return n=nw(n,e.y),n=rw(n,e.y+e.height),[i,n]})}function ha(t,e){var i=nw(t.x,e.x),n=rw(t.x+t.width,e.x+e.width),r=nw(t.y,e.y),o=rw(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function ua(t,e,i){e=a({rectHover:!0},e);var n=e.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(n.image=t.slice(8),s(n,i),new Dn(e)):wo(t.replace("path://",""),e,i,"center"):void 0}function ca(t,e,i,n,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var m=fa(f,p,u,c)/d;return 0>m||m>1?!1:!0}function fa(t,e,i,n){return t*n-i*e}function pa(t){return 1e-6>=t&&t>=-1e-6}function ga(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function ma(t,e,i){for(var n=0;n=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function a(t){u[t]=!0,o(t)}if(t.length){var s=i(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&&(n.call(r,c,d.originalDeps.slice()),delete u[c]),f(d.successor,p?a:o)}f(u,function(){throw new Error("Circle dependency may exists")})}}}function wa(t){return t.replace(/^\s+|\s+$/g,"")}function ba(t,e,i,n){var r=e[1]-e[0],o=i[1]-i[0];if(0===r)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*o+i[0]}function Sa(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?wa(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Ma(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function Ia(t){return t.sort(function(t,e){return t-e}),t}function Ta(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Aa(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var r=e.indexOf(".");return 0>r?0:e.length-1-r}function Ca(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Da(t,e,i){if(!t[e])return 0;var n=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),o=p(t,function(t){return(isNaN(t)?0:t)/n*r*100}),a=100*r,s=p(o,function(t){return Math.floor(t)}),l=g(s,function(t,e){return t+e},0),h=p(o,function(t,e){return t-s[e]});a>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 ka(t){var e=2*Math.PI;return(t%e+e)%e}function Pa(t){return t>-Iw&&Iw>t}function La(t){if(t instanceof Date)return t;if("string"==typeof t){var e=Aw.exec(t);if(!e)return new Date(0/0);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(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 Oa(t){return Math.pow(10,za(t))}function za(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ea(t,e){var i,n=za(t),r=Math.pow(10,n),o=t/r;return i=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function Ra(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function Ba(t){function e(t,i,n){return t.interval[n]s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function Na(t){return t-parseFloat(t)>=0}function Fa(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))}function Va(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 Ga(t){return null==t?"":(t+"").replace(kw,function(t,e){return Pw[e]})}function Wa(t,e,i){_(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""}function Ua(t,e){return t+="","0000".substr(0,e-t.length)+t}function Xa(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=La(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),h=n["get"+r+"Minutes"](),u=n["get"+r+"Seconds"](),c=n["get"+r+"Milliseconds"]();return t=t.replace("MM",Ua(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",Ua(s,2)).replace("d",s).replace("hh",Ua(l,2)).replace("h",l).replace("mm",Ua(h,2)).replace("m",h).replace("ss",Ua(u,2)).replace("s",u).replace("SSS",Ua(c,3))}function Ya(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ja(t){return Xi(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function qa(t,e,i,n,r,o,a,s){return Xi(t,e,i,n,r,s,o,a)}function Ka(t,e){if("_blank"===e||"blank"===e){var i=window.open();i.opener=null,i.location=t}else window.open(t,e)}function $a(t,e,i,n,r){var o=0,a=0;null==n&&(n=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 m=f.width+(g?-g.x+f.x:0);u=o+m,u>n||l.newline?(o=0,u=m,a+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);c=a+v,c>r||l.newline?(o+=s+i,a=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=a,"horizontal"===t?o=u+i:a=c+i)})}function Qa(t,e,i){i=Dw(i||0);var n=e.width,r=e.height,o=Sa(t.left,n),a=Sa(t.top,r),s=Sa(t.right,n),l=Sa(t.bottom,r),h=Sa(t.width,n),u=Sa(t.height,r),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(h)&&(h=n-s-d-o),isNaN(u)&&(u=r-l-c-a),null!=f&&(isNaN(h)&&isNaN(u)&&(f>n/r?h=.8*n:u=.8*r),isNaN(h)&&(h=f*u),isNaN(u)&&(u=h/f)),isNaN(o)&&(o=n-s-h-d),isNaN(a)&&(a=r-l-u-c),t.left||t.right){case"center":o=n/2-h/2-i[3];break;case"right":o=n-h-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-i[0];break;case"bottom":a=r-u-c}o=o||0,a=a||0,isNaN(h)&&(h=n-d-o-(s||0)),isNaN(u)&&(u=r-c-a-(l||0));var p=new Ti(o+i[3],a+i[0],h,u);return p.margin=i,p}function Ja(t,e,i){function n(i,n){var a={},l=0,h={},u=0,c=2;if(Rw(i,function(e){h[e]=t[e]}),Rw(i,function(t){r(e,t)&&(a[t]=h[t]=e[t]),o(a,t)&&l++,o(h,t)&&u++}),s[n])return o(e,i[1])?h[i[2]]=null:o(e,i[2])&&(h[i[1]]=null),h;if(u!==c&&l){if(l>=c)return a;for(var d=0;dn;n++)if(t[n].length>e)return t[n];return t[i-1]}function rs(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Kw?{}:[]),this.sourceFormat=t.sourceFormat||$w,this.seriesLayoutBy=t.seriesLayoutBy||Jw,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&N(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function os(t){var e=t.option.source,i=$w;if(I(e))i=Qw;else if(_(e)){0===e.length&&(i=jw);for(var n=0,r=e.length;r>n;n++){var o=e[n];if(null!=o){if(_(o)){i=jw;break}if(S(o)){i=qw;break}}}}else if(S(e)){for(var a in e)if(e.hasOwnProperty(a)&&d(e[a])){i=Kw;break}}else if(null!=e)throw new Error("Invalid data");ib(t).sourceFormat=i}function as(t){return ib(t).source}function ss(t){ib(t).datasetMap=N()}function ls(t){var e=t.option,i=e.data,n=I(i)?Qw:Yw,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=gs(t);if(l){var h=l.option;i=h.source,n=ib(l).sourceFormat,r=!0,o=o||h.seriesLayoutBy,null==a&&(a=h.sourceHeader),s=s||h.dimensions}var u=hs(i,n,o,a,s);ib(t).source=new rs({data:i,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:e.encode})}function hs(t,e,i,n,r){if(!t)return{dimensionsDefine:us(r)};var o,a;if(e===jw)"auto"===n||null==n?cs(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,t,10):a=n?1:0,r||1!==a||(r=[],cs(function(t,e){r[e]=null!=t?t:""},i,t)),o=r?r.length:i===tb?t.length:t[0]?t[0].length:null;else if(e===qw)r||(r=ds(t));else if(e===Kw)r||(r=[],f(t,function(t,e){r.push(e)}));else if(e===Yw){var s=nr(t[0]);o=_(s)&&s.length||1}else e===Qw&&tv&&O(!!r,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:us(r),dimensionsDetectCount:o}}function us(t){if(t){var e=N();return p(t,function(t){if(t=a({},S(t)?t:{name:t}),null==t.name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var i=e.get(t.name);return i?t.name+="-"+i.count++:e.set(t.name,{count:1}),t})}}function cs(t,e,i,n){if(null==n&&(n=1/0),e===tb)for(var r=0;rr;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;rr;r++)t(o[r],r)}function ds(t){for(var e,i=0;in;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=gs(e);if(!a||!t)return o;var s,l,h=[],u=[],c=e.ecModel,d=ib(c).datasetMap,p=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),f(t,function(e,i){!S(e)&&(t[i]={name:e}),"ordinal"===e.type&&null==s&&(s=i,l=r(t[i])),o[e.name]=[]});var g=d.get(p)||d.set(p,{categoryWayDim:l,valueWayDim:0});return f(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=g.valueWayDim;n(o[i],l,a),n(u,l,a),g.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(h,0,a);else{var l=g.categoryWayDim;n(o[i],l,a),n(u,l,a),g.categoryWayDim+=a}}),h.length&&(o.itemName=h),u.length&&(o.seriesName=u),o}function ps(t,e,i){var n={},r=gs(t);if(!r)return n;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===qw||a===Kw)&&f(s,function(t,e){"name"===(S(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var n={},r={},l=[],h=0,u=Math.min(5,i);u>h;h++){var c=vs(e.data,a,e.seriesLayoutBy,s,e.startIndex,h);l.push(c);var d=c===eb.Not;if(d&&null==n.v&&h!==o&&(n.v=h),(null==n.n||n.n===n.v||!d&&l[n.n]===eb.Not)&&(n.n=h),t(n)&&l[n.n]!==eb.Not)return n;d||(c===eb.Might&&null==r.v&&h!==o&&(r.v=h),(null==r.n||r.n===r.v)&&(r.n=h))}return t(n)?n:t(r)?r:null}();if(l){n.value=l.v;var h=null!=o?o:l.n;n.itemName=[h],n.seriesName=[h]}return n}function gs(t){var e=t.option,i=e.data;return i?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function ms(t,e){return vs(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function vs(t,e,i,n,r,o){function a(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?eb.Might:eb.Not:e&&"-"!==t?eb.Must:void 0}var s,l=5;if(I(t))return eb.Not;var h,u;if(n){var c=n[o];S(c)?(h=c.name,u=c.type):b(c)&&(h=c)}if(null!=u)return"ordinal"===u?eb.Must:eb.Not;if(e===jw)if(i===tb){for(var d=t[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;ff;f++){var p=t[r+f];if(p&&null!=(s=a(p[o])))return s}else if(e===qw){if(!h)return eb.Not;for(var f=0;ff;f++){var g=t[f];if(g&&null!=(s=a(g[h])))return s}}else if(e===Kw){if(!h)return eb.Not;var d=t[h];if(!d||I(d))return eb.Not;for(var f=0;ff;f++)if(null!=(s=a(d[f])))return s}else if(e===Yw)for(var f=0;ff;f++){var g=t[f],m=nr(g);if(!_(m))return eb.Not;if(null!=(s=a(m[o])))return s}return eb.Not}function ys(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function xs(t,e){var i=t.color&&!t.colorLayer;f(e,function(e,o){"colorLayer"===o&&i||Ww.hasClass(o)||("object"==typeof e?t[o]=t[o]?r(t[o],e,!1):n(e):null==t[o]&&(t[o]=e))})}function _s(t){t=t,this.option={},this.option[nb]=1,this._componentsMap=N({series:[]}),this._seriesIndices,this._seriesIndicesMap,xs(t,this._theme.option),r(t,Zw,!1),this.mergeOption(t)}function ws(t,e){_(e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function bs(t,e,i){var n=e.type?e.type:i?i.subType:Ww.determineSubType(t,e);return n}function Ss(t,e){t._seriesIndicesMap=N(t._seriesIndices=p(e,function(t){return t.componentIndex})||[])}function Ms(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t.subType===e.subType}):t}function Is(t){if(tv&&!t._seriesIndices)throw new Error("Option should contains series.")}function Ts(t){f(ob,function(e){this[e]=y(t[e],t)},this)}function As(){this._coordinateSystems=[]}function Cs(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Ds(t,e,i){var n,r,o=[],a=[],s=t.timeline;if(t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media){r=r||{};var l=t.media;sb(l,function(t){t&&t.option&&(t.query?a.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=s),sb([r].concat(o).concat(p(a,function(t){return t.option})),function(t){sb(e,function(e){e(t,i)})}),{baseOption:r,timelineOptions:o,mediaDefault:n,mediaList:a}}function ks(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return f(t,function(t,e){var i=e.match(cb);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();Ps(n[a],t,o)||(r=!1)}}),r}function Ps(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function Ls(t,e){return t.join(",")===e.join(",")}function Os(t,e){e=e||{},sb(e,function(e,i){if(null!=e){var n=t[i];if(Ww.hasClass(i)){e=er(e),n=er(n);var r=or(n,e);t[i]=hb(r,function(t){return t.option&&t.exist?ub(t.exist,t.option,!0):t.exist||t.option})}else t[i]=ub(n,e,!0)}})}function zs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=pb.length;n>i;i++){var o=pb[i],a=e.normal,s=e.emphasis;a&&a[o]&&(t[o]=t[o]||{},t[o].normal?r(t[o].normal,a[o]):t[o].normal=a[o],a[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?r(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function Es(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,s(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r)}}function Rs(t){Es(t,"itemStyle"),Es(t,"lineStyle"),Es(t,"areaStyle"),Es(t,"label"),Es(t,"labelLine"),Es(t,"upperLabel"),Es(t,"edgeLabel")}function Bs(t,e){var i=fb(t)&&t[e],n=fb(i)&&i.textStyle;if(n)for(var r=0,o=bx.length;o>r;r++){var e=bx[r];n.hasOwnProperty(e)&&(i[e]=n[e])}}function Ns(t){t&&(Rs(t),Bs(t,"label"),t.emphasis&&Bs(t.emphasis,"label"))}function Fs(t){if(fb(t)){zs(t),Rs(t),Bs(t,"label"),Bs(t,"upperLabel"),Bs(t,"edgeLabel"),t.emphasis&&(Bs(t.emphasis,"label"),Bs(t.emphasis,"upperLabel"),Bs(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(zs(e),Ns(e));var i=t.markLine;i&&(zs(i),Ns(i));var n=t.markArea;n&&Ns(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!I(o))for(var a=0;a=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(u>=0&&m>0||0>=u&&0>m){u+=m,f=m;break}}}return n[0]=u,n[1]=f,n});a.hostModel.setData(l),e.data=l})}function Xs(t,e){rs.isInstance(t)||(t=rs.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;if(n===Qw){if(tv&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=i}var r=wb[n===jw?n+"_"+t.seriesLayoutBy:n];tv&&O(r,"Invalide sourceFormat: "+n),a(this,r)}function Ys(){return this._data.length}function js(t){return this._data[t]}function qs(t){for(var e=0;ee.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ul(t,e){f(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,x(cl,e))})}function cl(t){var e=dl(t);e&&e.setOutputEnd(this.count())}function dl(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function fl(){this.group=new yy,this.uid=ya("viewChart"),this.renderTask=el({plan:ml,reset:vl}),this.renderTask.context={view:this}}function pl(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!Wo(t)))for(var n=0,r=t.childCount();r>n;n++)pl(t.childAt(n),e,i)}function gl(t,e,i){var n=hr(t,e),r=e&&null!=e.highlightKey?Ho(e.highlightKey):null;null!=n?f(er(n),function(e){pl(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){pl(t,i,r)})}function ml(t){return zb(t.model)}function vl(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Ob(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),Rb[l]}function yl(t,e,i){function n(){u=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,h=0,u=0,c=null;e=e||0;var d=function(){r=(new Date).getTime(),a=this,s=arguments;var t=l||e,d=l||i;l=null,o=r-(d?h:u)-t,clearTimeout(c),d?c=setTimeout(n,t):o>=0?n():c=setTimeout(n,-o),h=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function xl(t,e,i,n){var r=t[e];if(r){var o=r[Bb]||r,a=r[Fb],s=r[Nb];if(s!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=yl(o,i,"debounce"===n),r[Bb]=o,r[Fb]=n,r[Nb]=i}return r}}function _l(t,e){var i=t[e];i&&i[Bb]&&(t[e]=i[Bb])}function wl(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=N()}function bl(t,e,i,n,r){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}r=r||{};var a;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){o(r,t)&&(t.dirty(),u=!0)}),u&&h.dirty(),Xb(h,n);var d=t.getPerformArgs(h,r.block);c.each(function(t){t.perform(d)}),a|=h.perform(d)}else l&&l.each(function(s){o(r,s)&&s.dirty();var l=t.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),Xb(s,n),a|=s.perform(l)})}}),t.unfinished|=a}function Sl(t,e,i,n,r){function o(i){var o=i.uid,s=a.get(o)||a.set(o,el({plan:Dl,reset:kl,count:Ll}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Ol(t,i,s)}var a=i.seriesTaskMap||(i.seriesTaskMap=N()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(o):s?n.eachRawSeriesByType(s,o):l&&l(n,r).each(o);var h=t._pipelineMap;a.each(function(t,e){h.get(e)||(t.dispose(),a.removeKey(e))})}function Ml(t,e,i,n,r){function o(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,el({reset:Tl,onDirty:Cl})),a.dirty()),n.context={model:e,overallProgress:u,modifyOutputEnd:c},n.agent=a,n.__block=u,Ol(t,e,n)}var a=i.overallTask=i.overallTask||el({reset:Il});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var s=a.agentStubMap=a.agentStubMap||N(),l=e.seriesType,h=e.getTargetSeries,u=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,o):h?h(n,r).each(o):(u=!1,f(n.getSeries(),o));var d=t._pipelineMap;s.each(function(t,e){d.get(e)||(t.dispose(),a.dirty(),s.removeKey(e))})}function Il(t){t.overallReset(t.ecModel,t.api,t.payload)}function Tl(t){return t.overallProgress&&Al}function Al(){this.agent.dirty(),this.getDownstream().dirty()}function Cl(){this.agent&&this.agent.dirty()}function Dl(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function kl(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=er(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,function(t,e){return Pl(e)}):Yb}function Pl(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,r)}i=i.nextSibling}}function Fl(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Vl(t){for(var e=z(t).split(rS),i=[],n=0;n0;o-=2){var a=r[o],s=r[o-1];switch(n=n||Oe(),s){case"translate":a=z(a).split(rS),Be(n,n,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=z(a).split(rS),Fe(n,n,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=z(a).split(rS),Ne(n,n,parseFloat(a[0]));break;case"skew":a=z(a).split(rS),console.warn("Skew transform is not supported yet");break;case"matrix":var a=z(a).split(rS);n[0]=parseFloat(a[0]),n[1]=parseFloat(a[1]),n[2]=parseFloat(a[2]),n[3]=parseFloat(a[3]),n[4]=parseFloat(a[4]),n[5]=parseFloat(a[5])}}e.setLocalTransform(n)}}function Zl(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};uS.lastIndex=0;for(var r;null!=(r=uS.exec(e));)n[r[1]]=r[2];for(var o in sS)sS.hasOwnProperty(o)&&null!=n[o]&&(i[sS[o]]=n[o]);return i}function Ul(t,e,i){var n=e/t.width,r=i/t.height,o=Math.min(n,r),a=[o,o],s=[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+i/2];return{scale:a,position:s}}function Xl(t,e){var i=new Bl;return i.parse(t,e)}function Yl(t,e){return function(i,n,r){return!e&&this._disposed?void uh(this.id):(i=i&&i.toLowerCase(),void Tv.prototype[t].call(this,i,n,r))}}function jl(){Tv.call(this)}function ql(t,e,i){function r(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=XS[e]),this.id,this.group,this._dom=t;var o="canvas";tv&&(o=("undefined"==typeof window?global:window).__ECHARTS__DEFAULT__RENDERER__||o);var a=this._zr=Kn(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=yl(y(a.flush,a),17);var e=n(e);e&&yb(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new As;var s=this._api=ph(this);zi(US,r),zi(WS,r),this._scheduler=new wl(this,s,WS,US),Tv.call(this,this._ecEventProcessor=new gh),this._messageCenter=new jl,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),nh(a,this),E(this)}function Kl(t,e,i){if(this._disposed)return void uh(this.id);var n,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=cr(r,e);for(var a=0;ae.get("hoverLayerThreshold")&&!rv.node&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId]; i.__alive&&i.group.traverse(function(t){t.useHoverLayer=!0})}})}function dh(t,e){var i=t.get("blendMode")||null;tv&&!rv.canvasSupported&&i&&"source-over"!==i&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.setStyle("blend",i)})})}function fh(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function ph(t){var e=t._coordSysMgr;return a(new Ts(t),{getCoordinateSystems:y(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function gh(){this.eventInfo}function mh(t){function e(t,e){for(var i=0;i65535?sM:hM}function Kh(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function $h(t,e){f(uM.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(cM,function(i){t[i]=n(e[i])}),t._calculationInfo=a(e._calculationInfo)}function Qh(t,e,i,n,r){var o=aM[e.type],a=n-1,s=e.name,l=t[s][a];if(l&&l.lengthc;c+=i)t[s].push(new o(Math.min(r-c,i)))}function Jh(t){var e=t._invertedIndicesMap;f(e,function(i,n){var r=t._dimensionInfos[n],o=r.ordinalMeta;if(o){i=e[n]=new lM(o.categories.length);for(var a=0;a=0?this._indices[t]:-1}function nu(t,e){var i=t._idList[e];return null==i&&(i=tu(t,t._idDimIdx,e)),null==i&&(i=oM+e),i}function ru(t){return _(t)||(t=[t]),t}function ou(t,e){for(var i=0;i=0?(r[s]=su(o[s]),n._rawExtent[s]=lu(),n._extent[s]=null):r[s]=o[s])}return n}function su(t){for(var e=new Array(t.length),i=0;id;d++){var p=o[d]=a({},S(o[d])?o[d]:{name:o[d]}),g=p.name,m=u[d]=new jh;null!=g&&null==l.get(g)&&(m.name=m.displayName=g,l.set(g,d)),null!=p.type&&(m.type=p.type),null!=p.displayName&&(m.displayName=p.displayName)}var v=i.encodeDef;!v&&i.encodeDefaulter&&(v=i.encodeDefaulter(e,c)),v=N(v),v.each(function(t,e){if(t=er(t).slice(),1===t.length&&!b(t[0])&&t[0]<0)return void v.set(e,!1);var i=v.set(e,[]);f(t,function(t,n){b(t)&&(t=l.get(t)),null!=t&&c>t&&(i[n]=t,r(u[t],e,n))})});var y=0;f(t,function(t){var e,t,i,o;if(b(t))e=t,t={};else{e=t.name;var a=t.ordinalMeta;t.ordinalMeta=null,t=n(t),t.ordinalMeta=a,i=t.dimsDef,o=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var l=v.get(e);if(l!==!1){var l=er(l);if(!l.length)for(var h=0;h<(i&&i.length||1);h++){for(;yI;I++){var m=u[I]=u[I]||new jh,T=m.coordDim;null==T&&(m.coordDim=cu(M,h,w),m.coordDimIndex=0,(!x||0>=_)&&(m.isExtraCoord=!0),_--),null==m.name&&(m.name=cu(m.coordDim,l)),null!=m.type||ms(e,I,m.name)!==eb.Must&&(!m.isExtraCoord||null==m.otherDims.itemName&&null==m.otherDims.seriesName)||(m.type="ordinal")}return u}function uu(t,e,i,n){var r=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return f(e,function(t){var e=t.dimsDef;e&&(r=Math.max(r,e.length))}),r}function cu(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function du(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.firstCategoryDimIndex=null}function fu(t){var e=t.get("coordinateSystem"),i=new du(e),n=mM[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function pu(t){return"category"===t.get("type")}function gu(t,e,i){i=i||{};var n,r,o,a,s=i.byIndex,l=i.stackedCoordDimension,h=!(!t||!t.get("stack"));if(f(e,function(t,i){b(t)&&(e[i]=t={name:t}),h&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),r||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(r=t))}),!r||s||n||(s=!0),r){o="__\x00ecstackresult",a="__\x00ecstackedover",n&&(n.createInvertedIndices=!0);var u=r.coordDim,c=r.type,d=0;f(e,function(t){t.coordDim===u&&d++}),e.push({name:o,coordDim:u,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:a,coordDim:a,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:a,stackResultDimension:o}}function mu(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function vu(t,e){return mu(t,e)?t.getCalculationInfo("stackResultDimension"):e}function yu(t,e,i){i=i||{},rs.isInstance(t)||(t=rs.seriesDataToSource(t));var n,r=e.get("coordinateSystem"),o=As.get(r),a=fu(e);a&&(n=p(a.coordSysDims,function(t){var e={name:t},i=a.axisMap.get(t);if(i){var n=i.get("type");e.type=Xh(n)}return e})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,h=gM(t,{coordDimensions:n,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?x(fs,n,e):null});a&&f(h,function(t,e){var i=t.coordDim,n=a.categoryAxisMap.get(i);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(h[s].otherDims.itemName=0);var u=gu(e,h),c=new dM(h,e);c.setCalculationInfo(u);var d=null!=s&&xu(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function xu(t){if(t.sourceFormat===Yw){var e=_u(t.data||[]);return null!=e&&!_(nr(e))}}function _u(t){for(var e=0;ea&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Tu(a),l=r.niceTickExtent=[_M(Math.ceil(t[0]/a)*a,s),_M(Math.floor(t[1]/a)*a,s)];return Cu(l,t),r}function Tu(t){return Aa(t)+2}function Au(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Cu(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Au(t,0,e),Au(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Du(t){return t.get("stack")||SM+t.seriesIndex}function ku(t){return t.dim+t.index}function Pu(t,e){var i=[];return e.eachSeriesByType(t,function(t){Bu(t)&&!Nu(t)&&i.push(t)}),i}function Lu(t){var e={};f(t,function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.mapDimension(n.dim),s=0,l=r.count();l>s;++s){var h=r.get(a,s);e[o]?e[o].push(h):e[o]=[h]}});var i=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function Ou(t){var e=Lu(t),i=[];return f(t,function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],h=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),c=Math.abs(u[1]-u[0]);n=l?h/c*l:h}else{var d=t.getData();n=Math.abs(a[1]-a[0])/d.count()}var f=Sa(t.get("barWidth"),n),p=Sa(t.get("barMaxWidth"),n),g=Sa(t.get("barMinWidth")||1,n),m=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:ku(o),stackId:Du(t)})}),zu(i)}function zu(t){var e={};f(t,function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;e[i]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var h=t.barMinWidth;h&&(o[a].minWidth=h);var u=t.barGap;null!=u&&(r.gap=u);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=Sa(t.categoryGap,r),a=Sa(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-o)/(l+(l-1)*a);h=Math.max(h,0),f(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,s-=n+a*n,l--}else{var n=h;e&&n>e&&(n=Math.min(e,s)),i&&i>n&&(n=i),n!==h&&(t.width=n,s-=n+a*n,l--)}}),h=(s-o)/(l+(l-1)*a),h=Math.max(h,0);var u,c=0;f(n,function(t){t.width||(t.width=h),u=t,c+=t.width*(1+a)}),u&&(c-=u.width*a);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+a)})}),i}function Eu(t,e,i){if(t&&e){var n=t[ku(e)];return null!=n&&null!=i&&(n=n[Du(i)]),n}}function Ru(t,e){var i=Pu(t,e),n=Ou(i),r={};f(i,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=Du(t),s=n[ku(o)][a],l=s.offset,h=s.width,u=i.getOtherAxis(o),c=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:h});for(var d=e.mapDimension(u.dim),f=e.mapDimension(o.dim),p=mu(e,d),g=u.isHorizontal(),m=Fu(o,u,p),v=0,y=e.count();y>v;v++){var x=e.get(d,v),_=e.get(f,v),w=x>=0?"p":"n",b=m;p&&(r[a][_]||(r[a][_]={p:m,n:m}),b=r[a][_][w]);var S,M,I,T;if(g){var A=i.dataToPoint([x,_]);S=b,M=A[1]+l,I=A[0]-m,T=h,Math.abs(I)I?-1:1)*c),isNaN(I)||p&&(r[a][_][w]+=I)}else{var A=i.dataToPoint([_,x]);S=A[0]+l,M=b,I=h,T=A[1]-m,Math.abs(T)=T?-1:1)*c),isNaN(T)||p&&(r[a][_][w]+=T)}e.setItemLayout(v,{x:S,y:M,width:I,height:T})}},this)}function Bu(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Nu(t){return t.pipelineContext&&t.pipelineContext.large}function Fu(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Vu(t,e){return VM(t,FM(e))}function Gu(t,e){var i,n,r,o=t.type,a=e.getMin(),s=e.getMax(),l=t.getExtent();"ordinal"===o?i=e.getCategories().length:(n=e.get("boundaryGap"),_(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(tv&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),n=[0,0]),n[0]=Sa(n[0],1),n[1]=Sa(n[1],1),r=l[1]-l[0]||Math.abs(l[0])),"dataMin"===a?a=l[0]:"function"==typeof a&&(a=a({min:l[0],max:l[1]})),"dataMax"===s?s=l[1]:"function"==typeof s&&(s=s({min:l[0],max:l[1]}));var h=null!=a,u=null!=s;null==a&&(a="ordinal"===o?i?0:0/0:l[0]-n[0]*r),null==s&&(s="ordinal"===o?i?i-1:0/0:l[1]+n[1]*r),(null==a||!isFinite(a))&&(a=0/0),(null==s||!isFinite(s))&&(s=0/0),t.setBlank(A(a)||A(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!h&&(a=0),0>a&&0>s&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===o){var d,p=Pu("bar",c);if(f(p,function(t){d|=t.getBaseAxis()===e.axis}),d){var g=Ou(p),m=Wu(a,s,e,g);a=m.min,s=m.max}}return{extent:[a,s],fixMin:h,fixMax:u}}function Wu(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=Eu(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;f(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;f(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var h=s+l,u=e-t,c=1-(s+l)/o,d=u/c-u;return e+=d*(l/h),t-=d*(s/h),{min:t,max:e}}function Hu(t,e){var i=Gu(t,e),n=i.extent,r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function Zu(t,e){if(e=e||t.get("type"))switch(e){case"category":return new xM(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new bM;default:return(wu.getClass(e)||bM).create(t)}}function Uu(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Xu(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,r){return null!=i&&(r=n-i),e(Yu(t,n),r)}:function(e){return t.scale.getLabel(e)}}function Yu(t,e){return"category"===t.type?t.scale.getLabel(e):e}function ju(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,r,o="category"===t.type,a=i.getExtent();o?r=i.count():(n=i.getTicks(),r=n.length);var s,l=t.getLabelModel(),h=Xu(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;r>c;c+=u){var d=n?n[c]:a[0]+c,f=h(d),p=l.getTextRect(f),g=qu(p,l.get("rotate")||0);s?s.union(g):s=g}return s}}function qu(t,e){var i=e*Math.PI/180,n=t.plain(),r=n.width,o=n.height,a=r*Math.abs(Math.cos(i))+Math.abs(o*Math.sin(i)),s=r*Math.abs(Math.sin(i))+Math.abs(o*Math.cos(i)),l=new Ti(n.x,n.y,a,s);return l}function Ku(t){var e=t.get("interval");return null==e?"auto":e}function $u(t){return"category"===t.type&&0===Ku(t.getLabelModel())}function Qu(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function Ju(t,e,i,n,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?bo(t.slice(8),new Ti(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?wo(t.slice(7),{},new Ti(e,i,n,r),a?"center":"cover"):new tI({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=Qu,l.setColor(o),l}function tc(t){return yu(t.getSource(),t)}function ec(t,e){var i=e;ga.isInstance(e)||(i=new ga(e),c(i,XM));var n=Zu(i);return n.setExtent(t[0],t[1]),Hu(n,i),n}function ic(t){c(t,XM)}function nc(t,e){return Math.abs(t-e)>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,n.push([s/i,l/i])}return n}function lc(t){return"category"===t.type?uc(t):fc(t)}function hc(t,e){return"category"===t.type?dc(t,e):{ticks:t.scale.getTicks()}}function uc(t){var e=t.getLabelModel(),i=cc(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function cc(t,e){var i=pc(t,"labels"),n=Ku(e),r=gc(i,n);if(r)return r;var o,a;return w(n)?o=wc(t,n):(a="auto"===n?vc(t):n,o=_c(t,a)),mc(i,n,{labels:o,labelCategoryInterval:a})}function dc(t,e){var i=pc(t,"ticks"),n=Ku(e),r=gc(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),w(n))o=wc(t,n,!0);else if("auto"===n){var s=cc(t,t.getLabelModel());a=s.labelCategoryInterval,o=p(s.labels,function(t){return t.tickValue})}else a=n,o=_c(t,a,!0);return mc(i,n,{ticks:o,tickCategoryInterval:a})}function fc(t){var e=t.scale.getTicks(),i=Xu(t);return{labels:p(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function pc(t,e){return oI(t)[e]||(oI(t)[e]=[])}function gc(t,e){for(var i=0;i40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],h=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(h*Math.cos(n)),c=Math.abs(h*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=Xi(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/u,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=oI(t.model),w=t.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return null!=b&&null!=S&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtend0===w[0]&&_.axisExtend1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtend0=w[0],_.axisExtend1=w[1]),x}function xc(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _c(t,e,i){function n(t){l.push(i?t:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:t})}var r=Xu(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),u=a[0],c=o.count();0!==u&&h>1&&c/h>2&&(u=Math.round(Math.ceil(u/h)*h));var d=$u(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&u!==a[0]&&n(a[0]);for(var g=u;g<=a[1];g+=h)n(g);return p&&g-h!==a[1]&&n(a[1]),l}function wc(t,e,i){var n=t.scale,r=Xu(t),o=[];return f(n.getTicks(),function(t){var a=n.getLabel(t);e(t,a)&&o.push(i?t:{formattedLabel:r(t),rawLabel:a,tickValue:t})}),o}function bc(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function Sc(t,e,i,n){function r(t,e){return t=Ma(t),e=Ma(e),d?t>e:e>t}var o=e.length;if(t.onBand&&!i&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var h=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/h;f(e,function(t){t.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var d=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function Mc(t){return this._axes[t]}function Ic(t){cI.call(this,t)}function Tc(t,e){return e.type||(e.data?"category":"value")}function Ac(t,e){return t.getCoordSysModel()===e}function Cc(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function Dc(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get("axisLine.onZero"),h=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=h)kc(a[h])&&(o=a[h]);else for(var u in a)if(a.hasOwnProperty(u)&&kc(a[u])&&!n[r(a[u])]){o=a[u];break}o&&(n[r(o)]=!0)}}function kc(t){return t&&"category"!==t.type&&"time"!==t.type&&Uu(t)}function Pc(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Lc(t){return p(_I,function(e){var i=t.getReferringComponents(e)[0];if(tv&&!i)throw new Error(e+' "'+C(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');return i})}function Oc(t){return"cartesian2d"===t.get("coordinateSystem")}function zc(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return Js(t,e,i[0]);if(n){for(var r=[],o=0;o0?"bottom":"top":r.width>0?"left":"right";l||Ec(t.style,f,n,h,o,i,g),Hc(r)&&(f.fill=f.stroke="none"),Vo(t,f)}function Uc(t,e){var i=t.get(II)||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,r)}function Xc(t,e,i){var n=t.getData(),r=[],o=n.getLayout("valueAxisHorizontal")?1:0;r[1-o]=n.getLayout("valueAxisStart");var a=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=t.getModel("backgroundStyle"),h=t.get("showBackground",!0);if(h){var u=n.getLayout("largeBackgroundPoints"),c=[];c[1-o]=n.getLayout("backgroundStart");var d=new LI({shape:{points:u},incremental:!!i,__startPoint:c,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});qc(d,l,n),e.add(d)}var f=new LI({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});e.add(f),jc(f,t,n),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",OI),f.on("mousemove",OI))}function Yc(t,e,i){var n=t.__baseDimIdx,r=1-n,o=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[r];TI[0]=e,TI[1]=i;for(var h=TI[n],u=TI[1-n],c=h-s,d=h+s,f=0,p=o.length/2;p>f;f++){var g=2*f,m=o[g+n],v=o[g+r];if(m>=c&&d>=m&&(v>=l?u>=l&&v>=u:u>=v&&l>=u))return a[f]}return-1}function jc(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),r=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function qc(t,e,i){var n=e.get("borderColor")||e.get("color"),r=e.getItemStyle(["color","borderColor"]);t.useStyle(r),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function Kc(t,e,i){var n,r="polar"===i.type;return n=r?i.getArea():i.grid.getRect(),r?{cx:n.cx,cy:n.cy,r0:t?n.r0:e.r0,r:t?n.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}:{x:t?e.x:n.x,y:t?n.y:e.y,width:t?e.width:n.width,height:t?n.height:e.height}}function $c(t,e,i){var n="polar"===t.type?N_:X_;return new n({shape:Kc(e,i,t),silent:!0,z2:0})}function Qc(t,e,i,n){var r,o,a=ka(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Pa(a-zI/2)?(o=l?"bottom":"top",r="center"):Pa(a-1.5*zI)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*zI>a&&a>zI/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Jc(t,e,i){if(!$u(t.axis)){var n=t.get("axisLabel.showMinLabel"),r=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],h=i[0],u=i[1],c=i[i.length-1],d=i[i.length-2];n===!1?(td(o),td(h)):ed(o,a)&&(n?(td(a),td(u)):(td(o),td(h))),r===!1?(td(s),td(c)):ed(l,s)&&(r?(td(l),td(d)):(td(s),td(c)))}}function td(t){t&&(t.ignore=!0)}function ed(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=ze([]);return Ne(r,r,-t.rotation),i.applyTransform(Re([],r,t.getLocalTransform())),n.applyTransform(Re([],r,e.getLocalTransform())),i.intersect(n)}}function id(t){return"middle"===t||"center"===t}function nd(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function fd(t){var e=pd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=md(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0?i=n[0]:n[1]<0&&(i=n[1]),i}function Od(t,e,i,n){var r=0/0;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function zd(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Ed(t){return isNaN(t[0])||isNaN(t[1])}function Rd(t,e,i,n,r,o,a,s,l,h){return"none"!==h&&h?Bd.apply(this,arguments):Nd.apply(this,arguments)}function Bd(t,e,i,n,r,o,a,s,l,h,u){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=r||0>d)break;if(Ed(p)){if(u){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===h?1:0,v=(p[m]-g[m])*l;rT(aT,g),aT[m]=g[m]+v,rT(sT,p),sT[m]=p[m]-v,t.bezierCurveTo(aT[0],aT[1],sT[0],sT[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Nd(t,e,i,n,r,o,a,s,l,h,u){for(var c=0,d=i,f=0;n>f;f++){var p=e[d];if(d>=r||0>d)break;if(Ed(p)){if(u){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]),rT(aT,p);else if(l>0){var g=d+o,m=e[g];if(u)for(;m&&Ed(e[g]);)g+=o,m=e[g];var v=.5,y=e[c],m=e[g];if(!m||Ed(m))rT(sT,p);else{Ed(m)&&!u&&(m=p),Y(oT,m,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]-m[w])}else x=bv(p,y),_=bv(p,m);v=_/(_+x),nT(sT,p,oT,-l*(1-v))}eT(aT,aT,s),iT(aT,aT,a),eT(sT,sT,s),iT(sT,sT,a),t.bezierCurveTo(aT[0],aT[1],sT[0],sT[1],p[0],p[1]),nT(aT,p,oT,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Fd(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;rn[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}function Vd(t,e){if(t.length===e.length){for(var i=0;ir;r++)n.push(Od(i,t,e,r));return n}function Zd(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,o=[],a=0;a=0;o--){var a=i[o].dimension,s=t.dimensions[a],l=t.getDimensionInfo(s);if(n=l&&l.coordDim,"x"===n||"y"===n){r=i[o];break}}if(!r)return void(tv&&console.warn("Visual map on line style only support x or y dimension."));var h=e.getAxis(n),u=p(r.stops,function(t){return{coord:h.toGlobalCoord(h.dataToCoord(t.value)),color:t.color}}),c=u.length,d=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var g=10,m=u[0].coord-g,v=u[c-1].coord+g,y=v-m;if(.001>y)return"transparent";f(u,function(t){t.offset=(t.coord-m)/y}),u.push({offset:c?u[c-1].offset:.5,color:d[1]||"transparent"}),u.unshift({offset:c?u[0].offset:.5,color:d[0]||"transparent"});var x=new tw(0,0,0,0,u,!0);return x[n]=m,x[n+"2"]=v,x}}function Xd(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!Yd(o,e))){var a=e.mapDimension(o.dim),s={};return f(o.getViewLabels(),function(t){s[t.tickValue]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Yd(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*Sd.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function jd(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),r=Bc(t,e,i);if(!i.get("clip",!0)){var o=r.shape,a=Math.max(o.width,o.height);n?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return r}return Nc(t,e,i)}function qd(t,e){this.getAllNames=function(){var t=e();return t.mapArray(t.getName)},this.containName=function(t){var i=e();return i.indexOfName(t)>=0},this.indexOfName=function(e){var i=t();return i.indexOfName(e)},this.getItemVisual=function(e,i){var n=t();return n.getItemVisual(e,i)}}function Kd(t,e,i,n){var r=e.getData(),o=this.dataIndex,a=r.getName(o),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:a,seriesId:e.id}),r.each(function(t){$d(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,i)})}function $d(t,e,i,n,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=i?n:0,h=[a*l,s*l];r?t.animate().when(200,{position:h}).start("bounceOut"):t.attr("position",h)}function Qd(t,e){yy.call(this);var i=new N_({z2:2}),n=new H_,r=new z_;this.add(i),this.add(n),this.add(r),this.updateData(t,e,!0)}function Jd(t,e,i,n,r,o,a,s,l,h){function u(e,i,n){for(var r=e;i>r&&!(t[r].y+n>l+a);r++)if(t[r].y+=n,r>e&&i>r+1&&t[r+1].y>t[r].y+t[r].height)return void c(r,n/2);c(i-1,n/2)}function c(e,i){for(var n=e;n>=0&&!(t[n].y-i0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function d(t,e,i,n,r,o){for(var a=o>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++)if("none"===t[s].labelAlignTo){var h=Math.abs(t[s].y-n),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-i);e&&d>=a&&(d=a-10),!e&&a>=d&&(d=a+10),t[s].x=i+d*o,a=d}}t.sort(function(t,e){return t.y-e.y});for(var f,p=0,g=t.length,m=[],v=[],y=0;g>y;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var x=t[y].x-h;t[y].linePoints[1][0]+=x,t[y].x=h}f=t[y].y-p,0>f&&u(y,g,-f,r),p=t[y].y+t[y].height}0>a-p&&c(g-1,p-a);for(var y=0;g>y;y++)t[y].y>=i?v.push(t[y]):m.push(t[y]);d(m,!1,e,i,n,r),d(v,!0,e,i,n,r)}function tf(t,e,i,n,r,o,a,s){for(var l=[],h=[],u=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d3?1.4:r>1?1.2:1.1,l=n>0?s:1/s;Sf(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a})}if(i){var h=Math.abs(n),u=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);Sf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:o,originY:a})}}}function bf(t){if(!gf(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;Sf(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function Sf(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(Ov(n.event),Mf(t,e,i,n,r))}function Mf(t,e,i,n,r){r.isAvailableBehavior=y(If,null,i,n),t.trigger(e,r)}function If(t,e,i){var n=i[t];return!t||n&&(!b(n)||e.event[n+"Key"])}function Tf(t,e,i){var n=t.target,r=n.position;r[0]+=e,r[1]+=i,n.dirty()}function Af(t,e,i,n){var r=t.target,o=t.zoomLimit,a=r.position,s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var h=o.min||0,u=o.max||1/0;l=Math.max(Math.min(u,l),h)}var c=l/t.zoom;t.zoom=l,a[0]-=(i-a[0])*(c-1),a[1]-=(n-a[1])*(c-1),s[0]*=c,s[1]*=c,r.dirty()}function Cf(t,e,i){var n=e.getComponentByElement(t.topTarget),r=n&&n.coordinateSystem;return n&&n!==i&&!$T[n.mainType]&&r&&r.model!==i}function Df(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function kf(t,e,i,n,r){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var a=o.target;!a.__regions;)a=a.parent;if(a){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:p(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),Pf(e,i)}}}))}function Pf(t,e){e.eachChild(function(e){f(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function Lf(t,e){var i=new yy;this.uid=ya("ec_map_draw"),this._controller=new vf(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new yy),i.add(this._backgroundGroup=new yy)}function Of(t){var e=this[QT];e&&e.recordVersion===this[JT]&&zf(e,t)}function zf(t,e){var i=t.circle,n=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(i.style.extendFrom(Xo({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=aw):(Xo(i.style,n,{text:n.get("show")?a:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}function Ef(t,e,i){var n=t.getZoom(),r=t.getCenter(),o=e.zoom,a=t.dataToPoint(r);if(null!=e.dx&&null!=e.dy){a[0]-=e.dx,a[1]-=e.dy;var r=t.pointToData(a);t.setCenter(r)}if(null!=o){if(i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scale[0]*=o,t.scale[1]*=o;var h=t.position,u=(e.originX-h[0])*(o-1),c=(e.originY-h[1])*(o-1);h[0]-=u,h[1]-=c,t.updateTransform();var r=t.pointToData(a);t.setCenter(r),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function Rf(){Hv.call(this)}function Bf(t){this.name=t,this.zoomLimit,Hv.call(this),this._roamTransformable=new Rf,this._rawTransformable=new Rf,this._center,this._zoom}function Nf(t,e,i,n){var r=i.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](n):null}function Ff(t,e,i,n){Bf.call(this,t),this.map=e;var r=jT.load(e,i);this._nameCoordMap=r.nameCoordMap,this._regionsMap=r.regionsMap,this._invertLongitute=null==n?!0:n,this.regions=r.regions,this._rect=r.boundingRect}function Vf(t,e,i,n){var r=i.geoModel,o=i.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](n):null}function Gf(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],r=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(r[0])||isNaN(r[1])?tv&&console.error("Invalid boundingCoords"):this.setBoundingRect(n[0],n[1],r[0]-n[0],r[1]-n[1])}var o,a=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),h=e.getWidth(),u=e.getHeight(),c=a.width/a.height*this.aspectScale,d=!1;s&&l&&(s=[Sa(s[0],h),Sa(s[1],u)],l=Sa(l,Math.min(h,u)),isNaN(s[0])||isNaN(s[1])||isNaN(l)?tv&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):d=!0);var f;if(d){var f={};c>1?(f.width=l,f.height=l/c):(f.height=l,f.width=l*c),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else o=t.getBoxLayoutParams(),o.aspect=c,f=Qa(o,{width:h,height:u});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Wf(t,e){f(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function Hf(t,e){var i={};return f(t,function(t){t.each(t.mapDimension("value"),function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)})}),t[0].map(t[0].mapDimension("value"),function(n,r){for(var o="ec-"+t[0].getName(r),a=0,s=1/0,l=-1/0,h=i[o].length,u=0;h>u;u++)s=Math.min(s,i[o][u]),l=Math.max(l,i[o][u]),a+=i[o][u];var c;return c="min"===e?s:"max"===e?l:"average"===e?a/h:a,0===h?0/0:c})}function Zf(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Uf(t,e){return e.dim+t.model.componentIndex}function Xf(t,e){var i={},n=Yf(m(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=Uf(r,o),s=Zf(t),l=n[a][s],h=l.offset,u=l.width,c=r.getOtherAxis(o),d=t.coordinateSystem.cx,f=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(c.dim),v=e.mapDimension(o.dim),y=mu(e,m),x="radius"!==o.dim||!t.get("roundCap",!0),_="radius"===c.dim?c.dataToRadius(0):c.dataToAngle(0),w=0,b=e.count();b>w;w++){var S=e.get(m,w),M=e.get(v,w),I=S>=0?"p":"n",T=_;y&&(i[s][M]||(i[s][M]={p:_,n:_}),T=i[s][M][I]);var A,C,D,k;if("radius"===c.dim){var P=c.dataToRadius(S)-_,L=o.dataToAngle(M);Math.abs(P)P?-1:1)*p),A=T,C=T+P,D=L-h,k=D-u,y&&(i[s][M][I]=C)}else{var O=c.dataToAngle(S,x)-_,z=o.dataToRadius(M);Math.abs(O)O?-1:1)*g),A=z+h,C=A+u,D=T,k=T+O,y&&(i[s][M][I]=k)}e.setItemLayout(w,{cx:d,cy:f,r0:A,r:C,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180})}}},this)}function Yf(t){var e={};f(t,function(t){var i=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=Uf(n,r),a=r.getExtent(),s="category"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/i.count(),l=e[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=l.stacks;e[o]=l;var u=Zf(t);h[u]||l.autoWidthCount++,h[u]=h[u]||{width:0,maxWidth:0};var c=Sa(t.get("barWidth"),s),d=Sa(t.get("barMaxWidth"),s),f=t.get("barGap"),p=t.get("barCategoryGap");c&&!h[u].width&&(c=Math.min(l.remainedWidth,c),h[u].width=c,l.remainedWidth-=c),d&&(h[u].maxWidth=d),null!=f&&(l.gap=f),null!=p&&(l.categoryGap=p)});var i={};return f(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=Sa(t.categoryGap,r),a=Sa(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-o)/(l+(l-1)*a);h=Math.max(h,0),f(n,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-o)/(l+(l-1)*a),h=Math.max(h,0);var u,c=0;f(n,function(t){t.width||(t.width=h),u=t,c+=t.width*(1+a)}),u&&(c-=u.width*a);var d=-c/2;f(n,function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+a)})}),i}function jf(t,e){sI.call(this,"radius",t,e),this.type="category"}function qf(t,e){e=e||[0,360],sI.call(this,"angle",t,e),this.type="category"}function Kf(t,e){return e.type||(e.data?"category":"value")}function $f(t,e,i){var n=e.get("center"),r=i.getWidth(),o=i.getHeight();t.cx=Sa(n[0],r),t.cy=Sa(n[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:_(l)||(l=[0,l]),l=[Sa(l[0],s),Sa(l[1],s)],a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}function Qf(t){var e=this,i=e.getAngleAxis(),n=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===e){var r=t.getData();f(r.mapDimension("radius",!0),function(t){n.scale.unionExtentFromData(r,vu(r,t))}),f(r.mapDimension("angle",!0),function(t){i.scale.unionExtentFromData(r,vu(r,t))})}}),Hu(i.scale,i.model),Hu(n.scale,n.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),o=360/i.scale.count();i.inverse?r[1]+=o:r[1]-=o,i.setExtent(r[0],r[1])}}function Jf(t,e){if(t.type=e.get("type"),t.scale=Zu(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}function tp(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),r=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:r[0],y2:r[1]}}function ep(t){var e=t.getRadiusAxis();return e.inverse?0:1}function ip(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function np(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function rp(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var s=op(e,t),l=s.payloadBatch,h=s.snapToValue;l[0]&&null==r.seriesIndex&&a(r,l[0]),!n&&t.snap&&o.containData(h)&&null!=h&&(e=h),i.showPointer(t,e,l,r),i.showTooltip(t,s,h)}}function op(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return gA(e.seriesModels,function(e){var l,h,u=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(u,t,i);h=c.dataIndices,l=c.nestestValue}else{if(h=e.getData().indicesOfNearest(u[0],t,"category"===i.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);a>=f&&((a>f||d>=0&&0>s)&&(a=f,s=d,r=l,o.length=0),gA(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function ap(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function sp(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=vd(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:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function lp(t,e,i){var n=i.axesInfo=[];gA(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function hp(t,e,i,n){if(fp(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function up(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=vA(n)[r]||{},a=vA(n)[r]={};gA(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&gA(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];f(o,function(t,e){!a[e]&&l.push(t)}),f(a,function(t,e){!o[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function cp(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function dp(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function fp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function pp(t,e,i){if(!rv.node){var n=e.getZr();xA(n).records||(xA(n).records={}),gp(n,e);var r=xA(n).records[t]||(xA(n).records[t]={});r.handler=i}}function gp(t,e){function i(i,n){t.on(i,function(i){var r=xp(e);_A(xA(t).records,function(t){t&&n(t,i,r.dispatchAction)}),mp(r.pendings,e)})}xA(t).initialized||(xA(t).initialized=!0,i("click",x(yp,"click")),i("mousemove",x(yp,"mousemove")),i("globalout",vp))}function mp(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function vp(t,e,i){t.handler("leave",null,i)}function yp(t,e,i,n){e.handler(t,i,n)}function xp(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function _p(t,e){if(!rv.node){var i=e.getZr(),n=(xA(i).records||{})[t];n&&(xA(i).records[t]=null)}}function wp(){}function bp(t,e,i,n){Sp(bA(i).lastProp,n)||(bA(i).lastProp=n,e?ia(i,n,t):(i.stopAnimation(),i.attr(n)))}function Sp(t,e){if(S(t)&&S(e)){var i=!0;return f(e,function(e,n){i=i&&Sp(t[n],e)}),!!i}return t===e}function Mp(t,e){t[e.get("label.show")?"show":"hide"]()}function Ip(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Tp(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function Ap(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function Cp(t,e,i,n,r){var o=i.get("value"),a=kp(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),s=i.getModel("label"),l=Dw(s.get("padding")||0),h=s.getFont(),u=Xi(a,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),Dp(c,d,f,n);var m=s.get("backgroundColor");m&&"auto"!==m||(m=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:a,textFont:h,textFill:s.getTextColor(),textPosition:"inside",textPadding:l,fill:m,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 Dp(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function kp(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),a=r.formatter;if(a){var s={value:Yu(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};f(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),b(a)?o=a.replace("{value}",o):w(a)&&(o=a(s))}return o}function Pp(t,e,i){var n=Oe();return Ne(n,n,i.rotation),Be(n,n,i.position),oa([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function Lp(t,e,i,n,r,o){var a=EI.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),Cp(e,n,r,o,{position:Pp(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Op(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function zp(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Ep(t,e,i,n,r,o){return{cx:t,cy:e,r0:i,r:n,startAngle:r,endAngle:o,clockwise:!0}}function Rp(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i) }function Bp(t){return"x"===t.dim?0:1}function Np(t,e,i,n,r){var o=e.axis,a=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,h,u,c=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=Oe();Ne(d,d,s),Be(d,d,[n.cx,n.cy]),l=oa([a,-r],d);var f=e.getModel("axisLabel").get("rotate")||0,p=EI.innerTextLayout(s,f*Math.PI/180,-1);h=p.textAlign,u=p.textVerticalAlign}else{var g=c[1];l=n.coordToPoint([g+r,a]);var m=n.cx,v=n.cy;h=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:h,verticalAlign:u}}function Fp(t,e){e.update="updateView",Ah(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var r=i.coordinateSystem;f(r.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}function Vp(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var a=i.getData();f(a,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&n:n}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Gp(t,e){var i=Dw(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var t=new X_({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return t}function Wp(t,e,i,n,r,o){var a;return"line"!==e&&e.indexOf("empty")<0?(a=i.getItemStyle(),t.style.stroke=n,o||(a.stroke=r)):a=i.getItemStyle(["borderWidth","borderColor"]),t.setStyle(a)}function Hp(t,e,i,n){Up(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Zp(t,e,i,n)}function Zp(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Up(t,e,i,n){var r=i.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function Xp(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,Ja(e,i,{type:"box",ignoreSize:r})}function Yp(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return p(UA,function(t){return t+"transition:"+i}).join(";")}function jp(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var r=t.get("lineHeight");null==r&&(r=Math.round(3*i/2)),i&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),HA(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function qp(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),r=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(Yp(i)),n&&(rv.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+ri(n)),e.push("filter:alpha(opacity=70)"))),HA(["width","color","radius"],function(i){var n="border-"+i,r=ZA(n),o=t.get(r);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))}),e.push(jp(r)),null!=o&&e.push("padding:"+Dw(o).join("px ")+"px"),e.join(";")+";"}function Kp(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&pe(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function $p(t,e,i){if(rv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],Kp(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,i=r.painter.getViewportRoot();be(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}function Qp(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Jp(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],Qp(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}function tg(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(ga.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new ga(i,e,e.ecModel))}return e}function eg(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function ig(t,e,i,n,r,o,a){var s=i.getOuterSize(),l=s.width,h=s.height;return null!=o&&(t+l+o>n?t-=l+o:t+=o),null!=a&&(e+h+a>r?e-=h+a:e+=a),[t,e]}function ng(t,e,i,n,r){var o=i.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function rg(t,e,i){var n=i[0],r=i[1],o=5,a=0,s=0,l=e.width,h=e.height;switch(t){case"inside":a=e.x+l/2-n/2,s=e.y+h/2-r/2;break;case"top":a=e.x+l/2-n/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-n/2,s=e.y+h+o;break;case"left":a=e.x-n-o,s=e.y+h/2-r/2;break;case"right":a=e.x+l+o,s=e.y+h/2-r/2}return[a,s]}function og(t){return"center"===t||"middle"===t}function ag(t){ir(t,"label",["show"])}function sg(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function lg(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function hg(t,e,i,n,r,o){var a=[],s=mu(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,h=gg(e,l,t),u=e.indicesOfNearest(l,h)[0];a[r]=e.get(i,u),a[o]=e.get(l,u);var c=e.get(n,u),d=Ta(e.get(n,u));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,c]}function ug(t,e){var i=t.getData(),r=t.coordinateSystem;if(e&&!lg(e)&&!_(e.coord)&&r){var o=r.dimensions,a=cg(e,i,r,t);if(e=n(e),e.type&&iC[e.type]&&a.baseAxis&&a.valueAxis){var s=tC(o,a.baseAxis.dim),l=tC(o,a.valueAxis.dim),h=iC[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=h[0],e.value=h[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;2>c;c++)iC[u[c]]&&(u[c]=gg(i,i.mapDimension(o[c]),u[c]));e.coord=u}}return e}function cg(t,e,i,n){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=i.getAxis(dg(n,r.valueDataDim)),r.baseAxis=i.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=n.getBaseAxis(),r.valueAxis=i.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function dg(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;rn?t.coord&&t.coord[n]:t.value}function gg(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t){isNaN(t)||(n+=t,r++)}),n/r}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}function mg(t,e,i){var n=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Sa(a.get("x"),i.getWidth()),l=Sa(a.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(n){var h=t.get(n.dimensions[0],r),u=t.get(n.dimensions[1],r);o=n.dataToPoint([h,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function vg(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var r=new dM(n,i),o=p(i.get("data"),x(ug,e));return t&&(o=m(o,x(fg,t))),r.initData(o,null,t?pg:function(t){return t.value}),r}function yg(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function xg(t){return"_"+t+"Type"}function _g(t,e,i){var n=e.getItemVisual(i,t);if(n&&"none"!==n){var r=e.getItemVisual(i,"color"),o=e.getItemVisual(i,t+"Size"),a=e.getItemVisual(i,t+"Rotate");_(o)||(o=[o,o]);var s=Ju(n,-o[0]/2,-o[1]/2,o[0],o[1],r);return s.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,s.name=t,s}}function wg(t){var e=new aC({name:"line",subPixelOptimize:!0});return bg(e.shape,t),e}function bg(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var i=e[2];i?(t.cpx1=i[0],t.cpy1=i[1]):(t.cpx1=0/0,t.cpy1=0/0)}function Sg(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var r=1,o=this.parent;o;)o.scale&&(r/=o.scale[0]),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),h=a.pointAt(s),u=Y([],h,l);if(te(u,u),e){e.attr("position",l);var c=e.__specifiedRotation;if(null==c){var d=a.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0]))}else e.attr("rotation",c);e.attr("scale",[r*s,r*s])}if(i){i.attr("position",h);var c=i.__specifiedRotation;if(null==c){var d=a.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0]))}else i.attr("rotation",c);i.attr("scale",[r*s,r*s])}if(!n.ignore){n.attr("position",h);var f,p,g,m,v=n.__labelDistance,y=v[0]*r,x=v[1]*r,_=s/2,d=a.tangentAt(_),w=[d[1],-d[0]],b=a.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var S=d[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var M=-Math.atan2(d[1],d[0]);h[0].8?"left":u[0]<-.8?"right":"center",g=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":f=[-u[0]*y+l[0],-u[1]*x+l[1]],p=u[0]>.8?"right":u[0]<-.8?"left":"center",g=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[y*S+l[0],l[1]+I],p=d[0]<0?"right":"left",m=[-y*S,-I];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[b[0],b[1]+I],p="center",m=[0,-I];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-y*S+h[0],h[1]+I],p=d[0]>=0?"right":"left",m=[y*S,-I]}n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||p},position:f,scale:[r,r],origin:m})}}}}function Mg(t,e,i){yy.call(this),this._createLine(t,e,i)}function Ig(t){this._ctor=t||Mg,this.group=new yy}function Tg(t,e,i,n){var r=e.getItemLayout(i);if(Pg(r)){var o=new t._ctor(e,i,n);e.setItemGraphicEl(i,o),t.group.add(o)}}function Ag(t,e,i,n,r,o){var a=e.getItemGraphicEl(n);return Pg(i.getItemLayout(r))?(a?a.updateData(i,r,o):a=new t._ctor(i,r,o),i.setItemGraphicEl(r,a),void t.group.add(a)):void t.group.remove(a)}function Cg(t){return t.animators&&t.animators.length>0}function Dg(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function kg(t){return isNaN(t[0])||isNaN(t[1])}function Pg(t){return!kg(t[0])&&!kg(t[1])}function Lg(t){return!isNaN(t)&&!isFinite(t)}function Og(t,e,i,n){var r=1-t,o=n.dimensions[t];return Lg(e[r])&&Lg(i[r])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function zg(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(Og(1,i,n,t)||Og(0,i,n,t)))return!0}return fg(t,e[0])&&fg(t,e[1])}function Eg(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Sa(s.get("x"),r.getWidth()),h=Sa(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=a.dimensions,c=t.get(u[0],e),d=t.get(u[1],e);o=a.dataToPoint([c,d])}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y"),u=a.dimensions;Lg(t.get(u[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):Lg(t.get(u[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];t.setItemLayout(e,o)}function Rg(t,e,i){var n;n=t?p(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return s({name:t},i)}):[{name:"value",type:"float"}];var r=new dM(n,i),o=new dM(n,i),a=new dM([],i),l=p(i.get("data"),x(uC,e,t,i));t&&(l=m(l,x(zg,t)));var h=t?pg:function(t){return t.value};return r.initData(p(l,function(t){return t[0]}),null,h),o.initData(p(l,function(t){return t[1]}),null,h),a.initData(p(l,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}function Bg(t){return!isNaN(t)&&!isFinite(t)}function Ng(t,e,i){var n=1-t;return Bg(e[n])&&Bg(i[n])}function Fg(t,e){var i=e.coord[0],n=e.coord[1];return"cartesian2d"===t.type&&i&&n&&(Ng(1,i,n,t)||Ng(0,i,n,t))?!0:fg(t,{coord:i,x:e.x0,y:e.y0})||fg(t,{coord:n,x:e.x1,y:e.y1})}function Vg(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Sa(s.get(i[0]),r.getWidth()),h=Sa(s.get(i[1]),r.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(i,e));else{var u=t.get(i[0],e),c=t.get(i[1],e),d=[u,c];a.clampData&&a.clampData(d,d),o=a.dataToPoint(d,!0)}if("cartesian2d"===a.type){var f=a.getAxis("x"),p=a.getAxis("y"),u=t.get(i[0],e),c=t.get(i[1],e);Bg(u)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===i[0]?0:1]):Bg(c)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];return o}function Gg(t,e,i){var n,r,o=["x0","y0","x1","y1"];t?(n=p(t&&t.dimensions,function(t){var i=e.getData(),n=i.getDimensionInfo(i.mapDimension(t))||{};return s({name:t},n)}),r=new dM(p(o,function(t,e){return{name:t,type:n[e%2].type}}),i)):(n=[{name:"value",type:"float"}],r=new dM(n,i));var a=p(i.get("data"),x(cC,e,t,i));t&&(a=m(a,x(Fg,t)));var l=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return r.initData(a,null,l),r.hasItemOption=!0,r}function Wg(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),Hg(t),Zg(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});Zg(n,"position")||(n.position=t.controlPosition),"none"!==n.position||Zg(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}f(t.data||[],function(t){S(t)&&!_(t)&&(!Zg(t,"value")&&Zg(t,"name")&&(t.value=t.name),Hg(t))})}function Hg(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},r=n.normal||(n.normal={}),o={normal:1,emphasis:1};f(n,function(t,e){o[e]||Zg(r,e)||(r[e]=t)}),i.label&&!Zg(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function Zg(t,e){return t.hasOwnProperty(e)}function Ug(t,e){return Qa(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Xg(t,e,i,n){var r=n.style,o=ua(t.get(e),n||{},new Ti(i[0],i[1],i[2],i[3]));return r&&o.setStyle(r),o}function Yg(t,e,i,n,o,a){var s=e.get("color");if(o)o.setColor(s),i.add(o),a&&a.onUpdate(o);else{var l=t.get("symbol");o=Ju(l,-1,-1,2,2,s),o.setStyle("strokeNoScale",!0),i.add(o),a&&a.onCreate(o)}var h=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(h),n=r({rectHover:!0,z2:100},n,!0);var u=t.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],u[0]/=2,u[1]/=2,n.scale=u;var c=t.get("symbolOffset");if(c){var d=n.position=n.position||[0,0];d[0]+=Sa(c[0],u[0]),d[1]+=Sa(c[1],u[1])}var f=t.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,o.attr(n),o.updateTransform(),o}function jg(t,e,i,n,r){if(!t.dragging){var o=n.getModel("checkpointStyle"),a=i.dataToCoord(n.getData().get(["value"],e));r||!o.get("animation",!0)?t.attr({position:[a,0]}):(t.stopAnimation(!0),t.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}function qg(t){return h(bC,t)>=0}function Kg(t,e){t=t.slice();var i=p(t,Ya);e=(e||[]).slice();var n=p(e,Ya);return function(r,o){f(t,function(t,a){for(var s={name:t,capital:i[a]},l=0;l=0}function r(t,n){var r=!1;return e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]&&(r=!0)})}),r}function o(t,n){n.nodes.push(t),e(function(e){f(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function a(t){!n(t,s)&&r(t,s)&&(o(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;o(i,s);var l;do l=!1,t(a);while(l);return s}}function Qg(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:0>i?1:e?-1:1}}function Jg(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function tm(t,e,i){var n=[1/0,-1/0];return IC(i,function(t){var i=t.getData();i&&IC(i.mapDimension(e,!0),function(t){var e=i.getApproximateExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:0/0);var a=i.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!=typeof a?e[1]=a:r&&(e[1]=o>0?o-1:0/0),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function im(t,e){var i=t.getAxisModel(),n=t._percentWindow,r=t._valueWindow;if(n){var o=Ca(r,[0,500]);o=Math.min(o,20);var a=e||0===n[0]&&100===n[1];i.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}function nm(t){var e=t._minMaxSpan={},i=t._dataZoomModel,n=t._dataExtent;IC(["min","max"],function(r){var o=i.get(r+"Span"),a=i.get(r+"ValueSpan");null!=a&&(a=t.getAxisModel().axis.scale.parse(a)),null!=a?o=ba(n[0]+a,n,[0,100],!0):null!=o&&(a=ba(o,[0,100],n,!0)-n[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=a})}function rm(t){var e={};return CC(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function om(t,e){var i=t._rangePropMode,n=t.get("rangeMode");CC([["start","startValue"],["end","endValue"]],function(t,r){var o=null!=e[t[0]],a=null!=e[t[1]];o&&!a?i[r]="percent":!o&&a?i[r]="value":n?i[r]=n[r]:o&&(i[r]="percent")})}function am(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function sm(t){return"vertical"===t?"ns-resize":"ew-resize"}function lm(t,e){var i=cm(t),n=e.dataZoomId,r=e.coordId;f(i,function(t){var i=t.dataZoomInfos;i[n]&&h(e.allCoordIds,r)<0&&(delete i[n],t.count--)}),fm(i);var o=i[r];o||(o=i[r]={coordId:r,dataZoomInfos:{},count:0},o.controller=dm(t,o),o.dispatchAction=x(pm,t)),!o.dataZoomInfos[n]&&o.count++,o.dataZoomInfos[n]=e;var a=gm(o.dataZoomInfos);o.controller.enable(a.controlType,a.opt),o.controller.setPointerChecker(e.containsPoint),xl(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function hm(t,e){var i=cm(t);f(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),fm(i)}function um(t){return t.type+"\x00_"+t.id}function cm(t){var e=t.getZr();return e[XC]||(e[XC]={})}function dm(t,e){var i=new vf(t.getZr());return f(["pan","zoom","scrollMove"],function(t){i.on(t,function(i){var n=[];f(e.dataZoomInfos,function(r){if(i.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[t],a=o&&o(e.controller,i);!r.dataZoomModel.get("disabled",!0)&&a&&n.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}}),n.length&&e.dispatchAction(n)})}),i}function fm(t){f(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function pm(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function gm(t){var e,i="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return f(t,function(t){var o=t.dataZoomModel,a=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[i+a]>n[i+e]&&(e=a),r&=o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function mm(t){return function(e,i,n,r){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,i,n,r);return MC(l,a,[0,100],"all"),this._range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function vm(t){return UC(t)}function ym(){if(!JC&&tD){JC=!0;var t=tD.styleSheets;t.length<31?tD.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}function xm(t){return parseInt(t,10)}function _m(t,e){ym(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){r.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function wm(t){return function(){dy('In IE8.0 VML mode painter not support method "'+t+'"')}}function bm(t){return document.createElementNS(ZD,t)}function Sm(t){return jD(1e4*t)/1e4}function Mm(t){return tk>t&&t>-tk}function Im(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==YD}function Tm(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==YD}function Am(t,e){e&&Cm(t,"transform","matrix("+XD.call(e,",")+")")}function Cm(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function Dm(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function km(t,e,i,n){if(Im(e,i)){var r=i?e.textFill:e.fill;r="transparent"===r?YD:r,Cm(t,"fill",r),Cm(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else Cm(t,"fill",YD);if(Tm(e,i)){var o=i?e.textStroke:e.stroke;o="transparent"===o?YD:o,Cm(t,"stroke",o);var a=i?e.textStrokeWidth:e.lineWidth,s=!i&&e.strokeNoScale?n.getLineScale():1;Cm(t,"stroke-width",a/s),Cm(t,"paint-order",i?"stroke":"fill"),Cm(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity);var l=e.lineDash;l?(Cm(t,"stroke-dasharray",e.lineDash.join(",")),Cm(t,"stroke-dashoffset",jD(e.lineDashOffset||0))):Cm(t,"stroke-dasharray",""),e.lineCap&&Cm(t,"stroke-linecap",e.lineCap),e.lineJoin&&Cm(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&Cm(t,"stroke-miterlimit",e.miterLimit)}else Cm(t,"stroke",YD)}function Pm(t){for(var e=[],i=t.data,n=t.len(),r=0;n>r;){var o=i[r++],a="",s=0;switch(o){case UD.M:a="M",s=2;break;case UD.L:a="L",s=2;break;case UD.Q:a="Q",s=4;break;case UD.C:a="C",s=6;break;case UD.A:var l=i[r++],h=i[r++],u=i[r++],c=i[r++],d=i[r++],f=i[r++],p=i[r++],g=i[r++],m=Math.abs(f),v=Mm(m-QD)||(g?f>=QD:-f>=QD),y=f>0?f%QD:f%QD+QD,x=!1;x=v?!0:Mm(m)?!1:y>=$D==!!g;var _=Sm(l+u*KD(d)),w=Sm(h+c*qD(d));v&&(f=g?QD-1e-4:-QD+1e-4,x=!0,9===r&&e.push("M",_,w));var b=Sm(l+u*KD(d+f)),S=Sm(h+c*qD(d+f));e.push("A",Sm(u),Sm(c),jD(p*JD),+x,+g,b,S);break;case UD.Z:a="Z";break;case UD.R:var b=Sm(i[r++]),S=Sm(i[r++]),M=Sm(i[r++]),I=Sm(i[r++]);e.push("M",b,S,"L",b+M,S,"L",b+M,S+I,"L",b,S+I,"L",b,S)}a&&e.push(a);for(var T=0;s>T;T++)e.push(Sm(i[r++]))}return e.join(" ")}function Lm(t,e,i,n,r,o,a){ze(ak),e&&i&&Ee(ak,i);var s=n.textRotation;if(r&&s){var l=n.textOrigin;"center"===l?(o=r.width/2+r.x,a=r.height/2+r.y):l&&(o=l[0]+r.x,a=l[1]+r.y),ak[4]-=o,ak[5]-=a,Ne(ak,ak,s),ak[4]+=o,ak[5]+=a}Am(t,ak)}function Om(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function zm(t,e,i,n){Cm(t,"dominant-baseline","middle"),Cm(t,"text-anchor",sk[e]),Cm(t,"x",i),Cm(t,"y",n)}function Em(t){t&&t.__textSvgEl&&(t.__textSvgEl.parentNode&&t.__textSvgEl.parentNode.removeChild(t.__textSvgEl),t.__textSvgEl=null,t.__tspanList=[],t.__text=null)}function Rm(){}function Bm(t,e){for(var i=0,n=e.length,r=0,o=0;n>i;i++){var a=e[i];if(a.removed){for(var s=[],l=o;lr;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,r=n.length;r>3&&(n=Iv.call(n,1));for(var o=e.length,a=0;o>a;){var s=e[a];if(i&&i.filter&&null!=s.query&&!i.filter(t,s.query))a++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,n[1]);break;case 3:s.h.call(s.ctx,n[1],n[2]);break;default:s.h.apply(s.ctx,n)}s.one?(e.splice(a,1),o--):a++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,r=n.length;r>4&&(n=Iv.call(n,1,n.length-1));for(var o=n[n.length-1],a=e.length,s=0;a>s;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(r){case 1:l.h.call(o);break;case 2:l.h.call(o,n[1]);break;case 3:l.h.call(o,n[1],n[2]);break;default:l.h.apply(o,n)}l.one?(e.splice(s,1),a--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var Av=Math.log(2),Cv="___zrEVENTSAVED",Dv=[],kv="undefined"!=typeof window&&!!window.addEventListener,Pv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Lv=[],Ov=kv?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},zv=function(){this._track=[]};zv.prototype={constructor:zv,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=xe(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in Ev)if(Ev.hasOwnProperty(e)){var i=Ev[e](this._track,t);if(i)return i}}};var Ev={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=Te(n)/Te(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ae(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Rv="silent";ke.prototype.dispose=function(){};var Bv=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Nv=function(t,e,i,n){Tv.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new ke,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,le.call(this),this.setHandlerProxy(i)};Nv.prototype={constructor:Nv,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(Bv,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=Le(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?{x:e,y:i}:this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},mouseout:function(t){var e=t.zrEventControl,i=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&!i&&this.trigger("globalout",{type:"globalout",event:t}) },resize:function(){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.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,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Ce(e,t,i);n&&(n[r]&&(o.cancelBubble=n[r].call(n,o)),n.trigger(e,o),n=n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),r={x:t,y:e},o=n.length-1;o>=0;o--){var a;if(n[o]!==i&&!n[o].ignore&&(a=Pe(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==Rv)){r.target=n[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new zv);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r,this.dispatchToElement({target:n.target},r,n.event)}}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Nv.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=Le(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||bv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),c(Nv,Tv),c(Nv,le);var Fv="undefined"==typeof Float32Array?Array:Float32Array,Vv=(Object.freeze||Object)({create:Oe,identity:ze,copy:Ee,mul:Re,translate:Be,rotate:Ne,scale:Fe,invert:Ve,clone:Ge}),Gv=ze,Wv=5e-5,Hv=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},Zv=Hv.prototype;Zv.transform=null,Zv.needLocalTransform=function(){return We(this.rotation)||We(this.position[0])||We(this.position[1])||We(this.scale[0]-1)||We(this.scale[1]-1)};var Uv=[];Zv.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(!i&&!e)return void(n&&Gv(n));n=n||Oe(),i?this.getLocalTransform(n):Gv(n),e&&(i?Re(n,t.transform,n):Ee(n,t.transform)),this.transform=n;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(Uv);var o=Uv[0]<0?-1:1,a=Uv[1]<0?-1:1,s=((Uv[0]-o)*r+o)/Uv[0]||0,l=((Uv[1]-a)*r+a)/Uv[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||Oe(),Ve(this.invTransform,n)},Zv.getLocalTransform=function(t){return Hv.getLocalTransform(this,t)},Zv.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Zv.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var Xv=[],Yv=Oe();Zv.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;We(e-1)&&(e=Math.sqrt(e)),We(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],r[0]=e,r[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},Zv.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Re(Xv,t.invTransform,e),e=Xv);var i=this.origin;i&&(i[0]||i[1])&&(Yv[4]=i[0],Yv[5]=i[1],Re(Xv,e,Yv),Xv[4]-=i[0],Xv[5]-=i[1],e=Xv),this.setLocalTransform(e)}},Zv.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},Zv.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&oe(i,i,n),i},Zv.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&oe(i,i,n),i},Hv.getLocalTransform=function(t,e){e=e||[],Gv(e);var i=t.origin,n=t.scale||[1,1],r=t.rotation||0,o=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),Fe(e,e,n),r&&Ne(e,e,r),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var jv={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,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n):i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/n)*.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-jv.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*jv.bounceIn(2*t):.5*jv.bounceOut(2*t-1)+.5}};He.prototype={constructor:He,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var i=(t-this._startTime-this._pausedTime)/this._life;if(!(0>i)){i=Math.min(i,1);var n=this.easing,r="string"==typeof n?jv[n]:n,o="function"==typeof r?r(i):i;return this.fire("frame",o),1===i?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 qv=function(){this.head=null,this.tail=null,this._len=0},Kv=qv.prototype;Kv.insert=function(t){var e=new $v(t);return this.insertEntry(e),e},Kv.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++},Kv.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Kv.len=function(){return this._len},Kv.clear=function(){this.head=this.tail=null,this._len=0};var $v=function(t){this.value=t,this.next,this.prev},Qv=function(t){this._list=new qv,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Jv=Qv.prototype;Jv.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new $v(e),a.key=t,i.insertEntry(a),n[t]=a}return r},Jv.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},Jv.clear=function(){this._list.clear(),this._map={}};var ty={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]},ey=new Qv(20),iy=null,ny=oi,ry=ai,oy=(Object.freeze||Object)({parse:ti,lift:ni,toHex:ri,fastLerp:oi,fastMapToColor:ny,lerp:ai,mapToColor:ry,modifyHSL:si,modifyAlpha:li,stringify:hi}),ay=Array.prototype.slice,sy=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||ui,this._setter=n||ci,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};sy.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:xi(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;ti;i++)t[i].call(this)},start:function(t,e){var i,n=this,r=0,o=function(){r--,r||n._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=bi(this,t,o,this._tracks[a],a,e);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;il;l++)s&&(s=s[a[l]]);s&&(i=s)}else i=r;if(!i)return void dy('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,d=new sy(i,e);return d.during(function(){r.dirty(n)}).done(function(){c.splice(h(c,d),1)}),c.push(d),o&&o.animation.addAnimator(d),d},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;i>n;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,r,o){Si(this,t,e,i,n,r,o)},animateFrom:function(t,e,i,n,r,o){Si(this,t,e,i,n,r,o,!0)}};var py=function(t){Hv.call(this,t),Tv.call(this,t),fy.call(this,t),this.id=t.id||iv()};py.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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[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 i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);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 i=0;in||i>s||l>o||r>h)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new Ti(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}}},Ti.create=function(t){return new Ti(t.x,t.y,t.width,t.height)};var yy=function(t){t=t||{},py.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};yy.prototype={constructor:yy,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,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof yy&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,r=h(n,t);return 0>r?this:(n.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof yy&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;en;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,rv.canvasSupported&&zi(i,Ei)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var r=n,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.clipPath}if(t.isGroup){for(var a=t._children,s=0;se;e++)this.delRoot(t[e]);else{var r=h(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof yy&&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:Ei};var by={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Sy=function(t,e,i){return by.hasOwnProperty(e)?i*=t.dpr:i},My={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Iy=9,Ty=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Ay=function(t){this.extendFrom(t,!1)};Ay.prototype={constructor:Ay,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){var n=this,r=i&&i.style,o=!r||t.__attrCachedBy!==My.STYLE_BIND;t.__attrCachedBy=My.STYLE_BIND;for(var a=0;a0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||e!==!0&&(e===!1?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},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,i){for(var n="radial"===e.type?Bi:Ri,r=n(t,e,i),o=e.colorStops,a=0;a=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;er;){var o=t[r],a=o.__from;a&&a.__zr?(r++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,i,!0,n))):(t.splice(r,1),a.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(qy)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var r=this;Oy(function(){r._paintList(t,e,i)})}}},_compositeManually:function(){var t=this.getLayer(Ky).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},_doPaintList:function(t,e){for(var i=[],n=0;n15)break}}o.__drawIndex=m,o.__drawIndex0&&t>n[0]){for(a=0;r-1>a&&!(n[a]t);a++);o=i[n[a]]}if(n.splice(a+1,0,t),i[t]=e,!e.virtual)if(o){var l=o.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 i,n,r=this._zlevelList;for(n=0;n0?$y:0),this._needsManuallyCompositing),s.__builtin__||dy("ZLevel "+l+" has been used by unkown layer "+s.id),s!==o&&(s.__used=!0,s.__startIndex!==i&&(s.__dirty=!0),s.__startIndex=i,s.__drawIndex=s.incremental?-1:i,e(i),o=s),n.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=i))}e(i),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()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?r(i[t],e,!0):i[t]=e;for(var n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;ia;a++){var s=i[a],l=s.step(t,e);l&&(r.push(l),o.push(s))}for(var a=0;n>a;)i[a]._needsRemove?(i[a]=i[n-1],i.pop(),n--):a++;n=r.length;for(var a=0;n>a;a++)o[a].fire(r[a]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(Oy(t),!e._paused&&e._update())}var e=this;this._running=!0,Oy(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=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){e=e||{};var i=new sy(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},c(ix,Tv);var nx=300,rx=rv.domSupported,ox=function(){var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=p(t,function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:n}}(),ax={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sx=Wn.prototype;sx.stopPropagation=sx.stopImmediatePropagation=sx.preventDefault=V;var lx={mousedown:function(t){t=be(this.dom,t),this._mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=be(this.dom,t);var e=this._mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||Yn(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=be(this.dom,t),Yn(this,!1),this.trigger("mouseup",t)},mouseout:function(t){t=be(this.dom,t),this._pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=Gn(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=be(this.dom,t),Fn(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),lx.mousemove.call(this,t),lx.mousedown.call(this,t)},touchmove:function(t){t=be(this.dom,t),Fn(t),this.handler.processGesture(t,"change"),lx.mousemove.call(this,t)},touchend:function(t){t=be(this.dom,t),Fn(t),this.handler.processGesture(t,"end"),lx.mouseup.call(this,t),+new Date-this._lastTouchMoment=0||n&&h(n,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},Cx=Ax([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Dx={getLineStyle:function(t){var e=Cx(this,t);return e.lineDash=this.getLineDash(e.lineWidth),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?!1:"dashed"===e?[n,n]:[i,i]}},kx=Ax([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Px={getAreaStyle:function(t,e){return kx(this,t,e)}},Lx=Math.pow,Ox=Math.sqrt,zx=1e-8,Ex=1e-4,Rx=Ox(3),Bx=1/3,Nx=G(),Fx=G(),Vx=G(),Gx=Math.min,Wx=Math.max,Hx=Math.sin,Zx=Math.cos,Ux=2*Math.PI,Xx=G(),Yx=G(),jx=G(),qx=[],Kx=[],$x={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qx=[],Jx=[],t_=[],e_=[],i_=Math.min,n_=Math.max,r_=Math.cos,o_=Math.sin,a_=Math.sqrt,s_=Math.abs,l_="undefined"!=typeof Float32Array,h_=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};h_.prototype={constructor:h_,_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,i){i=i||0,this._ux=s_(i/uy/t)||0,this._uy=s_(i/uy/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($x.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 i=s_(t-this._xi)>this._ux||s_(e-this._yi)>this._uy||this._len<5;return this.addData($x.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,r,o){return this.addData($x.C,t,e,i,n,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData($x.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,o){return this.addData($x.A,t,e,i,i,n,r-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=r_(r)*i+t,this._yi=o_(r)*i+e,this},arcTo:function(t,e,i,n,r){return this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData($x.R,t,e,i,n),this},closePath:function(){this.addData($x.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,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,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();l_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;ae.length&&(this._expandData(),e=this.data);for(var i=0;io&&(o=r+o),o%=r,f-=o*u,p-=o*c;u>0&&t>=f||0>u&&f>=t||0===u&&(c>0&&e>=p||0>c&&p>=e);)n=this._dashIdx,i=a[n],f+=u*i,p+=c*i,this._dashIdx=(n+1)%g,u>0&&l>f||0>u&&f>l||c>0&&h>p||0>c&&p>h||s[n%2?"moveTo":"lineTo"](u>=0?i_(f,t):n_(f,t),c>=0?i_(p,e):n_(p,e));u=f-t,c=p-e,this._dashOffset=-a_(u*u+c*c)},_dashedBezierTo:function(t,e,i,n,r,o){var a,s,l,h,u,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=Ir,y=0,x=this._dashIdx,_=f.length,w=0;for(0>d&&(d=c+d),d%=c,a=0;1>a;a+=.1)s=v(g,t,i,r,a+.1)-v(g,t,i,r,a),l=v(m,e,n,o,a+.1)-v(m,e,n,o,a),y+=a_(s*s+l*l);for(;_>x&&(w+=f[x],!(w>d));x++);for(a=(w-d)/y;1>=a;)h=v(g,t,i,r,a),u=v(m,e,n,o,a),x%2?p.moveTo(h,u):p.lineTo(h,u),a+=f[x]/y,x=(x+1)%_;x%2!==0&&p.lineTo(r,o),s=r-h,l=o-u,this._dashOffset=-a_(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var r=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,l_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Qx[0]=Qx[1]=t_[0]=t_[1]=Number.MAX_VALUE,Jx[0]=Jx[1]=e_[0]=e_[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,r=0,o=0;oc;){var d=s[c++];switch(1===c&&(n=s[c],r=s[c+1],e=n,i=r),d){case $x.M:e=n=s[c++],i=r=s[c++],t.moveTo(n,r);break;case $x.L:o=s[c++],a=s[c++],(s_(o-n)>l||s_(a-r)>h||c===u-1)&&(t.lineTo(o,a),n=o,r=a);break;case $x.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],r=s[c-1];break;case $x.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],r=s[c-1];break;case $x.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>m?g:m,b=g>m?1:g/m,S=g>m?m/g:1,M=Math.abs(g-m)>.001,I=v+y;M?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,v,I,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,v,I,1-_),1===c&&(e=r_(v)*g+f,i=o_(v)*m+p),n=r_(I)*g+f,r=o_(I)*m+p;break;case $x.R:e=n=s[c],i=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case $x.Z:t.closePath(),n=e,r=i}}}},h_.CMD=$x;var u_=2*Math.PI,c_=2*Math.PI,d_=h_.CMD,f_=2*Math.PI,p_=1e-4,g_=[-1,-1,-1],m_=[-1,-1],v_=Py.prototype.getCanvasPattern,y_=Math.abs,x_=new h_(!0);io.prototype={constructor:io,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(t,e){var i=this.style,n=this.path||x_,r=i.hasStroke(),o=i.hasFill(),a=i.fill,s=i.stroke,l=o&&!!a.colorStops,h=r&&!!s.colorStops,u=o&&!!a.image,c=r&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var d;l&&(d=d||this.getBoundingRect(),this._fillGradient=i.getGradient(t,a,d)),h&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:u&&(t.fillStyle=v_.call(a,t)),h?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=v_.call(s,t));var f=i.lineDash,p=i.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(n.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!g&&r?(n.beginPath(t),f&&!g&&(n.setLineDash(f),n.setLineDashOffset(p)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o)if(null!=i.fillOpacity){var v=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,n.fill(t),t.globalAlpha=v}else n.fill(t);if(f&&g&&(t.setLineDash(f),t.lineDashOffset=p),r)if(null!=i.strokeOpacity){var v=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,n.stroke(t),t.globalAlpha=v}else n.stroke(t);f&&g&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new h_},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new h_),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),eo(o,a/s,t,e)))return!0}if(r.hasFill())return to(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!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):Cn.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(S(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&y_(t[0]-1)>1e-10&&y_(t[3]-1)>1e-10?Math.sqrt(y_(t[0]*t[3]-t[2]*t[1])):1}},io.extend=function(t){var e=function(e){io.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var r in i)!n.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(n[r]=i[r])}t.init&&t.init.call(this,e)};u(e,io);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},u(io,Cn);var __=h_.CMD,w_=[[],[],[]],b_=Math.sqrt,S_=Math.atan2,M_=function(t,e){var i,n,r,o,a,s,l=t.data,h=__.M,u=__.C,c=__.L,d=__.R,f=__.A,p=__.Q;for(r=0,o=0;ra;a++){var s=w_[a];s[0]=l[r++],s[1]=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1]}}},I_=Math.sqrt,T_=Math.sin,A_=Math.cos,C_=Math.PI,D_=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},k_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(D_(t)*D_(e))},P_=function(t,e){return(t[0]*e[1]=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;ro;o++)r+=ee(t[o-1],t[o]);var a=r/2;a=i>a?i:a;for(var o=0;a>o;o++){var s,l,h,u=o/(a-1)*(e?i:i-1),c=Math.floor(u),d=u-c,f=t[c%i];e?(s=t[(c-1+i)%i],l=t[(c+1)%i],h=t[(c+2)%i]):(s=t[0===c?c:c-1],l=t[c>i-2?i-1:c+1],h=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([ho(s[0],f[0],l[0],h[0],d,p,g),ho(s[1],f[1],l[1],h[1],d,p,g)])}return n},G_=function(t,e,i,n){var r,o,a,s,l=[],h=[],u=[],c=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;f>d;d++)ae(a,a,t[d]),se(s,s,t[d]);ae(a,a,n[0]),se(s,s,n[1])}for(var d=0,f=t.length;f>d;d++){var p=t[d];if(i)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(H(t[d]));continue}r=t[d-1],o=t[d+1]}Y(h,o,r),J(h,h,e);var g=ee(p,r),m=ee(p,o),v=g+m;0!==v&&(g/=v,m/=v),J(u,h,-g),J(c,h,m);var y=U([],p,u),x=U([],p,c);n&&(se(y,y,a),ae(y,y,s),se(x,x,a),ae(x,x,s)),l.push(y),l.push(x)}return i&&l.push(l.shift()),l},W_=io.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){uo(t,e,!0)}}),H_=io.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){uo(t,e,!1)}}),Z_=Math.round,U_={},X_=io.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i,n,r,o;this.subPixelOptimize?(fo(U_,e,this.style),i=U_.x,n=U_.y,r=U_.width,o=U_.height,U_.r=e.r,e=U_):(i=e.x,n=e.y,r=e.width,o=e.height),e.r?hn(t,e):t.rect(i,n,r,o),t.closePath()}}),Y_={},j_=io.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,r,o;this.subPixelOptimize?(co(Y_,e,this.style),i=Y_.x1,n=Y_.y1,r=Y_.x2,o=Y_.y2):(i=e.x1,n=e.y1,r=e.x2,o=e.y2);var a=e.percent;0!==a&&(t.moveTo(i,n),1>a&&(r=i*(1-a)+r*a,o=n*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),q_=[],K_=io.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 i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,u=e.percent;0!==u&&(t.moveTo(i,n),null==l||null==h?(1>u&&(Er(i,a,r,u,q_),a=q_[1],r=q_[2],Er(n,s,o,u,q_),s=q_[1],o=q_[2]),t.quadraticCurveTo(a,s,r,o)):(1>u&&(Dr(i,a,l,r,u,q_),a=q_[1],l=q_[2],r=q_[3],Dr(n,s,h,o,u,q_),s=q_[1],h=q_[2],o=q_[3]),t.bezierCurveTo(a,s,l,h,r,o)))},pointAt:function(t){return go(this.shape,t,!1)},tangentAt:function(t){var e=go(this.shape,t,!0);return te(e,e)}}),$_=io.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 i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+i,h*r+n),t.arc(i,n,r,o,a,!s)}}),Q_=io.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i"'])/g,Pw={"&":"&","<":"<",">":">",'"':""","'":"'"},Lw=["a","b","c","d","e","f","g"],Ow=function(t,e){return"{"+t+(null==e?"":e)+"}"},zw=Qi,Ew=(Object.freeze||Object)({addCommas:Fa,toCamelCase:Va,normalizeCssArray:Dw,encodeHTML:Ga,formatTpl:Wa,formatTplSimple:Ha,getTooltipMarker:Za,formatTime:Xa,capitalFirst:Ya,truncateText:zw,getTextBoundingRect:ja,getTextRect:qa,windowOpen:Ka}),Rw=f,Bw=["left","right","top","bottom","width","height"],Nw=[["width","left","right"],["height","top","bottom"]],Fw=$a,Vw=(x($a,"vertical"),x($a,"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")}}}),Gw=ur(),Ww=ga.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){ga.call(this,t,e,i,n),this.uid=ya("ec_cpt_model")},init:function(t,e,i){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?ts(t):{},o=e.getTheme();r(t,o.get(this.mainType)),r(t,this.getDefaultOption()),i&&Ja(t,n,i)},mergeOption:function(t){r(this.option,t,!0);var e=this.layoutMode;e&&Ja(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=Gw(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var n=i.prototype.defaultOption;n&&e.push(n),i=i.superClass}for(var o={},a=e.length-1;a>=0;a--)o=r(o,e[a],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});br(Ww,{registerWhenExtend:!0}),xa(Ww),_a(Ww,is),c(Ww,Vw);var Hw="";"undefined"!=typeof navigator&&(Hw=navigator.platform||"");var Zw={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:Hw.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},Uw=ur(),Xw={clearColorPalette:function(){Uw(this).colorIdx=0,Uw(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var n=Uw(e),r=n.colorIdx||0,o=n.colorNameMap=n.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=er(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?ns(s,i):a;if(l=l||a,l&&l.length){var h=l[r];return t&&(o[t]=h),n.colorIdx=(r+1)%l.length,h}}},Yw="original",jw="arrayRows",qw="objectRows",Kw="keyedColumns",$w="unknown",Qw="typedArray",Jw="column",tb="row";rs.seriesDataToSource=function(t){return new rs({data:t,sourceFormat:I(t)?Qw:Yw,fromDataset:!1})},xr(rs);var eb={Must:1,Might:2,Not:3},ib=ur(),nb="\x00_ec_inner",rb=ga.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new ga(i),this._optionManager=n},setOption:function(t,e){O(!(nb in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):_s.call(this,n),e=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&f(o,function(t){this.mergeOption(t,e=!0)},this)}return e},mergeOption:function(t){function e(e,n){var r=er(t[e]),s=or(o.get(e),r);ar(s),f(s,function(t){var i=t.option;S(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=bs(e,i,t.exist))});var l=ws(o,n);i[e]=[],o.set(e,[]),f(s,function(t,n){var r=t.exist,s=t.option;if(O(S(s)||r,"Empty component definition"),s){var h=Ww.getClass(e,t.keyInfo.subType,!0);if(r&&r.constructor===h)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var u=a({dependentModels:l,componentIndex:n},t.keyInfo);r=new h(s,this,this,u),a(r,u),r.init(s,this,this,u),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o.get(e)[n]=r,i[e][n]=r.option},this),"series"===e&&Ss(this,o.get("series"))}var i=this.option,o=this._componentsMap,s=[];ss(this),f(t,function(t,e){null!=t&&(Ww.hasClass(e)?e&&s.push(e):i[e]=null==i[e]?n(t):r(i[e],t,!0))}),Ww.topologicalTravel(s,Ww.getAllClassMainTypes(),e,this),this._seriesIndicesMap=N(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=n(this.option);return f(t,function(e,i){if(Ww.hasClass(i)){for(var e=er(e),n=e.length-1;n>=0;n--)lr(e[n])&&e.splice(n,1);t[i]=e}}),delete t[nb],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;if(null!=i)_(i)||(i=[i]),a=m(p(i,function(t){return o[t]}),function(t){return!!t});else if(null!=n){var s=_(n);a=m(o,function(t){return s&&h(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var l=_(r);a=m(o,function(t){return l&&h(r,t.name)>=0||!l&&t.name===r})}else a=o.slice();return Ms(a,t)},findComponents:function(t){function e(t){var e=r+"Index",i=r+"Id",n=r+"Name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{mainType:r,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?m(e,t.filter):e}var n=t.query,r=t.mainType,o=e(n),a=o?this.queryComponents(o):this._componentsMap.get(r);return i(Ms(a,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each(function(t,n){f(t,function(t,r){e.call(i,n,t,r)})});else if(b(t))f(n.get(t),e,i);else if(S(t)){var r=this.findComponents(t);f(r,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return m(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 m(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){Is(this),f(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){Is(this),f(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Is(this),null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Is(this);var i=m(this._componentsMap.get("series"),t,e);Ss(this,i)},restoreData:function(t){var e=this._componentsMap;Ss(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),Ww.topologicalTravel(i,Ww.getAllClassMainTypes(),function(i){f(e.get(i),function(e){("series"!==i||!ys(e,t))&&e.restoreData()})})}});c(rb,Xw);var ob=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],ab={};As.prototype={constructor:As,create:function(t,e){var i=[];f(ab,function(n){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},update:function(t,e){f(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},As.register=function(t,e){ab[t]=e},As.get=function(t){return ab[t]};var sb=f,lb=n,hb=p,ub=r,cb=/^(min|max)?(.+)$/;Cs.prototype={constructor:Cs,setOption:function(t,e){t&&f(er(t.series),function(t){t&&t.data&&I(t.data)&&E(t.data)}),t=lb(t);var i=this._optionBackup,n=Ds.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(Os(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=hb(e.timelineOptions,lb),this._mediaList=hb(e.mediaList,lb),this._mediaDefault=lb(e.mediaDefault),this._currentMediaIndices=[],lb(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=lb(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],o=[];if(!i.length&&!n)return o;for(var a=0,s=i.length;s>a;a++)ks(i[a].query,t,e)&&r.push(a);return!r.length&&n&&(r=[-1]),r.length&&!Ls(r,this._currentMediaIndices)&&(o=hb(r,function(t){return lb(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,o}};var db=f,fb=S,pb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],gb=function(t,e){db(Vs(t.series),function(t){fb(t)&&Fs(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),db(i,function(e){db(Vs(t[e]),function(t){t&&(Bs(t,"axisLabel"),Bs(t.axisPointer,"label"))})}),db(Vs(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Bs(e,"axisLabel"),Bs(e&&e.axisPointer,"label")}),db(Vs(t.calendar),function(t){Es(t,"itemStyle"),Bs(t,"dayLabel"),Bs(t,"monthLabel"),Bs(t,"yearLabel")}),db(Vs(t.radar),function(t){Bs(t,"name")}),db(Vs(t.geo),function(t){fb(t)&&(Ns(t),db(Vs(t.regions),function(t){Ns(t)}))}),db(Vs(t.timeline),function(t){Ns(t),Es(t,"label"),Es(t,"itemStyle"),Es(t,"controlStyle",!0);var e=t.data;_(e)&&f(e,function(t){S(t)&&(Es(t,"label"),Es(t,"itemStyle"))})}),db(Vs(t.toolbox),function(t){Es(t,"iconStyle"),db(t.feature,function(t){Es(t,"iconStyle")})}),Bs(Gs(t.axisPointer),"label"),Bs(Gs(t.tooltip).axisPointer,"label")},mb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vb=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yb=function(t,e){gb(t,e),t.series=er(t.series),f(t.series,function(t){if(S(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e)null!=t.clockWise&&(t.clockwise=t.clockWise);else if("gauge"===e){var i=Ws(t,"pointer.color");null!=i&&Hs(t,"itemStyle.color",i)}Zs(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(vb,function(e){var i=t[e];i&&(_(i)||(i=[i]),f(i,function(t){Zs(t)}))})},xb=function(t){var e=N();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(Us)},_b=Xs.prototype;_b.pure=!1,_b.persistent=!0,_b.getSource=function(){return this._source};var wb={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:qs},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=[],i=this._data,n=0;n=1)&&(t=1),t}var i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),h=t&&t.modDataCount||0;(a!==l||s!==h)&&(o="reset");var u;(this._dirty||"reset"===o)&&(this._dirty=!1,u=rl(this,n)),this._modBy=l,this._modDataCount=h;var c=t&&t.step;if(i?(tv&&O(null!=i._outputDueEnd),this._dueEnd=i._outputDueEnd):(tv&&O(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(u||f>d)){var p=this._progress;if(_(p))for(var g=0;g=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var Ab=function(){function t(){return i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,h,u,c){n=l,i=h,r=u,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}();Tb.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Tb.unfinished=function(){return this._progress&&this._dueIndex":"",m=p+s.join(p||", ");return{renderMode:n,content:m,style:h}}function o(t){return{renderMode:n,content:Ga(Fa(t)),style:h}}var a=this;n=n||"html";var s="html"===n?"
":"\n",l="richText"===n,h={},u=0,c=this.getData(),d=c.mapDimension("defaultedTooltip",!0),p=d.length,m=this.getRawValue(t),v=_(m),y=c.getItemVisual(t,"color");S(y)&&y.colorStops&&(y=(y.colorStops[0]||{}).color),y=y||"transparent";var x=p>1||v&&!p?r(m):o(p?Js(c,t,d[0]):v?m[0]:m),w=x.content,b=a.seriesIndex+"at"+u,M=Za({color:y,type:"item",renderMode:n,markerId:b});h[b]=y,++u;var I=c.getName(t),T=this.name;sr(this)||(T=""),T=T?Ga(T)+(e?": ":s):"";var A="string"==typeof M?M:M.content,C=e?A+T+w:T+A+(I?Ga(I)+": "+w:w);return{html:C,markers:h}},isAnimationEnabled:function(){if(rv.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,i){var n=this.ecModel,r=Xw.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),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(Db,Ib),c(Db,Xw);var kb=function(){this.group=new yy,this.uid=ya("viewComponent")};kb.prototype={constructor:kb,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var Pb=kb.prototype;Pb.updateView=Pb.updateLayout=Pb.updateVisual=function(){},yr(kb),br(kb,{registerWhenExtend:!0});var Lb=function(){var t=ur();return function(e){var i=t(e),n=e.pipelineContext,r=i.large,o=i.progressiveRender,a=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(r^a||o^s)&&"reset"}},Ob=ur(),zb=Lb();fl.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,n){gl(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){gl(t.getData(),n,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var Eb=fl.prototype;Eb.updateView=Eb.updateLayout=Eb.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},yr(fl,["dispose"]),br(fl,{registerWhenExtend:!0}),fl.markUpdateMethod=function(t,e){Ob(t).updateMethod=e};var Rb={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Bb="\x00__throttleOriginMethod",Nb="\x00__throttleRate",Fb="\x00__throttleType",Vb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(n),o=!w(r)||r instanceof J_?null:r;(!r||o)&&(r=t.getColorFromPalette(t.name,null,e.getSeriesCount())),i.setVisual("color",r);var a=(t.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=t.get(a);if(i.setVisual("borderColor",s),!e.isSeriesFiltered(t)){o&&i.each(function(e){i.setItemVisual(e,"color",o(t.getDataParams(e)))});var l=function(t,e){var i=t.getItemModel(e),r=i.get(n,!0),o=i.get(a,!0);null!=r&&t.setItemVisual(e,"color",r),null!=o&&t.setItemVisual(e,"borderColor",o)};return{dataEach:i.hasItemOption?l:null}}}},Gb={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},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:""}}}},Wb=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return f(e,function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),i}function n(t){var e=a.get(t);if(null==e){for(var i=t.split("."),n=Gb.aria,r=0;rs)){var d=r();l=d?i(n("general.withTitle"),{title:d}):n("general.withoutTitle");var p=[],g=s>1?"series.multiple.prefix":"series.single.prefix";l+=i(n(g),{seriesCount:s}),e.eachSeries(function(t,e){if(c>e){var r,a=t.get("name"),l="series."+(s>1?"multiple":"single")+".";r=n(a?l+"withName":l+"withoutName"),r=i(r,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:o(t.subType)});var u=t.getData();window.data=u,r+=u.count()>h?i(n("data.partialData"),{displayCnt:h}):n("data.allData");for(var d=[],f=0;ff){var g=u.getName(f),m=Js(u,f);d.push(i(n(g?"data.withName":"data.withoutName"),{name:g,value:m}))}r+=d.join(n("data.separator.middle"))+n("data.separator.end"),p.push(r)}}),l+=p.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},Hb=Math.PI,Zb=function(t,e){e=e||{},s(e,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new yy,n=new X_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r=e.fontSize+" sans-serif",o=new X_({style:{fill:"none",text:e.text,font:r,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});if(i.add(o),e.showSpinner){var a=new $_({shape:{startAngle:-Hb/2,endAngle:-Hb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*Hb/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*Hb/2}).delay(300).start("circularInOut"),i.add(a)}return i.resize=function(){var i=Ui(e.text,r),s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner?0:i/2),h=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:h}),o.setShape({x:l-s,y:h-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},Ub=wl.prototype;Ub.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},Ub.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},Ub.getPipeline=function(t){return this._pipelineMap.get(t)},Ub.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null; t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},Ub.restorePipelines=function(t){var e=this,i=e._pipelineMap=N();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),Ol(e,t,t.dataTask)})},Ub.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;f(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,[]);n.reset&&Sl(this,n,r,e,i),n.overallReset&&Ml(this,n,r,e,i)},this)},Ub.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,Ol(this,e,r)},Ub.performDataProcessorTasks=function(t,e){bl(this,this._dataProcessorHandlers,t,e,{block:!0})},Ub.performVisualTasks=function(t,e,i){bl(this,this._visualHandlers,t,e,i)},Ub.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},Ub.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})};var Xb=Ub.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Yb=Pl(0);wl.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:zl(t)}),t.uid=ya("stageHandler"),e&&(t.visualType=e),t};var jb,qb={},Kb={};El(qb,rb),El(Kb,Ts),qb.eachSeriesByType=qb.eachRawSeriesByType=function(t){jb=t},qb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(jb=t.subType)};var $b=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Qb={color:$b,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$b]},Jb="#eee",tS=function(){return{axisLine:{lineStyle:{color:Jb}},axisTick:{lineStyle:{color:Jb}},axisLabel:{textStyle:{color:Jb}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Jb}}}},eS=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],iS={color:eS,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:Jb},crossStyle:{color:Jb},label:{color:"#000"}}},legend:{textStyle:{color:Jb}},textStyle:{color:Jb},title:{textStyle:{color:Jb}},toolbox:{iconStyle:{normal:{borderColor:Jb}}},dataZoom:{textStyle:{color:Jb}},visualMap:{textStyle:{color:Jb}},timeline:{lineStyle:{color:Jb},itemStyle:{normal:{color:eS[1]}},label:{normal:{textStyle:{color:Jb}}},controlStyle:{normal:{color:Jb,borderColor:Jb}}},timeAxis:tS(),logAxis:tS(),valueAxis:tS(),categoryAxis:tS(),line:{symbol:"circle"},graph:{color:eS},gauge:{title:{textStyle:{color:Jb}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};iS.categoryAxis.splitLine.show=!1,Ww.extend({type:"dataset",defaultOption:{seriesLayoutBy:Jw,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){os(this)}}),kb.extend({type:"dataset"});var nS=io.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()}}),rS=/[\s,]+/;Bl.prototype.parse=function(t,e){e=e||{};var i=Rl(t);if(!i)throw new Error("Illegal svg");var n=new yy;this._root=n;var r=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||e.width),a=parseFloat(i.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(a)&&(a=null),Gl(i,n,null,!0);for(var s=i.firstChild;s;)this._parseNode(s,n),s=s.nextSibling;var l,h;if(r){var u=z(r).split(rS);u.length>=4&&(l={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(l&&null!=o&&null!=a&&(h=Ul(l,o,a),!e.ignoreViewBox)){var c=n;n=new yy,n.add(c),c.scale=h.scale.slice(),c.position=h.position.slice()}return e.ignoreRootClip||null==o||null==a||n.setClipPath(new X_({shape:{x:0,y:0,width:o,height:a}})),{root:n,width:o,height:a,viewBoxRect:l,viewBoxTransform:h}},Bl.prototype._parseNode=function(t,e){var i=t.nodeName.toLowerCase();"defs"===i?this._isDefine=!0:"text"===i&&(this._isText=!0);var n;if(this._isDefine){var r=aS[i];if(r){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{var r=oS[i];r&&(n=r.call(this,t,e),e.add(n))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===i?this._isDefine=!1:"text"===i&&(this._isText=!1)},Bl.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var r=new z_({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Fl(e,r),Gl(t,r,this._defs);var o=r.style.fontSize;o&&9>o&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=o/9,r.scale[1]*=o/9);var a=r.getBoundingRect();return this._textX+=a.width,e.add(r),r};var oS={g:function(t,e){var i=new yy;return Fl(e,i),Gl(t,i,this._defs),i},rect:function(t,e){var i=new X_;return Fl(e,i),Gl(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new E_;return Fl(e,i),Gl(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new j_;return Fl(e,i),Gl(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new nS;return Fl(e,i),Gl(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=Vl(i));var n=new W_({shape:{points:i||[]}});return Fl(e,n),Gl(t,n,this._defs),n},polyline:function(t,e){var i=new io;Fl(e,i),Gl(t,i,this._defs);var n=t.getAttribute("points");n&&(n=Vl(n));var r=new H_({shape:{points:n||[]}});return r},image:function(t,e){var i=new Dn;return Fl(e,i),Gl(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,n=t.getAttribute("y")||0,r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new yy;return Fl(e,a),Gl(t,a,this._defs),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,a=new yy;return Fl(e,a),Gl(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var i=t.getAttribute("d")||"",n=ao(i);return Fl(e,n),Gl(t,n,this._defs),n}},aS={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),r=parseInt(t.getAttribute("y2")||0,10),o=new tw(e,i,n,r);return Nl(t,o),o},radialgradient:function(){}},sS={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},lS=/url\(\s*#(.*?)\)/,hS=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,uS=/([^\s:;]+)\s*:\s*([^:;]+)/g,cS=N(),dS={registerMap:function(t,e,i){var n;return _(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),f(n,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");var i=fS[e];tv&&O(i,"Illegal map type: "+e),i(t)}),cS.set(t,n)},retrieveMap:function(t){return cS.get(t)}},fS={geoJSON:function(t){var e=t.source;t.geoJSON=b(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Rl(t.source)}},pS=O,gS=f,mS=w,vS=S,yS=Ww.parseClassType,xS="4.9.0",_S={zrender:"4.3.2"},wS=1,bS=1e3,SS=800,MS=900,IS=5e3,TS=1e3,AS=1100,CS=2e3,DS=3e3,kS=3500,PS=4e3,LS=5e3,OS={PROCESSOR:{FILTER:bS,SERIES_FILTER:SS,STATISTIC:IS},VISUAL:{LAYOUT:TS,PROGRESSIVE_LAYOUT:AS,GLOBAL:CS,CHART:DS,POST_CHART_LAYOUT:kS,COMPONENT:PS,BRUSH:LS}},zS="__flagInMainProcess",ES="__optionUpdated",RS=/^[a-zA-Z0-9_]+$/;jl.prototype.on=Yl("on",!0),jl.prototype.off=Yl("off",!0),jl.prototype.one=Yl("one",!0),c(jl,Tv);var BS=ql.prototype;BS._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[ES]){var e=this[ES].silent;this[zS]=!0,$l(this),NS.update.call(this),this[zS]=!1,this[ES]=!1,eh.call(this,e),ih.call(this,e)}else if(t.unfinished){var i=wS,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),Jl(this,n),t.performVisualTasks(n),lh(this,this._model,r,"remain"),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},BS.getDom=function(){return this._dom},BS.getZr=function(){return this._zr},BS.setOption=function(t,e,i){if(tv&&pS(!this[zS],"`setOption` should not be called during main process."),this._disposed)return void uh(this.id);var n;if(vS(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[zS]=!0,!this._model||e){var r=new Cs(this._api),o=this._theme,a=this._model=new rb;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,HS),i?(this[ES]={silent:n},this[zS]=!1):($l(this),NS.update.call(this),this._zr.flush(),this[ES]=!1,this[zS]=!1,eh.call(this,n),ih.call(this,n))},BS.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},BS.getModel=function(){return this._model},BS.getOption=function(){return this._model&&this._model.getOption()},BS.getWidth=function(){return this._zr.getWidth()},BS.getHeight=function(){return this._zr.getHeight()},BS.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},BS.getRenderedCanvas=function(t){if(rv.canvasSupported){t=t||{},t.pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr;return e.painter.getRenderedCanvas(t)}},BS.getSvgDataURL=function(){if(rv.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.toDataURL()}},BS.getDataURL=function(t){if(this._disposed)return void uh(this.id);t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;gS(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return gS(n,function(t){t.group.ignore=!1}),o},BS.getConnectedDataURL=function(t){if(this._disposed)return void uh(this.id);if(rv.canvasSupported){var e="svg"===t.type,i=this.group,r=Math.min,o=Math.max,a=1/0;if(qS[i]){var s=a,l=a,h=-a,u=-a,c=[],d=t&&t.pixelRatio||1;f(jS,function(a){if(a.group===i){var d=e?a.getZr().painter.getSvgDom().innerHTML:a.getRenderedCanvas(n(t)),f=a.getDom().getBoundingClientRect();s=r(f.left,s),l=r(f.top,l),h=o(f.right,h),u=o(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}}),s*=d,l*=d,h*=d,u*=d;var p=h-s,g=u-l,m=gv(),v=Kn(m,{renderer:e?"svg":"canvas"});if(v.resize({width:p,height:g}),e){var y="";return gS(c,function(t){var e=t.left-s,i=t.top-l;y+=''+t.dom+""}),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new X_({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),gS(c,function(t){var e=new Dn({style:{x:t.left*d-s,y:t.top*d-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},BS.convertToPixel=x(Kl,"convertToPixel"),BS.convertFromPixel=x(Kl,"convertFromPixel"),BS.containPixel=function(t,e){if(this._disposed)return void uh(this.id);var i,n=this._model;return t=cr(n,t),f(t,function(t,n){n.indexOf("Models")>=0&&f(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i|=!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint?i|=o.containPoint(e,t):tv&&console.warn(n+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else tv&&console.warn(n+": containPoint is not supported")},this)},this),!!i},BS.getVisual=function(t,e){var i=this._model;t=cr(i,t,{defaultMainType:"series"});var n=t.seriesModel;tv&&(n||console.warn("There is no specified seires model"));var r=n.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)},BS.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},BS.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var NS={prepareAndUpdate:function(t){$l(this),NS.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,r=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),r.create(e,i),o.performDataProcessorTasks(e,t),Jl(this,e),r.update(e,i),oh(e),o.performVisualTasks(e,t),ah(this,e,i,t);var a=e.get("backgroundColor")||"transparent";if(rv.canvasSupported)n.setBackgroundColor(a);else{var s=ti(a);a=hi(s,"rgb"),0===s[3]&&(a="transparent")}hh(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var r=[];e.eachComponent(function(o,a){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,e,n,t);l&&l.update&&r.push(s)}else r.push(s)});var o=N();e.eachSeries(function(r){var a=i._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,e,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),oh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),lh(i,e,n,t,o),hh(e,this._api)}},updateView:function(t){var e=this._model;e&&(fl.markUpdateMethod(t,"updateView"),oh(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ah(this,this._model,this._api,t),hh(e,this._api))},updateVisual:function(t){NS.update.call(this,t)},updateLayout:function(t){NS.update.call(this,t)}};BS.resize=function(t){if(tv&&pS(!this[zS],"`resize` should not be called during main process."),this._disposed)return void uh(this.id);this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[zS]=!0,i&&$l(this),NS.update.call(this),this[zS]=!1,eh.call(this,n),ih.call(this,n)}},BS.showLoading=function(t,e){if(this._disposed)return void uh(this.id);if(vS(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!YS[t])return void(tv&&console.warn("Loading effects "+t+" not exists."));var i=YS[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},BS.hideLoading=function(){return this._disposed?void uh(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),void(this._loadingFX=null))},BS.makeActionFromEvent=function(t){var e=a({},t);return e.type=GS[t.type],e},BS.dispatchAction=function(t,e){if(this._disposed)return void uh(this.id);if(vS(e)||(e={silent:!!e}),VS[t.type]&&this._model){if(this[zS])return void this._pendingActions.push(t);th.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&rv.browser.weChat&&this._throttledZrFlush(),eh.call(this,e.silent),ih.call(this,e.silent)}},BS.appendData=function(t){if(this._disposed)return void uh(this.id);var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);tv&&pS(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0},BS.on=Yl("on",!1),BS.off=Yl("off",!1),BS.one=Yl("one",!1);var FS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];BS._initEvents=function(){gS(FS,function(t){var e=function(e){var i,n=this.getModel(),r=e.target,o="globalout"===t;if(o)i={};else if(r&&null!=r.dataIndex){var s=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=s&&s.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=a({},r.eventData));if(i){var l=i.componentType,h=i.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",h=i.seriesIndex);var u=l&&null!=h&&n.getComponent(l,h),c=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];tv&&(o||u&&c||console.warn("model or view can not be found by params")),i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:u,view:c},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),gS(GS,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},BS.isDisposed=function(){return this._disposed},BS.clear=function(){return this._disposed?void uh(this.id):void this.setOption({series:[]},!0)},BS.dispose=function(){if(this._disposed)return void uh(this.id);this._disposed=!0,fr(this.getDom(),QS,"");var t=this._api,e=this._model;gS(this._componentsViews,function(i){i.dispose(e,t)}),gS(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete jS[this.id]},c(ql,Tv),gh.prototype={constructor:gh,normalizeQuery:function(t){var e={},i={},n={};if(b(t)){var r=yS(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};f(t,function(t,r){for(var s=!1,l=0;l0&&u===r.length-h.length){var c=r.slice(0,u);"data"!==c&&(e.mainType=c,e[h.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,h=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(h,o,"name")&&i(h,o,"dataIndex")&&i(h,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},afterTrigger:function(){this.eventInfo=null}};var VS={},GS={},WS=[],HS=[],ZS=[],US=[],XS={},YS={},jS={},qS={},KS=new Date-0,$S=new Date-0,QS="_echarts_instance_",JS=xh;Ph(CS,Vb),Mh(yb),Ih(MS,xb),Oh("default",Zb),Ah({type:"highlight",event:"highlight",update:"highlight"},V),Ah({type:"downplay",event:"downplay",update:"downplay"},V),Sh("light",Qb),Sh("dark",iS);var tM={};Wh.prototype={constructor:Wh,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,i=this._new,n={},r={},o=[],a=[];for(Hh(e,n,o,"_oldKeyGetter",this),Hh(i,r,a,"_newKeyGetter",this),t=0;tu;u++)this._add&&this._add(l[u]);else this._add&&this._add(l)}}}};var eM=N(["tooltip","label","itemName","itemId","seriesName"]),iM=S,nM="undefined",rM=-1,oM="e\x00\x00",aM={"float":typeof Float64Array===nM?Array:Float64Array,"int":typeof Int32Array===nM?Array:Int32Array,ordinal:Array,number:Array,time:Array},sM=typeof Uint32Array===nM?Array:Uint32Array,lM=typeof Int32Array===nM?Array:Int32Array,hM=typeof Uint16Array===nM?Array:Uint16Array,uM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],cM=["_extent","_approximateExtent","_rawExtent"],dM=function(t,e){t=t||["x","y"];for(var i={},n=[],r={},o=0;ou;u++){var c=r[u];a[c]||(a[c]=lu()),n[c]||(n[c]=[]),Qh(n,this._dimensionInfos[c],i,h,l),this._chunkCount=n[c].length}for(var d=new Array(o),f=s;l>f;f++){for(var p=f-s,g=Math.floor(f/i),m=f%i,v=0;o>v;v++){var c=r[v],y=this._dimValueGetterArrayRows(t[p]||d,c,p,v);n[c][g][m]=y;var x=a[c];yx[1]&&(x[1]=y)}e&&(this._nameList[f]=e[p])}this._rawCount=this._count=l,this._extent={},Jh(this)},fM._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,r=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,h=this._nameList,u=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;s>p;p++){var g=a[p];c[g]||(c[g]=lu());var m=l[g];0===m.otherDims.itemName&&(i=this._nameDimIdx=p),0===m.otherDims.itemId&&(this._idDimIdx=p),o[g]||(o[g]=[]),Qh(o,m,n,f,e),this._chunkCount=o[g].length}for(var v=new Array(s),y=t;e>y;y++){v=r.getItem(y,v);for(var x=Math.floor(y/n),_=y%n,w=0;s>w;w++){var g=a[w],b=o[g][x],S=this._dimValueGetter(v,g,y,w);b[_]=S;var M=c[g];SM[1]&&(M[1]=S)}if(!r.pure){var I=h[y];if(v&&null==I)if(null!=v.name)h[y]=I=v.name;else if(null!=i){var T=a[i],A=o[T][x];if(A){I=A[_];var C=l[T].ordinalMeta;C&&C.categories.length&&(I=C.categories[I])}}var D=null==v?null:v.id;null==D&&null!=I&&(d[I]=d[I]||0,D=I,d[I]>0&&(D+="__ec__"+d[I]),d[I]++),null!=D&&(u[y]=D)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},Jh(this)}},fM.count=function(){return this._count},fM.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else for(var i=qh(this),t=new i(this.count()),r=0;r=0&&e=0&&en;n++)i.push(this.get(t[n],e));return i},fM.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this.get(e[i],t)))return!1;return!0},fM.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=lu();if(!e)return i;var n,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var a=n[0],s=n[1],l=0;r>l;l++){var h=this._getFast(t,this.getRawIndex(l));a>h&&(a=h),h>s&&(s=h)}return n=[a,s],this._extent[t]=n,n},fM.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},fM.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},fM.getCalculationInfo=function(t){return this._calculationInfo[t]},fM.setCalculationInfo=function(t,e){iM(t)?a(this._calculationInfo,t):this._calculationInfo[t]=e},fM.getSum=function(t){var e=this._storage[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},fM.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var i=[].concat(e).sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},fM.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];if(tv&&!i)throw new Error("Do not supported yet");var n=i[e];return null==n||isNaN(n)?rM:n},fM.indexOfName=function(t){for(var e=0,i=this.count();i>e;e++)if(this.getName(e)===t)return e;return-1},fM.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i=n;){var o=(n+r)/2|0;if(e[o]t))return o;r=o-1}}return-1},fM.indicesOfNearest=function(t,e,i){var n=this._storage,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,h=0,u=this.count();u>h;h++){var c=e-this.get(t,h),d=Math.abs(c);i>=d&&((a>d||d===a&&c>=0&&0>s)&&(a=d,s=c,l=0),c===s&&(o[l++]=h))}return o.length=l,o},fM.getRawIndex=eu,fM.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;ia;a++)s[a]=this.get(t[a],o);s[a]=o,e.apply(i,s)}}},fM.filterSelf=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=p(ru(t),this.getDimension,this),tv&&ou(this,t);for(var r=this.count(),o=qh(this),a=new o(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=this._getFast(u,f);d=e.call(i,g,c)}else{for(var m=0;l>m;m++)s[m]=this._getFast(u,f);s[m]=c,d=e.apply(i,s)}d&&(a[h++]=f)}return r>h&&(this._indices=a),this._count=h,this._extent={},this.getRawIndex=this._indices?iu:eu,this}},fM.selectRange=function(t){if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);tv&&ou(this,e);var n=e.length;if(n){var r=this.count(),o=qh(this),a=new o(r),s=0,l=e[0],h=t[l][0],u=t[l][1],c=!1;if(!this._indices){var d=0;if(1===n){for(var f=this._storage[e[0]],p=0;pv;v++){var y=g[v];(y>=h&&u>=y||isNaN(y))&&(a[s++]=d),d++}c=!0}else if(2===n){for(var f=this._storage[l],x=this._storage[e[1]],_=t[e[1]][0],w=t[e[1]][1],p=0;pv;v++){var y=g[v],S=b[v];(y>=h&&u>=y||isNaN(y))&&(S>=_&&w>=S||isNaN(S))&&(a[s++]=d),d++}c=!0}}if(!c)if(1===n)for(var v=0;r>v;v++){var M=this.getRawIndex(v),y=this._getFast(l,M);(y>=h&&u>=y||isNaN(y))&&(a[s++]=M)}else for(var v=0;r>v;v++){for(var I=!0,M=this.getRawIndex(v),p=0;n>p;p++){var T=e[p],y=this._getFast(i,M);(yt[T][1])&&(I=!1)}I&&(a[s++]=this.getRawIndex(v))}return r>s&&(this._indices=a),this._count=s,this._extent={},this.getRawIndex=this._indices?iu:eu,this}}},fM.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},fM.map=function(t,e,i,n){i=i||n||this,t=p(ru(t),this.getDimension,this),tv&&ou(this,t);var r=au(this,t);r._indices=this._indices,r.getRawIndex=r._indices?iu:eu;for(var o=r._storage,a=[],s=this._chunkSize,l=t.length,h=this.count(),u=[],c=r._rawExtent,d=0;h>d;d++){for(var f=0;l>f;f++)u[f]=this.get(t[f],d);u[l]=d;var g=e&&e.apply(i,u);if(null!=g){"object"!=typeof g&&(a[0]=g,g=a);for(var m=this.getRawIndex(d),v=Math.floor(m/s),y=m%s,x=0;xb[1]&&(b[1]=w)}}}return r},fM.downSample=function(t,e,i,n){for(var r=au(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),u=this._chunkSize,c=r._rawExtent[t],d=new(qh(this))(h),f=0,p=0;h>p;p+=s){s>h-p&&(s=h-p,a.length=s);for(var g=0;s>g;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/u),y=m%u;a[g]=l[v][y]}var x=i(a),_=this.getRawIndex(Math.min(p+n(a,x)||0,h-1)),w=Math.floor(_/u),b=_%u;l[w][b]=x,xc[1]&&(c[1]=x),d[f++]=_}return r._count=f,r._indices=d,r.getRawIndex=iu,r},fM.getItemModel=function(t){var e=this.hostModel;return new ga(this.getRawDataItem(t),e,e&&e.ecModel)},fM.diff=function(t){var e=this;return new Wh(t?t.getIndices():[],this.getIndices(),function(e){return nu(t,e)},function(t){return nu(e,t)})},fM.getVisual=function(t){var e=this._visual;return e&&e[t]},fM.setVisual=function(t,e){if(iM(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},fM.setLayout=function(t,e){if(iM(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},fM.getLayout=function(t){return this._layout[t]},fM.getItemLayout=function(t){return this._itemLayouts[t]},fM.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?a(this._itemLayouts[t]||{},e):e },fM.clearItemLayouts=function(){this._itemLayouts.length=0},fM.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},fM.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,iM(e))for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o],r[o]=!0);else n[e]=i,r[e]=!0},fM.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var pM=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};fM.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(pM,e)),this._graphicEls[t]=e},fM.getItemGraphicEl=function(t){return this._graphicEls[t]},fM.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},fM.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new dM(e,this.hostModel)}if(t._storage=this._storage,$h(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?iu:eu,t},fM.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(P(arguments)))})},fM.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],fM.CHANGABLE_METHODS=["filterSelf","selectRange"];var gM=function(t,e){return e=e||{},hu(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})},mM={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];if(tv){if(!r)throw new Error('xAxis "'+C(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+C(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),pu(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),pu(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis")[0];if(tv&&!r)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],i.set("single",r),pu(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar")[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(tv){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),pu(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),pu(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();f(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),pu(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=o)})}};wu.prototype.parse=function(t){return t},wu.prototype.getSetting=function(t){return this._setting[t]},wu.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},wu.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},wu.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},wu.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},wu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},wu.prototype.getExtent=function(){return this._extent.slice()},wu.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},wu.prototype.isBlank=function(){return this._isBlank},wu.prototype.setBlank=function(t){this._isBlank=t},wu.prototype.getLabel=null,yr(wu),br(wu,{registerWhenExtend:!0}),bu.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&p(i,Mu);return new bu({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})};var vM=bu.prototype;vM.getOrdinal=function(t){return Su(this).get(t)},vM.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=Su(this);return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=0/0),e};var yM=wu.prototype,xM=wu.extend({type:"ordinal",init:function(t,e){(!t||_(t))&&(t=new bu({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),yM.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return yM.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(yM.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this.isBlank()?void 0:this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:V,niceExtent:V});xM.create=function(){return new xM};var _M=Ma,wM=Ma,bM=wu.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),bM.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=Tu(t)},getTicks:function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;i[0]a)return[];var l=o.length?o[o.length-1]:n[1];return i[1]>l&&o.push(t?wM(l+e,r):i[1]),o},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;rs;){var c=Ma(a+(s+1)*u);c>n[0]&&cr&&(r=-r,n.reverse());var o=Iu(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=wM(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=wM(Math.ceil(e[1]/r)*r))}});bM.create=function(){return new bM};var SM="__ec_stack_",MM=.5,IM="undefined"!=typeof Float32Array?Float32Array:Array,TM={seriesType:"bar",plan:Lb(),reset:function(t){function e(t,e){for(var i,d=t.count,f=new IM(2*d),p=new IM(2*d),g=new IM(d),m=[],v=[],y=0,x=0;null!=(i=t.next());)v[u]=e.get(s,i),v[1-u]=e.get(l,i),m=n.dataToPoint(v,null,m),p[y]=h?r.x+r.width:m[0],f[y++]=m[0],p[y]=h?m[1]:r.y+r.height,f[y++]=m[1],g[x++]=i;e.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:p,barWidth:c,valueAxisStart:Fu(o,a,!1),backgroundStart:h?r.x:r.y,valueAxisHorizontal:h})}if(Bu(t)&&Nu(t)){var i=t.getData(),n=t.coordinateSystem,r=n.grid.getRect(),o=n.getBaseAxis(),a=n.getOtherAxis(o),s=i.mapDimension(a.dim),l=i.mapDimension(o.dim),h=a.isHorizontal(),u=h?0:1,c=Eu(Ou([t]),o,t).width;return c>MM||(c=MM),{progress:e}}}},AM=bM.prototype,CM=Math.ceil,DM=Math.floor,kM=1e3,PM=60*kM,LM=60*PM,OM=24*LM,zM=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]o&&(o=e),null!=i&&o>i&&(o=i);var a=RM.length,s=zM(RM,o,0,a),l=RM[Math.min(s,a-1)],h=l[1];if("year"===l[0]){var u=r/h,c=Ea(u/t,!0);h*=c}var d=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,f=[Math.round(CM((n[0]-d)/h)*h+d),Math.round(DM((n[1]-d)/h)*h+d)];Cu(f,n),this._stepLvl=l,this._interval=h,this._niceExtent=f},parse:function(t){return+La(t)}});f(["contain","normalize"],function(t){EM.prototype[t]=function(e){return AM[t].call(this,this.parse(e))}});var RM=[["hh:mm:ss",kM],["hh:mm:ss",5*kM],["hh:mm:ss",10*kM],["hh:mm:ss",15*kM],["hh:mm:ss",30*kM],["hh:mm\nMM-dd",PM],["hh:mm\nMM-dd",5*PM],["hh:mm\nMM-dd",10*PM],["hh:mm\nMM-dd",15*PM],["hh:mm\nMM-dd",30*PM],["hh:mm\nMM-dd",LM],["hh:mm\nMM-dd",2*LM],["hh:mm\nMM-dd",6*LM],["hh:mm\nMM-dd",12*LM],["MM-dd\nyyyy",OM],["MM-dd\nyyyy",2*OM],["MM-dd\nyyyy",3*OM],["MM-dd\nyyyy",4*OM],["MM-dd\nyyyy",5*OM],["MM-dd\nyyyy",6*OM],["week",7*OM],["MM-dd\nyyyy",10*OM],["week",14*OM],["week",21*OM],["month",31*OM],["week",42*OM],["month",62*OM],["week",70*OM],["quarter",95*OM],["month",31*OM*4],["month",31*OM*5],["half-year",380*OM/2],["month",31*OM*8],["month",31*OM*10],["year",380*OM]];EM.create=function(t){return new EM({useUTC:t.ecModel.get("useUTC")})};var BM=wu.prototype,NM=bM.prototype,FM=Aa,VM=Ma,GM=Math.floor,WM=Math.ceil,HM=Math.pow,ZM=Math.log,UM=wu.extend({type:"log",base:10,$constructor:function(){wu.apply(this,arguments),this._originalScale=new bM},getTicks:function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return p(NM.getTicks.call(this,t),function(t){var r=Ma(HM(this.base,t));return r=t===i[0]&&e.__fixMin?Vu(r,n[0]):r,r=t===i[1]&&e.__fixMax?Vu(r,n[1]):r},this)},getMinorTicks:NM.getMinorTicks,getLabel:NM.getLabel,scale:function(t){return t=BM.scale.call(this,t),HM(this.base,t)},setExtent:function(t,e){var i=this.base;t=ZM(t)/ZM(i),e=ZM(e)/ZM(i),NM.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=BM.getExtent.call(this);e[0]=HM(t,e[0]),e[1]=HM(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Vu(e[0],n[0])),i.__fixMax&&(e[1]=Vu(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ZM(t[0])/ZM(e),t[1]=ZM(t[1])/ZM(e),BM.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=Oa(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[Ma(WM(e[0]/n)*n),Ma(GM(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t){NM.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){UM.prototype[t]=function(e){return e=ZM(e)/ZM(this.base),BM[t].call(this,e)}}),UM.create=function(){return new UM};var XM={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!A(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!A(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:V,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},YM=vo({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),jM=vo({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),qM=vo({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,h=Math.asin(s/a),u=Math.cos(h)*a,c=Math.sin(h),d=Math.cos(h),f=.6*a,p=.7*a;t.moveTo(i-u,l+s),t.arc(i,l,a,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-u+c*f,l+s+d*f,i-u,l+s),t.closePath()}}),KM=vo({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),$M={line:j_,rect:X_,roundRect:X_,square:X_,circle:E_,diamond:jM,pin:qM,arrow:KM,triangle:YM},QM={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},JM={};f($M,function(t,e){JM[e]=new t});var tI=vo({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=$i(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=JM[n];r||(n="rect",r=JM[n]),QM[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),eI={isDimensionStacked:mu,enableDataStack:gu,getStackedDimension:vu},iI=(Object.freeze||Object)({createList:tc,getLayoutRect:Qa,dataStack:eI,createScale:ec,mixinAxisModelCommonMethods:ic,completeDimensions:hu,createDimensions:gM,createSymbol:Ju}),nI=1e-8;oc.prototype={constructor:oc,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],r=[],o=[],a=this.geometries,s=0;sn;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(rc(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(rc(a[s]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new Ti(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,h=0;h0}),function(t){var i=t.properties,n=t.geometry,r=n.coordinates,o=[];"Polygon"===n.type&&o.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===n.type&&f(r,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new oc(i[e||"name"],o,i.cp);return a.properties=i,a})},oI=ur(),aI=[0,1],sI=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};sI.prototype={constructor:sI,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this.scale.contain(t)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Ca(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),bc(i,n.count())),ba(t,aI,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),bc(i,n.count()));var r=ba(t,i,aI,e);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=hc(this,e),n=i.ticks,r=p(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return Sc(this,r,o,t.clamp),r},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&100>e||(e=5);var i=this.scale.getMinorTicks(e),n=p(i,function(t){return p(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return n},getViewLabels:function(){return lc(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return yc(this)}};var lI=rI,hI={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){hI[t]=yv[t]});var uI={};f(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){uI[t]=vw[t]});var cI=function(t){this._axes={},this._dimList=[],this.name=t||""};cI.prototype={constructor:cI,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,Mc,this)},getAxesByScale:function(t){return t=t.toLowerCase(),m(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 i=this._dimList,n=t instanceof Array?[]:{},r=0;re[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},u(dI,sI);var fI={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)"]}}},pI={};pI.categoryAxis=r({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fI),pI.valueAxis=r({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},fI),pI.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},pI.valueAxis),pI.logAxis=s({scale:!0,logBase:10},pI.valueAxis);var gI=["value","category","time","log"],mI=function(t,e,i,n){f(gI,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var o=this.layoutMode,s=o?ts(e):{},l=n.getTheme();r(e,l.get(a+"Axis")),r(e,this.getDefaultOption()),e.type=i(t,e),o&&Ja(e,s,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=bu.createByAxisModel(this))},getCategories:function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:o([{},pI[a+"Axis"],n],!0)})}),Ww.registerSubTypeDefaulter(t+"Axis",x(i,t))},vI=Ww.extend({type:"cartesian2dAxis",axis:null,init:function(){vI.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){vI.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){vI.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r(vI.prototype,XM);var yI={offset:0};mI("x",vI,Tc,yI),mI("y",vI,Tc,yI),Ww.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 xI=Cc.prototype;xI.type="grid",xI.axisPointerEnabled=!0,xI.getRect=function(){return this._rect},xI.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),f(i.x,function(t){Hu(t.scale,t.model)}),f(i.y,function(t){Hu(t.scale,t.model)});var n={};f(i.x,function(t){Dc(i,"y",t,n)}),f(i.y,function(t){Dc(i,"x",t,n)}),this.resize(this.model,e)},xI.resize=function(t,e,i){function n(){f(o,function(t){var e=t.isHorizontal(),i=e?[0,r.width]:[0,r.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Pc(t,e?r.x:r.y)})}var r=Qa(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=r;var o=this._axesList;n(),!i&&t.get("containLabel")&&(f(o,function(t){if(!t.model.get("axisLabel.inside")){var e=ju(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");r[i]-=e[i]+n,"top"===t.position?r.y+=e.height+n:"left"===t.position&&(r.x+=e.width+n)}}}),n())},xI.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},xI.getAxes=function(){return this._axesList.slice()},xI.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}S(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;nt&&(t=e),t},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});var bI=Ax([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),SI={getBarItemStyle:function(t){var e=bI(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},MI=vo({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,h=e.endAngle,u=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(h),p=Math.sin(h),g=u?h-l<2*Math.PI:l-h<2*Math.PI;g&&(t.moveTo(c*r+i,d*r+n),t.arc(c*s+i,d*s+n,a,-Math.PI+l,l,!u)),t.arc(i,n,o,l,h,!u),t.moveTo(f*o+i,p*o+n),t.arc(f*s+i,p*s+n,a,h-2*Math.PI,h-Math.PI,!u),0!==r&&(t.arc(i,n,r,h,l,u),t.moveTo(c*r+i,p*r+n)),t.closePath()}}),II=["itemStyle","barBorderWidth"],TI=[0,0];a(ga.prototype,SI),Bh({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"===n||"polar"===n?this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i):tv&&console.warn("Only cartesian2d and polar supported for bar."),this.group},incrementalPrepareRender:function(t){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e,i=this.group,n=t.getData(),r=this._data,o=t.coordinateSystem,a=o.getBaseAxis();"cartesian2d"===o.type?e=a.isHorizontal():"polar"===o.type&&(e="angle"===a.dim);var s=t.isAnimationEnabled()?t:null,l=t.get("clip",!0),h=Vc(o,n);i.removeClipPath();var u=t.get("roundCap",!0),c=t.get("showBackground",!0),d=t.getModel("backgroundStyle"),f=d.get("barBorderRadius")||0,p=[],g=this._backgroundEls||[],m=function(t){var i=PI[o.type](n,t),r=$c(o,e,i);return r.useStyle(d.getBarItemStyle()),"cartesian2d"===o.type&&r.setShape("r",f),p[t]=r,r};n.diff(r).add(function(r){var a=n.getItemModel(r),d=PI[o.type](n,r,a);if(c&&m(r),n.hasValue(r)){if(l){var f=DI[o.type](h,d);if(f)return void i.remove(p) }var p=kI[o.type](r,d,e,s,!1,u);n.setItemGraphicEl(r,p),i.add(p),Zc(p,n,r,a,d,t,e,"polar"===o.type)}}).update(function(a,v){var y=n.getItemModel(a),x=PI[o.type](n,a,y);if(c){var _;0===g.length?_=m(v):(_=g[v],_.useStyle(d.getBarItemStyle()),"cartesian2d"===o.type&&_.setShape("r",f),p[a]=_);var w=PI[o.type](n,a),b=Kc(e,w,o);ia(_,{shape:b},s,a)}var S=r.getItemGraphicEl(v);if(!n.hasValue(a))return void i.remove(S);if(l){var M=DI[o.type](h,x);if(M)return void i.remove(S)}S?ia(S,{shape:x},s,a):S=kI[o.type](a,x,e,s,!0,u),n.setItemGraphicEl(a,S),i.add(S),Zc(S,n,a,y,x,t,e,"polar"===o.type)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===o.type?e&&Gc(t,s,e):e&&Wc(t,s,e)}).execute();var v=this._backgroundGroup||(this._backgroundGroup=new yy);v.removeAll();for(var y=0;yi&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height);var r=AI(e.x,t.x),o=CI(e.x+e.width,t.x+t.width),a=AI(e.y,t.y),s=CI(e.y+e.height,t.y+t.height);e.x=r,e.y=a,e.width=o-r,e.height=s-a;var l=e.width<0||e.height<0;return 0>i&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height),l},polar:function(t,e){var i=e.r0<=e.r?1:-1;if(0>i){var n=e.r;e.r=e.r0,e.r0=n}var n=CI(e.r,t.r),r=AI(e.r0,t.r0);e.r=n,e.r0=r;var o=0>n-r;if(0>i){var n=e.r;e.r=e.r0,e.r0=n}return o}},kI={cartesian2d:function(t,e,i,n,r){var o=new X_({shape:a({},e),z2:1});if(o.name="item",n){var s=o.shape,l=i?"height":"width",h={};s[l]=0,h[l]=e[l],vw[r?"updateProps":"initProps"](o,{shape:h},n,t)}return o},polar:function(t,e,i,n,r,o){var a=e.startAngle0?1:-1,a=n.height>0?1:-1;return{x:n.x+o*r/2,y:n.y+a*r/2,width:n.width-o*r,height:n.height-a*r}},polar:function(t,e){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}},LI=io.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__baseDimIdx,o=0;o=0?i:null},30,!1),zI=Math.PI,EI=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new yy;var i=new yy({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};EI.prototype={constructor:EI,hasBuilder:function(t){return!!RI[t]},add:function(t){RI[t].call(this)},getGroup:function(){return this.group}};var RI={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,r=[i[0],0],o=[i[1],0];n&&(oe(r,r,n),oe(o,o,n));var s=a({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new j_({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var l=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),u=e.get("axisLine.symbolOffset")||0;if("number"==typeof u&&(u=[u,u]),null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof h||"number"==typeof h)&&(h=[h,h]);var c=h[0],d=h[1];f([{rotate:t.rotation+Math.PI/2,offset:u[0],r:0},{rotate:t.rotation-Math.PI/2,offset:u[1],r:Math.sqrt((r[0]-o[0])*(r[0]-o[0])+(r[1]-o[1])*(r[1]-o[1]))}],function(e,i){if("none"!==l[i]&&null!=l[i]){var n=Ju(l[i],-c/2,-d/2,c,d,s.stroke,!0),o=e.r+e.offset,a=[r[0]+o*Math.cos(t.rotation),r[1]-o*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:a,silent:!0,z2:11}),this.group.add(n)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=rd(this,t,e),n=ad(this,t,e);Jc(t,n,i),od(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,i=C(t.axisName,e.get("name"));if(i){var n,r=e.get("nameLocation"),o=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,id(r)?t.labelOffset+o*l:0],d=e.get("nameRotate");null!=d&&(d=d*zI/180);var f;id(r)?n=NI(t.rotation,null!=d?d:t.rotation,o):(n=Qc(t,r,d||0,h),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(n.rotation)),!isFinite(f)&&(f=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,v=C(t.nameTruncateMaxWidth,g.maxWidth,f),y=null!=m&&null!=v?zw(i,v,p,m,{minChar:2,placeholder:g.placeholder}):i,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:i,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new z_({anid:"name",__fullText:i,__truncatedText:y,position:c,rotation:n.rotation,silent:FI(e),z2:1,tooltip:x&&x.show?a({content:i,formatter:function(){return i},formatterParams:w},x):null});Xo(b.style,s,{text:y,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:s.get("align")||n.textAlign,textVerticalAlign:s.get("verticalAlign")||n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=BI(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},BI=EI.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},NI=EI.innerTextLayout=function(t,e,i){var n,r,o=ka(e-t);return Pa(o)?(r=i>0?"top":"bottom",n="center"):Pa(o-zI)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&zI>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},FI=EI.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},VI=f,GI=x,WI=Eh({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&fd(t),WI.superApply(this,"render",arguments),yd(this,t,e,i,n,!0)},updateAxisPointer:function(t,e,i,n){yd(this,t,e,i,n,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),WI.superApply(this,"remove",arguments)},dispose:function(t,e){xd(this,e),WI.superApply(this,"dispose",arguments)}}),HI=[];WI.registerAxisPointerClass=function(t,e){if(tv&&HI[t])throw new Error("axisPointer "+t+" exists");HI[t]=e},WI.getAxisPointerClass=function(t){return t&&HI[t]};var ZI=["axisLine","axisTickLabel","axisName"],UI=["splitArea","splitLine","minorSplitLine"],XI=WI.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new yy,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),a=_d(o,t),s=new EI(t,a);f(ZI,s.add,s),this._axisGroup.add(s.getGroup()),f(UI,function(e){t.get(e+".show")&&this["_"+e](t,o)},this),sa(r,this._axisGroup,t),XI.superCall(this,"render",t,e,i,n)}},remove:function(){bd(this)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),r=n.getModel("lineStyle"),o=r.get("color");o=_(o)?o:[o];for(var a=e.coordinateSystem.getRect(),l=i.isHorizontal(),h=0,u=i.getTicksCoords({tickModel:n}),c=[],d=[],f=r.getLineStyle(),p=0;p0&&Ed(i[r-1]);r--);for(;r>n&&Ed(i[n]);n++);}for(;r>n;)n+=Rd(t,i,n,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),hT=io.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:B_(io.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length,a=e.smoothMonotone,s=Fd(i,e.smoothConstraint),l=Fd(n,e.smoothConstraint);if(e.connectNulls){for(;o>0&&Ed(i[o-1]);o--);for(;o>r&&Ed(i[r]);r++);}for(;o>r;){var h=Rd(t,i,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);Rd(t,n,r+h-1,h,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=h+1,t.closePath()}}});fl.extend({type:"line",init:function(){var t=new yy,e=new Ad;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=o.mapArray(o.getItemLayout),u="polar"===n.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=Pd(n,o,y),_=Hd(n,o,x),w=t.get("showSymbol"),b=w&&!u&&Xd(t,o,n),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),w||d.remove(),r.add(g);var M,I=!u&&t.get("step");n&&n.getArea&&t.get("clip",!0)&&(M=n.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r1+=.5)),this._clipShapeForSymbol=M,f&&c.type===n.type&&I===this._step?(v&&!p?p=this._newPolygon(h,_,n,m):p&&!v&&(g.remove(p),p=this._polygon=null),g.setClipPath(jd(n,!1,t)),w&&d.updateData(o,{isIgnore:b,clipShape:M}),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Vd(this._stackedOnPoints,_)&&Vd(this._points,h)||(m?this._updateAnimation(o,_,n,i,I,y):(I&&(h=Zd(h,n,I),_=Zd(_,n,I)),f.setShape({points:h}),p&&p.setShape({points:h,stackedOnPoints:_})))):(w&&d.updateData(o,{isIgnore:b,clipShape:M}),I&&(h=Zd(h,n,I),_=Zd(_,n,I)),f=this._newPolyline(h,n,m),v&&(p=this._newPolygon(h,_,n,m)),g.setClipPath(jd(n,!0,t)));var T=Ud(o,n)||o.getVisual("color");f.useStyle(s(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var A=t.get("smooth");if(A=Wd(t.get("smooth")),f.setShape({smooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var C=o.getCalculationInfo("stackedOnSeries"),D=0;p.useStyle(s(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),C&&(D=Wd(C.get("smooth"))),p.setShape({smooth:A,stackedOnSmooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=_,this._points=h,this._step=I,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),o=hr(r,n);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new Sd(r,o),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else fl.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var r=t.getData(),o=hr(r,n);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fl.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lT({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new hT({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,h=tT(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),u=h.current,c=h.stackedOnCurrent,d=h.next,f=h.stackedOnNext;if(r&&(u=Zd(h.current,i,r),c=Zd(h.stackedOnCurrent,i,r),d=Zd(h.next,i,r),f=Zd(h.stackedOnNext,i,r)),Gd(u,d)>3e3||s&&Gd(c,f)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));a.shape.__points=h.current,a.shape.points=u,ia(a,{shape:{points:d}},l),s&&(s.setShape({points:u,stackedOnPoints:c}),ia(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=h.status,m=0;me&&(e=t[i]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,i=0;i1){var h;"string"==typeof i?h=dT[i]:"function"==typeof i&&(h=i),h&&t.setData(e.downSample(e.mapDimension(o.dim),1/l,h,fT))}}}}};Ph(uT("line","circle","line")),kh(cT("line")),Ih(OS.PROCESSOR.STATISTIC,pT("line"));var gT=function(t,e,i){e=_(e)&&{coordDimensions:e}||a({},e);var n=t.getSource(),r=gM(n,e),o=new dM(r,t);return o.initData(n,i),o},mT={updateSelectedMap:function(t){this._targetList=_(t)?t.slice():[],this._selectTargetMap=g(t||[],function(t,e){return t.set(e.name,e),t},N())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each(function(t){t.selected=!1}),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return null!=i?(this[i.selected?"unSelect":"select"](t,e),i.selected):void 0},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},vT=Rh({type:"series.pie",init:function(t){vT.superApply(this,"init",arguments),this.legendVisualProvider=new qd(y(this.getData,this),y(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){vT.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return gT(this,{coordDimensions:["value"],encodeDefaulter:x(ps,this)})},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,r=t.count();r>n;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:tl(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=vT.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),function(t){n.push(t)}),i.percent=Da(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){ir(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.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,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});c(vT,mT);var yT=Qd.prototype;yT.updateData=function(t,e,i){var n=this.childAt(0),r=this.childAt(1),o=this.childAt(2),l=t.hostModel,h=t.getItemModel(e),u=t.getItemLayout(e),c=a({},u);c.label=null;var d=l.getShallow("animationTypeUpdate");if(i){n.setShape(c);var f=l.getShallow("animationType");"scale"===f?(n.shape.r=u.r0,na(n,{shape:{r:u.r}},l,e)):(n.shape.endAngle=u.startAngle,ia(n,{shape:{endAngle:u.endAngle}},l,e))}else"expansion"===d?n.setShape(c):ia(n,{shape:c},l,e);var p=t.getItemVisual(e,"color");n.useStyle(s({lineJoin:"bevel",fill:p},h.getModel("itemStyle").getItemStyle())),n.hoverStyle=h.getModel("emphasis.itemStyle").getItemStyle();var g=h.getShallow("cursor");g&&n.attr("cursor",g),$d(this,t.getItemLayout(e),l.isSelected(t.getName(e)),l.get("selectedOffset"),l.get("animation"));var m=!i&&"transition"===d;this._updateLabel(t,e,m),this.highDownOnUpdate=l.get("silent")?null:function(t,e){var i=l.isAnimationEnabled()&&h.get("hoverAnimation");"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:u.r+l.get("hoverOffset")}},300,"elasticOut"))):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:u.r}},300,"elasticOut")))},Vo(this)},yT._updateLabel=function(t,e,i){var n=this.childAt(1),r=this.childAt(2),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,h=t.getItemVisual(e,"color");if(!l||isNaN(l.x)||isNaN(l.y))return void(r.ignore=r.normalIgnore=r.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0);var u={points:l.linePoints||[[l.x,l.y],[l.x,l.y],[l.x,l.y]]},c={x:l.x,y:l.y};i?(ia(n,{shape:u},o,e),ia(r,{style:c},o,e)):(n.attr({shape:u}),r.attr({style:c})),r.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var d=a.getModel("label"),f=a.getModel("emphasis.label"),p=a.getModel("labelLine"),g=a.getModel("emphasis.labelLine"),h=t.getItemVisual(e,"color");Zo(r.style,r.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:h,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),r.ignore=r.normalIgnore=!d.get("show"),r.hoverIgnore=!f.get("show"),n.ignore=n.normalIgnore=!p.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:h,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var m=p.get("smooth");m&&m===!0&&(m=.4),n.setShape({smooth:m})},u(Qd,yy);var xT=(fl.extend({type:"pie",init:function(){var t=new yy;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var r=t.getData(),o=this._data,a=this.group,s=e.get("animation"),l=!o,h=t.get("animationType"),u=t.get("animationTypeUpdate"),c=x(Kd,this.uid,t,s,i),d=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new Qd(r,t);l&&"scale"!==h&&e.eachChild(function(t){t.stopAnimation(!0)}),d&&e.on("click",c),r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var i=o.getItemGraphicEl(e);l||"transition"===u||i.eachChild(function(t){t.stopAnimation(!0)}),i.updateData(r,t),i.off("click"),d&&i.on("click",c),a.add(i),r.setItemGraphicEl(t,i)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),s&&r.count()>0&&(l?"scale"!==h:"transition"!==u)){for(var f=r.getItemLayout(0),p=1;isNaN(f.startAngle)&&p=n.r0}}}),function(t,e){f(e,function(e){e.update="updateView",Ah(e,function(i,n){var r={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each(function(e){var i=n.getName(e);r[i]=t.isSelected(i)||!1})}),{name:i.name,selected:r,seriesId:i.seriesId}})})}),_T=function(t){return{getTargetSeries:function(e){var i={},n=N();return e.eachSeriesByType(t,function(t){t.__paletteScope=i,n.set(t.uid,t)}),n},reset:function(t){var e=t.getRawData(),i={},n=t.getData();n.each(function(t){var e=n.getRawIndex(t);i[e]=t}),e.each(function(r){var o,a=i[r],s=null!=a&&n.getItemVisual(a,"color",!0),l=null!=a&&n.getItemVisual(a,"borderColor",!0);if(s&&l||(o=e.getItemModel(r)),!s){var h=o.get("itemStyle.color")||t.getColorFromPalette(e.getName(r)||r+"",t.__paletteScope,e.count());null!=a&&n.setItemVisual(a,"color",h)}if(!l){var u=o.get("itemStyle.borderColor");null!=a&&n.setItemVisual(a,"borderColor",u)}})}}},wT=Math.PI/180,bT=function(t,e,i,n,r,o){var a,s,l=t.getData(),h=[],u=!1,c=(t.get("minShowLabelAngle")||0)*wT;l.each(function(n){var o=l.getItemLayout(n),d=l.getItemModel(n),f=d.getModel("label"),p=f.get("position")||d.get("emphasis.label.position"),g=f.get("distanceToLabelLine"),m=f.get("alignTo"),v=Sa(f.get("margin"),i),y=f.get("bleedMargin"),x=f.getFont(),_=d.getModel("labelLine"),w=_.get("length");w=Sa(w,i);var b=_.get("length2");if(b=Sa(b,i),!(o.angleC?-1:1)*b,N=R;S="edge"===m?0>C?r+v:r+i-v:B+(0>C?-g:g),M=N,I=[[O,z],[E,R],[B,N]]}T=L?"center":"edge"===m?C>0?"right":"left":C>0?"left":"right"}var F,V=f.get("rotate");F="number"==typeof V?V*(Math.PI/180):V?0>C?-A+Math.PI:-A:0,u=!!F,o.label={x:S,y:M,position:p,height:P.height,len:w,len2:b,linePoints:I,textAlign:T,verticalAlign:"middle",rotation:F,inside:L,labelDistance:g,labelAlignTo:m,labelMargin:v,bleedMargin:y,textRect:P,text:k,font:x},L||h.push(o.label) }}),!u&&t.get("avoidLabelOverlap")&&tf(h,a,s,e,i,n,r,o)},ST=2*Math.PI,MT=Math.PI/180,IT=function(t,e,i){e.eachSeriesByType(t,function(t){var e=t.getData(),n=e.mapDimension("value"),r=nf(t,i),o=t.get("center"),a=t.get("radius");_(a)||(a=[0,a]),_(o)||(o=[o,o]);var s=Sa(r.width,i.getWidth()),l=Sa(r.height,i.getHeight()),h=Math.min(s,l),u=Sa(o[0],s)+r.x,c=Sa(o[1],l)+r.y,d=Sa(a[0],h/2),f=Sa(a[1],h/2),p=-t.get("startAngle")*MT,g=t.get("minAngle")*MT,m=0;e.each(n,function(t){!isNaN(t)&&m++});var v=e.getSum(n),y=Math.PI/(v||m)*2,x=t.get("clockwise"),w=t.get("roseType"),b=t.get("stillShowZeroSum"),S=e.getDataExtent(n);S[0]=0;var M=ST,I=0,T=p,A=x?1:-1;if(e.each(n,function(t,i){var n;if(isNaN(t))return void e.setItemLayout(i,{angle:0/0,startAngle:0/0,endAngle:0/0,clockwise:x,cx:u,cy:c,r0:d,r:w?0/0:f,viewRect:r});n="area"!==w?0===v&&b?y:t*y:ST/m,g>n?(n=g,M-=g):I+=t;var o=T+A*n;e.setItemLayout(i,{angle:n,startAngle:T,endAngle:o,clockwise:x,cx:u,cy:c,r0:d,r:w?ba(t,S,[d,f]):f,viewRect:r}),T=o}),ST>M&&m)if(.001>=M){var C=ST/m;e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=C,n.startAngle=p+A*i*C,n.endAngle=p+A*(i+1)*C}})}else y=M/I,T=p,e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===g?g:t*y;n.startAngle=T,n.endAngle=T+A*r,T+=A*r}});bT(t,f,r.width,r.height,r.x,r.y)})},TT=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf(function(t){for(var e=n.getName(t),r=0;ru&&(r=h,s=l,a=u)}return[s,+(r&&r.coordToData(n))]},of.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r)/2;this.cx=Sa(i[0],n),this.cy=Sa(i[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");("string"==typeof a||"number"==typeof a)&&(a=[0,a]),this.r0=Sa(a[0],o),this.r=Sa(a[1],o),f(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i},this)},of.prototype.update=function(t){function e(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var i=this._indicatorAxes,n=this._model;f(i,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(e){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===n){var r=e.getData();f(i,function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})}},this);var r=n.get("splitNumber");f(i,function(t){var i=Gu(t.scale,t.model).extent;Hu(t.scale,t.model);var n=t.model,o=t.scale,a=n.getMin(),s=n.getMax(),l=o.getInterval();if(null!=a&&null!=s)o.setExtent(+a,+s),o.setInterval((s-a)/r);else if(null!=a){var h;do h=a+l*r,o.setExtent(+a,h),o.setInterval(l),l=e(l);while(hi[0]&&isFinite(u)&&isFinite(i[0]))}else{var c=o.getTicks().length-1;c>r&&(l=e(l));var h=Math.ceil(i[1]/l)*l,u=Ma(h-l*r);o.setExtent(u,h),o.setInterval(l)}})},of.dimensions=[],of.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var r=new of(n,t,e);i.push(r),n.coordinateSystem=r}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},As.register("radar",of);var AT=pI.valueAxis,CT=(zh({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),l=this.get("axisTick"),h=this.get("axisType"),u=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),f=this.get("name.formatter"),g=this.get("nameGap"),m=this.get("triggerEvent"),v=p(this.get("indicator")||[],function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var v=c;if(null!=p.color&&(v=s({color:p.color},c)),p=r(n(p),{boundaryGap:t,splitNumber:e,scale:i,axisLine:o,axisTick:l,axisType:h,axisLabel:u,name:p.text,nameLocation:"end",nameGap:g,nameTextStyle:v,triggerEvent:m},!1),d||(p.name=""),"string"==typeof f){var y=p.name;p.name=f.replace("{value}",null!=y?y:"")}else"function"==typeof f&&(p.name=f(p.name,p));var x=a(new ga(p,null,this.ecModel),XM);return x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this.getIndicatorModels=function(){return v}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:r({lineStyle:{color:"#bbb"}},AT.axisLine),axisLabel:af(AT.axisLabel,!1),axisTick:af(AT.axisTick,!1),axisType:"interval",splitLine:af(AT.splitLine,!0),splitArea:af(AT.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]);Eh({type:"radar",render:function(t){var e=this.group;e.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=p(i,function(t){var i=new EI(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});f(n,function(t){f(CT,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var r=t.get("shape"),o=t.getModel("splitLine"),a=t.getModel("splitArea"),l=o.getModel("lineStyle"),h=a.getModel("areaStyle"),u=o.get("show"),c=a.get("show"),d=l.get("color"),g=h.get("color");d=_(d)?d:[d],g=_(g)?g:[g];var m=[],v=[];if("circle"===r)for(var y=n[0].getTicksCoords(),x=i.cx,w=i.cy,b=0;b=b;b++){for(var A=[],C=0;C":"\n";return Ga(""===s?this.name:s)+l+p(a,function(e){var i=r.get(r.mapDimension(e.dim),t);return Ga(e.name+" : "+i)}).join(l)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),i=this.coordinateSystem,n=e.getValues(p(i.dimensions,function(t){return e.mapDimension(t)}),t,!0),r=0,o=n.length;o>r;r++)if(!isNaN(n[r])){var a=i.getIndicatorAxes();return i.coordToPoint(a[r].dataToCoord(n[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Bh({type:"radar",render:function(t){function e(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var r=sf(t.getItemVisual(e,"symbolSize")),o=Ju(i,-1,-1,2,2,n),a=t.getItemVisual(e,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scale:[r[0]/2,r[1]/2],rotation:a*Math.PI/180||0}),o}}function i(i,n,r,o,a,s){r.removeAll();for(var l=0;lo;o++){var s=t.getName(o);i.set(s,!0),n.push({name:s,value:t.get(e,o),selected:tl(t,o,"selected")})}var l=jT.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return f(l.regions,function(t){var e=t.name;i.get(e)||(n.push({name:e}),r.push(e))}),this.updateSelectedMap(n),t.appendValues([],r),t},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t,e,i,n){for(var r=this.getData(),o=Fa(this.getRawValue(t)),a=r.getName(t),s=this.seriesGroup,l=[],h=0;h":"\n";return l.join(", ")+d+Ga(a+" : "+o)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});c(qT,mT);var KT="\x00_ec_interaction_mutex";Ah({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),c(vf,Tv);var $T={axisPointer:1,tooltip:1,brush:1};Lf.prototype={constructor:Lf,draw:function(t,e,i,n,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem;this._updateBackground(s);var l,h=this._regionsGroup,u=this.group,c=s.getTransformInfo(),d=!h.childAt(0)||r;if(d)u.transform=c.roamTransform,u.decomposeTransform(),u.dirty();else{var p=new Hv;p.transform=c.roamTransform,p.decomposeTransform();var g={scale:p.scale,position:p.position};l=p.scale,ia(u,g,t)}var m=c.rawScale,v=c.rawPosition;h.removeAll();var y=["itemStyle"],x=["emphasis","itemStyle"],_=["label"],w=["emphasis","label"],b=N();f(s.regions,function(e){var i=b.get(e.name)||b.set(e.name,new yy),n=new Q_({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(n);var r,s=t.getRegionModel(e.name)||t,c=s.getModel(y),p=s.getModel(x),g=Df(c),S=Df(p),M=s.getModel(_),I=s.getModel(w);if(a){r=a.indexOfName(e.name);var T=a.getItemVisual(r,"color",!0);T&&(g.fill=T)}var A=function(t){return[t[0]*m[0]+v[0],t[1]*m[1]+v[1]]};f(e.geometries,function(t){if("polygon"===t.type){for(var e=[],i=0;i=0)&&(L=t);var z=new z_({position:A(e.center.slice()),scale:[1/u.scale[0],1/u.scale[1]],z2:10,silent:!0});if(Zo(z.style,z.hoverStyle={},M,I,{labelFetcher:L,labelDataIndex:O,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!d){var E=[1/l[0],1/l[1]];ia(z,{scale:E},t)}i.add(z)}if(a)a.setItemGraphicEl(r,i);else{var s=t.getRegionModel(e.name);n.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:s&&s.option||{}}}var R=i.__regions||(i.__regions=[]);R.push(e),i.highDownSilentOnTouch=!!t.get("selectedMode"),Vo(i,S),h.add(i)}),this._updateController(t,e,i),kf(this,t,h,i,n),Pf(t,h)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&jT.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&f(jT.makeGraphic(e,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=e},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var r=t.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var l=t.mainType;o.off("pan").on("pan",function(t){this._mouseDownFlag=!1,Tf(s,t.dx,t.dy),i.dispatchAction(a(n(),{dx:t.dx,dy:t.dy}))},this),o.off("zoom").on("zoom",function(t){if(this._mouseDownFlag=!1,Af(s,t.scale,t.originX,t.originY),i.dispatchAction(a(n(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse(function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])})}},this),o.setPointerChecker(function(e,n,o){return r.getViewRectAfterRoam().contain(n,o)&&!Cf(e,i,t)})}};var QT="__seriesMapHighDown",JT="__seriesMapCallKey";Bh({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){var o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new Lf(i,!0);r.add(o.group),o.draw(t,e,i,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t){var e=t.originalData,i=this.group;e.each(e.mapDimension("value"),function(n,r){if(!isNaN(n)){var o=e.getItemLayout(r);if(o&&o.point){var s=o.point,l=o.offset,h=new E_({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:8+(l?0:aw+1)});if(!l){var u=t.mainSeries.getData(),c=e.getName(r),d=u.indexOfName(c),f=e.getItemModel(r),p=f.getModel("label"),g=f.getModel("emphasis.label"),m=u.getItemGraphicEl(d),v=D(t.getFormattedLabel(d,"normal"),c),y=D(t.getFormattedLabel(d,"emphasis"),v),_=m[QT],w=Math.random();if(!_){_=m[QT]={};var b=x(Of,!0),S=x(Of,!1);m.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}m[JT]=w,a(_,{recordVersion:w,circle:h,labelModel:p,hoverLabelModel:g,emphasisText:y,normalText:v}),zf(_,!1)}i.add(h)}}})}}),Ah({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var n=e.coordinateSystem;if("geo"===n.type){var r=Ef(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&f(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})});var tA=oe;c(Rf,Hv),Bf.prototype={constructor:Bf,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new Ti(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new Ti(t,e,i,n)},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Ti(t,e,i,n)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=oe([],n,t),i=oe([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Ee(this.transform||(this.transform=[]),e.transform||Oe()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ve(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?P(t):Oe(),rawScale:P(e.scale),rawPosition:P(e.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?tA(i,t,n):W(i,t)},pointToData:function(t){var e=this.invTransform;return e?tA([],t,e):[t[0],t[1]]},convertToPixel:x(Nf,"dataToPoint"),convertFromPixel:x(Nf,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},c(Bf,Hv),Ff.prototype={constructor:Ff,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;ic?c=f:(d.lastTickCount=r,d.lastAutoInterval=c),c}},u(qf,sI);var sA=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new jf,this._angleAxis=new qf,this._radiusAxis.polar=this._angleAxis.polar=this};sA.prototype={type:"polar",axisPointerEnabled:!0,constructor:sA,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),r=n.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);n.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,h=o>l?1:-1;o>l||l>a;)l+=360*h;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,r=-Math.sin(i)*e+this.cy;return[n,r]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,r=i*i+n*n,o=this.r,a=this.r0;return o*o>=r&&r>=a*a}}}};var lA=Ww.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r(lA.prototype,XM);var hA={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};mI("angle",lA,Kf,hA.angle),mI("radius",lA,Kf,hA.radius),zh({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var uA={dimensions:sA.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",function(t,n){var r=new sA(n);r.update=Qf;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis"); Jf(o,s),Jf(a,l),$f(r,t,e),i.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];if(tv&&!i)throw new Error('Polar "'+C(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=i.coordinateSystem}}),i}};As.register("polar",uA);var cA=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];WI.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t){if(this.group.removeAll(),t.get("show")){var e=t.axis,i=e.polar,r=i.getRadiusAxis().getExtent(),o=e.getTicksCoords(),a=e.getMinorTicksCoords(),s=p(e.getViewLabels(),function(t){var t=n(t);return t.coord=e.dataToCoord(t.tickValue),t});ip(s),ip(o),f(cA,function(n){!t.get(n+".show")||e.scale.isBlank()&&"axisLine"!==n||this["_"+n](t,i,o,a,r,s)},this)}},_axisLine:function(t,e,i,n,r){var o,a=t.getModel("axisLine.lineStyle"),s=ep(e),l=s?0:1;o=0===r[l]?new E_({shape:{cx:e.cx,cy:e.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new F_({shape:{cx:e.cx,cy:e.cy,r:r[s],r0:r[l]},style:a.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,n,r){var o=t.getModel("axisTick"),a=(o.get("inside")?-1:1)*o.get("length"),l=r[ep(e)],h=p(i,function(t){return new j_({shape:tp(e,[l,l+a],t.coord)})});this.group.add(fw(h,{style:s(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,e,i,n,r){if(n.length){for(var o=t.getModel("axisTick"),a=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*a.get("length"),h=r[ep(e)],u=[],c=0;cd?"left":"right",g=Math.abs(c[1]-f)/u<.3?"middle":c[1]>f?"top":"bottom";a&&a[o]&&a[o].textStyle&&(n=new ga(a[o].textStyle,s,s.ecModel));var m=new z_({silent:EI.isLabelSilent(t)});this.group.add(m),Xo(m.style,n,{x:c[0],y:c[1],textFill:n.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g}),h&&(m.eventData=EI.makeAxisEventDataBase(t),m.eventData.targetType="axisLabel",m.eventData.value=i.rawLabel)},this)},_splitLine:function(t,e,i,n,r){var o=t.getModel("splitLine"),a=o.getModel("lineStyle"),l=a.get("color"),h=0;l=l instanceof Array?l:[l];for(var u=[],c=0;ca||_(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)n=l.dataToPoint(o.getValues(p(l.dimensions,function(t){return o.mapDimension(t)}),a,!0))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}},gA=f,mA=x,vA=ur(),yA=function(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||y(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fp(r)&&(r=pA({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=fp(r),h=o.axesInfo,u=s.axesInfo,c="leave"===n||fp(r),d={},f={},p={list:[],map:{}},g={showPointer:mA(ap,f),showTooltip:mA(sp,p)};gA(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);gA(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=cp(h,t);if(!c&&i&&(!h||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&rp(t,o,g,!1,d)}})});var m={};return gA(u,function(t,e){var i=t.linkGroup;i&&!f[e]&&gA(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,dp(e),dp(t)))),m[t.key]=o}})}),gA(m,function(t,e){rp(u[e],t,g,!0,d)}),lp(f,u,d),hp(p,r,t,a),up(u,a,i),d}},xA=(zh({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}}}),ur()),_A=f,wA=Eh({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";pp("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){_p(e.getZr(),"axisPointer"),wA.superApply(this._model,"remove",arguments)},dispose:function(t,e){_p("axisPointer",e),wA.superApply(this._model,"dispose",arguments)}}),bA=ur(),SA=n,MA=y;wp.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=x(bp,e,u);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new yy,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);Tp(a,e,!0),this._renderHandle(r)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=pd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return i===!0},makeElOption:function(){},createPointerEl:function(t,e){var i=e.pointer;if(i){var n=bA(t).pointerEl=new vw[i.type](SA(e.pointer));t.add(n)}},createLabelEl:function(t,e,i,n){if(e.label){var r=bA(t).labelEl=new X_(SA(e.label));t.add(r),Mp(r,n)}},updatePointerEl:function(t,e,i){var n=bA(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=bA(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),Mp(r,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=ua(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ov(t.event)},onmousedown:MA(this._onHandleDragMove,this,0,0),drift:MA(this._onHandleDragMove,this),ondragend:MA(this._onHandleDragEnd,this)}),i.add(n)),Tp(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(r.getItemStyle(null,s));var l=r.get("size");_(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),xl(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){bp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Ip(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Ip(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Ip(n)),bA(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.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(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},wp.prototype.constructor=wp,yr(wp);var IA=wp.extend({makeElOption:function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=Rp(a,o).getOtherAxis(o).getGlobalExtent(),h=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var u=Ap(n),c=TA[s](o,h,l);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=_d(a.model,i);Lp(e,t,d,i,n,r)},getHandleTransform:function(t,e,i){var n=_d(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Pp(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=Rp(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.dim?0:1,l=t.position;l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var h=(a[1]+a[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]}}}),TA={line:function(t,e,i){var n=Op([e,i[0]],[e,i[1]],Bp(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:zp([e-n/2,i[0]],[n,r],Bp(t))}}};WI.registerAxisPointerClass("CartesianAxisPointer",IA),Mh(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!_(e)&&(t.axisPointer.link=[e])}}),Ih(OS.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=sd(t,e)}),Ah({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},yA);var AA=wp.extend({makeElOption:function(t,e,i,n,r){var o=i.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a,s=o.polar,l=s.getOtherAxis(o),h=l.getExtent();a=o["dataTo"+Ya(o.dim)](e);var u=n.get("type");if(u&&"none"!==u){var c=Ap(n),d=CA[u](o,s,a,h,c);d.style=c,t.graphicKey=d.type,t.pointer=d}var f=n.get("label.margin"),p=Np(e,i,n,s,f);Cp(t,i,n,r,p)}}),CA={line:function(t,e,i,n){return"angle"===t.dim?{type:"Line",shape:Op(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Ep(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(-i+r/2)*o)}:{type:"Sector",shape:Ep(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};WI.registerAxisPointerClass("PolarAxisPointer",AA),kh(x(Xf,"bar")),Eh({type:"polar"});var DA=Ww.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){Ww.prototype.init.apply(this,arguments),ir(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=eA.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=g(t.regions||[],function(t,i){return i.name&&t.set(i.name,new ga(i,e)),t},N()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new ga(null,this,this.ecModel)},getFormattedLabel:function(t,e){e=e||"normal";var i=this.getRegionModel(t),n=i.get(("normal"===e?"":e+".")+"label.formatter"),r={name:t};return"function"==typeof n?(r.status=e,n(r)):"string"==typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});c(DA,mT),Eh({type:"geo",init:function(t,e){var i=new Lf(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var r=this._mapDraw;t.get("show")?r.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}}),Fp("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),Fp("select",{type:"geoSelect",event:"geoselected"}),Fp("unSelect",{type:"geoUnSelect",event:"geounselected"}),zh({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"}}}),Eh({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=D(t.get("textBaseline"),t.get("textVerticalAlign")),l=new z_({style:Xo({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),h=l.getBoundingRect(),u=t.get("subtext"),c=new z_({style:Xo({},o,{text:u,textFill:o.getTextColor(),y:h.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",function(){Ka(d,"_"+t.get("target"))}),f&&c.on("click",function(){Ka(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),u&&n.add(c);var g=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Qa(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(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"),n.attr("position",[v.x,v.y]);var y={textAlign:a,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=n.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new X_({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});n.add(w)}}});var kA=Gb.legend.selector,PA={all:{type:"all",title:n(kA.all)},inverse:{type:"inverse",title:n(kA.inverse)}},LA=zh({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){LA.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;e===!0&&(e=t.selector=["all","inverse"]),_(e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=r(t,PA[t.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},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",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}});Ah("legendToggleSelect","legendselectchanged",x(Vp,"toggleSelected")),Ah("legendAllSelect","legendselectall",x(Vp,"allSelect")),Ah("legendInverseSelect","legendinverseselect",x(Vp,"inverseSelect")),Ah("legendSelect","legendselected",x(Vp,"select")),Ah("legendUnSelect","legendunselected",x(Vp,"unSelect"));var OA=x,zA=f,EA=yy,RA=Eh({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new EA),this._backgroundEl,this.group.add(this._selectorGroup=new EA),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,a,o,l);var h=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),d=Qa(h,u,c),f=this.layoutInner(t,r,d,n,a,l),p=Qa(s({width:f.width,height:f.height},h),u,c);this.group.attr("position",[p.x-f.x,p.y-f.y]),this.group.add(this._backgroundEl=Gp(f,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=N(),h=e.get("selectedMode"),u=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&u.push(t.id)}),zA(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a))return void s.add(new EA({newline:!0}));var c=i.getSeriesByName(a)[0];if(!l.get(a)){if(c){var d=c.getData(),f=d.getVisual("color"),p=d.getVisual("borderColor");"function"==typeof f&&(f=f(c.getDataParams(0))),"function"==typeof p&&(p=p(c.getDataParams(0)));var g=d.getVisual("legendSymbol")||"roundRect",m=d.getVisual("symbol"),v=this._createItem(a,o,r,e,g,m,t,f,p,h);v.on("click",OA(Hp,a,null,n,u)).on("mouseover",OA(Zp,c.name,null,n,u)).on("mouseout",OA(Up,c.name,null,n,u)),l.set(a,!0)}else i.eachRawSeries(function(i){if(!l.get(a)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),d=s.getItemVisual(c,"color"),f=s.getItemVisual(c,"borderColor"),p="roundRect",g=this._createItem(a,o,r,e,p,null,t,d,f,h);g.on("click",OA(Hp,null,a,n,u)).on("mouseover",OA(Zp,null,a,n,u)).on("mouseout",OA(Up,null,a,n,u)),l.set(a,!0)}},this);tv&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}},this),r&&this._createSelector(r,e,n,o,a)},_createSelector:function(t,e,i){function n(t){var n=t.type,o=new z_({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(o);var a=e.getModel("selectorLabel"),s=e.getModel("emphasis.selectorLabel");Zo(o.style,o.hoverStyle={},a,s,{defaultText:t.title,isRectText:!1}),Vo(o)}var r=this.getSelectorGroup();zA(t,function(t){n(t)})},_createItem:function(t,e,i,n,r,o,s,l,h,u){var c=n.get("itemWidth"),d=n.get("itemHeight"),f=n.get("inactiveColor"),p=n.get("inactiveBorderColor"),g=n.get("symbolKeepAspect"),m=n.getModel("itemStyle"),v=n.isSelected(t),y=new EA,x=i.getModel("textStyle"),_=i.get("icon"),w=i.getModel("tooltip"),b=w.parentModel;r=_||r;var S=Ju(r,0,0,c,d,v?l:f,null==g?!0:g);if(y.add(Wp(S,r,m,h,p,v)),!_&&o&&(o!==r||"none"===o)){var M=.8*d;"none"===o&&(o="circle");var I=Ju(o,(c-M)/2,(d-M)/2,M,M,v?l:f,null==g?!0:g);y.add(Wp(I,o,m,h,p,v))}var T="left"===s?c+5:-5,A=s,C=n.get("formatter"),D=t;"string"==typeof C&&C?D=C.replace("{name}",null!=t?t:""):"function"==typeof C&&(D=C(t)),y.add(new z_({style:Xo({},x,{text:D,x:T,y:d/2,textFill:v?x.getTextColor():f,textAlign:A,textVerticalAlign:"middle"})}));var k=new X_({shape:y.getBoundingRect(),invisible:!0,tooltip:w.get("show")?a({content:t,formatter:b.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},w.option):null});return y.add(k),y.eachChild(function(t){t.silent=!0}),k.silent=!u,this.getContentGroup().add(y),Vo(y),y.__legendDataIndex=e,y},layoutInner:function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Fw(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),h=[-l.x,-l.y];if(r){Fw("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),c=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?c[f]+=l[p]+d:h[f]+=u[p]+d,c[1-f]+=l[g]/2-u[g]/2,s.attr("position",c),a.attr("position",h);var v={x:0,y:0};return v[p]=l[p]+d+u[p],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+c[1-f]),v}return a.attr("position",h),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}}),BA=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;ii[r],f=[-u.x,-u.y];e||(f[n]=s.position[n]);var p=[0,0],g=[-c.x,-c.y],m=D(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var v=t.get("pageButtonPosition",!0);"end"===v?g[n]+=i[r]-c[r]:p[n]+=c[r]+m}g[1-n]+=u[o]/2-c[o]/2,s.attr("position",f),l.attr("position",p),h.attr("position",g);var y={x:0,y:0};if(y[r]=d?i[r]:u[r],y[o]=Math.max(u[o],c[o]),y[a]=Math.min(0,c[a]+g[1-n]),l.__rectSize=i[r],d){var x={x:0,y:0};x[r]=Math.max(i[r]-c[r]-m,0),x[o]=y[o],l.setClipPath(new X_({shape:x})),l.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&ia(s,{position:_.contentPosition},d?t:!1),this._updatePageInfoView(t,_),y},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;f(["pagePrev","pageNext"],function(n){var r=null!=e[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",b(r)?r.replace("{current}",a).replace("{total}",s):r({current:a,total:s}))},_getPageInfo:function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t.position[a];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=VA[a],l=GA[a],h=this._findTargetItemIndex(n),u=r.children(),c=u[h],d=u.length,f=d?1:0,p={contentPosition:r.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var g=e(c);p.contentPosition[a]=-g.s;for(var m=h+1,v=g,y=g,x=null;d>=m;++m)x=e(u[m]),(!x&&y.e>v.s+o||x&&!i(x,v.s))&&(v=y.i>v.i?y:x,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=x;for(var m=h-1,v=g,y=g,x=null;m>=-1;--m)x=e(u[m]),x&&i(y,x.s)||!(v.i=0;){var l=r.indexOf(a),h=r.substr(s+o.length,l-s-o.length);n["marker"+h]=h.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[h],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[h]},r=r.substr(l+1),s=r.indexOf("{marker")}var u=i.getModel("textStyle"),c=u.get("fontSize"),d=i.get("textLineHeight");null==d&&(d=Math.round(3*c/2)),this.el=new z_({style:Xo({},u,{rich:n,text:t,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:d}),z:i.get("z")}),this._zr.add(this.el);var f=this;this.el.on("mouseover",function(){f._enterable&&(clearTimeout(f._hideTimeout),f._show=!0),f._inContent=!0}),this.el.on("mouseout",function(){f._enterable&&f._show&&f.hideLater(f._hideDelay),f._inContent=!1})},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){if(this.el){var i=this._styleCoord;Qp(i,this._zr,t,e),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),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},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var t=this.getSize();return{width:t[0],height:t[1]}}};var YA=y,jA=f,qA=Sa,KA=new X_({shape:{x:-1,y:-1,width:2,height:2}});Eh({type:"tooltip",init:function(t,e){if(!rv.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=gr(n);var r;"html"===this._renderMode?(r=new $p(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="
"):(r=new Jp(e),this._newLine="\n"),this._tooltipContent=r}},render:function(t,e,i){if(!rv.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");pp("itemTooltip",this._api,YA(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!rv.node){var r=eg(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var a=KA;a.position=[n.x,n.y],a.update(),a.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:a},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=pA(n,e),l=s.point[0],h=s.point[1];null!=l&&null!=h&&this._tryShow({offsetX:l,offsetY:h,position:n.position,target:s.el},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},manuallyHideTip:function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(eg(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),t=tg([l.getItemModel(o),s,(s.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;r&&r.length?this._showAxisTooltip(r,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=y(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],a=[],s=[],l=tg([e.tooltipOption,n]),h=this._renderMode,u=this._newLine,c={};jA(t,function(t){jA(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,o=[];if(e&&null!=n){var l=kp(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(a){var u=i.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=u&&u.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Yu(e.axis,n),f.axisValueLabel=l,f){s.push(f);var p,g=u.formatTooltip(d,!0,null,h);if(S(g)){p=g.html;var m=g.markers;r(c,m)}else p=g;o.push(p)}});var d=l;a.push("html"!==h?o.join(u):(d?Ga(d)+u:"")+o.join(u))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,a,s,Math.random(),o[0],o[1],d,void 0,c)})},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,r=e.seriesIndex,o=n.getSeriesByIndex(r),a=e.dataModel||o,s=e.dataIndex,l=e.dataType,h=a.getData(l),u=tg([h.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(null==c||"item"===c){var d,f,p=a.getDataParams(s,l),g=a.formatTooltip(s,!1,l,this._renderMode);S(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+a.name+"_"+s;this._showOrMove(u,function(){this._showTooltipContent(u,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:s,dataIndex:h.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var r=n;n={content:r,formatter:r}}var o=new ga(n,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent,u=t.get("formatter");a=a||t.get("position");var c=e;if(u&&"string"==typeof u)c=Wa(u,i,!0);else if("function"==typeof u){var d=YA(function(e,n){e===this._ticket&&(h.setContent(n,l,t),this._updatePosition(t,a,r,o,h,i,s))},this);this._ticket=n,c=u(i,n,d)}h.setContent(c,l,t),h.show(t),this._updatePosition(t,a,r,o,h,i,s)}},_updatePosition:function(t,e,i,n,r,o,a){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=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof e&&(e=e([i,n],o,r.el,d,{viewSize:[s,l],contentSize:h.slice()})),_(e))i=qA(e[0],s),n=qA(e[1],l);else if(S(e)){e.width=h[0],e.height=h[1];var f=Qa(e,{width:s,height:l});i=f.x,n=f.y,u=null,c=null}else if("string"==typeof e&&a){var p=rg(e,d,h);i=p[0],n=p[1]}else{var p=ig(i,n,r,s,l,u?null:20,c?null:20);i=p[0],n=p[1]}if(u&&(i-=og(u)?h[0]/2:"right"===u?h[0]:0),c&&(n-=og(c)?h[1]/2:"bottom"===c?h[1]:0),t.get("confine")){var p=ng(i,n,r,s,l);i=p[0],n=p[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&jA(e,function(e,n){var r=e.dataByAxis||{},o=t[n]||{},a=o.dataByAxis||[];i&=r.length===a.length,i&&jA(r,function(t,e){var n=a[e]||{},r=t.seriesDataIndices||[],o=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===o.length,i&&jA(r,function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){rv.node||(this._tooltipContent.dispose(),_p("itemTooltip",e))}}),Ah({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Ah({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var $A=Fa,QA=Ga,JA=zh({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i){if(tv&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},isAnimationEnabled:function(){if(rv.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e){this._mergeOption(t,e,!1,!1)},_mergeOption:function(t,e,i,n){var r=this.constructor,o=this.mainType+"Model";i||e.eachSeries(function(t){var i=t.get(this.mainType,!0),s=t[o];return i&&i.data?(s?s._mergeOption(i,e,!0):(n&&ag(i),f(i.data,function(t){t instanceof Array?(ag(t[0]),ag(t[1])):ag(t)}),s=new r(i,this,e),a(s,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),void(t[o]=s)):void(t[o]=null)},this)},formatTooltip:function(t,e,i,n){var r=this.getData(),o=this.getRawValue(t),a=_(o)?p(o,$A).join(", "):$A(o),s=r.getName(t),l=QA(this.name),h="html"===n?"
":"\n";return(null!=o||s)&&(l+=h),s&&(l+=QA(s),null!=o&&(l+=" : ")),null!=o&&(l+=QA(a)),l},getData:function(){return this._data},setData:function(t){this._data=t}});c(JA,Ib),JA.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var tC=h,eC=x,iC={min:eC(hg,"min"),max:eC(hg,"max"),average:eC(hg,"average")},nC=Eh({type:"marker",init:function(){this.markerGroupMap=N()},render:function(t,e,i){var n=this.markerGroupMap;n.each(function(t){t.__keep=!1});var r=this.type+"Model";e.eachSeries(function(t){var n=t[r];n&&this.renderSeries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderSeries:function(){}});nC.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(mg(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))},this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Ad),h=vg(r,t,e);e.setData(h),mg(e.getData(),t,n),h.each(function(t){var i=h.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=w(n),l=w(r),u=w(o);if(s||l||u){var c=e.getRawValue(t),d=e.getDataParams(t);s&&(n=n(c,d)),l&&(r=r(c,d)),u&&(o=o(c,d))}h.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,color:i.get("itemStyle.color")||a.getVisual("color")})}),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),Mh(function(t){t.markPoint=t.markPoint||{}}),JA.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var rC=j_.prototype,oC=K_.prototype,aC=vo({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){this[yg(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:rC.buildPath,_buildPathCurve:oC.buildPath,pointAt:function(t){return this[yg(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:rC.pointAt,_pointAtCurve:oC.pointAt,tangentAt:function(t){var e=this.shape,i=yg(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return te(i,i)},_tangentAtCurve:oC.tangentAt}),sC=["fromSymbol","toSymbol"],lC=Mg.prototype;lC.beforeUpdate=Sg,lC._createLine=function(t,e,i){var n=t.hostModel,r=t.getItemLayout(e),o=wg(r);o.shape.percent=0,na(o,{shape:{percent:1}},n,e),this.add(o);var a=new z_({name:"label",lineLabelOriginalOpacity:1});this.add(a),f(sC,function(i){var n=_g(i,t,e);this.add(n),this[xg(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},lC.updateData=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};bg(a.shape,o),ia(r,a,n,e),f(sC,function(i){var n=t.getItemVisual(e,i),r=xg(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=_g(i,t,e);this.add(o)}this[r]=n},this),this._updateCommonStl(t,e,i)},lC._updateCommonStl=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,a=i&&i.hoverLineStyle,l=i&&i.labelModel,h=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle").getLineStyle(),a=u.getModel("emphasis.lineStyle").getLineStyle(),l=u.getModel("label"),h=u.getModel("emphasis.label")}var c=t.getItemVisual(e,"color"),d=k(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(s({strokeNoScale:!0,fill:"none",stroke:c,opacity:d},o)),r.hoverStyle=a,f(sC,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:d}))},this);var p,g,m=l.getShallow("show"),v=h.getShallow("show"),y=this.childOfName("label");if((m||v)&&(p=c||"#000",g=n.getFormattedLabel(e,"normal",t.dataType),null==g)){var x=n.getRawValue(e);g=null==x?t.getName(e):isFinite(x)?Ma(x):x}var w=m?g:null,b=v?D(n.getFormattedLabel(e,"emphasis",t.dataType),g):null,S=y.style;if(null!=w||null!=b){Xo(y.style,l,{text:w},{autoColor:p}),y.__textAlign=S.textAlign,y.__verticalAlign=S.textVerticalAlign,y.__position=l.get("position")||"middle";var M=l.get("distance");_(M)||(M=[M,M]),y.__labelDistance=M}y.hoverStyle=null!=b?{text:b,textFill:h.getTextColor(!0),fontStyle:h.getShallow("fontStyle"),fontWeight:h.getShallow("fontWeight"),fontSize:h.getShallow("fontSize"),fontFamily:h.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,Vo(this)},lC.highlight=function(){this.trigger("emphasis")},lC.downplay=function(){this.trigger("normal")},lC.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},lC.setLinePoints=function(t){var e=this.childOfName("line");bg(e.shape,t),e.dirty()},u(Mg,yy);var hC=Ig.prototype;hC.isPersistent=function(){return!0},hC.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var r=Dg(t);t.diff(n).add(function(i){Tg(e,t,i,r)}).update(function(i,o){Ag(e,n,t,o,i,r)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},hC.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},hC.incrementalPrepareUpdate=function(t){this._seriesScope=Dg(t),this._lineData=null,this.group.removeAll()},hC.incrementalUpdate=function(t,e){function i(t){t.isGroup||Cg(t)||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n=0&&"number"==typeof u&&(u=+u.toFixed(Math.min(v,20))),g.coord[f]=m.coord[f]=u,o=[g,m,{type:l,valueIndex:o.valueIndex,value:u}]}return o=[ug(t,o[0]),ug(t,o[1]),a({},o[2])],o[2].type=o[2].type||"",r(o[2],o[0]),r(o[2],o[1]),o};nC.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),r=e.__from,o=e.__to;r.each(function(e){Eg(r,e,!0,t,i),Eg(o,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},renderSeries:function(t,e,i,n){function r(e,i,r){var o=e.getItemModel(i);Eg(e,i,r,t,n),e.setItemVisual(i,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||g[r?0:1],symbol:o.get("symbol",!0)||p[r?0:1],color:o.get("itemStyle.color")||s.getVisual("color")})}var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,h=l.get(a)||l.set(a,new Ig);this.group.add(h.group);var u=Rg(o,t,e),c=u.from,d=u.to,f=u.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");_(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),u.from.each(function(t){r(c,t,!0),r(d,t,!1)}),f.each(function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})}),h.updateData(f),u.line.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}}),Mh(function(t){t.markLine=t.markLine||{}}),JA.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var cC=function(t,e,i,n){var r=ug(t,n[0]),a=ug(t,n[1]),s=C,l=r.coord,h=a.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),h[0]=s(h[0],1/0),h[1]=s(h[1],1/0);var u=o([{},r,a]);return u.coord=[r.coord,a.coord],u.x0=r.x,u.y0=r.y,u.x1=a.x,u.y1=a.y,u},dC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];nC.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each(function(e){var r=p(dC,function(r){return Vg(n,e,r,t,i)});n.setItemLayout(e,r);var o=n.getItemGraphicEl(e);o.setShape("points",r)})}},this)},renderSeries:function(t,e,i,n){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,h=l.get(o)||l.set(o,{group:new yy});this.group.add(h.group),h.__keep=!0;var u=Gg(r,t,e);e.setData(u),u.each(function(e){var i=p(dC,function(i){return Vg(u,e,i,t,n)}),o=!0;f(dC,function(t){if(o){var i=u.get(t[0],e),n=u.get(t[1],e);(Bg(i)||r.getAxis("x").containData(i))&&(Bg(n)||r.getAxis("y").containData(n))&&(o=!1)}}),u.setItemLayout(e,{points:i,allClipped:o}),u.setItemVisual(e,{color:a.getVisual("color")})}),u.diff(h.__data).add(function(t){var e=u.getItemLayout(t);if(!e.allClipped){var i=new W_({shape:{points:e.points}});u.setItemGraphicEl(t,i),h.group.add(i)}}).update(function(t,i){var n=h.__data.getItemGraphicEl(i),r=u.getItemLayout(t);r.allClipped?n&&h.group.remove(n):(n?ia(n,{shape:{points:r.points}},e,t):n=new W_({shape:{points:r.points}}),u.setItemGraphicEl(t,n),h.group.add(n))}).remove(function(t){var e=h.__data.getItemGraphicEl(t);h.group.remove(e)}).execute(),u.eachItemGraphicEl(function(t,i){var n=u.getItemModel(i),r=n.getModel("label"),o=n.getModel("emphasis.label"),a=u.getItemVisual(i,"color");t.useStyle(s(n.getModel("itemStyle").getItemStyle(),{fill:li(a,.4),stroke:a})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),Zo(t.style,t.hoverStyle,r,o,{labelFetcher:e,labelDataIndex:i,defaultText:u.getName(i)||"",isRectText:!0,autoColor:a}),Vo(t,{}),t.dataModel=e}),h.__data=u,h.group.silent=e.get("silent")||t.get("silent")}}),Mh(function(t){t.markArea=t.markArea||{}});var fC=function(t){var e=t&&t.timeline;_(e)||(e=e?[e]:[]),f(e,function(t){t&&Wg(t)})};Ww.registerSubTypeDefaulter("timeline",function(){return"slider"}),Ah({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),s({currentIndex:i.option.currentIndex},t)}),Ah({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)});var pC=Ww.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(){pC.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,r=this._names=[];if("category"===i){var o=[];f(e,function(t,e){var i,a=nr(t);S(t)?(i=n(t),i.value=e):i=e,o.push(i),b(a)||null!=a&&!isNaN(a)||(a=""),r.push(a+"")}),e=o}var a={category:"ordinal",time:"time"}[i]||"number",s=this._data=new dM([{name:"value",type:a}],this);s.initData(e,r)},getData:function(){return this._data},getCategories:function(){return"category"===this.get("axisType")?this._names.slice():void 0}}),gC=pC.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});c(gC,Ib);var mC=kb.extend({type:"timeline"}),vC=function(t,e,i,n){sI.call(this,t,e,i),this.type=n||"value",this.model=null};vC.prototype={constructor:vC,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},u(vC,sI);var yC=y,xC=f,_C=Math.PI;mC.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),a=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return Ga(a.scale.getLabel(t))},xC(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](n,r,a,t)},this),this._renderAxisLabel(n,o,a,t),this._position(n,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),r=Ug(t,e);null==i||"auto"===i?i="horizontal"===n?r.y+r.height/2=0||"+"===i?"left":"right"},a={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:_C/2},l="vertical"===n?r.height:r.width,h=t.getModel("controlStyle"),u=h.get("show",!0),c=u?h.get("itemSize"):0,d=u?h.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*_C/180;var g,m,v,y,x=h.get("position",!0),_=u&&h.get("showPlayBtn",!0),w=u&&h.get("showPrevBtn",!0),b=u&&h.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),w&&(m=[S,0],S+=f),b&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),w&&(m=[0,0],S+=f),b&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:r,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||o[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||a[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t){function e(t){var e=t.position;t.origin=[u[0][0]-e[0],u[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function n(t,e,i,n,r){t[n]+=i[n][r]-e[n][r]}var r=this._mainGroup,o=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var s=Oe(),l=a.x,h=a.y+a.height;Be(s,s,[-l,-h]),Ne(s,s,-_C/2),Be(s,s,[l,h]),a=a.clone(),a.applyTransform(s)}var u=i(a),c=i(r.getBoundingRect()),d=i(o.getBoundingRect()),f=r.position,p=o.position;p[0]=f[0]=u[0][0];var g=t.labelPosOpt;if(isNaN(g)){var m="+"===g?0:1;n(f,c,u,1,m),n(p,d,u,1,1-m)}else{var m=g>=0?0:1;n(f,c,u,1,m),p[1]=f[1]+g}r.attr("position",f),o.attr("position",p),r.rotation=o.rotation=t.rotation,e(r),e(o)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),r=Zu(e,n);r.getTicks=function(){return i.mapArray(["value"],function(t){return t})};var o=i.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new vC("value",r,t.axisExtent,n);return a.model=e,a},_createGroup:function(t){var e=this["_"+t]=new yy;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var r=i.getExtent();n.get("lineStyle.show")&&e.add(new j_({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:a({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var r=n.getData(),o=i.scale.getTicks();xC(o,function(t){var o=i.dataToCoord(t),a=r.getItemModel(t),s=a.getModel("itemStyle"),l=a.getModel("emphasis.itemStyle"),h={position:[o,0],onclick:yC(this._changeTimeline,this,t)},u=Yg(a,s,e,h);Vo(u,l.getItemStyle()),a.get("tooltip")?(u.dataIndex=t,u.dataModel=n):u.dataIndex=u.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){var r=i.getLabelModel();if(r.get("show")){var o=n.getData(),a=i.getViewLabels();xC(a,function(n){var r=n.tickValue,a=o.getItemModel(r),s=a.getModel("label"),l=a.getModel("emphasis.label"),h=i.dataToCoord(n.tickValue),u=new z_({position:[h,0],rotation:t.labelRotation-t.rotation,onclick:yC(this._changeTimeline,this,r),silent:!1});Xo(u.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(u),Vo(u,Xo({},l))},this)}},_renderControl:function(t,e,i,n){function r(t,i,r,u){if(t){var c={position:t,origin:[o/2,0],rotation:u?-a:0,rectHover:!0,style:s,onclick:r},d=Xg(n,i,h,c);e.add(d),Vo(d,l)}}var o=t.controlSize,a=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),h=[0,-o/2,o,o],u=n.getPlayState(),c=n.get("inverse",!0);r(t.nextBtnPosition,"controlStyle.nextIcon",yC(this._changeTimeline,this,c?"-":"+")),r(t.prevBtnPosition,"controlStyle.prevIcon",yC(this._changeTimeline,this,c?"+":"-")),r(t.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),yC(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(t,e,i,n){var r=n.getData(),o=n.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=yC(s._handlePointerDrag,s),t.ondragend=yC(s._handlePointerDragend,s),jg(t,o,i,n,!0) },onUpdate:function(t){jg(t,o,i,n)}};this._currentPointer=Yg(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,r=Ia(n.getExtent().slice());i>r[1]&&(i=r[1]),is&&(n=s,e=o)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}}),Mh(fC),Ww.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var wC=["x","y","z","radius","angle","single"],bC=["cartesian2d","polar","singleAxis"],SC=Kg(wC,["axisIndex","axis","index","id"]),MC=function(t,e,i,n,r,o){t=t||0;var a=i[1]-i[0];if(null!=r&&(r=Jg(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var s=Math.abs(e[1]-e[0]);s=Jg(s,[0,a]),r=o=Jg(s,[r,o]),n=0}e[0]=Jg(e[0],i),e[1]=Jg(e[1],i);var l=Qg(e,n);e[n]+=t;var h=r||0,u=i.slice();l.sign<0?u[0]+=h:u[1]-=h,e[n]=Jg(e[n],u);var c=Qg(e,n);null!=r&&(c.sign!==l.sign||c.spano&&(e[1-n]=e[n]+c.sign*o),e},IC=f,TC=Ia,AC=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};AC.prototype={constructor:AC,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(qg(i.get("coordinateSystem"))){var n=this._dimName,r=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,r=this.getAxisModel(),o="x"===i||"y"===i;o?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var a;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(a=t)}),a},getMinMaxSpan:function(){return n(this._minMaxSpan)},calculateDataWindow:function(t){function e(t,e,i,n,r){var a=r?"Span":"ValueSpan";MC(0,t,i,"all",u["min"+a],u["max"+a]);for(var s=0;2>s;s++)e[s]=ba(t[s],i,n,!0),r&&(e[s]=o.parse(e[s]))}var i,n=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],h=[];IC(["start","end"],function(e,r){var u=t[e],c=t[e+"Value"];"percent"===a[r]?(null==u&&(u=s[r]),c=o.parse(ba(u,s,n))):(i=!0,c=null==c?n[r]:o.parse(c),u=ba(c,n,s)),h[r]=c,l[r]=u}),TC(h),TC(l);var u=this._minMaxSpan;return i?e(h,l,n,s,!1):e(l,h,s,n,!0),{valueWindow:h,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=tm(this,this._dimName,e),nm(this);var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,im(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,im(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&IC(n,function(t){var n=t.getData(),a=n.mapDimension(i,!0);a.length&&("weakFilter"===r?n.filterSelf(function(t){for(var e,i,r,s=0;so[1];if(h&&!u&&!c)return!0;h&&(r=!0),u&&(e=!0),c&&(i=!0)}return r&&e&&i}):IC(a,function(i){if("empty"===r)t.setData(n=n.map(i,function(t){return e(t)?t:0/0}));else{var a={};a[i]=o,n.selectRange(a)}}),IC(a,function(t){n.setApproximateExtent(o,t)}))})}}};var CC=f,DC=SC,kC=zh({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=rm(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=rm(t);r(this.option,t,!0),r(this.settledOption,e,!0),this.doInit(e)},doInit:function(t){var e=this.option;rv.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),om(this,t);var i=this.settledOption;CC([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,r){var o=this.dependentModels[e.axis][i],a=o.__dzAxisProxy||(o.__dzAxisProxy=new AC(e.name,i,this,r));t[e.name+"_"+i]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();DC(function(e){var i=e.axisIndex;t[i]=er(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;DC(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var r="vertical"===e?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],t=!1):CC(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&DC(function(e){if(t){var n=[],r=this.dependentModels[e.axis];if(r.length&&!n.length)for(var o=0,a=r.length;a>o;o++)"category"===r[o].get("type")&&n.push(o);i[e.axisIndex]=n,n.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&DC(function(e){var n=i[e.axisIndex],r=t.get(e.axisIndex),o=t.get(e.axisId),a=t.ecModel.queryComponents({mainType:e.axis,index:r,id:o})[0];if(tv&&!a)throw new Error(e.axis+' "'+C(r,o,0)+'" not found');r=a.componentIndex,h(n,r)<0&&n.push(r)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return DC(function(n){var r=t.get(n.axisIndex),o=this.dependentModels[n.axis][r];o&&o.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return DC(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;DC(function(n){CC(this.get(n.axisIndex),function(r){t.call(e,n,r,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t){var e=this.option,i=this.settledOption;CC([["start","startValue"],["end","endValue"]],function(n){(null!=t[n[0]]||null!=t[n[1]])&&(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])},this),om(this,t)},setCalculatedRange:function(t){var e=this.option;CC(["start","startValue","end","endValue"],function(i){e[i]=t[i]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),PC=kb.extend({type:"dataZoom",render:function(t,e,i){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var r,o=0;o0&&e%g)return void(p+=f);var i=null==t||isNaN(t)||""===t,n=i?0:OC(t,o,h,!0);i&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(c.push([p,0]),d.push([p,0])),c.push([p,n]),d.push([p,n]),p+=f,l=i});var m=this.dataZoomModel;this._displayables.barGroup.add(new W_({shape:{points:c},style:s({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new H_({shape:{points:d},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r.name,o).getTargetSeriesModels();f(a,function(t){if(!(i||e!==!0&&h(HC,t.get("type"))<0)){var a,s=n.getComponent(r.axis,o).axis,l=am(r.name),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:r.name,otherDim:l,otherAxisInverse:a}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,r=this._size,o=this.dataZoomModel;n.add(t.filler=new LC({draggable:!0,cursor:sm(this._orient),drift:EC(this._onDragMove,this,"all"),ondragstart:EC(this._showDataInfo,this,!0),ondragend:EC(this._onDragEnd,this),onmouseover:EC(this._showDataInfo,this,!0),onmouseout:EC(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new LC({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:NC,fill:"rgba(0,0,0,0)"}})),RC([0,1],function(t){var r=ua(o.get("handleIcon"),{cursor:sm(this._orient),draggable:!0,drift:EC(this._onDragMove,this,t),ondragend:EC(this._onDragEnd,this),onmouseover:EC(this._showDataInfo,this,!0),onmouseout:EC(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),a=r.getBoundingRect();this._handleHeight=Sa(o.get("handleSize"),this._size[1]),this._handleWidth=a.width/a.height*this._handleHeight,r.setStyle(o.getModel("handleStyle").getItemStyle());var s=o.get("handleColor");null!=s&&(r.style.fill=s),n.add(e[t]=r);var l=o.textStyleModel;this.group.add(i[t]=new z_({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[OC(t[0],[0,100],e,!0),OC(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];MC(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?OC(o.minSpan,a,r,!0):null,null!=o.maxSpan?OC(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=zC([OC(n[0],r,a,!0),OC(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=zC(i.slice()),r=this._size;RC([0,1],function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scale:[o/2,o/2],position:[i[t],r[1]/2-o/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=ra(n.handles[t].parent,this.group),i=aa(0===t?"right":"left",e),s=this._handleWidth/2+WC,l=oa([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],textVerticalAlign:o===VC?"middle":i,textAlign:o===VC?i:"center",text:a[t]})}var i=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,a=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,h=this._range,u=t?s.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var c=zC(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),r=i.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(r,20));return w(n)?n(t,o):b(n)?n.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i,n){this._dragging=!0,Ov(n.event);var r=this._displayables.barGroup.getLocalTransform(),o=oa([e,i],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(RC(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});Ih({getTargetSeries:function(t){var e=N();return t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){var r=n.getAxisProxy(t.name,i);f(r.getTargetSeriesModels(),function(t){e.set(t.uid,t)})})}),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)}),t.eachTargetAxis(function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})})}}),Ah("dataZoom",function(t,e){var i=$g(y(e.eachComponent,e,"dataZoom"),SC,function(t,e){return t.get(e.axisIndex)}),n=[];e.eachComponent({mainType:"dataZoom",query:t},function(t){n.push.apply(n,i(t).nodes)}),f(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),kC.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var UC,XC="\x00_ec_dataZoom_roams",YC=y,jC=PC.extend({type:"dataZoom.inside",init:function(){this._range},render:function(t,e,i){jC.superApply(this,"render",arguments),this._range=t.getPercentRange(),f(this.getTargetCoordInfo(),function(e,n){var r=p(e,function(t){return um(t.model)});f(e,function(e){var o=e.model,a={};f(["pan","zoom","scrollMove"],function(t){a[t]=YC(qC[t],this,e,n)},this),lm(i,{coordId:um(o),allCoordIds:r,containsPoint:function(t,e,i){return o.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:a})},this)},this)},dispose:function(){hm(this.api,this.dataZoomModel.id),jC.superApply(this,"dispose",arguments),this._range=null}}),qC={zoom:function(t,e,i,n){var r=this._range,o=r.slice(),a=t.axisModels[0];if(a){var s=KC[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/n.scale,0);o[0]=(o[0]-l)*h+l,o[1]=(o[1]-l)*h+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return MC(0,o,[0,100],0,u.minSpan,u.maxSpan),this._range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:mm(function(t,e,i,n,r,o){var a=KC[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:mm(function(t,e,i,n,r,o){var a=KC[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i);return a.signal*(t[1]-t[0])*o.scrollDelta})},KC={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=h[1]-h[0],a.pixelStart=h[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},$C="urn:schemas-microsoft-com:vml",QC="undefined"==typeof window?null:window,JC=!1,tD=QC&&QC.document;if(tD&&!rv.canvasSupported)try{!tD.namespaces.zrvml&&tD.namespaces.add("zrvml",$C),UC=function(t){return tD.createElement("')}}catch(eD){UC=function(t){return tD.createElement("<"+t+' xmlns="'+$C+'" class="zrvml">')}}var iD=h_.CMD,nD=Math.round,rD=Math.sqrt,oD=Math.abs,aD=Math.cos,sD=Math.sin,lD=Math.max;if(!rv.canvasSupported){var hD=",",uD="progid:DXImageTransform.Microsoft",cD=21600,dD=cD/2,fD=1e5,pD=1e3,gD=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=cD+","+cD,t.coordorigin="0,0"},mD=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},vD=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},yD=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},xD=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},_D=function(t,e,i){return(parseFloat(t)||0)*fD+(parseFloat(e)||0)*pD+i},wD=In,bD=function(t,e,i){var n=ti(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=vD(n[0],n[1],n[2]),t.opacity=i*n[3])},SD=function(t){var e=ti(t);return[vD(e[0],e[1],e[2]),e[3]]},MD=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof J_){var r,o=0,a=[0,0],s=0,l=1,h=i.getBoundingRect(),u=h.width,c=h.height;if("linear"===n.type){r="gradient";var d=i.transform,f=[n.x*u,n.y*c],p=[n.x2*u,n.y2*c];d&&(oe(f,f,d),oe(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];o=180*Math.atan2(g,m)/Math.PI,0>o&&(o+=360),1e-6>o&&(o=0)}else{r="gradientradial";var f=[n.x*u,n.y*c],d=i.transform,v=i.scale,y=u,x=c;a=[(f[0]-h.x)/y,(f[1]-h.y)/x],d&&oe(f,f,d),y/=v[0]*cD,x/=v[1]*cD;var _=lD(y,x);s=0/_,l=2*n.r/_-s}var w=n.colorStops.slice();w.sort(function(t,e){return t.offset-e.offset});for(var b=w.length,S=[],M=[],I=0;b>I;I++){var T=w[I],A=SD(T.color);M.push(T.offset*l+s+" "+A[0]),(0===I||I===b-1)&&S.push(A)}if(b>=2){var C=S[0][0],D=S[1][0],k=S[0][1]*e.opacity,P=S[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=C,t.color2=D,t.colors=M.join(","),t.opacity=P,t.opacity2=k}"radial"===r&&(t.focusposition=a.join(","))}else bD(t,n,e.opacity)},ID=function(t,e){e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof J_||bD(t,e.stroke,e.opacity)},TD=function(t,e,i,n){var r="fill"===e,o=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.lineWidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof J_&&xD(t,o),o||(o=vm(e)),r?MD(o,i,n):ID(o,i),yD(t,o)):(t[r?"filled":"stroked"]="false",xD(t,o))},AD=[[],[],[]],CD=function(t,e){var i,n,r,o,a,s,l=iD.M,h=iD.C,u=iD.L,c=iD.A,d=iD.Q,f=[],p=t.data,g=t.len();for(o=0;g>o;){switch(r=p[o++],n="",i=0,r){case l:n=" m ",i=1,a=p[o++],s=p[o++],AD[0][0]=a,AD[0][1]=s;break;case u:n=" l ",i=1,a=p[o++],s=p[o++],AD[0][0]=a,AD[0][1]=s;break;case d:case h:n=" c ",i=3;var m,v,y=p[o++],x=p[o++],_=p[o++],w=p[o++];r===d?(m=_,v=w,_=(_+2*y)/3,w=(w+2*x)/3,y=(a+2*y)/3,x=(s+2*x)/3):(m=p[o++],v=p[o++]),AD[0][0]=y,AD[0][1]=x,AD[1][0]=_,AD[1][1]=w,AD[2][0]=m,AD[2][1]=v,a=m,s=v;break;case c:var b=0,S=0,M=1,I=1,T=0;e&&(b=e[4],S=e[5],M=rD(e[0]*e[0]+e[1]*e[1]),I=rD(e[2]*e[2]+e[3]*e[3]),T=Math.atan2(-e[1]/I,e[0]/M));var A=p[o++],C=p[o++],D=p[o++],k=p[o++],P=p[o++]+T,L=p[o++]+P+T;o++;var O=p[o++],z=A+aD(P)*D,E=C+sD(P)*k,y=A+aD(L)*D,x=C+sD(L)*k,R=O?" wa ":" at ";Math.abs(z-y)<1e-4&&(Math.abs(L-P)>.01?O&&(z+=270/cD):Math.abs(E-C)<1e-4?O&&A>z||!O&&z>A?x-=270/cD:x+=270/cD:O&&C>E||!O&&E>C?y+=270/cD:y-=270/cD),f.push(R,nD(((A-D)*M+b)*cD-dD),hD,nD(((C-k)*I+S)*cD-dD),hD,nD(((A+D)*M+b)*cD-dD),hD,nD(((C+k)*I+S)*cD-dD),hD,nD((z*M+b)*cD-dD),hD,nD((E*I+S)*cD-dD),hD,nD((y*M+b)*cD-dD),hD,nD((x*I+S)*cD-dD)),a=y,s=x;break;case iD.R:var B=AD[0],N=AD[1];B[0]=p[o++],B[1]=p[o++],N[0]=B[0]+p[o++],N[1]=B[1]+p[o++],e&&(oe(B,B,e),oe(N,N,e)),B[0]=nD(B[0]*cD-dD),N[0]=nD(N[0]*cD-dD),B[1]=nD(B[1]*cD-dD),N[1]=nD(N[1]*cD-dD),f.push(" m ",B[0],hD,B[1]," l ",N[0],hD,B[1]," l ",N[0],hD,N[1]," l ",B[0],hD,N[1]);break;case iD.Z:f.push(" x ")}if(i>0){f.push(n);for(var F=0;i>F;F++){var V=AD[F];e&&oe(V,V,e),f.push(nD(V[0]*cD-dD),hD,nD(V[1]*cD-dD),i-1>F?hD:"")}}}return f.join("")};io.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=vm("shape"),gD(i),this._vmlEl=i),TD(i,"fill",e,this),TD(i,"stroke",e,this);var n=this.transform,r=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var a=e.lineWidth;if(r&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];a*=rD(oD(s))}o.weight=a+"px"}var l=this.path||(this.path=new h_);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=CD(l,this.transform),i.style.zIndex=_D(this.zlevel,this.z,this.z2),yD(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},io.prototype.onRemove=function(t){xD(t,this._vmlEl),this.removeRectText(t)},io.prototype.onAdd=function(t){yD(t,this._vmlEl),this.appendRectText(t)};var DD=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};Dn.prototype.brushVML=function(t){var e,i,n=this.style,r=n.image;if(DD(r)){var o=r.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var a=r.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",e=r.width,i=r.height,a.width=s,a.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}r=o}else r===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(r){var h=n.x||0,u=n.y||0,c=n.width,d=n.height,f=n.sWidth,p=n.sHeight,g=n.sx||0,m=n.sy||0,v=f&&p,y=this._vmlEl;y||(y=tD.createElement("div"),gD(y),this._vmlEl=y);var x,_=y.style,w=!1,b=1,S=1;if(this.transform&&(x=this.transform,b=rD(x[0]*x[0]+x[1]*x[1]),S=rD(x[2]*x[2]+x[3]*x[3]),w=x[1]||x[2]),w){var M=[h,u],I=[h+c,u],T=[h,u+d],A=[h+c,u+d];oe(M,M,x),oe(I,I,x),oe(T,T,x),oe(A,A,x);var C=lD(M[0],I[0],T[0],A[0]),D=lD(M[1],I[1],T[1],A[1]),k=[];k.push("M11=",x[0]/b,hD,"M12=",x[2]/S,hD,"M21=",x[1]/b,hD,"M22=",x[3]/S,hD,"Dx=",nD(h*b+x[4]),hD,"Dy=",nD(u*S+x[5])),_.padding="0 "+nD(C)+"px "+nD(D)+"px 0",_.filter=uD+".Matrix("+k.join("")+", SizingMethod=clip)"}else x&&(h=h*b+x[4],u=u*S+x[5]),_.filter="",_.left=nD(h)+"px",_.top=nD(u)+"px";var P=this._imageEl,L=this._cropEl;P||(P=tD.createElement("div"),this._imageEl=P);var O=P.style;if(v){if(e&&i)O.width=nD(b*e*c/f)+"px",O.height=nD(S*i*d/p)+"px";else{var z=new Image,E=this;z.onload=function(){z.onload=null,e=z.width,i=z.height,O.width=nD(b*e*c/f)+"px",O.height=nD(S*i*d/p)+"px",E._imageWidth=e,E._imageHeight=i,E._imageSrc=r},z.src=r}L||(L=tD.createElement("div"),L.style.overflow="hidden",this._cropEl=L);var R=L.style;R.width=nD((c+g*c/f)*b),R.height=nD((d+m*d/p)*S),R.filter=uD+".Matrix(Dx="+-g*c/f*b+",Dy="+-m*d/p*S+")",L.parentNode||y.appendChild(L),P.parentNode!==L&&L.appendChild(P)}else O.width=nD(b*c)+"px",O.height=nD(S*d)+"px",y.appendChild(P),L&&L.parentNode&&(y.removeChild(L),this._cropEl=null);var B="",N=n.opacity;1>N&&(B+=".Alpha(opacity="+nD(100*N)+") "),B+=uD+".AlphaImageLoader(src="+r+", SizingMethod=scale)",O.filter=B,y.style.zIndex=_D(this.zlevel,this.z,this.z2),yD(t,y),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},Dn.prototype.onRemove=function(t){xD(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},Dn.prototype.onAdd=function(t){yD(t,this._vmlEl),this.appendRectText(t)};var kD,PD="normal",LD={},OD=0,zD=100,ED=document.createElement("div"),RD=function(t){var e=LD[t];if(!e){OD>zD&&(OD=0,LD={});var i,n=ED.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(r){}e={style:n.fontStyle||PD,variant:n.fontVariant||PD,weight:n.fontWeight||PD,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},LD[t]=e,OD++}return e};Zi("measureText",function(t,e){var i=tD;kD||(kD=i.createElement("div"),kD.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",tD.body.appendChild(kD));try{kD.style.font=e}catch(n){}return kD.innerHTML="",kD.appendChild(i.createTextNode(t)),{width:kD.offsetWidth}});for(var BD=new Ti,ND=function(t,e,i,n){var r=this.style;this.__dirty&&un(r,!0);var o=r.text;if(null!=o&&(o+=""),o){if(r.rich){var a=an(o,r);o=[];for(var s=0;sI;++I)zm(S[I],v,_,w+I*p)}else{t.__text=o,t.__canCacheByTextString=b;for(var T=d.lines,A=T.length,I=0;A>I;I++){var C=S[I],D=T[I];C?C.__zrText!==D&&(C.innerHTML="",C.appendChild(document.createTextNode(D))):(C=S[I]=bm("tspan"),a.appendChild(C),C.appendChild(document.createTextNode(D))),zm(C,v,_,w+I*p)}if(M>A){for(;M>I;I++)a.removeChild(S[I]);S.length=A}}}};nk.drawRectText=lk,nk.brush=function(t){var e=t.style;null!=e.text?lk(t,!1):Em(t)},Rm.prototype={diff:function(t,e,i){function n(){for(var i=-1*s;s>=i;i+=2){var n,l=h[i-1],u=h[i+1],c=(u?u.newPos:0)-i;l&&(h[i-1]=void 0);var d=l&&l.newPos+1=0&&a>c;if(d||f){if(!d||f&&l.newPos=o&&c+1>=a)return Bm(r,n.components,e,t);h[i]=n}else h[i]=void 0}s++}i||(i=function(t,e){return t===e}),this.equals=i;var r=this;t=t.slice(),e=e.slice();var o=e.length,a=t.length,s=1,l=o+a,h=[{newPos:-1,components:[]}],u=this.extractCommon(h[0],e,t,0);if(h[0].newPos+1>=o&&u+1>=a){for(var c=[],d=0;d=s;){var f=n();if(f)return f}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var r=e.length,o=i.length,a=t.newPos,s=a-n,l=0;r>a+1&&o>s+1&&this.equals(e[a+1],i[s+1]);)a++,s++,l++;return l&&t.components.push({count:l}),t.newPos=a,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var hk=new Rm,uk=function(t,e,i){return hk.diff(t,e,i)},ck="0",dk="1";Fm.prototype.createElement=bm,Fm.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?(i=e.insertBefore(this.createElement("defs"),e.firstChild),i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},Fm.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},Fm.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},Fm.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},Fm.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return f(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},Fm.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;f(t,function(t){t[e._markLabel]=ck})},Fm.prototype.markUsed=function(t){t&&(t[this._markLabel]=dk)},Fm.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;f(e,function(e){e[i._markLabel]!==dk&&t.removeChild(e)})}},Fm.prototype.getSvgProxy=function(t){return t instanceof io?ek:t instanceof Dn?ik:t instanceof z_?nk:ek},Fm.prototype.getTextSvgElement=function(t){return t.__textSvgEl},Fm.prototype.getSvgElement=function(t){return t.__svgEl},u(Vm,Fm),Vm.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;f(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var r,o=e.style[n],a=i.getDefs(!0);o._dom?(r=o._dom,a.contains(o._dom)||i.addDom(r)):r=i.add(o),i.markUsed(e);var s=r.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},Vm.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return dy("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},Vm.prototype.update=function(t){var e=this;Fm.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},Vm.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void dy("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,r=i.length;r>n;++n){var o=this.createElement("stop");o.setAttribute("offset",100*i[n].offset+"%");var a=i[n].color;if(a.indexOf("rgba")>-1){var s=ti(a)[3],l=ri(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s)}else o.setAttribute("stop-color",i[n].color);e.appendChild(o)}t._dom=e},Vm.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&Fm.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&Fm.prototype.markUsed.call(this,e._dom)}},u(Gm,Fm),Gm.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},Gm.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,r,o=this.getDefs(!0),a=e[0],s=i?"_textDom":"_dom";a[s]?(r=a[s].getAttribute("id"),n=a[s],o.contains(n)||o.appendChild(n)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",r),o.appendChild(n),a[s]=n);var l=this.getSvgProxy(a);if(a.transform&&a.parent.invTransform&&!i){var h=Array.prototype.slice.call(a.transform);Re(a.transform,a.parent.invTransform,a.transform),l.brush(a),a.transform=h}else l.brush(a);var u=this.getSvgElement(a);n.innerHTML="",n.appendChild(u.cloneNode()),t.setAttribute("clip-path","url(#"+r+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},Gm.prototype.markUsed=function(t){var e=this;t.__clipPaths&&f(t.__clipPaths,function(t){t._dom&&Fm.prototype.markUsed.call(e,t._dom),t._textDom&&Fm.prototype.markUsed.call(e,t._textDom)})},u(Wm,Fm),Wm.prototype.addWithoutUpdate=function(t,e){if(e&&Hm(e.style)){var i;if(e._shadowDom){i=e._shadowDom;var n=this.getDefs(!0);n.contains(e._shadowDom)||this.addDom(i)}else i=this.add(e);this.markUsed(e);var r=i.getAttribute("id");t.style.filter="url(#"+r+")"}},Wm.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},Wm.prototype.update=function(t,e){var i=e.style;if(Hm(i)){var n=this;Fm.prototype.update.call(this,e,function(){n.updateDom(e,e._shadowDom)})}else this.remove(t,e)},Wm.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},Wm.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,r,o,a,s=t.style,l=t.scale?t.scale[0]||1:1,h=t.scale?t.scale[1]||1:1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,r=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,r=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",r/h),i.setAttribute("flood-color",a);var u=o/2/l,c=o/2/h,d=u+" "+c;i.setAttribute("stdDeviation",d),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(i),t._shadowDom=e},Wm.prototype.markUsed=function(t){t._shadowDom&&Fm.prototype.markUsed.call(this,t._shadowDom)};var fk=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=a({},i||{});var r=bm("svg");r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=bm("g");r.appendChild(o);var s=bm("g");r.appendChild(s),this.gradientManager=new Vm(n,s),this.clipPathManager=new Gm(n,s),this.shadowManager=new Wm(n,s);var l=document.createElement("div");l.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=s,this._backgroundRoot=o,this._viewport=l,t.appendChild(l),l.appendChild(r),this.resize(i.width,i.height),this._visibleList=[]};fk.prototype={constructor:fk,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=bm("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,r=t.length,o=[];for(e=0;r>e;e++){var a=t[e],s=Um(a),l=$m(a)||Km(a);a.invisible||(a.__dirty&&(s&&s.brush(a),this.clipPathManager.update(a),a.style&&(this.gradientManager.update(a.style.fill),this.gradientManager.update(a.style.stroke),this.shadowManager.update(l,a)),a.__dirty=!1),o.push(a))}var h,u=uk(n,o);for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var r=i.style;r.width=t+"px",r.height=e+"px";var o=this._svgDom;o.setAttribute("width",t),o.setAttribute("height",e)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||Zm(s[i])||Zm(a.style[i]))-(Zm(s[r])||0)-(Zm(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var t=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=utf-8,"+t}},f(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(t){fk.prototype[t]=Qm(t)}),Jn("svg",fk),t.version=xS,t.dependencies=_S,t.PRIORITY=OS,t.init=vh,t.connect=yh,t.disConnect=xh,t.disconnect=JS,t.dispose=_h,t.getInstanceByDom=wh,t.getInstanceById=bh,t.registerTheme=Sh,t.registerPreprocessor=Mh,t.registerProcessor=Ih,t.registerPostUpdate=Th,t.registerAction=Ah,t.registerCoordinateSystem=Ch,t.getCoordinateSystemDimensions=Dh,t.registerLayout=kh,t.registerVisual=Ph,t.registerLoading=Oh,t.extendComponentModel=zh,t.extendComponentView=Eh,t.extendSeriesModel=Rh,t.extendChartView=Bh,t.setCanvasCreator=Nh,t.registerMap=Fh,t.getMap=Vh,t.dataTool=tM,t.zrender=mx,t.number=Cw,t.format=Ew,t.throttle=yl,t.helper=iI,t.matrix=Vv,t.vector=Mv,t.color=oy,t.parseGeoJSON=rI,t.parseGeoJson=lI,t.util=hI,t.graphic=uI,t.List=dM,t.Model=ga,t.Axis=sI,t.env=rv});