yusijie
2025-04-08 9b76b06e1686faafd4c95adce314dd8ddaa9e515
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
!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&&(Up=null),Xp[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=Bp.call(t);if("[object Array]"===i){if(!N(t)){e=[];for(var r=0,o=t.length;o>r;r++)e[r]=n(t[r])}}else if(Np[i]){if(!N(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(!Rp[i]&&!N(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)||x(s)||x(a)||T(s)||T(a)||M(s)||M(a)||N(s)||N(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 Up||(Up=Yp().getContext("2d")),Up}function u(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 h(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===Fp)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 g(t,e,i){if(t&&e){if(t.map&&t.map===Hp)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 p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===Wp)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===Vp)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=Gp.call(arguments,2);return function(){return t.apply(e,i.concat(Gp.call(arguments)))}}function _(t){var e=Gp.call(arguments,1);return function(){return t.apply(this,e.concat(Gp.call(arguments)))}}function x(t){return"[object Array]"===Bp.call(t)}function w(t){return"function"==typeof t}function b(t){return"[object String]"===Bp.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function M(t){return!!Rp[Bp.call(t)]}function I(t){return!!Np[Bp.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function C(t){return t!==t}function D(){for(var t=0,e=arguments.length;e>t;t++)if(null!=arguments[t])return arguments[t]}function A(t,e){return null!=t?t:e}function k(t,e,i){return null!=t?t:null!=e?e:i}function P(){return Function.call.apply(Gp,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 R(t){t[Zp]=!0}function N(t){return t[Zp]}function B(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=x(t);this.data={};var n=this;t instanceof B?t.each(e):t&&f(t,e)}function E(t){return new B(t)}function F(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function V(){}function G(t,e){var i=new jp(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function H(t,e){return t[0]=e[0],t[1]=e[1],t}function W(t){var e=new jp(2);return e[0]=t[0],e[1]=t[1],e}function X(t,e,i){return t[0]=e,t[1]=i,t}function Y(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function U(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function Z(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function q(t){return Math.sqrt(j(t))}function j(t){return t[0]*t[0]+t[1]*t[1]}function K(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function $(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function J(t,e){return t[0]*e[0]+t[1]*e[1]}function Q(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function te(t,e){var i=q(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ie(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function ne(t,e){return t[0]=-e[0],t[1]=-e[1],t}function re(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function oe(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function ae(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function se(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function le(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function ue(t,e){return{target:t,topTarget:e&&e.topTarget}}function he(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function ce(t,e,i,n,r,o){var a=t._$handlers;if("function"==typeof i&&(r=n,n=i,i=null),!n||!e)return t;i=he(t,i),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return t;var l={h:n,one:o,query:i,ctx:r||t,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,h=a[e][u];return h&&h.callAtLast?a[e].splice(u,0,l):a[e].push(l),t}function de(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/nm);return t[i][l]}for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,d=0,f=0;s>d;d++){var g=1<<d;g&r||(c+=(f%2?-1:1)*t[i][d]*de(t,e-1,h,u,r|g,o),f++)}return o[a]=c,c}function fe(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=de(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;8>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<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function ge(t,e,i,n,r){return pe(om,e,n,r,!0)&&pe(t,i,om[0],om[1])}function pe(t,e,i,n,r){if(e.getBoundingClientRect&&zp.domSupported&&!ye(e)){var o=e[rm]||(e[rm]={}),a=me(e,o),s=ve(a,o,r);if(s)return s(t,i,n),!0}return!1}function me(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(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[u]+":0",n[1-l]+":auto",r[1-u]+":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=[],u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,f=h.top;s.push(d,f),a=a&&o&&d===o[c]&&f===o[c+1],l.push(t[u].offsetLeft,t[u].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 _e(t,e,i,n){return i=i||{},n||!zp.canvasSupported?xe(t,e,i):zp.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):xe(t,e,i),i}function xe(t,e,i){if(zp.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(pe(lm,t,n,r))return i.zrX=lm[0],void(i.zrY=lm[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&&_e(t,o,e,i)}else _e(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&&sm.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Se(t,e,i,n){am?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Me(t,e,i,n){am?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 Ce(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function De(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:Ae}}function Ae(){um(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?dm:!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 pm(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 Re(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 Ne(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 Ee(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+a*u,t[1]=-n*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*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 Re(e,t),e}function He(t){return t>ym||-ym>t}function We(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 Xe(t){return t=Math.round(t),0>t?0:t>255?255:t}function Ye(t){return t=Math.round(t),0>t?0:t>360?360:t}function Ue(t){return 0>t?0:t>1?1:t}function Ze(t){return Xe(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function qe(t){return Ue(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function je(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 Je(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Qe(t,e){Lm&&Je(Lm,e),Lm=Pm.put(t,Lm||e.slice())}function ti(t,e){if(t){e=e||[];var i=Pm.get(t);if(i)return Je(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in km)return Je(e,km[n]),Qe(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=qe(s.pop());case"rgb":return 3!==s.length?void $e(e,0,0,0,1):($e(e,Ze(s[0]),Ze(s[1]),Ze(s[2]),l),Qe(t,e),e);case"hsla":return 4!==s.length?void $e(e,0,0,0,1):(s[3]=qe(s[3]),ei(s,e),Qe(t,e),e);case"hsl":return 3!==s.length?void $e(e,0,0,0,1):(ei(s,e),Qe(t,e),e);default:return}}$e(e,0,0,0,1)}else{if(4===n.length){var u=parseInt(n.substr(1),16);return u>=0&&4095>=u?($e(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),Qe(t,e),e):void $e(e,0,0,0,1)}if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&16777215>=u?($e(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),Qe(t,e),e):void $e(e,0,0,0,1)}}}}function ei(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=qe(t[1]),r=qe(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],$e(e,Xe(255*je(a,o,i+1/3)),Xe(255*je(a,o,i)),Xe(255*je(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,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var h=((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+h-d:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];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 ui(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]=Xe(Ke(a[0],s[0],l)),i[1]=Xe(Ke(a[1],s[1],l)),i[2]=Xe(Ke(a[2],s[2],l)),i[3]=Ue(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,u=ui([Xe(Ke(a[0],s[0],l)),Xe(Ke(a[1],s[1],l)),Xe(Ke(a[2],s[2],l)),Ue(Ke(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function si(t,e,i,n){return t=ti(t),t?(t=ii(t),null!=e&&(t[0]=Ye(e)),null!=i&&(t[1]=qe(i)),null!=n&&(t[2]=qe(n)),ui(ei(t),"rgba")):void 0}function li(t,e){return t=ti(t),t&&null!=e?(t[3]=Ue(e),ui(t,"rgba")):void 0}function ui(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 hi(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 gi(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 pi(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]:Nm.call(e[a]))}for(var s=t[0]&&t[0].length,a=0;a<t.length;a++)if(1===i)isNaN(t[a])&&(t[a]=e[a]);else for(var l=0;s>l;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 u=t.length;if(1===l)for(var h=0;u>h;h++)s[h]=yi(t[h],e[h],i[h],n[h],r,o,a);else for(var c=t[0].length,h=0;u>h;h++)for(var d=0;c>d;d++)s[h][d]=yi(t[h][d],e[h][d],i[h][d],n[h][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 _i(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(Nm.call(t[n]));return i}return Nm.call(t)}return t}function xi(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,u=n.length;if(u){var h,c=n[0].value,f=d(c),g=!1,p=!1,m=f?wi(n):0;n.sort(function(t,e){return t.time-e.time}),h=n[u-1].time;for(var v=[],y=[],_=n[0].value,x=!0,w=0;u>w;w++){v.push(n[w].time/h);var b=n[w].value;if(f&&mi(b,_,m)||!f&&b===_||(x=!1),_=b,"string"==typeof b){var S=ti(b);S?(b=S,g=!0):p=!0}y.push(b)}if(o||!x){for(var M=y[u-1],w=0;u-1>w;w++)f?pi(y[w],M,m):!isNaN(y[w])||isNaN(M)||p||g||(y[w]=M);f&&pi(a(t._target,r),M,m);var I,T,C,D,A,k,P=0,L=0;if(g)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,u-1),i=I;i>=0&&!(v[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=P;u>i&&!(v[i]>e);i++);i=Math.min(i-1,u-2)}P=i,L=e;var n=v[i+1]-v[i];if(0!==n)if(T=(e-v[i])/n,l)if(D=y[i],C=y[0===i?i:i-1],A=y[i>u-2?u-1:i+1],k=y[i>u-3?u-1:i+2],f)vi(C,D,A,k,T,T*T,T*T*T,a(t,r),m);else{var o;if(g)o=vi(C,D,A,k,T,T*T,T*T*T,O,1),o=xi(O);else{if(p)return fi(D,A,T);o=yi(C,D,A,k,T,T*T,T*T*T)}s(t,r,o)}else if(f)gi(y[i],y[i+1],T,a(t,r),m);else{var o;if(g)gi(y[i],y[i+1],T,O,1),o=xi(O);else{if(p)return fi(y[i],y[i+1],T);o=di(y[i],y[i+1],T)}s(t,r,o)}},R=new We({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:z,ondestroy:i});return e&&"spline"!==e&&(R.easing=e),R}}}function Si(t,e,i,n,r,o,a,s){function l(){h--,h||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 u=t.animators.slice(),h=u.length;h||o&&o();for(var c=0;c<u.length;c++)u[c].done(l).start(r,a)}function Mi(t,e,i,n,r,o,a){var s={},l=0;for(var u in n)n.hasOwnProperty(u)&&(null!=i[u]?S(n[u])&&!d(n[u])?Mi(t,e?e+"."+u:u,i[u],n[u],r,o,a):(a?(s[u]=i[u],Ii(t,e,u,n[u])):s[u]=n[u],l++):null==n[u]||a||Ii(t,e,u,n[u]));l>0&&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 Ci(t){for(var e=0;t>=jm;)e|=1&t,t>>=1;return t+e}function Di(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++;Ai(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Ai(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 u=n-s;switch(u){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(;u>0;)t[s+u]=t[s+u-1],u--}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 u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[i+h])>0?a=h+1:l=h}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 u=a;a=r-l,l=r-u}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 h=a+(l-a>>>1);o(t,e[i+h])<0?l=h:a=h+1}return l}function Oi(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],h=u[i+1];u[i]=r+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var d=Li(t[o],t,n,r,0,e);n+=d,r-=d,0!==r&&(h=Pi(t[n+r-1],t,o,h,h-1,e),0!==h&&(h>=r?a(n,r,o,h):s(n,r,o,h)))}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,u=i;if(t[u++]=t[l++],0!==--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=d[s])}for(var c,f,g,p=h;;){c=0,f=0,g=!1;do if(e(t[l],d[s])<0){if(t[u++]=t[l++],f++,c=0,0===--o){g=!0;break}}else if(t[u++]=d[s++],c++,f=0,1===--n){g=!0;break}while(p>(c|f));if(g)break;do{if(c=Li(t[l],d,s,n,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=d[s+a];if(u+=c,s+=c,n-=c,1>=n){g=!0;break}}if(t[u++]=t[l++],0===--o){g=!0;break}if(f=Pi(d[s],t,l,o,0,e),0!==f){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,o-=f,0===o){g=!0;break}}if(t[u++]=d[s++],1===--n){g=!0;break}p--}while(c>=Km||f>=Km);if(g)break;0>p&&(p=0),p+=2}if(h=p,1>h&&(h=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=d[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=d[s+a]}}else for(a=0;n>a;a++)t[u+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,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!==--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=d[l])}for(var g=h;;){var p=0,m=0,v=!1;do if(e(d[l],t[s])<0){if(t[u--]=t[s--],p++,m=0,0===--n){v=!0;break}}else if(t[u--]=d[l--],m++,p=0,1===--o){v=!0;break}while(g>(p|m));if(v)break;do{if(p=n-Li(d[l],t,i,n,n-1,e),0!==p){for(u-=p,s-=p,n-=p,f=u+1,c=s+1,a=p-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){v=!0;break}}if(t[u--]=d[l--],1===--o){v=!0;break}if(m=o-Pi(t[s],d,0,o,o-1,e),0!==m){for(u-=m,l-=m,o-=m,f=u+1,c=l+1,a=0;m>a;a++)t[f+a]=d[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--n){v=!0;break}g--}while(p>=Km||m>=Km);if(v)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[u]=d[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=d[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=d[a]}var l,u,h=Km,c=0,d=[];l=[],u=[],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(jm>r)return o=Di(t,i,n,e),void ki(t,i,n,i+o,e);var a=new Oi(t,e),s=Ci(r);do{if(o=Di(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 Ri(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Ni(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 u=t.createRadialGradient(a,s,0,a,s,l);return u}function Ei(){return!1}function Fi(t,e,i){var n=Yp(),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=hv.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=hv.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Wi(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Hi,hv.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Hi(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Wi(t){return t&&t.width&&t.height}function Xi(t,e){e=e||pv;var i=t+":"+e;if(cv[i])return cv[i];for(var n=(t+"").split("\n"),r=0,o=0,a=n.length;a>o;o++)r=Math.max(nn(n[o],e).width,r);return dv>fv&&(dv=0,cv={}),dv++,cv[i]=r,r}function Yi(t,e,i,n,r,o,a,s){return a?Zi(t,e,i,n,r,o,a,s):Ui(t,e,i,n,r,o,s)}function Ui(t,e,i,n,r,o,a){var s=rn(t,e,r,o,a),l=Xi(t,e);r&&(l+=r[1]+r[3]);var u=s.outerHeight,h=qi(0,l,i),c=ji(0,u,n),d=new Ti(h,c,l,u);return d.lineHeight=s.lineHeight,d}function Zi(t,e,i,n,r,o,a,s){var l=on(t,{rich:a,truncate:s,font:e,textAlign:i,textPadding:r,textLineHeight:o}),u=l.outerWidth,h=l.outerHeight,c=qi(0,u,i),d=ji(0,h,n);return new Ti(c,d,u,h)}function qi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function ji(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Ki(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,u=s/2,h="left",c="top";switch(n){case"left":o-=r,a+=u,h="right",c="middle";break;case"right":o+=r+l,a+=u,c="middle";break;case"top":o+=l/2,a-=r,h="center",c="bottom";break;case"bottom":o+=l/2,a+=s+r,h="center";break;case"inside":o+=l/2,a+=u,h="center",c="middle";break;case"insideLeft":o+=r,a+=u,c="middle";break;case"insideRight":o+=l-r,a+=u,h="right",c="middle";break;case"insideTop":o+=l/2,a+=r,h="center";break;case"insideBottom":o+=l/2,a+=s-r,h="center",c="bottom";break;case"insideTopLeft":o+=r,a+=r;break;case"insideTopRight":o+=l-r,a+=r,h="right";break;case"insideBottomLeft":o+=r,a+=s-r,c="bottom";break;case"insideBottomRight":o+=l-r,a+=s-r,h="right",c="bottom"}return t=t||{},t.x=o,t.y=a,t.textAlign=h,t.textVerticalAlign=c,t}function $i(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]=Qi(o[a],r);return o.join("\n")}function Ji(t,e,i,n){n=a({},n),n.font=e;var i=A(i,"...");n.maxIterations=A(n.maxIterations,2);var r=n.minChar=A(n.minChar,0);n.cnCharWidth=Xi("国",e);var o=n.ascCharWidth=Xi("a",e);n.placeholder=A(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;r>l&&s>=o;l++)s-=o;var u=Xi(i,e);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function Qi(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Xi(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?tn(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Xi(t,n)}return""===t&&(t=e.placeholder),t}function tn(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 en(t){return Xi("国",t)}function nn(t,e){return mv.measureText(t,e)}function rn(t,e,i,n,r){null!=t&&(t+="");var o=A(n,en(e)),a=t?t.split("\n"):[],s=a.length*o,l=s,u=!0;if(i&&(l+=i[0]+i[2]),t&&r){u=!1;var h=r.outerHeight,c=r.outerWidth;if(null!=h&&l>h)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,g=a.length;g>f;f++)a[f]=Qi(a[f],d)}return{lines:a,height:s,outerHeight:l,lineHeight:o,canCacheByTextString:u}}function on(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,r=gv.lastIndex=0;null!=(n=gv.exec(t));){var o=n.index;o>r&&an(i,t.substring(r,o)),an(i,n[2],n[1]),r=gv.lastIndex}r<t.length&&an(i,t.substring(r,t.length));var a=i.lines,s=0,l=0,u=[],h=e.textPadding,c=e.truncate,d=c&&c.outerWidth,f=c&&c.outerHeight;h&&(null!=d&&(d-=h[1]+h[3]),null!=f&&(f-=h[0]+h[2]));for(var g=0;g<a.length;g++){for(var p=a[g],m=0,v=0,y=0;y<p.tokens.length;y++){var _=p.tokens[y],x=_.styleName&&e.rich[_.styleName]||{},w=_.textPadding=x.textPadding,b=_.font=x.font||e.font,S=_.textHeight=A(x.textHeight,en(b));if(w&&(S+=w[0]+w[2]),_.height=S,_.lineHeight=k(x.textLineHeight,e.textLineHeight,S),_.textAlign=x&&x.textAlign||e.textAlign,_.textVerticalAlign=x&&x.textVerticalAlign||"middle",null!=f&&s+_.lineHeight>f)return{lines:[],width:0,height:0};_.textWidth=Xi(_.text,b);var M=x.textWidth,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))_.percentWidth=M,u.push(_),M=0;else{if(I){M=_.textWidth;var T=x.textBackgroundColor,C=T&&T.image;C&&(C=Vi(C),Wi(C)&&(M=Math.max(M,C.width*S/C.height)))}var D=w?w[1]+w[3]:0;M+=D;var P=null!=d?d-v:null;null!=P&&M>P&&(!I||D>P?(_.text="",_.textWidth=M=0):(_.text=$i(_.text,P-D,b,c.ellipsis,{minChar:c.minChar}),_.textWidth=Xi(_.text,b),M=_.textWidth+D))}v+=_.width=M,x&&(m=Math.max(m,_.lineHeight))}p.width=v,p.lineHeight=m,s+=m,l=Math.max(l,v)}i.outerWidth=i.width=A(e.textWidth,l),i.outerHeight=i.height=A(e.textHeight,s),h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]);for(var g=0;g<u.length;g++){var _=u[g],L=_.percentWidth;_.width=parseInt(L,10)/100*l}return i}function an(t,e,i){for(var n=""===e,r=e.split("\n"),o=t.lines,a=0;a<r.length;a++){var s=r[a],l={styleName:i,text:s,isLineHolder:!s&&!n};if(a)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||n)&&u.push(l)}}}function sn(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&z(e)||t.textFont||t.font}function ln(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[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>u&&(c=n+r,n*=u/c,r*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/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+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-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 hn(t),f(t.rich,hn),t}function hn(t){if(t){t.font=sn(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||yv[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||_v[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=L(t.textPadding))}}function cn(t,e,i,n,r,o){n.rich?fn(t,e,i,n,r,o):dn(t,e,i,n,r,o)}function dn(t,e,i,n,r,o){var a,s=vn(n),l=!1,u=e.__attrCachedBy===tv.PLAIN_TEXT;o!==ev?(o&&(a=o.style,l=!s&&u&&a),e.__attrCachedBy=s?tv.NONE:tv.PLAIN_TEXT):u&&(e.__attrCachedBy=tv.NONE);var h=n.font||vv;l&&h===(a.font||vv)||(e.font=h);var c=t.__computedFont;t.__styleFont!==h&&(t.__styleFont=h,c=t.__computedFont=e.font);var d=n.textPadding,f=n.textLineHeight,g=t.__textCotentBlock;(!g||t.__dirtyText)&&(g=t.__textCotentBlock=rn(i,c,d,f,n.truncate));var p=g.outerHeight,m=g.lines,v=g.lineHeight,y=xn(bv,t,n,r),_=y.baseX,x=y.baseY,w=y.textAlign||"left",b=y.textVerticalAlign;pn(e,n,r,_,x);var S=ji(x,p,b),M=_,I=S;if(s||d){var T=Xi(i,c),C=T;d&&(C+=d[1]+d[3]);var D=qi(_,C,w);s&&yn(t,e,n,D,S,C,p),d&&(M=In(_,w,d),I+=d[0])}e.textAlign=w,e.textBaseline="middle",e.globalAlpha=n.opacity||1;for(var A=0;A<xv.length;A++){var k=xv[A],P=k[0],L=k[1],O=n[P];l&&O===a[P]||(e[L]=Qm(e,L,O||k[2]))}I+=v/2;var z=n.textStrokeWidth,R=l?a.textStrokeWidth:null,N=!l||z!==R,B=!l||N||n.textStroke!==a.textStroke,E=bn(n.textStroke,z),F=Sn(n.textFill);if(E&&(N&&(e.lineWidth=z),B&&(e.strokeStyle=E)),F&&(l&&n.textFill===a.textFill||(e.fillStyle=F)),1===m.length)E&&e.strokeText(m[0],M,I),F&&e.fillText(m[0],M,I);else for(var A=0;A<m.length;A++)E&&e.strokeText(m[A],M,I),F&&e.fillText(m[A],M,I),I+=v}function fn(t,e,i,n,r,o){o!==ev&&(e.__attrCachedBy=tv.NONE);var a=t.__textCotentBlock;(!a||t.__dirtyText)&&(a=t.__textCotentBlock=on(i,n)),gn(t,e,a,n,r)}function gn(t,e,i,n,r){var o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=xn(bv,t,n,r),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;pn(e,n,r,h,c);var g=qi(h,a,d),p=ji(c,s,f),m=g,v=p;l&&(m+=l[3],v+=l[0]);var y=m+o;vn(n)&&yn(t,e,n,g,p,a,s);for(var _=0;_<i.lines.length;_++){for(var x,w=i.lines[_],b=w.tokens,S=b.length,M=w.lineHeight,I=w.width,T=0,C=m,D=y,A=S-1;S>T&&(x=b[T],!x.textAlign||"left"===x.textAlign);)mn(t,e,x,n,M,v,C,"left"),I-=x.width,C+=x.width,T++;for(;A>=0&&(x=b[A],"right"===x.textAlign);)mn(t,e,x,n,M,v,D,"right"),I-=x.width,D-=x.width,A--;for(C+=(o-(C-m)-(y-D)-I)/2;A>=T;)x=b[T],mn(t,e,x,n,M,v,C+x.width/2,"center"),C+=x.width,T++;v+=M}}function pn(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 mn(t,e,i,n,r,o,a,s){var l=n.rich[i.styleName]||{};
l.text=i.text;var u=i.textVerticalAlign,h=o+r/2;"top"===u?h=o+i.height/2:"bottom"===u&&(h=o+r-i.height/2),!i.isLineHolder&&vn(l)&&yn(t,e,l,"right"===s?a-i.width:"center"===s?a-i.width/2:a,h-i.height/2,i.width,i.height);var c=i.textPadding;c&&(a=In(a,s,c),h-=i.height/2-c[2]-i.textHeight/2),wn(e,"shadowBlur",k(l.textShadowBlur,n.textShadowBlur,0)),wn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),wn(e,"shadowOffsetX",k(l.textShadowOffsetX,n.textShadowOffsetX,0)),wn(e,"shadowOffsetY",k(l.textShadowOffsetY,n.textShadowOffsetY,0)),wn(e,"textAlign",s),wn(e,"textBaseline","middle"),wn(e,"font",i.font||vv);var d=bn(l.textStroke||n.textStroke,g),f=Sn(l.textFill||n.textFill),g=A(l.textStrokeWidth,n.textStrokeWidth);d&&(wn(e,"lineWidth",g),wn(e,"strokeStyle",d),e.strokeText(i.text,a,h)),f&&(wn(e,"fillStyle",f),e.fillText(i.text,a,h))}function vn(t){return!!(t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor)}function yn(t,e,i,n,r,o,a){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=b(s);if(wn(e,"shadowBlur",i.textBoxShadowBlur||0),wn(e,"shadowColor",i.textBoxShadowColor||"transparent"),wn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),wn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?ln(e,{x:n,y:r,width:o,height:a,r:c}):e.rect(n,r,o,a),e.closePath()}if(h)if(wn(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&&Wi(f)&&e.drawImage(f,n,r,o,a)}if(l&&u)if(wn(e,"lineWidth",l),wn(e,"strokeStyle",u),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 xn(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+Mn(l[0],n.width),o=n.y+Mn(l[1],n.height);else{var u=e&&e.calculateTextPosition?e.calculateTextPosition(wv,i,n):Ki(wv,i,n);r=u.x,o=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(r+=h[0],o+=h[1])}return t=t||{},t.baseX=r,t.baseY=o,t.textAlign=a,t.textVerticalAlign=s,t}function wn(t,e,i){return t[e]=Qm(t,e,i),t[e]}function bn(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Sn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Mn(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function In(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Tn(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function Cn(t){t=t||{},Xm.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new nv(t.style,this),this._rect=null,this.__clipPaths=null}function Dn(t){Cn.call(this,t)}function An(t){return parseInt(t,10)}function kn(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Pn(t,e,i){return Av.copy(t.getBoundingRect()),t.transform&&Av.applyTransform(t.transform),kv.width=e,kv.height=i,!Av.intersect(kv)}function Ln(t,e){if(t===e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function On(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function zn(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Rn(t){return"mousewheel"===t&&zp.browser.firefox?"DOMMouseScroll":t}function Nn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Bn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function En(t){t&&(t.zrByTouch=!0)}function Fn(t,e){return be(t.dom,new Gn(t,e),!0)}function Vn(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function Gn(t,e){this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}function Hn(t,e){var i=e.domHandlers;zp.pointerEventsSupported?f(Rv.pointer,function(n){Xn(e,n,function(e){i[n].call(t,e)})}):(zp.touchEventsSupported&&f(Rv.touch,function(n){Xn(e,n,function(r){i[n].call(t,r),Bn(e)})}),f(Rv.mouse,function(n){Xn(e,n,function(r){r=we(r),e.touching||i[n].call(t,r)})}))}function Wn(t,e){function i(i){function n(n){n=we(n),Vn(t,n.target)||(n=Fn(t,n),e.domHandlers[i].call(t,n))}Xn(e,i,n,{capture:!0})}zp.pointerEventsSupported?f(Nv.pointer,i):zp.touchEventsSupported||f(Nv.mouse,i)}function Xn(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,Se(t.domTarget,Rn(e),i,n)}function Yn(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Me(t.domTarget,Rn(i),e[i],t.listenerOpts[i]);t.mounted={}}function Un(t,e){if(t._mayPointerCapture=null,zv&&t._pointerCapturing^e){t._pointerCapturing=e;var i=t._globalHandlerScope;e?Wn(t,i):Yn(i)}}function Zn(t,e){this.domTarget=t,this.domHandlers=e,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function qn(t,e){im.call(this),this.dom=t,this.painterRoot=e,this._localHandlerScope=new Zn(t,Ev),zv&&(this._globalHandlerScope=new Zn(document,Fv)),this._pointerCapturing=!1,this._mayPointerCapture=null,Hn(this,this._localHandlerScope)}function jn(t,e){var i=new Yv(Lp(),t,e);return Wv[i.id]=i,i}function Kn(t){if(t)t.dispose();else{for(var e in Wv)Wv.hasOwnProperty(e)&&Wv[e].dispose();Wv={}}return this}function $n(t){return Wv[t]}function Jn(t,e){Hv[t]=e}function Qn(t){delete Wv[t]}function tr(t){return t instanceof Array?t:null==t?[]:[t]}function er(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function ir(t){return!qv(t)||jv(t)||t instanceof Date?t:t.value}function nr(t){return qv(t)&&!(t instanceof Array)}function rr(t,e){e=(e||[]).slice();var i=g(t||[],function(t){return{exist:t}});return Zv(e,function(t,n){if(qv(t)){for(var r=0;r<i.length;r++)if(!i[r].option&&null!=t.id&&i[r].exist.id===t.id+"")return i[r].option=t,void(e[n]=null);for(var r=0;r<i.length;r++){var o=i[r].exist;if(!(i[r].option||null!=o.id&&null!=t.id||null==t.name||sr(t)||sr(o)||o.name!==t.name+""))return i[r].option=t,void(e[n]=null)}}}),Zv(e,function(t){if(qv(t)){for(var e=0;e<i.length;e++){var n=i[e].exist;if(!i[e].option&&!sr(n)&&null==t.id){i[e].option=t;break}}e>=i.length&&i.push({option:t})}}),i}function or(t){var e=E();Zv(t,function(t){var i=t.exist;i&&e.set(i.id,t)}),Zv(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={})}),Zv(t,function(t,i){var n=t.exist,r=t.option,o=t.keyInfo;if(qv(r)){if(o.name=null!=r.name?r.name+"":n?n.name:Kv+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 ar(t){var e=t.name;return!(!e||!e.indexOf(Kv))}function sr(t){return qv(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")}function lr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?g(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?g(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function ur(){var t="__\x00ec_inner_"+Jv++ +"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function hr(t,e,i){if(b(e)){var n={};n[e+"Index"]=0,e=n}var r=i&&i.defaultMainType;!r||cr(e,r+"Index")||cr(e,r+"Id")||cr(e,r+"Name")||(e[r+"Index"]=0);var o={};return Zv(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&&u(i.includeMainTypes,s)<0)){var h={mainType:s};("index"!==l||"all"!==n)&&(h[l]=n);var c=t.queryComponents(h);o[s+"Models"]=c,o[s+"Model"]=c[0]}}),o}function cr(t,e){return t&&t.hasOwnProperty(e)}function dr(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function fr(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function gr(t){return"auto"===t?zp.domSupported?"html":"richText":t||"html"}function pr(t,e){var i=E(),n=[];return f(t,function(t){var r=e(t);(i.get(r)||(n.push(r),i.set(r,[]))).push(t)}),{keys:n,buckets:i}}function mr(t){var e={main:"",sub:""};return t&&(t=t.split(Qv),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){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return a(i.prototype,t),i.extend=this.extend,i.superCall=xr,i.superApply=wr,h(i,this),i.superClass=e,i}}function _r(t){var e=["__\x00is_clz",ey++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function xr(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[ty]||(e=n[t.main]={},e[ty]=!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!==ty){var r=i(e);r[e.sub]=t}}else n[e.main]=t;return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[ty]&&(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[ty]?f(i,function(t,i){i!==ty&&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[ty]},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>-uy&&uy>t}function Mr(t){return t>uy||-uy>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 Cr(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,f=0;if(Sr(h)&&Sr(c))if(Sr(s))o[0]=0;else{var g=-l/s;g>=0&&1>=g&&(o[f++]=g)}else{var p=c*c-4*h*d;if(Sr(p)){var m=c/h,g=-s/a+m,v=-m/2;g>=0&&1>=g&&(o[f++]=g),v>=0&&1>=v&&(o[f++]=v)}else if(p>0){var y=ly(p),_=h*s+1.5*a*(-c+y),x=h*s+1.5*a*(-c-y);_=0>_?-sy(-_,dy):sy(_,dy),x=0>x?-sy(-x,dy):sy(x,dy);var g=(-s-(_+x))/(3*a);g>=0&&1>=g&&(o[f++]=g)}else{var w=(2*h*s-3*a*c)/(2*ly(h*h*h)),b=Math.acos(w)/3,S=ly(h),M=Math.cos(b),g=(-s-2*S*M)/(3*a),v=(-s+S*(M+cy*Math.sin(b)))/(3*a),I=(-s+S*(M-cy*Math.sin(b)))/(3*a);g>=0&&1>=g&&(o[f++]=g),v>=0&&1>=v&&(o[f++]=v),I>=0&&1>=I&&(o[f++]=I)}}return f}function Dr(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 u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(Sr(h))r[0]=-o/(2*a);else if(h>0){var c=ly(h),u=(-o+c)/(2*a),d=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),d>=0&&1>=d&&(r[l++]=d)}}return l}function Ar(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function kr(t,e,i,n,r,o,a,s,l,u,h){var c,d,f,g,p,m=.005,v=1/0;fy[0]=l,fy[1]=u;for(var y=0;1>y;y+=.05)gy[0]=Ir(t,i,r,a,y),gy[1]=Ir(e,n,o,s,y),g=Qp(fy,gy),v>g&&(c=y,v=g);v=1/0;for(var _=0;32>_&&!(hy>m);_++)d=c-m,f=c+m,gy[0]=Ir(t,i,r,a,d),gy[1]=Ir(e,n,o,s,d),g=Qp(gy,fy),d>=0&&v>g?(c=d,v=g):(py[0]=Ir(t,i,r,a,f),py[1]=Ir(e,n,o,s,f),p=Qp(py,fy),1>=f&&v>p?(c=f,v=p):m*=.5);return h&&(h[0]=Ir(t,i,r,a,c),h[1]=Ir(e,n,o,s,c)),ly(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 u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(Sr(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=ly(h),u=(-a+c)/(2*o),d=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),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 Rr(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 Nr(t,e,i,n,r,o,a,s,l){var u,h=.005,c=1/0;fy[0]=a,fy[1]=s;for(var d=0;1>d;d+=.05){gy[0]=Pr(t,i,r,d),gy[1]=Pr(e,n,o,d);var f=Qp(fy,gy);c>f&&(u=d,c=f)}c=1/0;for(var g=0;32>g&&!(hy>h);g++){var p=u-h,m=u+h;gy[0]=Pr(t,i,r,p),gy[1]=Pr(e,n,o,p);var f=Qp(gy,fy);if(p>=0&&c>f)u=p,c=f;else{py[0]=Pr(t,i,r,m),py[1]=Pr(e,n,o,m);var v=Qp(py,fy);1>=m&&c>v?(u=m,c=v):h*=.5}}return l&&(l[0]=Pr(t,i,r,u),l[1]=Pr(e,n,o,u)),ly(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;n<t.length;n++)r=t[n],o=my(o,r[0]),a=vy(a,r[0]),s=my(s,r[1]),l=vy(l,r[1]);e[0]=o,e[1]=s,i[0]=a,i[1]=l}}function Er(t,e,i,n,r,o){r[0]=my(t,i),r[1]=my(e,n),o[0]=vy(t,i),o[1]=vy(e,n)}function Fr(t,e,i,n,r,o,a,s,l,u){var h,c=Dr,d=Ir,f=c(t,i,r,a,My);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,h=0;f>h;h++){var g=d(t,i,r,a,My[h]);l[0]=my(g,l[0]),u[0]=vy(g,u[0])}for(f=c(e,n,o,s,Iy),h=0;f>h;h++){var p=d(e,n,o,s,Iy[h]);l[1]=my(p,l[1]),u[1]=vy(p,u[1])}l[0]=my(t,l[0]),u[0]=vy(t,u[0]),l[0]=my(a,l[0]),u[0]=vy(a,u[0]),l[1]=my(e,l[1]),u[1]=vy(e,u[1]),l[1]=my(s,l[1]),u[1]=vy(s,u[1])}function Vr(t,e,i,n,r,o,a,s){var l=zr,u=Pr,h=vy(my(l(t,i,r),1),0),c=vy(my(l(e,n,o),1),0),d=u(t,i,r,h),f=u(e,n,o,c);a[0]=my(t,r,d),a[1]=my(e,o,f),s[0]=vy(t,r,d),s[1]=vy(e,o,f)}function Gr(t,e,i,n,r,o,a,s,l){var u=ae,h=se,c=Math.abs(r-o);if(1e-4>c%xy&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(wy[0]=_y(r)*i+t,wy[1]=yy(r)*n+e,by[0]=_y(o)*i+t,by[1]=yy(o)*n+e,u(s,wy,by),h(l,wy,by),r%=xy,0>r&&(r+=xy),o%=xy,0>o&&(o+=xy),r>o&&!a?o+=xy:o>r&&a&&(r+=xy),a){var d=o;o=r,r=d}for(var f=0;o>f;f+=Math.PI/2)f>r&&(Sy[0]=_y(f)*i+t,Sy[1]=yy(f)*n+e,u(s,Sy,s),h(l,Sy,l))}function Hr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=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),u=(t*n-i*e)/(t-i);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Wr(t,e,i,n,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>r+c&&u>a+c||t-c>u&&i-c>u&&r-c>u&&a-c>u)return!1;var d=kr(t,e,i,n,r,o,a,s,u,h,null);return c/2>=d}function Xr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)return!1;var h=Nr(t,e,i,n,r,o,s,l,null);return u/2>=h}function Yr(t){return t%=Fy,0>t&&(t+=Fy),t}function Ur(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-r)%Vy<1e-4)return!0;if(o){var c=n;n=Yr(r),r=Yr(c)}else n=Yr(n),r=Yr(r);n>r&&(r+=Vy);var d=Math.atan2(l,s);return 0>d&&(d+=Vy),d>=n&&r>=d||d+Vy>=n&&r>=d+Vy}function Zr(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 qr(t,e){return Math.abs(t-e)<Wy}function jr(){var t=Yy[0];Yy[0]=Yy[1],Yy[1]=t}function Kr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=Cr(e,n,o,s,u,Xy);if(0===h)return 0;for(var c,d,f=0,g=-1,p=0;h>p;p++){var m=Xy[p],v=0===m||1===m?.5:1,y=Ir(t,i,r,a,m);l>y||(0>g&&(g=Dr(e,n,o,s,Yy),Yy[1]<Yy[0]&&g>1&&jr(),c=Ir(e,n,o,s,Yy[0]),g>1&&(d=Ir(e,n,o,s,Yy[1]))),f+=2===g?m<Yy[0]?e>c?v:-v:m<Yy[1]?c>d?v:-v:d>s?v:-v:m<Yy[0]?e>c?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,Xy);if(0===l)return 0;var u=zr(e,n,o);if(u>=0&&1>=u){for(var h=0,c=Pr(e,n,o,u),d=0;l>d;d++){var f=0===Xy[d]||1===Xy[d]?.5:1,g=Pr(t,i,r,Xy[d]);a>g||(h+=Xy[d]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===Xy[0]||1===Xy[0]?.5:1,g=Pr(t,i,r,Xy[0]);return a>g?0:e>o?f:-f}function Jr(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);Xy[0]=-l,Xy[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%Hy){n=0,r=Hy;var h=o?1:-1;return a>=Xy[0]+t&&a<=Xy[1]+t?h:0}if(o){var l=n;n=Yr(r),r=Yr(l)}else n=Yr(n),r=Yr(r);n>r&&(r+=Hy);for(var c=0,d=0;2>d;d++){var f=Xy[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;0>g&&(g=Hy+g),(g>=n&&r>=g||g+Hy>=n&&r>=g+Hy)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),c+=h)}}return c}function Qr(t,e,i,n,r){for(var o=0,a=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];switch(c===Gy.M&&h>1&&(i||(o+=Zr(a,s,l,u,n,r))),1===h&&(a=t[h],s=t[h+1],l=a,u=s),c){case Gy.M:l=t[h++],u=t[h++],a=l,s=u;break;case Gy.L:if(i){if(Hr(a,s,t[h],t[h+1],e,n,r))return!0}else o+=Zr(a,s,t[h],t[h+1],n,r)||0;a=t[h++],s=t[h++];break;case Gy.C:if(i){if(Wr(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,r))return!0}else o+=Kr(a,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],n,r)||0;a=t[h++],s=t[h++];break;case Gy.Q:if(i){if(Xr(a,s,t[h++],t[h++],t[h],t[h+1],e,n,r))return!0}else o+=$r(a,s,t[h++],t[h++],t[h],t[h+1],n,r)||0;a=t[h++],s=t[h++];break;case Gy.A:var d=t[h++],f=t[h++],g=t[h++],p=t[h++],m=t[h++],v=t[h++];h+=1;var y=1-t[h++],_=Math.cos(m)*g+d,x=Math.sin(m)*p+f;h>1?o+=Zr(a,s,_,x,n,r):(l=_,u=x);var w=(n-d)*p/g+d;if(i){if(Ur(d,f,p,m,m+v,y,e,w,r))return!0}else o+=Jr(d,f,p,m,m+v,y,w,r);a=Math.cos(m+v)*g+d,s=Math.sin(m+v)*p+f;break;case Gy.R:l=a=t[h++],u=s=t[h++];var b=t[h++],S=t[h++],_=l+b,x=u+S;if(i){if(Hr(l,u,_,u,e,n,r)||Hr(_,u,_,x,e,n,r)||Hr(_,x,l,x,e,n,r)||Hr(l,x,l,u,e,n,r))return!0}else o+=Zr(_,u,_,x,n,r),o+=Zr(l,x,l,u,n,r);break;case Gy.Z:if(i){if(Hr(a,s,l,u,e,n,r))return!0}else o+=Zr(a,s,l,u,n,r);a=l,s=u}}return i||qr(s,u)||(o+=Zr(a,s,l,u,n,r)||0),0!==o}function to(t,e,i){return Qr(t,0,!1,e,i)}function eo(t,e,i,n){return Qr(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,u,h){var c=l*(n_/180),d=i_(c)*(t-i)/2+e_(c)*(e-n)/2,f=-1*e_(c)*(t-i)/2+i_(c)*(e-n)/2,g=d*d/(a*a)+f*f/(s*s);g>1&&(a*=t_(g),s*=t_(g));var p=(r===o?-1:1)*t_((a*a*s*s-a*a*f*f-s*s*d*d)/(a*a*f*f+s*s*d*d))||0,m=p*a*f/s,v=p*-s*d/a,y=(t+i)/2+i_(c)*m-e_(c)*v,_=(e+n)/2+e_(c)*m+i_(c)*v,x=a_([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=a_(w,b);o_(w,b)<=-1&&(S=n_),o_(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*n_),1===o&&0>S&&(S+=2*n_),h.addData(u,y,_,a,s,x,S,c,o)}function ro(t){if(!t)return new Ey;for(var e,i=0,n=0,r=i,o=n,a=new Ey,s=Ey.CMD,l=t.match(s_),u=0;u<l.length;u++){for(var h,c=l[u],d=c.charAt(0),f=c.match(l_)||[],g=f.length,p=0;g>p;p++)f[p]=parseFloat(f[p]);for(var m=0;g>m;){var v,y,_,x,w,b,S,M=i,I=n;switch(d){case"l":i+=f[m++],n+=f[m++],h=s.L,a.addData(h,i,n);break;case"L":i=f[m++],n=f[m++],h=s.L,a.addData(h,i,n);break;case"m":i+=f[m++],n+=f[m++],h=s.M,a.addData(h,i,n),r=i,o=n,d="l";break;case"M":i=f[m++],n=f[m++],h=s.M,a.addData(h,i,n),r=i,o=n,d="L";break;case"h":i+=f[m++],h=s.L,a.addData(h,i,n);break;case"H":i=f[m++],h=s.L,a.addData(h,i,n);break;case"v":n+=f[m++],h=s.L,a.addData(h,i,n);break;case"V":n=f[m++],h=s.L,a.addData(h,i,n);break;case"C":h=s.C,a.addData(h,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":h=s.C,a.addData(h,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(),C=a.data;e===s.C&&(v+=i-C[T-4],y+=n-C[T-3]),h=s.C,M=f[m++],I=f[m++],i=f[m++],n=f[m++],a.addData(h,v,y,M,I,i,n);break;case"s":v=i,y=n;var T=a.len(),C=a.data;e===s.C&&(v+=i-C[T-4],y+=n-C[T-3]),h=s.C,M=i+f[m++],I=n+f[m++],i+=f[m++],n+=f[m++],a.addData(h,v,y,M,I,i,n);break;case"Q":M=f[m++],I=f[m++],i=f[m++],n=f[m++],h=s.Q,a.addData(h,M,I,i,n);break;case"q":M=f[m++]+i,I=f[m++]+n,i+=f[m++],n+=f[m++],h=s.Q,a.addData(h,M,I,i,n);break;case"T":v=i,y=n;var T=a.len(),C=a.data;e===s.Q&&(v+=i-C[T-4],y+=n-C[T-3]),i=f[m++],n=f[m++],h=s.Q,a.addData(h,v,y,i,n);break;case"t":v=i,y=n;var T=a.len(),C=a.data;e===s.Q&&(v+=i-C[T-4],y+=n-C[T-3]),i+=f[m++],n+=f[m++],h=s.Q,a.addData(h,v,y,i,n);break;case"A":_=f[m++],x=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i=f[m++],n=f[m++],h=s.A,no(M,I,i,n,b,S,_,x,w,h,a);break;case"a":_=f[m++],x=f[m++],w=f[m++],b=f[m++],S=f[m++],M=i,I=n,i+=f[m++],n+=f[m++],h=s.A,no(M,I,i,n,b,S,_,x,w,h,a)}}("z"===d||"Z"===d)&&(h=s.Z,a.addData(h),i=r,n=o),e=h}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){Qy(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 uo(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 ho(t,e,i){var n=e.points,r=e.smooth;if(n&&n.length>=2){if(r&&"spline"!==r){var o=m_(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],u=o[2*s+1],h=n[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===r&&(n=p_(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&&(__(2*n)===__(2*r)&&(t.x1=t.x2=go(n,s,!0)),__(2*o)===__(2*a)&&(t.y1=t.y2=go(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=go(n,s,!0),t.y=go(r,s,!0),t.width=Math.max(go(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(go(r+a,s,!1)-t.y,0===a?0:1))}}function go(t,e,i){if(!e)return t;var n=__(2*t);return(n+__(e))%2===0?n/2:(n+(i?1:-1))/2}function po(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 _o(t,e){G_[t]=e}function xo(t){return G_.hasOwnProperty(t)?G_[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 Co(t){return null!=t&&"none"!==t}function Do(t){if("string"!=typeof t)return t;var e=X_.get(t);return e||(e=ni(t,-.1),1e4>Y_&&(X_.set(t,e),Y_++)),e}function Ao(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),Qo(o),n||Ao(r),o.extendFrom(e),Po(o,e,"fill"),Po(o,e,"stroke"),Jo(o),n||(t.dirty(!1),t.z2+=R_)}}}function Po(t,e,i){!Co(e[i])&&Co(t[i])&&(t[i]=Do(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&&(Qo(i),t.setStyle(n),Jo(i));var r=t.__cachedNormalZ2;null!=r&&t.z2-r===R_&&(t.z2=r)}}function Oo(t,e,i){var n,r=E_,o=E_;t.__highlighted&&(r=B_,n=!0),e(t,i),t.__highlighted&&(o=B_,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 Ro(t){!Fo(this,t)&&!this.__highByOuter&&Oo(this,ko)}function No(t){!Fo(this,t)&&!this.__highByOuter&&Oo(this,Lo)}function Bo(t){this.__highByOuter|=1<<(t||0),Oo(this,ko)}function Eo(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",Ro)[n]("mouseout",No),t[n]("emphasis",Bo)[n]("normal",Eo),t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i}}function Ho(t){return!(!t||!t.__highDownDispatcher)}function Wo(t){var e=V_[t];return null==e&&32>=F_&&(e=V_[t]=F_++),e}function Xo(t,e,i,n,r,o,a){r=r||z_;var s,l=r.labelFetcher,u=r.labelDataIndex,h=r.labelDimIndex,c=r.labelProp,d=i.getShallow("show"),f=n.getShallow("show");(d||f)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h,c)),null==s&&(s=w(r.defaultText)?r.defaultText(u,r):r.defaultText));var g=d?s:null,p=f?A(l?l.getFormattedLabel(u,"emphasis",null,h,c):null,s):null;(null!=g||null!=p)&&(Uo(t,i,o,r),Uo(e,n,a,r,!0)),t.text=g,e.text=p}function Yo(t,e,i){var n=t.style;e&&(Qo(n),t.setStyle(e),Jo(n)),n=t.__hoverStl,i&&n&&(Qo(n),a(n,i),Jo(n))}function Uo(t,e,i,n,r){return qo(t,e,n,r),i&&a(t,i),t}function Zo(t,e,i){var n,r={isRectText:!0};i===!1?n=!0:r.autoColor=i,qo(t,e,r,n)}function qo(t,e,i,n){if(i=i||z_,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=A(e.getShallow("distance"),n?null:5)}var a,s=e.ecModel,l=s&&s.option.textStyle,u=jo(e);if(u){a={};for(var h in u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);Ko(a[h]={},c,l,i,n)}}return t.rich=a,Ko(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function jo(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||z_).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||z_,t.textFill=$o(e.getShallow("color"),n)||i.color,t.textStroke=$o(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=A(e.getShallow("textBorderWidth"),i.textBorderWidth),r||(o&&(t.insideRollbackOpt=n,Jo(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 Jo(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 Qo(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),u=n.getShallow("animationEasing"+s),h=n.getShallow("animationDelay"+s);"function"==typeof h&&(h=h(r,n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null)),"function"==typeof l&&(l=l(r)),l>0?e.animateTo(i,l,h||0,u,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;)Ne(i,t.getLocalTransform(),i),t=t.parent;return i}function oa(t,e,i){return e&&!d(e)&&(e=_m.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:W(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 g(t,function(t){var i=t[0];i=L_(i,e.x),i=O_(i,e.x+e.width);var n=t[1];return n=L_(n,e.y),n=O_(n,e.y+e.height),[i,n]})}function ua(t,e){var i=L_(t.x,e.x),n=O_(t.x+t.width,e.x+e.width),r=L_(t.y,e.y),o=O_(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 ha(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];o<r.length;o++){var s=r[o];if(da(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function da(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,d=fa(h,c,l,u);if(ga(d))return!1;var f=t-r,g=e-o,p=fa(f,g,l,u)/d;if(0>p||p>1)return!1;var m=fa(f,g,h,c)/d;return 0>m||m>1?!1:!0}function fa(t,e,i,n){return t*n-i*e}function ga(t){return 1e-6>=t&&t>=-1e-6}function pa(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function ma(t,e,i){for(var n=0;n<e.length&&(!e[n]||(t=t&&"object"==typeof t?t[e[n]]:null,null!=t));n++);return null==t&&i&&(t=i.get(e)),t}function va(t,e){var i=J_(t).getParent;
return i?i.call(t,e):t.parentModel}function ya(t){return[t||"",Q_++,Math.random().toFixed(5)].join("_")}function _a(t){var e={};return t.registerSubTypeDefaulter=function(t,i){t=mr(t),e[t.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=mr(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r},t}function xa(t,e){function i(t){var i={},o=[];return f(t,function(a){var s=n(i,a),l=s.originalDeps=e(a),h=r(l,t);s.entryCount=h.length,0===s.entryCount&&o.push(a),f(h,function(t){u(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);u(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return f(t,function(t){u(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(f(t,function(t){h[t]=!0});u.length;){var c=u.pop(),d=l[c],g=!!h[c];g&&(n.call(r,c,d.originalDeps.slice()),delete h[c]),f(d.successor,g?a:o)}f(h,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 Ca(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 Da(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 Aa(t,e,i){if(!t[e])return 0;var n=p(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),o=g(t,function(t){return(isNaN(t)?0:t)/n*r*100}),a=100*r,s=g(o,function(t){return Math.floor(t)}),l=p(s,function(t,e){return t+e},0),u=g(o,function(t,e){return t-s[e]});a>l;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,f=u.length;f>d;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[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>-tx&&tx>t}function La(t){if(t instanceof Date)return t;if("string"==typeof t){var e=ix.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 Ra(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 Na(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]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]===(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>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 Ea(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(ox,function(t,e){return ax[e]})}function Ha(t,e,i){x(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=sx[o];t=t.replace(lx(a),lx(a,0))}for(var s=0;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(lx(sx[l],s),i?Ga(u):u)}return t}function Wa(t,e,i){return f(e,function(e,n){t=t.replace("{"+n+"}",i?Ga(e):e)}),t}function Xa(t,e){t=b(t)?{color:t,extraCssText:e}:t||{};var i=t.color,n=t.type,e=t.extraCssText,r=t.renderMode||"html",o=t.markerId||"X";return i?"html"===r?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ga(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Ga(i)+";"+(e||"")+'"></span>':{renderMode:r,content:"{marker"+o+"|}  ",style:{color:i}}:""}function Ya(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ua(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"](),u=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),c=n["get"+r+"Milliseconds"]();return t=t.replace("MM",Ya(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100).replace("dd",Ya(s,2)).replace("d",s).replace("hh",Ya(l,2)).replace("h",l).replace("mm",Ya(u,2)).replace("m",u).replace("ss",Ya(h,2)).replace("s",h).replace("SSS",Ya(c,3))}function Za(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function qa(t){return Yi(t.text,t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich,t.truncate)}function ja(t,e,i,n,r,o,a,s){return Yi(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,u){var h,c,d=l.position,f=l.getBoundingRect(),g=e.childAt(u+1),p=g&&g.getBoundingRect();if("horizontal"===t){var m=f.width+(p?-p.x+f.x:0);h=o+m,h>n||l.newline?(o=0,h=m,a+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.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=h+i:a=c+i)})}function Ja(t,e,i){i=rx(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),u=Sa(t.width,n),h=Sa(t.height,r),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var g=new Ti(o+i[3],a+i[0],u,h);return g.margin=i,g}function Qa(t,e){return null!=t[fx[e][0]]||null!=t[fx[e][1]]&&null!=t[fx[e][2]]}function ts(t,e,i){function n(i,n){var a={},l=0,u={},h=0,c=2;if(cx(i,function(e){u[e]=t[e]}),cx(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var d=0;d<i.length;d++){var f=i[d];if(!r(a,f)&&r(t,f)){a[f]=t[f];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,i){cx(t,function(t){e[t]=i[t]})}!S(i)&&(i={});var s=i.ignoreSize;!x(s)&&(s=[s,s]);var l=n(fx[0],0),u=n(fx[1],1);a(fx[0],t,l),a(fx[1],t,u)}function es(t){return is({},t)}function is(t,e){return e&&t&&cx(dx,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function ns(t){var e=[];return f(vx.getClassesByMainType(t),function(t){e=e.concat(t.prototype.dependencies||[])}),e=g(e,function(t){return mr(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e}function rs(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function os(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===Tx?{}:[]),this.sourceFormat=t.sourceFormat||Cx,this.seriesLayoutBy=t.seriesLayoutBy||Ax,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&E(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function as(t){var e=t.option.source,i=Cx;if(I(e))i=Dx;else if(x(e)){0===e.length&&(i=Mx);for(var n=0,r=e.length;r>n;n++){var o=e[n];if(null!=o){if(x(o)){i=Mx;break}if(S(o)){i=Ix;break}}}}else if(S(e)){for(var a in e)if(e.hasOwnProperty(a)&&d(e[a])){i=Tx;break}}else if(null!=e)throw new Error("Invalid data");Lx(t).sourceFormat=i}function ss(t){return Lx(t).source}function ls(t){Lx(t).datasetMap=E()}function us(t){var e=t.option,i=e.data,n=I(i)?Dx:Sx,r=!1,o=e.seriesLayoutBy,a=e.sourceHeader,s=e.dimensions,l=ms(t);if(l){var u=l.option;i=u.source,n=Lx(l).sourceFormat,r=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var h=hs(i,n,o,a,s);Lx(t).source=new os({data:i,fromDataset:r,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:e.encode})}function hs(t,e,i,n,r){if(!t)return{dimensionsDefine:cs(r)};var o,a;if(e===Mx)"auto"===n||null==n?ds(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},i,t,10):a=n?1:0,r||1!==a||(r=[],ds(function(t,e){r[e]=null!=t?t:""},i,t)),o=r?r.length:i===kx?t.length:t[0]?t[0].length:null;else if(e===Ix)r||(r=fs(t));else if(e===Tx)r||(r=[],f(t,function(t,e){r.push(e)}));else if(e===Sx){var s=ir(t[0]);o=x(s)&&s.length||1}return{startIndex:a,dimensionsDefine:cs(r),dimensionsDetectCount:o}}function cs(t){if(t){var e=E();return g(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 ds(t,e,i,n){if(null==n&&(n=1/0),e===kx)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&n>r;r++)t(o[r],r)}function fs(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return f(e,function(t,e){n.push(e)}),n}}function gs(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=ms(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,d=Lx(c).datasetMap,g=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 p=d.get(g)||d.set(g,{categoryWayDim:l,valueWayDim:0});return f(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=p.valueWayDim;n(o[i],l,a),n(h,l,a),p.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{var l=p.categoryWayDim;n(o[i],l,a),n(h,l,a),p.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function ps(t,e,i){var n={},r=ms(t);if(!r)return n;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===Ix||a===Tx)&&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=[],u=0,h=Math.min(5,i);h>u;u++){var c=ys(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var d=c===Px.Not;if(d&&null==n.v&&u!==o&&(n.v=u),(null==n.n||n.n===n.v||!d&&l[n.n]===Px.Not)&&(n.n=u),t(n)&&l[n.n]!==Px.Not)return n;d||(c===Px.Might&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v)&&(r.n=u))}return t(n)?n:t(r)?r:null}();if(l){n.value=l.v;var u=null!=o?o:l.n;n.itemName=[u],n.seriesName=[u]}return n}function ms(t){var e=t.option,i=e.data;return i?void 0:t.ecModel.getComponent("dataset",e.datasetIndex||0)}function vs(t,e){return ys(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ys(t,e,i,n,r,o){function a(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?Px.Might:Px.Not:e&&"-"!==t?Px.Must:void 0}var s,l=5;if(I(t))return Px.Not;var u,h;if(n){var c=n[o];S(c)?(u=c.name,h=c.type):b(c)&&(u=c)}if(null!=h)return"ordinal"===h?Px.Must:Px.Not;if(e===Mx)if(i===kx){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;f<t.length&&l>f;f++){var g=t[r+f];if(g&&null!=(s=a(g[o])))return s}else if(e===Ix){if(!u)return Px.Not;for(var f=0;f<t.length&&l>f;f++){var p=t[f];if(p&&null!=(s=a(p[u])))return s}}else if(e===Tx){if(!u)return Px.Not;var d=t[u];if(!d||I(d))return Px.Not;for(var f=0;f<d.length&&l>f;f++)if(null!=(s=a(d[f])))return s}else if(e===Sx)for(var f=0;f<t.length&&l>f;f++){var p=t[f],m=ir(p);if(!x(m))return Px.Not;if(null!=(s=a(m[o])))return s}return Px.Not}function _s(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||vx.hasClass(o)||("object"==typeof e?t[o]=t[o]?r(t[o],e,!1):n(e):null==t[o]&&(t[o]=e))})}function ws(t){t=t,this.option={},this.option[Ox]=1,this._componentsMap=E({series:[]}),this._seriesIndices,this._seriesIndicesMap,xs(t,this._theme.option),r(t,_x,!1),this.mergeOption(t)}function bs(t,e){x(e)||(e=e?[e]:[]);var i={};return f(e,function(e){i[e]=(t.get(e)||[]).slice()}),i}function Ss(t,e,i){var n=e.type?e.type:i?i.subType:vx.determineSubType(t,e);return n}function Ms(t,e){t._seriesIndicesMap=E(t._seriesIndices=g(e,function(t){return t.componentIndex})||[])}function Is(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t.subType===e.subType}):t}function Ts(t){f(Rx,function(e){this[e]=y(t[e],t)},this)}function Cs(){this._coordinateSystems=[]}function Ds(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function As(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;Bx(l,function(t){t&&t.option&&(t.query?a.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=s),Bx([r].concat(o).concat(g(a,function(t){return t.option})),function(t){Bx(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(Gx);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||{},Bx(e,function(e,i){if(null!=e){var n=t[i];if(vx.hasClass(i)){e=tr(e),n=tr(n);var r=rr(n,e);t[i]=Fx(r,function(t){return t.option&&t.exist?Vx(t.exist,t.option,!0):t.exist||t.option})}else t[i]=Vx(n,e,!0)}})}function zs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=Xx.length;n>i;i++){var o=Xx[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 Rs(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 Ns(t){Rs(t,"itemStyle"),Rs(t,"lineStyle"),Rs(t,"areaStyle"),Rs(t,"label"),Rs(t,"labelLine"),Rs(t,"upperLabel"),Rs(t,"edgeLabel")}function Bs(t,e){var i=Wx(t)&&t[e],n=Wx(i)&&i.textStyle;if(n)for(var r=0,o=$v.length;o>r;r++){var e=$v[r];n.hasOwnProperty(e)&&(i[e]=n[e])}}function Es(t){t&&(Ns(t),Bs(t,"label"),t.emphasis&&Bs(t.emphasis,"label"))}function Fs(t){if(Wx(t)){zs(t),Ns(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),Es(e));var i=t.markLine;i&&(zs(i),Es(i));var n=t.markArea;n&&Es(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<o.length;a++)Es(o[a]);f(t.categories,function(t){Ns(t)})}if(r&&!I(r))for(var a=0;a<r.length;a++)Es(r[a]);var e=t.markPoint;if(e&&e.data)for(var s=e.data,a=0;a<s.length;a++)Es(s[a]);var i=t.markLine;if(i&&i.data)for(var l=i.data,a=0;a<l.length;a++)x(l[a])?(Es(l[a][0]),Es(l[a][1])):Es(l[a]);"gauge"===t.type?(Bs(t,"axisLabel"),Bs(t,"title"),Bs(t,"detail")):"treemap"===t.type?(Rs(t.breadcrumb,"itemStyle"),f(t.levels,function(t){Ns(t)})):"tree"===t.type&&Ns(t.leaves)}}function Vs(t){return x(t)?t:t?[t]:[]}function Gs(t){return(x(t)?t[0]:t)||{}}function Hs(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&(i=i&&i[e[n]],null!=i);n++);return i}function Ws(t,e,i,n){e=e.split(",");for(var r,o=t,a=0;a<e.length-1;a++)r=e[a],null==o[r]&&(o[r]={}),o=o[r];(n||null==o[e[a]])&&(o[e[a]]=i)}function Xs(t){f(Ux,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Ys(t){f(t,function(e,i){var n=[],r=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=a.map(o,function(o,l,u){var h=a.get(e.stackedDimension,u);if(isNaN(h))return r;var c,d;s?d=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=0/0,g=i-1;g>=0;g--){var p=t[g];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,c)),d>=0){var m=p.data.getByRawIndex(p.stackResultDimension,d);if(h>=0&&m>0||0>=h&&0>m){h+=m,f=m;break}}}return n[0]=h,n[1]=f,n});a.hostModel.setData(l),e.data=l})}function Us(t,e){os.isInstance(t)||(t=os.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===Dx&&(this._offset=0,this._dimSize=e,this._data=i);var r=$x[n===Mx?n+"_"+t.seriesLayoutBy:n];a(this,r)}function Zs(){return this._data.length}function qs(t){return this._data[t]}function js(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Ks(t,e,i){return null!=i?t[i]:t}function $s(t,e,i,n){return Js(t[n],this._dimensionInfos[e])}function Js(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+La(t)),null==t||""===t?0/0:+t}function Qs(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r,o,a=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(r=s.name,o=s.index),Jx[a](n,e,o,r)}}}function tl(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===Sx||n===Ix){var r=t.getRawDataItem(e);return n!==Sx||S(r)||(r=null),r?r[i]:void 0}}}function el(t){return new il(t)}function il(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function nl(t,e,i,n,r,o){nw.reset(i,n,r,o),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:nw.next},t.context)}function rl(t,e){t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null;var i,n;!e&&t._reset&&(i=t._reset(t.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),x(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var r=t._downstream;return r&&r.dirty(),n}function ol(t){var e=t.name;ar(t)||(t.name=al(t)||e)}function al(t){var e=t.getRawData(),i=e.mapDimension("seriesName",!0),n=[];return f(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function sl(t){return t.model.getRawData().count()}function ll(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),ul}function ul(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function hl(t,e){f(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,_(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 qm,this.uid=ya("viewChart"),this.renderTask=el({plan:ml,reset:vl}),this.renderTask.context={view:this}}function gl(t,e,i){if(t&&(t.trigger(e,i),t.isGroup&&!Ho(t)))for(var n=0,r=t.childCount();r>n;n++)gl(t.childAt(n),e,i)}function pl(t,e,i){var n=lr(t,e),r=e&&null!=e.highlightKey?Wo(e.highlightKey):null;null!=n?f(tr(n),function(e){gl(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){gl(t,i,r)})}function ml(t){return hw(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&&uw(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),dw[l]}function yl(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=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?u:h)-t,clearTimeout(c),d?c=setTimeout(n,t):o>=0?n():c=setTimeout(n,-o),u=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function _l(t,e,i,n){var r=t[e];if(r){var o=r[fw]||r,a=r[pw],s=r[gw];if(s!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=yl(o,i,"debounce"===n),r[fw]=o,r[pw]=n,r[gw]=i}return r}}function xl(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=E()}function wl(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,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){o(r,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),bw(u,n);var d=t.getPerformArgs(u,r.block);c.each(function(t){t.perform(d)}),a|=u.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),bw(s,n),a|=s.perform(l)})}}),t.unfinished|=a}function bl(t,e,i,n,r){function o(i){var o=i.uid,s=a.get(o)||a.set(o,el({plan:Dl,reset:Al,count:Pl}));s.context={model:i,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Ll(t,i,s)}var a=i.seriesTaskMap||(i.seriesTaskMap=E()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(o):s?n.eachRawSeriesByType(s,o):l&&l(n,r).each(o);var u=t._pipelineMap;a.each(function(t,e){u.get(e)||(t.dispose(),a.removeKey(e))})}function Sl(t,e,i,n,r){function o(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,el({reset:Il,onDirty:Cl})),a.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=a,n.__block=h,Ll(t,e,n)}var a=i.overallTask=i.overallTask||el({reset:Ml});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:t};var s=a.agentStubMap=a.agentStubMap||E(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,o):u?u(n,r).each(o):(h=!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 Ml(t){t.overallReset(t.ecModel,t.api,t.payload)}function Il(t){return t.overallProgress&&Tl}function Tl(){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 Al(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=tr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?g(e,function(t,e){return kl(e)}):Sw}function kl(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Pl(t){return t.data.count()}function Ll(t,e,i){var n=e.uid,r=t._pipelineMap.get(n);!r.head&&(r.head=i),r.tail&&r.tail.pipe(i),r.tail=i,i.__idxInPipeline=r.count++,i.__pipeline=r}function Ol(t){Mw=null;try{t(Iw,Tw)}catch(e){}return Mw}function zl(t,e){for(var i in e.prototype)t[i]=V}function Rl(t){if(b(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function Nl(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function Bl(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var r=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,r)}i=i.nextSibling}}function El(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Fl(t){for(var e=z(t).split(zw),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([r,o])}return i}function Vl(t,e,i,n){var r=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(Hl(t,e),a(r,Wl(t)),!n))for(var s in Bw)if(Bw.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(r[Bw[s]]=l)}var u=o?"textFill":"fill",h=o?"textStroke":"stroke";e.style=e.style||new nv;var c=e.style;null!=r.fill&&c.set(u,Gl(r.fill,i)),null!=r.stroke&&c.set(h,Gl(r.stroke,i)),f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=r[t]&&c.set(e,parseFloat(r[t]))}),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=r[t]&&c.set(t,r[t])}),r.lineDash&&(e.style.lineDash=z(r.lineDash).split(zw)),c[h]&&"none"!==c[h]&&(e[h]=!0),e.__inheritedStyle=r}function Gl(t,e){var i=e&&t&&t.match(Ew);if(i){var n=z(i[1]),r=e[n];return r}return t}function Hl(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,r=[];i.replace(Fw,function(t,e,i){r.push(e,i)});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1];switch(n=n||Oe(),s){case"translate":a=z(a).split(zw),Be(n,n,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=z(a).split(zw),Fe(n,n,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=z(a).split(zw),Ee(n,n,parseFloat(a[0]));break;case"skew":a=z(a).split(zw),console.warn("Skew transform is not supported yet");break;case"matrix":var a=z(a).split(zw);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 Wl(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n={};Vw.lastIndex=0;for(var r;null!=(r=Vw.exec(e));)n[r[1]]=r[2];for(var o in Bw)Bw.hasOwnProperty(o)&&null!=n[o]&&(i[Bw[o]]=n[o]);return i}function Xl(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 Yl(t,e){var i=new Nl;return i.parse(t,e)}function Ul(t,e){return function(i,n,r){(e||!this._disposed)&&(i=i&&i.toLowerCase(),im.prototype[t].call(this,i,n,r))}}function Zl(){im.call(this)}function ql(t,e,i){function r(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=bb[e]),this.id,this.group,this._dom=t;var o="canvas",a=this._zr=jn(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&&qx(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Cs;var s=this._api=du(this);zi(wb,r),zi(yb,r),this._scheduler=new xl(this,s,yb,wb),im.call(this,this._ecEventProcessor=new fu),this._messageCenter=new Zl,this._initEvents(),this.resize=y(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),iu(a,this),R(this)}function jl(t,e,i){if(!this._disposed){var n,r=this._model,o=this._coordSysMgr.getCoordinateSystems();e=hr(r,e);for(var a=0;a<o.length;a++){var s=o[a];if(s[t]&&null!=(n=s[t](r,e,i)))return n}}}function Kl(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),nu(t,"component",e,i),nu(t,"chart",e,i),i.plan()}function $l(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(!n)return void Yw(t._componentsViews.concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u=i.excludeSeriesId;null!=u&&(u=E(tr(u))),a&&a.eachComponent(l,function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)}function Jl(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})}function Ql(t,e){var i=t.type,n=t.escapeConnect,r=mb[i],o=r.actionInfo,l=(o.update||"update").split(":"),u=l.pop();l=null!=l[0]&&qw(l[0]),this[hb]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=g(t.batch,function(e){return e=s(a({},e),t),e.batch=null,e}));var d,f=[],p="highlight"===i||"downplay"===i;Yw(h,function(t){d=r.action(t,this._model,this._api),d=d||a({},t),d.type=o.event||d.type,f.push(d),p?$l(this,u,t,"series"):l&&$l(this,u,t,l.main,l.sub)},this),"none"===u||p||l||(this[cb]?(Kl(this),gb.update.call(this,t),this[cb]=!1):gb[u].call(this,t)),d=c?{type:o.event||i,escapeConnect:n,batch:f}:f[0],this[hb]=!1,!e&&this._messageCenter.trigger(d.type,d)}function tu(t){for(var e=this._pendingActions;e.length;){var i=e.shift();Ql.call(this,i,t)}}function eu(t){!t&&this.trigger("updated")}function iu(t,e){t.on("rendered",function(){e.trigger("rendered"),!t.animation.isFinished()||e[cb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})}function nu(t,e,i,n){function r(t){var e="_ec_"+t.id+"_"+t.type,r=s[e];if(!r){var h=qw(t.type),c=o?aw.getClass(h.main,h.sub):fl.getClass(h.sub);r=new c,r.init(i,u),s[e]=r,a.push(r),l.add(r.group)}t.__viewId=r.__id=e,r.__alive=!0,r.__model=t,r.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&n.prepareView(r,t,i,u)}for(var o="component"===e,a=o?t._componentsViews:t._chartsViews,s=o?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<a.length;h++)a[h].__alive=!1;o?i.eachComponent(function(t,e){"series"!==t&&r(e)}):i.eachSeries(r);for(var h=0;h<a.length;){var c=a[h];c.__alive?h++:(!o&&c.renderTask.dispose(),l.remove(c.group),c.dispose(i,u),a.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function ru(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function ou(t,e,i,n){au(t,e,i,n),Yw(t._chartsViews,function(t){t.__alive=!1}),su(t,e,i,n),Yw(t._chartsViews,function(t){t.__alive||t.remove(e,i)})}function au(t,e,i,n,r){Yw(r||t._componentsViews,function(t){var r=t.__model;t.render(r,e,i,n),cu(r,t)})}function su(t,e,i,n,r){var o,a=t._scheduler;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;a.updatePayload(s,n),r&&r.get(e.uid)&&s.dirty(),o|=s.perform(a.getPerformArgs(s)),i.group.silent=!!e.get("silent"),cu(e,i),hu(e,i)}),a.unfinished|=o,uu(t,e),yw(t._zr.dom,e)}function lu(t,e){Yw(xb,function(i){i(t,e)})}function uu(t,e){var i=t._zr,n=i.storage,r=0;n.traverse(function(){r++}),r>e.get("hoverLayerThreshold")&&!zp.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 hu(t,e){var i=t.get("blendMode")||null;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 cu(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 du(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 fu(){this.eventInfo}function gu(t){function e(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[o]=e}}var i=0,n=1,r=2,o="__connectUpdateStatus";Yw(vb,function(a,s){t._messageCenter.on(s,function(a){if(Ib[t.group]&&t[o]!==i){if(a&&a.escapeConnect)return;var s=t.makeActionFromEvent(a),l=[];Yw(Mb,function(e){e!==t&&e.group===t.group&&l.push(e)}),e(l,i),Yw(l,function(t){t[o]!==n&&t.dispatchAction(s)}),e(l,r)}})})}function pu(t,e,i){var n=_u(t);if(n)return n;var r=new ql(t,e,i);return r.id="ec_"+Tb++,Mb[r.id]=r,dr(t,Db,r.id),gu(r),r}function mu(t){if(x(t)){var e=t;t=null,Yw(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+Cb++,Yw(e,function(e){e.group=t})}return Ib[t]=!0,t}function vu(t){Ib[t]=!1}function yu(t){"string"==typeof t?t=Mb[t]:t instanceof ql||(t=_u(t)),t instanceof ql&&!t.isDisposed()&&t.dispose()}function _u(t){return Mb[fr(t,Db)]}function xu(t){return Mb[t]}function wu(t,e){bb[t]=e}function bu(t){_b.push(t)}function Su(t,e){ku(yb,t,e,Jw)}function Mu(t){xb.push(t)}function Iu(t,e,i){"function"==typeof e&&(i=e,e="");var n=Zw(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,Xw(db.test(n)&&db.test(e)),mb[n]||(mb[n]={action:i,actionInfo:t}),vb[e]=n}function Tu(t,e){Cs.register(t,e)}function Cu(t){var e=Cs.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function Du(t,e){ku(wb,t,e,ib,"layout")}function Au(t,e){ku(wb,t,e,ob,"visual")}function ku(t,e,i,n,r){(Uw(e)||Zw(e))&&(i=e,e=n);var o=xl.wrapStageHandler(i,r);return o.__prio=e,o.__raw=i,t.push(o),o}function Pu(t,e){Sb[t]=e}function Lu(t){return vx.extend(t)}function Ou(t){return aw.extend(t)}function zu(t){return ow.extend(t)}function Ru(t){return fl.extend(t)}function Nu(t){i("createCanvas",t)}function Bu(t,e,i){Hw.registerMap(t,e,i)}function Eu(t){var e=Hw.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}}function Fu(t){return t}function Vu(t,e,i,n,r){this._old=t,this._new=e,this._oldKeyGetter=i||Fu,this._newKeyGetter=n||Fu,this.context=r}function Gu(t,e,i,n,r){for(var o=0;o<t.length;o++){var a="_ec_"+r[n](t[o],o),s=e[a];null==s?(i.push(a),e[a]=o):(s.length||(e[a]=s=[s]),s.push(o))}}function Hu(t){var e={},i=e.encode={},n=E(),r=[],o=[],a=e.userOutput={dimensionNames:t.dimensions.slice(),encode:{}};f(t.dimensions,function(e){var s=t.getDimensionInfo(e),l=s.coordDim;if(l){var u=s.coordDimIndex;Wu(i,l)[u]=e,s.isExtraCoord||(n.set(l,1),Yu(s.type)&&(r[0]=e),Wu(a.encode,l)[u]=s.index),s.defaultTooltip&&o.push(e)}Pb.each(function(t,e){var n=Wu(i,e),r=s.otherDims[e];null!=r&&r!==!1&&(n[r]=s.name)})});var s=[],l={};n.each(function(t,e){var n=i[e];l[e]=n[0],s=s.concat(n)}),e.dataDimsOnCoord=s,e.encodeFirstDimNotExtra=l;var u=i.label;u&&u.length&&(r=u.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=o,e}function Wu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Xu(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Yu(t){return!("ordinal"===t||"time"===t)}function Uu(t){null!=t&&a(this,t),this.otherDims={}}function Zu(t){return t._rawCount>65535?Bb:Fb}function qu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function ju(t,e){f(Vb.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,f(Gb,function(i){t[i]=n(e[i])}),t._calculationInfo=a(e._calculationInfo)}function Ku(t,e,i,n,r){var o=Nb[e.type],a=n-1,s=e.name,l=t[s][a];if(l&&l.length<i){for(var u=new o(Math.min(r-a*i,i)),h=0;h<l.length;h++)u[h]=l[h];t[s][a]=u}for(var c=n*i;r>c;c+=i)t[s].push(new o(Math.min(r-c,i)))}function $u(t){var e=t._invertedIndicesMap;f(e,function(i,n){var r=t._dimensionInfos[n],o=r.ordinalMeta;if(o){i=e[n]=new Eb(o.categories.length);for(var a=0;a<i.length;a++)i[a]=zb;for(var a=0;a<t._count;a++)i[t.get(n,a)]=a}})}function Ju(t,e,i){var n;if(null!=e){var r=t._chunkSize,o=Math.floor(i/r),a=i%r,s=t.dimensions[e],l=t._storage[s][o];if(l){n=l[a];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function Qu(t){return t}function th(t){return t<this._count&&t>=0?this._indices[t]:-1}function eh(t,e){var i=t._idList[e];return null==i&&(i=Ju(t,t._idDimIdx,e)),null==i&&(i=Rb+e),i}function ih(t){return x(t)||(t=[t]),t}function nh(t,e){var i=t.dimensions,n=new Hb(g(i,t.getDimensionInfo,t),t.hostModel);ju(n,t);for(var r=n._storage={},o=t._storage,a=0;a<i.length;a++){var s=i[a];o[s]&&(u(e,s)>=0?(r[s]=rh(o[s]),n._rawExtent[s]=oh(),n._extent[s]=null):r[s]=o[s])}return n}function rh(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=qu(t[i]);return e}function oh(){return[1/0,-1/0]}function ah(t,e,i){function r(t,e,i){null!=Pb.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,u.set(e,!0))}os.isInstance(e)||(e=os.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var o=(i.dimsDef||[]).slice(),l=E(),u=E(),h=[],c=sh(e,t,o,i.dimCount),d=0;c>d;d++){var g=o[d]=a({},S(o[d])?o[d]:{name:o[d]}),p=g.name,m=h[d]=new Uu;null!=p&&null==l.get(p)&&(m.name=m.displayName=p,l.set(p,d)),null!=g.type&&(m.type=g.type),null!=g.displayName&&(m.displayName=g.displayName)}var v=i.encodeDef;!v&&i.encodeDefaulter&&(v=i.encodeDefaulter(e,c)),v=E(v),v.each(function(t,e){if(t=tr(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(h[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=tr(l);if(!l.length)for(var u=0;u<(i&&i.length||1);u++){for(;y<h.length&&null!=h[y].coordDim;)y++;y<h.length&&l.push(y++)}f(l,function(n,a){var l=h[n];if(r(s(l,t),e,a),null==l.name&&i){var u=i[a];!S(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&s(l.otherDims,o)})}});var _=i.generateCoord,x=i.generateCoordCount,w=null!=x;x=_?x||1:0;for(var M=_||"value",I=0;c>I;I++){var m=h[I]=h[I]||new Uu,T=m.coordDim;null==T&&(m.coordDim=lh(M,u,w),m.coordDimIndex=0,(!_||0>=x)&&(m.isExtraCoord=!0),x--),null==m.name&&(m.name=lh(m.coordDim,l)),null!=m.type||vs(e,I,m.name)!==Px.Must&&(!m.isExtraCoord||null==m.otherDims.itemName&&null==m.otherDims.seriesName)||(m.type="ordinal")}return h}function sh(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 lh(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 uh(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=E(),this.categoryAxisMap=E(),this.firstCategoryDimIndex=null}function hh(t){var e=t.get("coordinateSystem"),i=new uh(e),n=Ub[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function ch(t){return"category"===t.get("type")}function dh(t,e,i){i=i||{};var n,r,o,a,s=i.byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,function(t,i){b(t)&&(e[i]=t={name:t}),u&&!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 h=r.coordDim,c=r.type,d=0;f(e,function(t){t.coordDim===h&&d++}),e.push({name:o,coordDim:h,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 fh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function gh(t,e){return fh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function ph(t,e,i){i=i||{},os.isInstance(t)||(t=os.seriesDataToSource(t));var n,r=e.get("coordinateSystem"),o=Cs.get(r),a=hh(e);a&&(n=g(a.coordSysDims,function(t){var e={name:t},i=a.axisMap.get(t);if(i){var n=i.get("type");e.type=Xu(n)}return e})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=Yb(t,{coordDimensions:n,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?_(gs,n,e):null});a&&f(u,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||(u[s].otherDims.itemName=0);var h=dh(e,u),c=new Hb(u,e);c.setCalculationInfo(h);var d=null!=s&&mh(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 mh(t){if(t.sourceFormat===Sx){var e=vh(t.data||[]);return null!=e&&!x(ir(e))}}function vh(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function yh(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function _h(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function xh(t){return t._map||(t._map=E(t.categories))}function wh(t){return S(t)&&null!=t.value?t.value:t+""}function bh(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=Ra(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Sh(a),l=r.niceTickExtent=[Kb(Math.ceil(t[0]/a)*a,s),Kb(Math.floor(t[1]/a)*a,s)];return Ih(l,t),r}function Sh(t){return Ca(t)+2}function Mh(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Ih(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Mh(t,0,e),Mh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Th(t){return t.get("stack")||Qb+t.seriesIndex}function Ch(t){return t.dim+t.index}function Dh(t,e){var i=[];return e.eachSeriesByType(t,function(t){zh(t)&&!Rh(t)&&i.push(t)}),i}function Ah(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 u=r.get(a,s);e[o]?e[o].push(u):e[o]=[u]}});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;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function kh(t){var e=Ah(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],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var d=t.getData();n=Math.abs(a[1]-a[0])/d.count()}var f=Sa(t.get("barWidth"),n),g=Sa(t.get("barMaxWidth"),n),p=Sa(t.get("barMinWidth")||1,n),m=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:v,axisKey:Ch(o),stackId:Th(t)})}),Ph(i)}function Ph(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 u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);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,u=(s-o)/(l+(l-1)*a);u=Math.max(u,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=u;e&&n>e&&(n=Math.min(e,s)),i&&i>n&&(n=i),n!==u&&(t.width=n,s-=n+a*n,l--)}}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;f(n,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+a)}),h&&(c-=h.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 Lh(t,e,i){if(t&&e){var n=t[Ch(e)];return null!=n&&null!=i&&(n=n[Th(i)]),n}}function Oh(t,e){var i=Dh(t,e),n=kh(i),r={};f(i,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=Th(t),s=n[Ch(o)][a],l=s.offset,u=s.width,h=i.getOtherAxis(o),c=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(o.dim),g=fh(e,d),p=h.isHorizontal(),m=Nh(o,h,g),v=0,y=e.count();y>v;v++){var _=e.get(d,v),x=e.get(f,v),w=_>=0?"p":"n",b=m;g&&(r[a][x]||(r[a][x]={p:m,n:m}),b=r[a][x][w]);var S,M,I,T;if(p){var C=i.dataToPoint([_,x]);S=b,M=C[1]+l,I=C[0]-m,T=u,Math.abs(I)<c&&(I=(0>I?-1:1)*c),isNaN(I)||g&&(r[a][x][w]+=I)}else{var C=i.dataToPoint([x,_]);S=C[0]+l,M=b,I=u,T=C[1]-m,Math.abs(T)<c&&(T=(0>=T?-1:1)*c),isNaN(T)||g&&(r[a][x][w]+=T)}e.setItemLayout(v,{x:S,y:M,width:I,height:T})}},this)}function zh(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Rh(t){return t.pipelineContext&&t.pipelineContext.large}function Nh(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}function Bh(t,e){return mS(t,pS(e))}function Eh(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"),x(n)||(n=[n||0,n||0]),"boolean"==typeof n[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 u=null!=a,h=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(C(a)||C(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(a>0&&s>0&&!u&&(a=0),0>a&&0>s&&!h&&(s=0));var c=e.ecModel;if(c&&"time"===o){var d,g=Dh("bar",c);if(f(g,function(t){d|=t.getBaseAxis()===e.axis}),d){var p=kh(g),m=Fh(a,s,e,p);a=m.min,s=m.max}}return{extent:[a,s],fixMin:u,fixMax:h}}function Fh(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=Lh(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 u=s+l,h=e-t,c=1-(s+l)/o,d=h/c-h;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function Vh(t,e){var i=Eh(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 Gh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new jb(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new Jb;default:return(yh.getClass(e)||Jb).create(t)}}function Hh(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Wh(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(Xh(t,n),r)}:function(e){return t.scale.getLabel(e)}}function Xh(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Yh(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(),u=Wh(t),h=1;r>40&&(h=Math.ceil(r/40));for(var c=0;r>c;c+=h){var d=n?n[c]:a[0]+c,f=u(d),g=l.getTextRect(f),p=Uh(g,l.get("rotate")||0);s?s.union(p):s=p}return s}}function Uh(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 Zh(t){var e=t.get("interval");return null==e?"auto":e}function qh(t){return"category"===t.type&&0===Zh(t.getLabelModel())}function jh(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 Kh(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 kS({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=jh,l.setColor(o),l}function $h(t){return ph(t.getSource(),t)}function Jh(t,e){var i=e;pa.isInstance(e)||(i=new pa(e),c(i,bS));var n=Gh(i);return n.setExtent(t[0],t[1]),Vh(n,i),n}function Qh(t){c(t,bS)}function tc(t,e){return Math.abs(t-e)<OS}function ec(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=Zr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return tc(r[0],s[0])&&tc(r[1],s[1])||(n+=Zr(r[0],r[1],s[0],s[1],e,i)),0!==n}function ic(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}function nc(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var r=i[n],o=r.geometry,a=o.coordinates,s=o.encodeOffsets,l=0;l<a.length;l++){var u=a[l];if("Polygon"===o.type)a[l]=rc(u,s[l],e);else if("MultiPolygon"===o.type)for(var h=0;h<u.length;h++){var c=u[h];u[h]=rc(c,s[l][h],e)}}return t.UTF8Encoding=!1,t}function rc(t,e,i){for(var n=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>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 oc(t){return"category"===t.type?sc(t):hc(t)}function ac(t,e){return"category"===t.type?uc(t,e):{ticks:t.scale.getTicks()}}function sc(t){var e=t.getLabelModel(),i=lc(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function lc(t,e){var i=cc(t,"labels"),n=Zh(e),r=dc(i,n);if(r)return r;var o,a;return w(n)?o=yc(t,n):(a="auto"===n?gc(t):n,o=vc(t,a)),fc(i,n,{labels:o,labelCategoryInterval:a})}function uc(t,e){var i=cc(t,"ticks"),n=Zh(e),r=dc(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),w(n))o=yc(t,n,!0);else if("auto"===n){var s=lc(t,t.getLabelModel());a=s.labelCategoryInterval,o=g(s.labels,function(t){return t.tickValue})}else a=n,o=vc(t,a,!0);return fc(i,n,{ticks:o,tickCategoryInterval:a})}function hc(t){var e=t.scale.getTicks(),i=Wh(t);return{labels:g(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}})}}function cc(t,e){return RS(t)[e]||(RS(t)[e]=[])}function dc(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function fc(t,e,i){return t.push({key:e,value:i}),i}function gc(t){var e=RS(t).autoInterval;return null!=e?e:RS(t).autoInterval=t.calculateCategoryInterval()}function pc(t){var e=mc(t),i=Wh(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var g=0,p=0,m=Yi(i(l),e.font,"center","top");g=1.3*m.width,p=1.3*m.height,d=Math.max(d,g,7),f=Math.max(f,p,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),x=RS(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtend0===w[0]&&x.axisExtend1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtend0=w[0],x.axisExtend1=w[1]),_}function mc(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 vc(t,e,i){function n(t){l.push(i?t:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:t})}var r=Wh(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d=qh(t),f=s.get("showMinLabel")||d,g=s.get("showMaxLabel")||d;f&&h!==a[0]&&n(a[0]);for(var p=h;p<=a[1];p+=u)n(p);return g&&p-u!==a[1]&&n(a[1]),l}function yc(t,e,i){var n=t.scale,r=Wh(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 _c(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function xc(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 u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;f(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*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 wc(t){return this._axes[t]}function bc(t){GS.call(this,t)}function Sc(t,e){return e.type||(e.data?"category":"value")}function Mc(t,e){return t.getCoordSysModel()===e}function Ic(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function Tc(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"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)Cc(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Cc(a[h])&&!n[r(a[h])]){o=a[h];break}o&&(n[r(o)]=!0)}}function Cc(t){return t&&"category"!==t.type&&"time"!==t.type&&Hh(t)}function Dc(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 Ac(t){return g(KS,function(e){var i=t.getReferringComponents(e)[0];return i})}function kc(t){return"cartesian2d"===t.get("coordinateSystem")}function Pc(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return Qs(t,e,i[0]);if(n){for(var r=[],o=0;o<i.length;o++){var a=Qs(t,e,i[o]);r.push(a)}return r.join(" ")}}function Lc(t,e,i,n,r,o){var a=i.getModel("label"),s=i.getModel("emphasis.label");Xo(t,e,a,s,{labelFetcher:r,labelDataIndex:o,defaultText:Pc(r.getData(),o),isRectText:!0,autoColor:n}),Oc(t),Oc(e)}function Oc(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function zc(t,e,i){var n=t.getArea(),r=t.getBaseAxis().isHorizontal(),o=n.x,a=n.y,s=n.width,l=n.height,u=i.get("lineStyle.width")||2;o-=u/2,a-=u/2,s+=u,l+=u,o=Math.floor(o),s=Math.round(s);var h=new w_({shape:{x:o,y:a,width:s,height:l}});return e&&(h.shape[r?"width":"height"]=0,na(h,{shape:{width:s,height:l}},i)),h}function Rc(t,e,i){var n=t.getArea(),r=new f_({shape:{cx:Ma(t.cx,1),cy:Ma(t.cy,1),r0:Ma(n.r0,1),r:Ma(n.r,1),startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return e&&(r.shape.endAngle=n.startAngle,na(r,{shape:{endAngle:n.endAngle}},i)),r}function Nc(t,e,i){return t?"polar"===t.type?Rc(t,e,i):"cartesian2d"===t.type?zc(t,e,i):null:null}function Bc(t,e){var i=t.getArea&&t.getArea();if("cartesian2d"===t.type){var n=t.getBaseAxis();if("category"!==n.type||!n.onBand){var r=e.getLayout("bandWidth");n.isHorizontal()?(i.x-=r,i.width+=2*r):(i.y-=r,i.height+=2*r)}}return i}function Ec(t,e,i){i.style.text=null,ia(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function Fc(t,e,i){i.style.text=null,ia(i,{shape:{r:i.shape.r0}},e,t,function(){i.parent&&i.parent.remove(i)})}function Vc(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function Gc(t,e,i,n,r,o,a,l){var u=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),c=e.getVisual("borderColor"),d=n.getModel("itemStyle"),f=n.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",d.get("barBorderRadius")||0),t.useStyle(s({stroke:Vc(r)?"none":c,fill:Vc(r)?"none":u,opacity:h},d.getBarItemStyle()));var g=n.getShallow("cursor");g&&t.attr("cursor",g);var p=a?r.height>0?"bottom":"top":r.width>0?"left":"right";l||Lc(t.style,f,n,u,o,i,p),Vc(r)&&(f.fill=f.stroke="none"),Vo(t,f)}function Hc(t,e){var i=t.get(eM)||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 Wc(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"),u=t.get("showBackground",!0);if(u){var h=n.getLayout("largeBackgroundPoints"),c=[];c[1-o]=n.getLayout("backgroundStart");var d=new lM({shape:{points:h},incremental:!!i,__startPoint:c,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});Uc(d,l,n),e.add(d)}var f=new lM({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:r,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});e.add(f),Yc(f,t,n),f.seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",uM),f.on("mousemove",uM))}function Xc(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];iM[0]=e,iM[1]=i;for(var u=iM[n],h=iM[1-n],c=u-s,d=u+s,f=0,g=o.length/2;g>f;f++){var p=2*f,m=o[p+n],v=o[p+r];if(m>=c&&d>=m&&(v>=l?h>=l&&v>=h:h>=v&&l>=h))return a[f]}return-1}function Yc(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 Uc(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 Zc(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 qc(t,e,i){var n="polar"===t.type?f_:w_;return new n({shape:Zc(e,i,t),silent:!0,z2:0})}function jc(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-hM/2)?(o=l?"bottom":"top",r="center"):Pa(a-1.5*hM)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*hM>a&&a>hM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Kc(t,e,i){if(!qh(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],u=i[0],h=i[1],c=i[i.length-1],d=i[i.length-2];n===!1?($c(o),$c(u)):Jc(o,a)&&(n?($c(a),$c(h)):($c(o),$c(u))),r===!1?($c(s),$c(c)):Jc(l,s)&&(r?($c(l),$c(d)):($c(s),$c(c)))}}function $c(t){t&&(t.ignore=!0)}function Jc(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=ze([]);return Ee(r,r,-t.rotation),i.applyTransform(Ne([],r,t.getLocalTransform())),n.applyTransform(Ne([],r,e.getLocalTransform())),i.intersect(n)}}function Qc(t){return"middle"===t||"center"===t}function td(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(oe(a,a,e),oe(s,s,e));var h=new S_({anid:r+"_"+t[l].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,silent:!0});o.push(h)}return o}function ed(t,e,i){var n=e.axis,r=e.getModel("axisTick");if(r.get("show")&&!n.scale.isBlank()){for(var o=r.getModel("lineStyle"),a=i.tickDirection*r.get("length"),l=n.getTicksCoords(),u=td(l,t._transform,a,s(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),"ticks"),h=0;h<u.length;h++)t.group.add(u[h]);return u}}function id(t,e,i){var n=e.axis,r=e.getModel("minorTick");if(r.get("show")&&!n.scale.isBlank()){var o=n.getMinorTicksCoords();if(o.length)for(var a=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),u=s(a.getLineStyle(),s(e.getModel("axisTick").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})),h=0;h<o.length;h++)for(var c=td(o[h],t._transform,l,u,"minorticks_"+h),d=0;d<c.length;d++)t.group.add(c[d])}}function nd(t,e,i){var n=e.axis,r=D(i.axisLabelShow,e.get("axisLabel.show"));if(r&&!n.scale.isBlank()){var o=e.getModel("axisLabel"),a=o.get("margin"),s=n.getViewLabels(),l=(D(i.labelRotate,o.get("rotate"))||0)*hM/180,u=gM(i.rotation,l,i.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],d=pM(e),g=e.get("triggerEvent");return f(s,function(r,s){var l=r.tickValue,f=r.formattedLabel,p=r.rawLabel,m=o;h&&h[l]&&h[l].textStyle&&(m=new pa(h[l].textStyle,o,e.ecModel));var v=m.getTextColor()||e.get("axisLine.lineStyle.color"),y=n.dataToCoord(l),_=[y,i.labelOffset+i.labelDirection*a],x=new u_({anid:"label_"+l,position:_,rotation:u.rotation,silent:d,z2:10});Uo(x.style,m,{text:f,textAlign:m.getShallow("align",!0)||u.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof v?v("category"===n.type?p:"value"===n.type?l+"":l,s):v}),g&&(x.eventData=fM(e),x.eventData.targetType="axisLabel",x.eventData.value=p),t._dumbGroup.add(x),x.updateTransform(),c.push(x),t.group.add(x),x.decomposeTransform()}),c}}function rd(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return od(i,t,e),i.seriesInvolved&&sd(i,t),i}function od(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];mM(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||n||fd(h))){null==s&&(s=h.get("triggerTooltip")),h=n?ad(l,c,r,e,n,s):h;var f=h.get("snap"),g=gd(l.model),p=s||f||"category"===l.type,m=t.axesInfo[g]={key:g,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:p,snap:f,useHandle:fd(h),seriesModels:[]};u[g]=m,t.seriesInvolved|=p;var v=ld(o,l);if(null!=v){var y=a[v]||(a[v]={axesInfo:{}});y.axesInfo[g]=m,y.mapper=o[v].mapper,m.linkGroup=y}}}if(i.axisPointerEnabled){var l=gd(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(mM(i.getAxes(),vM(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var d="axis"===c.get("trigger"),f="cross"===c.get("axisPointer.type"),g=i.getTooltipAxes(c.get("axisPointer.axis"));(d||f)&&mM(g.baseAxes,vM(s,f?"cross":!0,d)),f&&mM(g.otherAxes,vM(s,"cross",!1))}}})}function ad(t,e,i,r,o,a){var l=e.getModel("axisPointer"),u={};mM(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=n(l.get(t))}),u.snap="category"!==t.type&&!!a,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===o){var c=l.get("label.show");if(h.show=null!=c?c:!0,!a){var d=u.lineStyle=l.get("crossStyle");d&&s(h,d.textStyle)}}return t.model.getModel("axisPointer",new pa(u,i,r))}function sd(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),r=e.get("tooltip.show",!0);i&&"none"!==n&&n!==!1&&"item"!==n&&r!==!1&&e.get("axisPointer.show",!0)!==!1&&mM(t.coordSysAxesInfo[gd(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function ld(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(ud(o[n+"AxisId"],i.id)||ud(o[n+"AxisIndex"],i.componentIndex)||ud(o[n+"AxisName"],i.name))return r
}}function ud(t,e){return"all"===t||x(t)&&u(t,e)>=0||t===e}function hd(t){var e=cd(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=fd(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]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function cd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[gd(t)]}function dd(t){var e=cd(t);return e&&e.axisPointerModel}function fd(t){return!!t.get("handle.show")}function gd(t){return t.type+"||"+t.id}function pd(t,e,i,n,r,o){var a=yM.getAxisPointerClass(t.axisPointerClass);if(a){var s=dd(e);s?(t._axisPointer||(t._axisPointer=new a)).render(e,s,n,o):md(t,n)}}function md(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function vd(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(p,g[1]),g[0])}o.position=["y"===u?g[d[l]]:c[0],"x"===u?g[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),D(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var v=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-v:v,o.z2=1,o}function yd(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),l=a.get("color"),u=n.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=l.length,d=t.__splitAreaColors,f=E(),g=0;if(d)for(var p=0;p<h.length;p++){var m=d.get(h[p].tickValue);if(null!=m){g=(m+(c-1)*p)%c;break}}var v=r.toGlobalCoord(h[0].coord),y=a.getAreaStyle();l=x(l)?l:[l];for(var p=1;p<h.length;p++){var _,w,b,S,M=r.toGlobalCoord(h[p].coord);r.isHorizontal()?(_=v,w=u.y,b=M-_,S=u.height,v=_+b):(_=u.x,w=v,b=u.width,S=M-w,v=w+S);var I=h[p-1].tickValue;null!=I&&f.set(I,g),e.add(new w_({anid:null!=I?"area_"+I:null,shape:{x:_,y:w,width:b,height:S},style:s({fill:l[g]},y),silent:!0})),g=(g+1)%c}t.__splitAreaColors=f}}}function _d(t){t.__splitAreaColors=null}function xd(t,e,i){qm.call(this),this.updateData(t,e,i)}function wd(t){return[t[0]/2,t[1]/2]}function bd(t,e){this.parent.drift(t,e)}function Sd(t,e){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===e){var i=this.__symbolOriginalScale,n=i[1]/i[0],r={scale:[Math.max(1.1*i[0],i[0]+3),Math.max(1.1*i[1],i[1]+3*n)]};this.animateTo(r,400,"elasticOut")}else"normal"===e&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function Md(t){this.group=new qm,this._symbolCtor=t||xd}function Id(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function Td(t){return null==t||S(t)||(t={isIgnore:t}),t||{}}function Cd(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function Dd(t,e,i){var n,r=t.getBaseAxis(),o=t.getOtherAxis(r),a=Ad(o,i),s=r.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=g(t.dimensions,function(t){return e.mapDimension(t)}),f=e.getCalculationInfo("stackResultDimension");return(n|=fh(e,d[0]))&&(d[0]=f),(n|=fh(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ad(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function kd(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 Pd(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 Ld(t){return isNaN(t[0])||isNaN(t[1])}function Od(t,e,i,n,r,o,a,s,l,u){return"none"!==u&&u?zd.apply(this,arguments):Rd.apply(this,arguments)}function zd(t,e,i,n,r,o,a,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var g=e[d];if(d>=r||0>d)break;if(Ld(g)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](g[0],g[1]);else if(l>0){var p=e[c],m="y"===u?1:0,v=(g[m]-p[m])*l;zM(NM,p),NM[m]=p[m]+v,zM(BM,g),BM[m]=g[m]-v,t.bezierCurveTo(NM[0],NM[1],BM[0],BM[1],g[0],g[1])}else t.lineTo(g[0],g[1]);c=d,d+=o}return f}function Rd(t,e,i,n,r,o,a,s,l,u,h){for(var c=0,d=i,f=0;n>f;f++){var g=e[d];if(d>=r||0>d)break;if(Ld(g)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](g[0],g[1]),zM(NM,g);else if(l>0){var p=d+o,m=e[p];if(h)for(;m&&Ld(e[p]);)p+=o,m=e[p];var v=.5,y=e[c],m=e[p];if(!m||Ld(m))zM(BM,g);else{Ld(m)&&!h&&(m=g),Z(RM,m,y);var _,x;if("x"===u||"y"===u){var w="x"===u?0:1;_=Math.abs(g[w]-y[w]),x=Math.abs(g[w]-m[w])}else _=Jp(g,y),x=Jp(g,m);v=x/(x+_),OM(BM,g,RM,-l*(1-v))}PM(NM,NM,s),LM(NM,NM,a),PM(BM,BM,s),LM(BM,BM,a),t.bezierCurveTo(NM[0],NM[1],BM[0],BM[1],g[0],g[1]),OM(NM,g,RM,l*v)}else t.lineTo(g[0],g[1]);c=d,d+=o}return f}function Nd(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var r=0;r<t.length;r++){var o=t[r];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}function Bd(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(n[0]!==r[0]||n[1]!==r[1])return}return!0}}function Ed(t,e){var i=[],n=[],r=[],o=[];return Br(t,i,n),Br(e,r,o),Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]))}function Fd(t){return"number"==typeof t?t:t?.5:0}function Vd(t,e,i){if(!i.valueDim)return[];for(var n=[],r=0,o=e.count();o>r;r++)n.push(kd(i,t,e,r));return n}function Gd(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.dim?0:1,o=[],a=0;a<t.length-1;a++){var s=t[a+1],l=t[a];o.push(l);var u=[];switch(i){case"end":u[r]=s[r],u[1-r]=l[1-r],o.push(u);break;case"middle":var h=(l[r]+s[r])/2,c=[];u[r]=c[r]=h,u[1-r]=l[1-r],c[1-r]=s[1-r],o.push(u),o.push(c);break;default:u[r]=l[r],u[1-r]=s[1-r],o.push(u)}}return t[a]&&o.push(t[a]),o}function Hd(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,o=i.length-1;o>=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){var u=e.getAxis(n),h=g(r.stops,function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}}),c=h.length,d=r.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var p=10,m=h[0].coord-p,v=h[c-1].coord+p,y=v-m;if(.001>y)return"transparent";f(h,function(t){t.offset=(t.coord-m)/y}),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var _=new A_(0,0,0,0,h,!0);return _[n]=m,_[n+"2"]=v,_}}}function Wd(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!Xd(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 Xd(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*xd.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function Yd(t,e,i){if("cartesian2d"===t.type){var n=t.getBaseAxis().isHorizontal(),r=zc(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 Rc(t,e,i)}function Ud(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 Zd(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){qd(r.getItemGraphicEl(t),r.getItemLayout(t),e.isSelected(r.getName(t)),s,i)})}function qd(t,e,i,n,r){var o=(e.startAngle+e.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=i?n:0,u=[a*l,s*l];r?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function jd(t,e){qm.call(this);var i=new f_({z2:2}),n=new y_,r=new u_;this.add(i),this.add(n),this.add(r),this.updateData(t,e,!0)}function Kd(t,e,i,n,r,o,a,s,l,u){function h(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-i<l)&&(t[n].y-=i,!(n>0&&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 u=Math.abs(t[s].y-n),h=t[s].len,c=t[s].len2,d=r+h>u?Math.sqrt((r+h+c)*(r+h+c)-u*u):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,g=0,p=t.length,m=[],v=[],y=0;p>y;y++){if("outer"===t[y].position&&"labelLine"===t[y].labelAlignTo){var _=t[y].x-u;t[y].linePoints[1][0]+=_,t[y].x=u}f=t[y].y-g,0>f&&h(y,p,-f,r),g=t[y].y+t[y].height}0>a-g&&c(p-1,g-a);for(var y=0;p>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 $d(t,e,i,n,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<t.length;d++)Jd(t[d])||(t[d].x<e?(h=Math.min(h,t[d].x),l.push(t[d])):(c=Math.max(c,t[d].x),u.push(t[d])));Kd(u,e,i,n,1,r,o,a,s,c),Kd(l,e,i,n,-1,r,o,a,s,h);for(var d=0;d<t.length;d++){var f=t[d];if(!Jd(f)){var g=f.linePoints;if(g){var p,m="edge"===f.labelAlignTo,v=f.textRect.width;p=m?f.x<e?g[2][0]-f.labelDistance-a-f.labelMargin:a+r-f.labelMargin-g[2][0]-f.labelDistance:f.x<e?f.x-a-f.bleedMargin:a+r-f.x-f.bleedMargin,p<f.textRect.width&&(f.text=$i(f.text,p,f.font),"edge"===f.labelAlignTo&&(v=Xi(f.text,f.font)));var y=g[1][0]-g[2][0];m?g[2][0]=f.x<e?a+f.labelMargin+v+f.labelDistance:a+r-f.labelMargin-v-f.labelDistance:(g[2][0]=f.x<e?f.x+f.labelDistance:f.x-f.labelDistance,g[1][0]=g[2][0]+y),g[1][1]=g[2][1]=f.y}}}}function Jd(t){return"center"===t.position}function Qd(t,e){return Ja(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tf(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function ef(t,e){var i,n,r=t.svgXML;try{i=r&&Yl(r,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=i.root,O(null!=n)}catch(o){throw new Error("Invalid svg format\n"+o.message)}var a=i.width,s=i.height,l=i.viewBoxRect;if(e||(e=null==a||null==s?n.getBoundingRect():new Ti(0,0,0,0),null!=a&&(e.width=a),null!=s&&(e.height=s)),l){var u=Xl(l,e.width,e.height),h=n;n=new qm,n.add(h),h.scale=u.scale,h.position=u.position}return n.setClipPath(new w_({shape:e.plain()})),{root:n,boundingRect:e}}function nf(t){return function(e,i){var n=rf(e),r=[];return f(n,function(n){var o=yI[n.type][t];o&&r.push(o(e,n,i))}),r}}function rf(t){var e=Hw.retrieveMap(t)||[];return e}function of(t,e){return!!af(t)[e]}function af(t){return t[wI]||(t[wI]={})}function sf(t){this.pointerChecker,this._zr=t,this._opt={};var e=y,i=e(lf,this),r=e(uf,this),o=e(hf,this),a=e(cf,this),l=e(df,this);im.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=s(n(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",a),t.on("pinch",l))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function lf(t){if(!(Ie(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function uf(t){if(this._dragging&&pf("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!of(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,r=this._y,o=e-n,a=i-r;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&um(t.event),gf(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:n,oldY:r,newX:e,newY:i})}}function hf(t){Ie(t)||(this._dragging=!1)}function cf(t){var e=pf("zoomOnMouseWheel",t,this._opt),i=pf("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=n>0?s:1/s;ff(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a})}if(i){var u=Math.abs(n),h=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);ff(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:o,originY:a})}}}function df(t){if(!of(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;ff(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY})}}function ff(t,e,i,n,r){t.pointerChecker&&t.pointerChecker(n,r.originX,r.originY)&&(um(n.event),gf(t,e,i,n,r))}function gf(t,e,i,n,r){r.isAvailableBehavior=y(pf,null,i,n),t.trigger(e,r)}function pf(t,e,i){var n=i[t];return!t||n&&(!b(n)||e.event[n+"Key"])}function mf(t,e,i){var n=t.target,r=n.position;r[0]+=e,r[1]+=i,n.dirty()}function vf(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 u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}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 yf(t,e,i){var n=e.getComponentByElement(t.topTarget),r=n&&n.coordinateSystem;return n&&n!==i&&!bI[n.mainType]&&r&&r.model!==i}function _f(t){var e=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(e.fill=i),e}function xf(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:g(a.__regions,function(t){return{name:t.name,from:r.uid}})};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),wf(e,i)}}}))}function wf(t,e){e.eachChild(function(e){f(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function bf(t,e){var i=new qm;this.uid=ya("ec_map_draw"),this._controller=new sf(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 qm),i.add(this._backgroundGroup=new qm)}function Sf(t){var e=this[SI];e&&e.recordVersion===this[MI]&&Mf(e,t)}function Mf(t,e){var i=t.circle,n=t.labelModel,r=t.hoverLabelModel,o=t.emphasisText,a=t.normalText;e?(i.style.extendFrom(Uo({},r,{text:r.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=R_):(Uo(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 If(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 u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform();var r=t.pointToData(a);t.setCenter(r),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function Tf(){_m.call(this)}function Cf(t){this.name=t,this.zoomLimit,_m.call(this),this._roamTransformable=new Tf,this._rawTransformable=new Tf,this._center,this._zoom}function Df(t,e,i,n){var r=i.seriesModel,o=r?r.coordinateSystem:null;return o===this?o[t](n):null}function Af(t,e,i,n){Cf.call(this,t),this.map=e;var r=_I.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 kf(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 Pf(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])||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"),u=e.getWidth(),h=e.getHeight(),c=a.width/a.height*this.aspectScale,d=!1;s&&l&&(s=[Sa(s[0],u),Sa(s[1],h)],l=Sa(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(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=Ja(o,{width:u,height:h});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Lf(t,e){f(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}function Of(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,u=i[o].length,h=0;u>h;h++)s=Math.min(s,i[o][h]),l=Math.max(l,i[o][h]),a+=i[o][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?a/u:a,0===u?0/0:c})}function zf(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=g(e,function(t){var e=[t[0].coord,t[1].coord],i={coords:e};return t[0].name&&(i.fromName=t[0].name),t[1].name&&(i.toName=t[1].name),o([i,t[0],t[1]])}))}function Rf(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function Nf(t){return"_"+t+"Type"}function Bf(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");x(o)||(o=[o,o]);var s=Kh(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 Ef(t){var e=new NI({name:"line",subPixelOptimize:!0});return Ff(e.shape,t),e}function Ff(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 Vf(){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),u=a.pointAt(s),h=Z([],u,l);if(te(h,h),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",u);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",u);var f,g,p,m,v=n.__labelDistance,y=v[0]*r,_=v[1]*r,x=s/2,d=a.tangentAt(x),w=[d[1],-d[0]],b=a.pointAt(x);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]);u[0]<l[0]&&(M=Math.PI+M),n.attr("rotation",M)}var I;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-_,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=_,p="top";break;default:I=0,p="middle"}switch(n.__position){case"end":f=[h[0]*y+u[0],h[1]*_+u[1]],g=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":f=[-h[0]*y+l[0],-h[1]*_+l[1]],g=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f=[y*S+l[0],l[1]+I],g=d[0]<0?"right":"left",m=[-y*S,-I];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f=[b[0],b[1]+I],g="center",m=[0,-I];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f=[-y*S+u[0],u[1]+I],g=d[0]>=0?"right":"left",m=[y*S,-I]}n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||g},position:f,scale:[r,r],origin:m})}}}}function Gf(t,e,i){qm.call(this),this._createLine(t,e,i)}function Hf(t){this._ctor=t||Gf,this.group=new qm}function Wf(t,e,i,n){var r=e.getItemLayout(i);if(qf(r)){var o=new t._ctor(e,i,n);e.setItemGraphicEl(i,o),t.group.add(o)}}function Xf(t,e,i,n,r,o){var a=e.getItemGraphicEl(n);return qf(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 Yf(t){return t.animators&&t.animators.length>0}function Uf(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 Zf(t){return isNaN(t[0])||isNaN(t[1])}function qf(t){return!Zf(t[0])&&!Zf(t[1])}function jf(t,e,i){qm.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function Kf(t,e,i){qm.call(this),this._createPolyline(t,e,i)}function $f(t,e,i){jf.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function Jf(){this.group=new qm}function Qf(t){return t instanceof Array||(t=[t,t]),t}function tg(t,e){var i=t.get("center"),n=e.getWidth(),r=e.getHeight(),o=Math.min(n,r),a=Sa(i[0],e.getWidth()),s=Sa(i[1],e.getHeight()),l=Sa(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function eg(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function ig(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function ng(t,e){var i=[];return t.eachComponent("singleAxis",function(n,r){var o=new ig(n,t,e);o.name="single_"+r,o.resize(n,e),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i}function rg(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,r={},o=n.position,a=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[a];var c={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=c[o],t.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),D(e.labelInside,t.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),r.labelRotation="top"===o?-d:d,r.z2=1,r}function og(t,e){return e.type||(e.data?"category":"value")}function ag(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=sg(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==r.seriesIndex&&a(r,l[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,r),i.showTooltip(t,s,u)}}function sg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return nT(e.seriesModels,function(e){var l,u,h=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[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),nT(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function lg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function ug(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,u=gd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.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 hg(t,e,i){var n=i.axesInfo=[];nT(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 cg(t,e,i,n){if(pg(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 dg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=oT(n)[r]||{},a=oT(n)[r]={};nT(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&nT(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 fg(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 gg(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 pg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function mg(t,e,i){if(!zp.node){var n=e.getZr();sT(n).records||(sT(n).records={}),vg(n,e);var r=sT(n).records[t]||(sT(n).records[t]={});r.handler=i}}function vg(t,e){function i(i,n){t.on(i,function(i){var r=wg(e);lT(sT(t).records,function(t){t&&n(t,i,r.dispatchAction)}),yg(r.pendings,e)})}sT(t).initialized||(sT(t).initialized=!0,i("click",_(xg,"click")),i("mousemove",_(xg,"mousemove")),i("globalout",_g))}function yg(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 _g(t,e,i){t.handler("leave",null,i)}function xg(t,e,i,n){e.handler(t,i,n)}function wg(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 bg(t,e){if(!zp.node){var i=e.getZr(),n=(sT(i).records||{})[t];n&&(sT(i).records[t]=null)}}function Sg(){}function Mg(t,e,i,n){Ig(hT(i).lastProp,n)||(hT(i).lastProp=n,e?ia(i,n,t):(i.stopAnimation(),i.attr(n)))}function Ig(t,e){if(S(t)&&S(e)){var i=!0;return f(e,function(e,n){i=i&&Ig(t[n],e)}),!!i}return t===e}function Tg(t,e){t[e.get("label.show")?"show":"hide"]()}function Cg(t){return{position:t.position.slice(),rotation:t.rotation||0}}function Dg(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 Ag(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 kg(t,e,i,n,r){var o=i.get("value"),a=Lg(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),s=i.getModel("label"),l=rx(s.get("padding")||0),u=s.getFont(),h=Yi(a,u),c=r.position,d=h.width+l[1]+l[3],f=h.height+l[0]+l[2],g=r.align;"right"===g&&(c[0]-=d),"center"===g&&(c[0]-=d/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=f),"middle"===p&&(c[1]-=f/2),Pg(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:u,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 Pg(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 Lg(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:Xh(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 Og(t,e,i){var n=Oe();return Ee(n,n,i.rotation),Be(n,n,i.position),oa([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function zg(t,e,i,n,r,o){var a=cM.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get("label.margin"),kg(e,n,r,o,{position:Og(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Rg(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function Ng(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Bg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Eg(t){return"x"===t.dim?0:1}function Fg(t){return t.isHorizontal()?0:1}function Vg(t,e){var i=t.getRect();return[i[pT[e]],i[pT[e]]+i[mT[e]]]}function Gg(t,e,i){var n=new w_({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return na(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function Hg(t,e,i){if(t.count())for(var n,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=g(o,function(e){return g(e.indices,function(e){var i=r.dataToPoint(t.get(a,e));return i[1]=t.get(s,e),i})}),u=Wg(l),h=u.y0,c=i/u.max,d=o.length,f=o[0].indices.length,p=0;f>p;++p){n=h[p]*c,t.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:n,y:l[0][p][1]*c});for(var m=1;d>m;++m)n+=l[m-1][p][1]*c,t.setItemLayout(o[m].indices[p],{layerIndex:m,x:l[m][p][0],y0:n,y:l[m][p][1]*c})}}function Wg(t){for(var e,i=t.length,n=t[0].length,r=[],o=[],a=0,s={},l=0;n>l;++l){for(var u=0,e=0;i>u;++u)e+=t[u][l][1];e>a&&(a=e),r.push(e)}for(var h=0;n>h;++h)o[h]=(a-r[h])/2;a=0;for(var c=0;n>c;++c){var d=r[c]+o[c];d>a&&(a=d)}return s.y0=o,s.max=a,s}function Xg(t,e){e.update="updateView",Iu(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 Yg(t){this._model=t}function Ug(t,e,i,n){var r=i.calendarModel,o=i.seriesModel,a=r?r.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[t](n):null}function Zg(t,e){var i=t.cellSize;x(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];
var n=g([0,1],function(t){return Qa(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});ts(t,e,{type:"box",ignoreSize:n})}function qg(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 jg(t,e){var i=rx(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var t=new w_({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 Kg(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 $g(t,e,i,n){Qg(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Jg(t,e,i,n)}function Jg(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 Qg(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 tp(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,ts(e,i,{type:"box",ignoreSize:r})}function ep(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return g(WT,function(t){return t+"transition:"+i}).join(";")}function ip(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),GT(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function np(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),r=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(ep(i)),n&&(zp.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+ri(n)),e.push("filter:alpha(opacity=70)"))),GT(["width","color","radius"],function(i){var n="border-"+i,r=HT(n),o=t.get(r);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))}),e.push(ip(r)),null!=o&&e.push("padding:"+rx(o).join("px ")+"px"),e.join(";")+";"}function rp(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&ge(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 op(t,e,i){if(zp.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],rp(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 ap(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function sp(t){var e=this._zr=t.getZr();this._styleCoord=[0,0,0,0],ap(this._styleCoord,e,t.getWidth()/2,t.getHeight()/2),this._show=!1,this._hideTimeout}function lp(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(pa.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new pa(i,e,e.ecModel))}return e}function up(t,e){return t.dispatchAction||y(e.dispatchAction,e)}function hp(t,e,i,n,r,o,a){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function cp(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 dp(t,e,i){var n=i[0],r=i[1],o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-n/2,s=e.y+u/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+u+o;break;case"left":a=e.x-n-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function fp(t){return"center"===t||"middle"===t}function gp(t){er(t,"label",["show"])}function pp(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function mp(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function vp(t,e,i,n,r,o){var a=[],s=fh(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Sp(e,l,t),h=e.indicesOfNearest(l,u)[0];a[r]=e.get(i,h),a[o]=e.get(l,h);var c=e.get(n,h),d=Ta(e.get(n,h));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,c]}function yp(t,e){var i=t.getData(),r=t.coordinateSystem;if(e&&!mp(e)&&!x(e.coord)&&r){var o=r.dimensions,a=_p(e,i,r,t);if(e=n(e),e.type&&tC[e.type]&&a.baseAxis&&a.valueAxis){var s=JT(o,a.baseAxis.dim),l=JT(o,a.valueAxis.dim),u=tC[e.type](i,a.baseDataDim,a.valueDataDim,s,l);e.coord=u[0],e.value=u[1]}else{for(var h=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;2>c;c++)tC[h[c]]&&(h[c]=Sp(i,i.mapDimension(o[c]),h[c]));e.coord=h}}return e}function _p(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(xp(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 xp(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var r=0;r<n.length;r++){var o=i.getDimensionInfo(n[r]);if(o.name===e)return o.coordDim}}function wp(t,e){return t&&t.containData&&e.coord&&!pp(e)?t.containData(e.coord):!0}function bp(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value}function Sp(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 Mp(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 u=t.get(n.dimensions[0],r),h=t.get(n.dimensions[1],r);o=n.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function Ip(t,e,i){var n;n=t?g(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 Hb(n,i),o=g(i.get("data"),_(yp,e));return t&&(o=m(o,_(wp,t))),r.initData(o,null,t?bp:function(t){return t.value}),r}function Tp(t){return!isNaN(t)&&!isFinite(t)}function Cp(t,e,i,n){var r=1-t,o=n.dimensions[t];return Tp(e[r])&&Tp(i[r])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function Dp(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(Cp(1,i,n,t)||Cp(0,i,n,t)))return!0}return wp(t,e[0])&&wp(t,e[1])}function Ap(t,e,i,n,r){var o,a=n.coordinateSystem,s=t.getItemModel(e),l=Sa(s.get("x"),r.getWidth()),u=Sa(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if("cartesian2d"===a.type){var f=a.getAxis("x"),g=a.getAxis("y"),h=a.dimensions;Tp(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):Tp(t.get(h[1],e))&&(o[1]=g.toGlobalCoord(g.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function kp(t,e,i){var n;n=t?g(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 Hb(n,i),o=new Hb(n,i),a=new Hb([],i),l=g(i.get("data"),_(iC,e,t,i));t&&(l=m(l,_(Dp,t)));var u=t?bp:function(t){return t.value};return r.initData(g(l,function(t){return t[0]}),null,u),o.initData(g(l,function(t){return t[1]}),null,u),a.initData(g(l,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}var Pp=2311,Lp=function(){return Pp++},Op={};Op="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:e(navigator.userAgent);var zp=Op,Rp={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Np={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},Bp=Object.prototype.toString,Ep=Array.prototype,Fp=Ep.forEach,Vp=Ep.filter,Gp=Ep.slice,Hp=Ep.map,Wp=Ep.reduce,Xp={},Yp=function(){return Xp.createCanvas()};Xp.createCanvas=function(){return document.createElement("canvas")};var Up,Zp="__ec_primitive__";B.prototype={constructor:B,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var i in this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var qp=(Object.freeze||Object)({$override:i,clone:n,merge:r,mergeAll:o,extend:a,defaults:s,createCanvas:Yp,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:g,reduce:p,filter:m,find:v,bind:y,curry:_,isArray:x,isFunction:w,isString:b,isObject:S,isBuiltInObject:M,isTypedArray:I,isDom:T,eqNaN:C,retrieve:D,retrieve2:A,retrieve3:k,slice:P,normalizeCssArray:L,assert:O,trim:z,setAsPrimitive:R,isPrimitive:N,createHashMap:E,concatArray:F,noop:V}),jp="undefined"==typeof Float32Array?Array:Float32Array,Kp=q,$p=j,Jp=ee,Qp=ie,tm=(Object.freeze||Object)({create:G,copy:H,clone:W,set:X,add:Y,scaleAndAdd:U,sub:Z,len:q,length:Kp,lenSquare:j,lengthSquare:$p,mul:K,div:$,dot:J,scale:Q,normalize:te,distance:ee,dist:Jp,distanceSquare:ie,distSquare:Qp,negate:ne,lerp:re,applyTransform:oe,min:ae,max:se});le.prototype={constructor:le,_dragStart:function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(ue(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.dispatchToElement(ue(e,t),"drag",t.event);var a=this.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.dispatchToElement(ue(s,t),"dragleave",t.event),a&&a!==s&&this.dispatchToElement(ue(a,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(ue(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var em=Array.prototype.slice,im=function(t){this._$handlers={},this._$eventProcessor=t};im.prototype={constructor:im,one:function(t,e,i,n){return ce(this,t,e,i,n,!0)},on:function(t,e,i,n){return ce(this,t,e,i,n,!1)},isSilent:function(t){var e=this._$handlers;return!e[t]||!e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;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=em.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=em.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 nm=Math.log(2),rm="___zrEVENTSAVED",om=[],am="undefined"!=typeof window&&!!window.addEventListener,sm=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lm=[],um=am?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},hm=function(){this._track=[]};hm.prototype={constructor:hm,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=_e(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(t){for(var e in cm)if(cm.hasOwnProperty(e)){var i=cm[e](this._track,t);if(i)return i}}};var cm={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=Ce(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},dm="silent";ke.prototype.dispose=function(){};var fm=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],gm=function(t,e,i,n){im.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)};gm.prototype={constructor:gm,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(fm,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=De(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!==dm)){r.target=n[o];break}}return r},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new hm);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){gm.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||Jp(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),c(gm,im),c(gm,le);var pm="undefined"==typeof Float32Array?Array:Float32Array,mm=(Object.freeze||Object)({create:Oe,identity:ze,copy:Re,mul:Ne,translate:Be,rotate:Ee,scale:Fe,invert:Ve,clone:Ge}),vm=ze,ym=5e-5,_m=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},xm=_m.prototype;xm.transform=null,xm.needLocalTransform=function(){return He(this.rotation)||He(this.position[0])||He(this.position[1])||He(this.scale[0]-1)||He(this.scale[1]-1)};var wm=[];xm.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(!i&&!e)return void(n&&vm(n));n=n||Oe(),i?this.getLocalTransform(n):vm(n),e&&(i?Ne(n,t.transform,n):Re(n,t.transform)),this.transform=n;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(wm);var o=wm[0]<0?-1:1,a=wm[1]<0?-1:1,s=((wm[0]-o)*r+o)/wm[0]||0,l=((wm[1]-a)*r+a)/wm[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||Oe(),Ve(this.invTransform,n)},xm.getLocalTransform=function(t){return _m.getLocalTransform(this,t)},xm.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)},xm.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var bm=[],Sm=Oe();xm.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;He(e-1)&&(e=Math.sqrt(e)),He(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)}},xm.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ne(bm,t.invTransform,e),e=bm);var i=this.origin;i&&(i[0]||i[1])&&(Sm[4]=i[0],Sm[5]=i[1],Ne(bm,e,Sm),bm[4]-=i[0],bm[5]-=i[1],e=bm),this.setLocalTransform(e)}},xm.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)},xm.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&oe(i,i,n),i},xm.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&oe(i,i,n),i},_m.getLocalTransform=function(t,e){e=e||[],vm(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&&Ee(e,e,r),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var Mm={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-Mm.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*Mm.bounceIn(2*t):.5*Mm.bounceOut(2*t-1)+.5}};We.prototype={constructor:We,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?Mm[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 Im=function(){this.head=null,this.tail=null,this._len=0},Tm=Im.prototype;Tm.insert=function(t){var e=new Cm(t);return this.insertEntry(e),e},Tm.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++},Tm.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--},Tm.len=function(){return this._len},Tm.clear=function(){this.head=this.tail=null,this._len=0};var Cm=function(t){this.value=t,this.next,this.prev},Dm=function(t){this._list=new Im,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Am=Dm.prototype;Am.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 Cm(e),a.key=t,i.insertEntry(a),n[t]=a}return r},Am.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},Am.clear=function(){this._list.clear(),this._map={}};var km={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]},Pm=new Dm(20),Lm=null,Om=oi,zm=ai,Rm=(Object.freeze||Object)({parse:ti,lift:ni,toHex:ri,fastLerp:oi,fastMapToColor:Om,lerp:ai,mapToColor:zm,modifyHSL:si,modifyAlpha:li,stringify:ui}),Nm=Array.prototype.slice,Bm=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||hi,this._setter=n||ci,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Bm.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:_i(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;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;e>i;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;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return r||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var r=e[n];t&&r.onframe(this._target,1),i&&i.removeClip(r)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var Em=1;"undefined"!=typeof window&&(Em=Math.max(window.devicePixelRatio||1,1));var Fm=0,Vm=Em,Gm=function(){};1===Fm&&(Gm=console.error);var Hm=Gm,Wm=function(){this.animators=[]};Wm.prototype={constructor:Wm,animate:function(t,e){var i,n=!1,r=this,o=this.__zr;if(t){var a=t.split("."),s=r;n="shape"===a[0];for(var l=0,h=a.length;h>l;l++)s&&(s=s[a[l]]);s&&(i=s)}else i=r;if(!i)return void Hm('Property "'+t+'" is not existed in element '+r.id);var c=r.animators,d=new Bm(i,e);return d.during(function(){r.dirty(n)}).done(function(){c.splice(u(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 Xm=function(t){_m.call(this,t),im.call(this,t),Wm.call(this,t),this.id=t.id||Lp()};Xm.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;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(Xm,Wm),c(Xm,_m),c(Xm,im);var Ym=oe,Um=Math.min,Zm=Math.max;Ti.prototype={constructor:Ti,union:function(t){var e=Um(t.x,this.x),i=Um(t.y,this.y);this.width=Zm(t.x+t.width,this.x+this.width)-e,this.height=Zm(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(r){if(r){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,Ym(t,t,r),Ym(e,e,r),Ym(i,i,r),Ym(n,n,r),this.x=Um(t[0],e[0],i[0],n[0]),this.y=Um(t[1],e[1],i[1],n[1]);
var o=Zm(t[0],e[0],i[0],n[0]),a=Zm(t[1],e[1],i[1],n[1]);this.width=o-this.x,this.height=a-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Oe();return Be(r,r,[-e.x,-e.y]),Fe(r,r,[i,n]),Be(r,r,[t.x,t.y]),r},intersect:function(t){if(!t)return!1;t instanceof Ti||(t=Ti.create(t));var e=this,i=e.x,n=e.x+e.width,r=e.y,o=e.y+e.height,a=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(a>n||i>s||l>o||r>u)},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 qm=function(t){t=t||{},Xm.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};qm.prototype={constructor:qm,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<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=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 qm&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,r=u(n,t);return 0>r?this:(n.splice(r,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof qm&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof qm&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof qm&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof qm&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new Ti(0,0,0,0),n=t||this._children,r=[],o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(i.copy(s),i.applyTransform(l),e=e||i.clone(),e.union(i)):(e=e||s.clone(),e.union(s))}}return e||i}},h(qm,Xm);var jm=32,Km=7,$m=function(){this._roots=[],this._displayList=[],this._displayListLen=0};$m.prototype={constructor:$m,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,zp.canvasSupported&&zi(i,Ri)},_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;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof qm&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(var e=0;e<this._roots.length;e++){var i=this._roots[e];i instanceof qm&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var r=u(this._roots,t);r>=0&&(this.delFromStorage(t),this._roots.splice(r,1),t instanceof qm&&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:Ri};var Jm={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},Qm=function(t,e,i){return Jm.hasOwnProperty(e)?i*=t.dpr:i},tv={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},ev=9,iv=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],nv=function(t){this.extendFrom(t,!1)};nv.prototype={constructor:nv,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!==tv.STYLE_BIND;t.__attrCachedBy=tv.STYLE_BIND;for(var a=0;a<iv.length;a++){var s=iv[a],l=s[0];(o||n[l]!==r[l])&&(t[l]=Qm(t,l,n[l]||s[1]))}if((o||n.fill!==r.fill)&&(t.fillStyle=n.fill),(o||n.stroke!==r.stroke)&&(t.strokeStyle=n.stroke),(o||n.opacity!==r.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(o||n.blend!==r.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var u=n.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var 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:Ni,r=n(t,e,i),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}};for(var rv=nv.prototype,ov=0;ov<iv.length;ov++){var av=iv[ov];av[0]in rv||(rv[av[0]]=av[1])}nv.getGradient=rv.getGradient;var sv=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};sv.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var lv=function(t,e,i){var n;i=i||Vm,"string"==typeof t?n=Fi(t,e,i):S(t)&&(n=t,t=n.id),this.id=t,this.dom=n;var r=n.style;r&&(n.onselectstart=Ei,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};lv.prototype={constructor:lv,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=Fi("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i=this.dom,n=this.ctx,r=i.width,o=i.height,e=e||this.clearColor,a=this.motionBlur&&!t,s=this.lastFrameAlpha,l=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/l,o/l)),n.clearRect(0,0,r,o),e&&"transparent"!==e){var u;e.colorStops?(u=e.__canvasGradient||nv.getGradient(n,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=u):e.image&&(u=sv.prototype.getCanvasPattern.call(e,n)),n.save(),n.fillStyle=u||e,n.fillRect(0,0,r,o),n.restore()}if(a){var h=this.domBack;n.save(),n.globalAlpha=s,n.drawImage(h,0,0,r,o),n.restore()}}};var uv="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},hv=new Dm(50),cv={},dv=0,fv=5e3,gv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,pv="12px sans-serif",mv={};mv.measureText=function(t,e){var i=l();return i.font=e||pv,i.measureText(t)};var vv=pv,yv={left:1,right:1,center:1},_v={top:1,bottom:1,middle:1},xv=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],wv={},bv={},Sv=new Ti,Mv=function(){};Mv.prototype={constructor:Mv,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&un(i,!0);var n=i.text;if(null!=n&&(n+=""),Tn(n,i)){t.save();var r=this.transform;i.transformText?this.setTransform(t):r&&(Sv.copy(e),Sv.applyTransform(r),e=Sv),cn(this,t,n,i,e,ev),t.restore()}}},Cn.prototype={constructor:Cn,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(){},afterBrush:function(){},brush:function(){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?Xm.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new nv(t,this),this.dirty(!1),this},calculateTextPosition:null},h(Cn,Xm),c(Cn,Mv),Dn.prototype={constructor:Dn,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var r=this._image=Gi(n,this._image,this,this.onload);if(r&&Wi(r)){var o=i.x||0,a=i.y||0,s=i.width,l=i.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,c=i.sy||0;t.drawImage(r,h,c,i.sWidth,i.sHeight,o,a,s,l)}else if(i.sx&&i.sy){var h=i.sx,c=i.sy,d=s-h,f=l-c;t.drawImage(r,h,c,d,f,o,a,s,l)}else t.drawImage(r,o,a,s,l);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new Ti(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},h(Dn,Cn);var Iv=1e5,Tv=314159,Cv=.01,Dv=.001,Av=new Ti(0,0,0,0),kv=new Ti(0,0,0,0),Pv=function(t,e,i){this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=a({},i||{}),this.dpr=i.devicePixelRatio||Vm,this._singleCanvas=n,this.root=t;var r=t.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var l=t.width,u=t.height;null!=i.width&&(l=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,t.width=l*this.dpr,t.height=u*this.dpr,this._width=l,this._height=u;var h=new lv(t,this,this.dpr);h.__builtin__=!0,h.initContext(),s[Tv]=h,h.zlevel=Tv,o.push(Tv),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=zn(this._width,this._height);t.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};Pv.prototype={constructor:Pv,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var r=i[n],o=this._layers[r];if(!o.__builtin__&&o.refresh){var a=0===n?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return i.__from=t,t.__hoverMir=i,e&&i.setStyle(e),this._hoverElements.push(i),i}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=u(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(){for(var t=this._hoverElements,e=0;e<t.length;e++){var i=t[e].__from;i&&(i.__hoverMir=null)}t.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){zi(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(Iv));var n={};i.ctx.save();for(var r=0;e>r;){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(Iv)},_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;uv(function(){r._paintList(t,e,i)})}}},_compositeManually:function(){var t=this.getLayer(Tv).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;n<this._zlevelList.length;n++){var r=this._zlevelList[n],o=this._layers[r];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||e)&&i.push(o)}for(var a=!0,s=0;s<i.length;s++){var o=i[s],l=o.ctx,u={};l.save();var h=e?o.__startIndex:o.__drawIndex,c=!e&&o.incremental&&Date.now,d=c&&Date.now(),g=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,g);else if(h===o.__startIndex){var p=t[h];p.incremental&&p.notClear&&!e||o.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=o.__startIndex);for(var m=h;m<o.__endIndex;m++){var v=t[m];if(this._doPaintEl(v,o,e,u),v.__dirty=v.__dirtyText=!1,c){var y=Date.now()-d;if(y>15)break}}o.__drawIndex=m,o.__drawIndex<o.__endIndex&&(a=!1),u.prevElClipPaths&&l.restore(),l.restore()}return zp.wxa&&f(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),a},_doPaintEl:function(t,e,i,n){var r=e.ctx,o=t.transform;if(!(!e.__dirty&&!i||t.invisible||0===t.style.opacity||o&&!o[0]&&!o[3]||t.culling&&Pn(t,this._width,this._height))){var a=t.__clipPaths,s=n.prevElClipPaths;(!s||Ln(a,s))&&(s&&(r.restore(),n.prevElClipPaths=null,n.prevEl=null),a&&(r.save(),On(a,r),n.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Tv);var i=this._layers[t];return i||(i=new lv("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?r(i,this._layerConfig[t],!0):this._layerConfig[t-Cv]&&r(i,this._layerConfig[t-Cv],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=null,a=-1,s=this._domRoot;if(i[t])return void Hm("ZLevel "+t+" has been used already");if(!kn(e))return void Hm("Layer of zlevel "+t+" is not valid");if(r>0&&t>n[0]){for(a=0;r-1>a&&!(n[a]<t&&n[a+1]>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;n<r.length;n++)i=r[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,r,o=this._zlevelList;for(r=0;r<o.length;r++)n=o[r],i=this._layers[n],i.__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}for(var r,o=null,a=0,i=0;i<t.length;i++){var s,n=t[i],l=n.zlevel;r!==l&&(r=l,a=0),n.incremental?(s=this.getLayer(l+Dv,this._needsManuallyCompositing),s.incremental=!0,a=1):s=this.getLayer(l+(a>0?Cv:0),this._needsManuallyCompositing),s.__builtin__||Hm("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<this._zlevelList.length;n++){var o=this._zlevelList[n];if(o===t||o===t+Cv){var a=this._layers[o];r(a,i[t],!0)}}}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(u(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;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||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f(this._progressiveLayers,function(i){i.resize(t,e)}),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Tv).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Tv].dom;var e=new lv("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var l=a[s];this._doPaintEl(l,e,!0,o)}return e.dom},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]||An(s[i])||An(a.style[i]))-(An(s[r])||0)-(An(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=o.hasStroke()?o.lineWidth:0,h=Math.max(u/2,-s+a),c=Math.max(u/2,s+a),d=Math.max(u/2,-l+a),f=Math.max(u/2,l+a),g=r.width+h+c,p=r.height+d+f;i.width=g*e,i.height=p*e,n.scale(e,e),n.clearRect(0,0,g,p),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-r.x,d-r.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var v=Dn,y=new v({style:{x:0,y:0,image:i}});return null!=m.position&&(y.position=t.position=m.position),null!=m.rotation&&(y.rotation=t.rotation=m.rotation),null!=m.scale&&(y.scale=t.scale=m.scale),y}};var Lv=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,im.call(this)};Lv.prototype={constructor:Lv,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=u(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,r=[],o=[],a=0;n>a;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&&(uv(t),!e._paused&&e._update())}var e=this;this._running=!0,uv(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 Bm(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},c(Lv,im);var Ov=300,zv=zp.domSupported,Rv=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=g(t,function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:n}}(),Nv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bv=Gn.prototype;Bv.stopPropagation=Bv.stopImmediatePropagation=Bv.preventDefault=V;var Ev={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]||Un(this,!0),this.trigger("mousemove",t)},mouseup:function(t){t=be(this.dom,t),Un(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=Vn(this,e),this.trigger("mouseout",t)},touchstart:function(t){t=be(this.dom,t),En(t),this._lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ev.mousemove.call(this,t),Ev.mousedown.call(this,t)},touchmove:function(t){t=be(this.dom,t),En(t),this.handler.processGesture(t,"change"),Ev.mousemove.call(this,t)},touchend:function(t){t=be(this.dom,t),En(t),this.handler.processGesture(t,"end"),Ev.mouseup.call(this,t),+new Date-this._lastTouchMoment<Ov&&Ev.click.call(this,t)},pointerdown:function(t){Ev.mousedown.call(this,t)},pointermove:function(t){Nn(t)||Ev.mousemove.call(this,t)},pointerup:function(t){Ev.mouseup.call(this,t)},pointerout:function(t){Nn(t)||Ev.mouseout.call(this,t)}};f(["click","mousewheel","dblclick","contextmenu"],function(t){Ev[t]=function(e){e=be(this.dom,e),this.trigger(t,e)}});var Fv={pointermove:function(t){Nn(t)||Fv.mousemove.call(this,t)},pointerup:function(t){Fv.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this._pointerCapturing;Un(this,!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},Vv=qn.prototype;Vv.dispose=function(){Yn(this._localHandlerScope),zv&&Yn(this._globalHandlerScope)},Vv.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(qn,im);var Gv=!zp.canvasSupported,Hv={canvas:Pv},Wv={},Xv="4.3.2",Yv=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,r=new $m,o=i.renderer;if(Gv){if(!Hv.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&Hv[o]||(o="canvas");var a=new Hv[o](e,r,i,t);this.storage=r,this.painter=a;var s=zp.node||zp.worker?null:new qn(a.getViewportRoot(),a.root);this.handler=new gm(r,a,s,a.root),this.animation=new Lv({stage:{update:y(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(t){l.call(r,t),t&&t.removeSelfFromZr(n)},r.addToStorage=function(t){u.call(r,t),t.addSelfToZr(n)}};Yv.prototype={constructor:Yv,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var i=this.painter.addHover(t,e);return this.refreshHover(),i}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Qn(this.id)}};var Uv=(Object.freeze||Object)({version:Xv,init:jn,dispose:Kn,getInstance:$n,registerPainter:Jn}),Zv=f,qv=S,jv=x,Kv="series\x00",$v=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Jv=0,Qv=".",ty="___EC__COMPONENT__CONTAINER___",ey=0,iy=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,n){for(var r={},o=0;o<t.length;o++){var a=t[o][1];if(!(i&&u(i,a)>=0||n&&u(n,a)<0)){var s=e.getShallow(a);null!=s&&(r[t[o][0]]=s)}}return r}},ny=iy([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ry={getLineStyle:function(t){var e=ny(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]}},oy=iy([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ay={getAreaStyle:function(t,e){return oy(this,t,e)}},sy=Math.pow,ly=Math.sqrt,uy=1e-8,hy=1e-4,cy=ly(3),dy=1/3,fy=G(),gy=G(),py=G(),my=Math.min,vy=Math.max,yy=Math.sin,_y=Math.cos,xy=2*Math.PI,wy=G(),by=G(),Sy=G(),My=[],Iy=[],Ty={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cy=[],Dy=[],Ay=[],ky=[],Py=Math.min,Ly=Math.max,Oy=Math.cos,zy=Math.sin,Ry=Math.sqrt,Ny=Math.abs,By="undefined"!=typeof Float32Array,Ey=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};Ey.prototype={constructor:Ey,_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=Ny(i/Vm/t)||0,this._uy=Ny(i/Vm/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(Ty.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=Ny(t-this._xi)>this._ux||Ny(e-this._yi)>this._uy||this._len<5;return this.addData(Ty.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(Ty.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(Ty.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(Ty.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=Oy(r)*i+t,this._yi=zy(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(Ty.R,t,e,i,n),this},closePath:function(){this.addData(Ty.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;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this
},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length===e||!By||(this.data=new Float32Array(e));for(var i=0;e>i;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();By&&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;a<o.length;a++)this.data[n++]=o[a];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,r=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,d=Ry(h*h+c*c),f=l,g=u,p=a.length;for(h/=d,c/=d,0>o&&(o=r+o),o%=r,f-=o*h,g-=o*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=g||0>c&&g>=e);)n=this._dashIdx,i=a[n],f+=h*i,g+=c*i,this._dashIdx=(n+1)%p,h>0&&l>f||0>h&&f>l||c>0&&u>g||0>c&&g>u||s[n%2?"moveTo":"lineTo"](h>=0?Py(f,t):Ly(f,t),c>=0?Py(g,e):Ly(g,e));h=f-t,c=g-e,this._dashOffset=-Ry(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,r,o){var a,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._ctx,p=this._xi,m=this._yi,v=Ir,y=0,_=this._dashIdx,x=f.length,w=0;for(0>d&&(d=c+d),d%=c,a=0;1>a;a+=.1)s=v(p,t,i,r,a+.1)-v(p,t,i,r,a),l=v(m,e,n,o,a+.1)-v(m,e,n,o,a),y+=Ry(s*s+l*l);for(;x>_&&(w+=f[_],!(w>d));_++);for(a=(w-d)/y;1>=a;)u=v(p,t,i,r,a),h=v(m,e,n,o,a),_%2?g.moveTo(u,h):g.lineTo(u,h),a+=f[_]/y,_=(_+1)%x;_%2!==0&&g.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-Ry(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,By&&(this.data=new Float32Array(t)))},getBoundingRect:function(){Cy[0]=Cy[1]=Ay[0]=Ay[1]=Number.MAX_VALUE,Dy[0]=Dy[1]=ky[0]=ky[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,r=0,o=0;o<t.length;){var a=t[o++];switch(1===o&&(e=t[o],i=t[o+1],n=e,r=i),a){case Ty.M:n=t[o++],r=t[o++],e=n,i=r,Ay[0]=n,Ay[1]=r,ky[0]=n,ky[1]=r;break;case Ty.L:Er(e,i,t[o],t[o+1],Ay,ky),e=t[o++],i=t[o++];break;case Ty.C:Fr(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ay,ky),e=t[o++],i=t[o++];break;case Ty.Q:Vr(e,i,t[o++],t[o++],t[o],t[o+1],Ay,ky),e=t[o++],i=t[o++];break;case Ty.A:var s=t[o++],l=t[o++],u=t[o++],h=t[o++],c=t[o++],d=t[o++]+c;o+=1;var f=1-t[o++];1===o&&(n=Oy(c)*u+s,r=zy(c)*h+l),Gr(s,l,u,h,c,d,f,Ay,ky),e=Oy(d)*u+s,i=zy(d)*h+l;break;case Ty.R:n=e=t[o++],r=i=t[o++];var g=t[o++],p=t[o++];Er(n,r,n+g,r+p,Ay,ky);break;case Ty.Z:e=n,i=r}ae(Cy,Cy,Ay),se(Dy,Dy,ky)}return 0===o&&(Cy[0]=Cy[1]=Dy[0]=Dy[1]=0),new Ti(Cy[0],Cy[1],Dy[0]-Cy[0],Dy[1]-Cy[1])},rebuildPath:function(t){for(var e,i,n,r,o,a,s=this.data,l=this._ux,u=this._uy,h=this._len,c=0;h>c;){var d=s[c++];switch(1===c&&(n=s[c],r=s[c+1],e=n,i=r),d){case Ty.M:e=n=s[c++],i=r=s[c++],t.moveTo(n,r);break;case Ty.L:o=s[c++],a=s[c++],(Ny(o-n)>l||Ny(a-r)>u||c===h-1)&&(t.lineTo(o,a),n=o,r=a);break;case Ty.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 Ty.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],r=s[c-1];break;case Ty.A:var f=s[c++],g=s[c++],p=s[c++],m=s[c++],v=s[c++],y=s[c++],_=s[c++],x=s[c++],w=p>m?p:m,b=p>m?1:p/m,S=p>m?m/p:1,M=Math.abs(p-m)>.001,I=v+y;M?(t.translate(f,g),t.rotate(_),t.scale(b,S),t.arc(0,0,w,v,I,1-x),t.scale(1/b,1/S),t.rotate(-_),t.translate(-f,-g)):t.arc(f,g,w,v,I,1-x),1===c&&(e=Oy(v)*p+f,i=zy(v)*m+g),n=Oy(I)*p+f,r=zy(I)*m+g;break;case Ty.R:e=n=s[c],i=r=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case Ty.Z:t.closePath(),n=e,r=i}}}},Ey.CMD=Ty;var Fy=2*Math.PI,Vy=2*Math.PI,Gy=Ey.CMD,Hy=2*Math.PI,Wy=1e-4,Xy=[-1,-1,-1],Yy=[-1,-1],Uy=sv.prototype.getCanvasPattern,Zy=Math.abs,qy=new Ey(!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||qy,r=i.hasStroke(),o=i.hasFill(),a=i.fill,s=i.stroke,l=o&&!!a.colorStops,u=r&&!!s.colorStops,h=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)),u&&(d=d||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=Uy.call(a,t)),u?t.strokeStyle=this._strokeGradient:c&&(t.strokeStyle=Uy.call(s,t));var f=i.lineDash,g=i.lineDashOffset,p=!!t.setLineDash,m=this.getGlobalScale();if(n.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!p&&r?(n.beginPath(t),f&&!p&&(n.setLineDash(f),n.setLineDashOffset(g)),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&&p&&(t.setLineDash(f),t.lineDashOffset=g),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&&p&&t.setLineDash([]),null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(){},createPathProxy:function(){this.path=new Ey},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new Ey),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&&Zy(t[0]-1)>1e-10&&Zy(t[3]-1)>1e-10?Math.sqrt(Zy(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)};h(e,io);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},h(io,Cn);var jy=Ey.CMD,Ky=[[],[],[]],$y=Math.sqrt,Jy=Math.atan2,Qy=function(t,e){var i,n,r,o,a,s,l=t.data,u=jy.M,h=jy.C,c=jy.L,d=jy.R,f=jy.A,g=jy.Q;for(r=0,o=0;r<l.length;){switch(i=l[r++],o=r,n=0,i){case u:n=1;break;case c:n=1;break;case h:n=3;break;case g:n=2;break;case f:var p=e[4],m=e[5],v=$y(e[0]*e[0]+e[1]*e[1]),y=$y(e[2]*e[2]+e[3]*e[3]),_=Jy(-e[1]/y,e[0]/v);l[r]*=v,l[r++]+=p,l[r]*=y,l[r++]+=m,l[r++]*=v,l[r++]*=y,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;n>a;a++){var s=Ky[a];s[0]=l[r++],s[1]=l[r++],oe(s,s,e),l[o++]=s[0],l[o++]=s[1]}}},t_=Math.sqrt,e_=Math.sin,i_=Math.cos,n_=Math.PI,r_=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},o_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(r_(t)*r_(e))},a_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o_(t,e))},s_=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,l_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,u_=function(t){Cn.call(this,t)};u_.prototype={constructor:u_,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&un(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;return null!=n&&(n+=""),Tn(n,i)?(this.setTransform(t),cn(this,t,n,i,null,e),void this.restoreTransform(t)):void(t.__attrCachedBy=tv.NONE)},getBoundingRect:function(){var t=this.style;if(this.__dirty&&un(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=Yi(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.textLineHeight,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,bn(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},h(u_,Cn);var h_=io.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),c_=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],d_=function(t){return zp.browser.ie&&zp.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r<i.length;r++){var o=i[r],a=o&&o.shape,s=o&&o.type;if(a&&("sector"===s&&a.startAngle===a.endAngle||"rect"===s&&(!a.width||!a.height))){for(var l=0;l<c_.length;l++)c_[l][2]=n[c_[l][0]],n[c_[l][0]]=c_[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<c_.length;l++)n[c_[l][0]]=c_[l][2]}:t},f_=io.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:d_(io.prototype.brush),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=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(a),h=Math.sin(a);t.moveTo(u*r+i,h*r+n),t.lineTo(u*o+i,h*o+n),t.arc(i,n,o,a,s,!l),t.lineTo(Math.cos(s)*r+i,Math.sin(s)*r+n),0!==r&&t.arc(i,n,r,s,a,l),t.closePath()}}),g_=io.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)}}),p_=function(t,e){for(var i=t.length,n=[],r=0,o=1;i>o;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,u,h=o/(a-1)*(e?i:i-1),c=Math.floor(h),d=h-c,f=t[c%i];e?(s=t[(c-1+i)%i],l=t[(c+1)%i],u=t[(c+2)%i]):(s=t[0===c?c:c-1],l=t[c>i-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var g=d*d,p=d*g;n.push([uo(s[0],f[0],l[0],u[0],d,g,p),uo(s[1],f[1],l[1],u[1],d,g,p)])}return n},m_=function(t,e,i,n){var r,o,a,s,l=[],u=[],h=[],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 g=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(W(t[d]));continue}r=t[d-1],o=t[d+1]}Z(u,o,r),Q(u,u,e);var p=ee(g,r),m=ee(g,o),v=p+m;0!==v&&(p/=v,m/=v),Q(h,u,-p),Q(c,u,m);var y=Y([],g,h),_=Y([],g,c);n&&(se(y,y,a),ae(y,y,s),se(_,_,a),ae(_,_,s)),l.push(y),l.push(_)}return i&&l.push(l.shift()),l},v_=io.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){ho(t,e,!0)}}),y_=io.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){ho(t,e,!1)}}),__=Math.round,x_={},w_=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(x_,e,this.style),i=x_.x,n=x_.y,r=x_.width,o=x_.height,x_.r=e.r,e=x_):(i=e.x,n=e.y,r=e.width,o=e.height),e.r?ln(t,e):t.rect(i,n,r,o),t.closePath()}}),b_={},S_=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(b_,e,this.style),i=b_.x1,n=b_.y1,r=b_.x2,o=b_.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]}}),M_=[],I_=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,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(Rr(i,a,r,h,M_),a=M_[1],r=M_[2],Rr(n,s,o,h,M_),s=M_[1],o=M_[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(Ar(i,a,l,r,h,M_),a=M_[1],l=M_[2],r=M_[3],Ar(n,s,u,o,h,M_),s=M_[1],u=M_[2],o=M_[3]),t.bezierCurveTo(a,s,l,u,r,o)))},pointAt:function(t){return po(this.shape,t,!1)},tangentAt:function(t){var e=po(this.shape,t,!0);return te(e,e)}}),T_=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),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)}}),C_=io.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),io.prototype.getBoundingRect.call(this)}}),D_=function(t){this.colorStops=t||[]};D_.prototype={constructor:D_,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var A_=function(t,e,i,n,r,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,D_.call(this,r)};A_.prototype={constructor:A_},h(A_,D_);var k_=function(t,e,i,n,r){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=r||!1,D_.call(this,n)};k_.prototype={constructor:k_},h(k_,D_),mo.prototype.incremental=!0,mo.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},mo.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},mo.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},mo.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},mo.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},mo.prototype.brush=function(t){for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.beforeBrush&&i.beforeBrush(t),i.brush(t,e===this._cursor?null:this._displayables[e-1]),i.afterBrush&&i.afterBrush(t)}this._cursor=e;for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.beforeBrush&&i.beforeBrush(t),i.brush(t,0===e?null:this._temporaryDisplayables[e-1]),i.afterBrush&&i.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var P_=[];mo.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Ti(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(P_)),t.union(n)}this._rect=t}return this._rect},mo.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},h(mo,Cn);var L_=Math.max,O_=Math.min,z_={},R_=1,N_={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},B_="emphasis",E_="normal",F_=1,V_={},G_={},H_=lo,W_=go,X_=E(),Y_=0;_o("circle",h_),_o("sector",f_),_o("ring",g_),_o("polygon",v_),_o("polyline",y_),_o("rect",w_),_o("line",S_),_o("bezierCurve",I_),_o("arc",T_);var U_=(Object.freeze||Object)({Z2_EMPHASIS_LIFT:R_,CACHED_LABEL_STYLE_PROPERTIES:N_,extendShape:vo,extendPath:yo,registerShape:_o,getShapeClass:xo,makePath:wo,makeImage:bo,mergePath:H_,resizePath:Mo,subPixelOptimizeLine:Io,subPixelOptimizeRect:To,subPixelOptimize:W_,setElementHoverStyle:zo,setHoverStyle:Vo,setAsHighDownDispatcher:Go,isHighDownDispatcher:Ho,getHighlightDigit:Wo,setLabelStyle:Xo,modifyLabelStyle:Yo,setTextStyle:Uo,setText:Zo,getFont:ta,updateProps:ia,initProps:na,getTransform:ra,applyTransform:oa,transformDirection:aa,groupTransition:sa,clipPointsByRect:la,clipRectByRect:ua,createIcon:ha,linePolygonIntersect:ca,lineLineIntersect:da,Group:qm,Image:Dn,Text:u_,Circle:h_,Sector:f_,Ring:g_,Polygon:v_,Polyline:y_,Rect:w_,Line:S_,BezierCurve:I_,Arc:T_,IncrementalDisplayable:mo,CompoundPath:C_,LinearGradient:A_,RadialGradient:k_,BoundingRect:Ti}),Z_=["textStyle","color"],q_={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Z_):null)},getFont:function(){return ta({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Yi(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},j_=iy([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),K_={getItemStyle:function(t,e){var i=j_(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},$_=c,J_=ur();pa.prototype={constructor:pa,init:null,mergeOption:function(t){r(this.option,t,!0)},get:function(t,e){return null==t?this.option:ma(this.option,this.parsePath(t),!e&&va(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],r=!e&&va(this,t);return null==n&&r&&(n=r.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:ma(this.option,t=this.parsePath(t));return e=e||(i=va(this,t))&&i.getModel(t),new pa(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var t=this.constructor;return new t(n(this.option))},setReadOnly:function(){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){J_(this).getParent=t},isAnimationEnabled:function(){if(!zp.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},yr(pa),_r(pa),$_(pa,ry),$_(pa,ay),$_(pa,q_),$_(pa,K_);var Q_=0,tx=1e-4,ex=9007199254740991,ix=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,nx=(Object.freeze||Object)({linearMap:ba,parsePercent:Sa,round:Ma,asc:Ia,getPrecision:Ta,getPrecisionSafe:Ca,getPixelPrecision:Da,getPercentWithPrecision:Aa,MAX_SAFE_INTEGER:ex,remRadian:ka,isRadianAroundZero:Pa,parseDate:La,quantity:Oa,quantityExponent:za,nice:Ra,quantile:Na,reformIntervals:Ba,isNumeric:Ea}),rx=L,ox=/([&<>"'])/g,ax={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sx=["a","b","c","d","e","f","g"],lx=function(t,e){return"{"+t+(null==e?"":e)+"}"},ux=$i,hx=(Object.freeze||Object)({addCommas:Fa,toCamelCase:Va,normalizeCssArray:rx,encodeHTML:Ga,formatTpl:Ha,formatTplSimple:Wa,getTooltipMarker:Xa,formatTime:Ua,capitalFirst:Za,truncateText:ux,getTextBoundingRect:qa,getTextRect:ja,windowOpen:Ka}),cx=f,dx=["left","right","top","bottom","width","height"],fx=[["width","left","right"],["height","top","bottom"]],gx=$a,px=(_($a,"vertical"),_($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")}}}),mx=ur(),vx=pa.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){pa.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?es(t):{},o=e.getTheme();r(t,o.get(this.mainType)),r(t,this.getDefaultOption()),i&&ts(t,n,i)},mergeOption:function(t){r(this.option,t,!0);var e=this.layoutMode;e&&ts(this.option,t,e)},optionUpdated:function(){},getDefaultOption:function(){var t=mx(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(vx,{registerWhenExtend:!0}),_a(vx),xa(vx,ns),c(vx,px);var yx="";"undefined"!=typeof navigator&&(yx=navigator.platform||"");var _x={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:yx.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},xx=ur(),bx={clearColorPalette:function(){xx(this).colorIdx=0,xx(this).colorNameMap={}},getColorFromPalette:function(t,e,i){e=e||this;var n=xx(e),r=n.colorIdx||0,o=n.colorNameMap=n.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var a=tr(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?rs(s,i):a;if(l=l||a,l&&l.length){var u=l[r];return t&&(o[t]=u),n.colorIdx=(r+1)%l.length,u}}},Sx="original",Mx="arrayRows",Ix="objectRows",Tx="keyedColumns",Cx="unknown",Dx="typedArray",Ax="column",kx="row";os.seriesDataToSource=function(t){return new os({data:t,sourceFormat:I(t)?Dx:Sx,fromDataset:!1})},_r(os);var Px={Must:1,Might:2,Not:3},Lx=ur(),Ox="\x00_ec_inner",zx=pa.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new pa(i),this._optionManager=n},setOption:function(t,e){O(!(Ox 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)):ws.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=tr(t[e]),s=rr(o.get(e),r);or(s),f(s,function(t){var i=t.option;S(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Ss(e,i,t.exist))});var l=bs(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 u=vx.getClass(e,t.keyInfo.subType,!0);if(r&&r.constructor===u)r.name=t.keyInfo.name,r.mergeOption(s,this),r.optionUpdated(s,!1);else{var h=a({dependentModels:l,componentIndex:n},t.keyInfo);r=new u(s,this,this,h),a(r,h),r.init(s,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);o.get(e)[n]=r,i[e][n]=r.option},this),"series"===e&&Ms(this,o.get("series"))}var i=this.option,o=this._componentsMap,s=[];ls(this),f(t,function(t,e){null!=t&&(vx.hasClass(e)?e&&s.push(e):i[e]=null==i[e]?n(t):r(i[e],t,!0))}),vx.topologicalTravel(s,vx.getAllClassMainTypes(),e,this),this._seriesIndicesMap=E(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=n(this.option);return f(t,function(e,i){if(vx.hasClass(i)){for(var e=tr(e),n=e.length-1;n>=0;n--)sr(e[n])&&e.splice(n,1);t[i]=e}}),delete t[Ox],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)x(i)||(i=[i]),a=m(g(i,function(t){return o[t]}),function(t){return!!t});else if(null!=n){var s=x(n);a=m(o,function(t){return s&&u(n,t.id)>=0||!s&&t.id===n})}else if(null!=r){var l=x(r);a=m(o,function(t){return l&&u(r,t.name)>=0||!l&&t.name===r})}else a=o.slice();return Is(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(Is(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){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){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 null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var i=m(this._componentsMap.get("series"),t,e);Ms(this,i)},restoreData:function(t){var e=this._componentsMap;Ms(this,e.get("series"));var i=[];e.each(function(t,e){i.push(e)}),vx.topologicalTravel(i,vx.getAllClassMainTypes(),function(i){f(e.get(i),function(e){("series"!==i||!_s(e,t))&&e.restoreData()})})}});c(zx,bx);var Rx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],Nx={};Cs.prototype={constructor:Cs,create:function(t,e){var i=[];f(Nx,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()}},Cs.register=function(t,e){Nx[t]=e},Cs.get=function(t){return Nx[t]};var Bx=f,Ex=n,Fx=g,Vx=r,Gx=/^(min|max)?(.+)$/;Ds.prototype={constructor:Ds,setOption:function(t,e){t&&f(tr(t.series),function(t){t&&t.data&&I(t.data)&&R(t.data)}),t=Ex(t);var i=this._optionBackup,n=As.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=Fx(e.timelineOptions,Ex),this._mediaList=Fx(e.mediaList,Ex),this._mediaDefault=Ex(e.mediaDefault),this._currentMediaIndices=[],Ex(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=Ex(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=Fx(r,function(t){return Ex(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,o}};var Hx=f,Wx=S,Xx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Yx=function(t,e){Hx(Vs(t.series),function(t){Wx(t)&&Fs(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),Hx(i,function(e){Hx(Vs(t[e]),function(t){t&&(Bs(t,"axisLabel"),Bs(t.axisPointer,"label"))})}),Hx(Vs(t.parallel),function(t){var e=t&&t.parallelAxisDefault;Bs(e,"axisLabel"),Bs(e&&e.axisPointer,"label")}),Hx(Vs(t.calendar),function(t){Rs(t,"itemStyle"),Bs(t,"dayLabel"),Bs(t,"monthLabel"),Bs(t,"yearLabel")}),Hx(Vs(t.radar),function(t){Bs(t,"name")}),Hx(Vs(t.geo),function(t){Wx(t)&&(Es(t),Hx(Vs(t.regions),function(t){Es(t)}))}),Hx(Vs(t.timeline),function(t){Es(t),Rs(t,"label"),Rs(t,"itemStyle"),Rs(t,"controlStyle",!0);var e=t.data;x(e)&&f(e,function(t){S(t)&&(Rs(t,"label"),Rs(t,"itemStyle"))})}),Hx(Vs(t.toolbox),function(t){Rs(t,"iconStyle"),Hx(t.feature,function(t){Rs(t,"iconStyle")})}),Bs(Gs(t.axisPointer),"label"),Bs(Gs(t.tooltip).axisPointer,"label")},Ux=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Zx=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],qx=function(t,e){Yx(t,e),t.series=tr(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=Hs(t,"pointer.color");null!=i&&Ws(t,"itemStyle.color",i)}Xs(t)}}),t.dataRange&&(t.visualMap=t.dataRange),f(Zx,function(e){var i=t[e];i&&(x(i)||(i=[i]),f(i,function(t){Xs(t)}))})},jx=function(t){var e=E();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(Ys)},Kx=Us.prototype;Kx.pure=!1,Kx.persistent=!0,Kx.getSource=function(){return this._source};var $x={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:js},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<i.length;n++){var r=i[n];e.push(r?r[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:Zs,getItem:qs,appendData:js},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var r=this._data[i[n].name];e.push(r?r[t]:null)}return e},appendData:function(t){var e=this._data;f(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},original:{count:Zs,getItem:qs,appendData:js},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},Jx={arrayRows:Ks,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:Ks,original:function(t,e,i){var n=ir(t);return null!=i&&n instanceof Array?n[i]:n},typedArray:Ks},Qx={arrayRows:$s,objectRows:function(t,e){return Js(t[e],this._dimensionInfos[e])},keyedColumns:$s,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return!this._rawData.pure&&nr(t)&&(this.hasItemOption=!0),Js(r instanceof Array?r[n]:r,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}},tw=/\{@(.+?)\}/g,ew={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"color"),l=i.getItemVisual(t,"borderColor"),u=this.ecModel.getComponent("tooltip"),h=u&&u.get("renderMode"),c=gr(h),d=this.mainType,f="series"===d,g=i.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:s,borderColor:l,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:Xa({color:s,renderMode:c}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,r){e=e||"normal";var o=this.getData(i),a=o.getItemModel(t),s=this.getDataParams(t,i);null!=n&&s.value instanceof Array&&(s.value=s.value[n]);var l=a.get("normal"===e?[r||"label","formatter"]:[e,r||"label","formatter"]);if("function"==typeof l)return s.status=e,s.dimensionIndex=n,l(s);if("string"==typeof l){var u=Ha(l,s);return u.replace(tw,function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),Qs(o,t,i)})}},getRawValue:function(t,e){return Qs(this.getData(e),t)},formatTooltip:function(){}},iw=il.prototype;iw.perform=function(t){function e(t){return!(t>=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),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=rl(this,n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd: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&&(h||f>d)){var g=this._progress;if(x(g))for(var p=0;p<g.length;p++)nl(this,g[p],d,f,l,u);else nl(this,g,d,f,l,u)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var nw=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,u,h,c){n=l,i=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}();iw.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},iw.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},iw.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},iw.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},iw.getUpstream=function(){return this._upstream},iw.getDownstream=function(){return this._downstream},iw.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var rw=ur(),ow=vx.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=el({count:sl,reset:ll}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),us(this);var n=this.getInitialData(t,i);hl(n,this),this.dataTask.context.data=n,rw(this).dataBeforeProcessed=n,ol(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?es(t):{},o=this.subType;vx.hasClass(o)&&(o+="Series"),r(t,e.getTheme().get(this.subType)),r(t,this.getDefaultOption()),er(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ts(t,n,i)},mergeOption:function(t,e){t=r(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&ts(this.option,t,i),us(this);var n=this.getInitialData(t,e);hl(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,rw(this).dataBeforeProcessed=n,ol(this)},fillDataTextStyle:function(t){if(t&&!I(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&er(t[i],"label",e)},getInitialData:function(){},appendData:function(t){var e=this.getRawData();e.appendData(t.data)},getData:function(t){var e=dl(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return rw(this).data},setData:function(t){var e=dl(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}rw(this).data=t},getSource:function(){return ss(this)},getRawData:function(){return rw(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i,n){function r(i){function r(t,i){var r=c.getDimensionInfo(i);if(r&&r.otherDims.tooltip!==!1){var d=r.type,f="sub"+a.seriesIndex+"at"+h,g=Xa({color:y,type:"subItem",renderMode:n,markerId:f}),p="string"==typeof g?g:g.content,m=(o?p+Ga(r.displayName||"-")+": ":"")+Ga("ordinal"===d?t+"":"time"===d?e?"":Ua("yyyy/MM/dd hh:mm:ss",t):Fa(t));m&&s.push(m),l&&(u[f]=y,++h)}}var o=p(i,function(t,e,i){var n=c.getDimensionInfo(i);return t|=n&&n.tooltip!==!1&&null!=n.displayName},0),s=[];d.length?f(d,function(e){r(Qs(c,t,e),e)}):f(i,r);var g=o?l?"\n":"<br/>":"",m=g+s.join(g||", ");return{renderMode:n,content:m,style:u}}function o(t){return{renderMode:n,content:Ga(Fa(t)),style:u}}var a=this;n=n||"html";var s="html"===n?"<br/>":"\n",l="richText"===n,u={},h=0,c=this.getData(),d=c.mapDimension("defaultedTooltip",!0),g=d.length,m=this.getRawValue(t),v=x(m),y=c.getItemVisual(t,"color");S(y)&&y.colorStops&&(y=(y.colorStops[0]||{}).color),y=y||"transparent";var _=g>1||v&&!g?r(m):o(g?Qs(c,t,d[0]):v?m[0]:m),w=_.content,b=a.seriesIndex+"at"+h,M=Xa({color:y,type:"item",renderMode:n,markerId:b});u[b]=y,++h;var I=c.getName(t),T=this.name;ar(this)||(T=""),T=T?Ga(T)+(e?": ":s):"";var C="string"==typeof M?M:M.content,D=e?C+T+w:T+C+(I?Ga(I)+": "+w:w);return{html:D,markers:u}},isAnimationEnabled:function(){if(zp.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=bx.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(ow,ew),c(ow,bx);var aw=function(){this.group=new qm,this.uid=ya("viewComponent")};aw.prototype={constructor:aw,init:function(){},render:function(){},dispose:function(){},filterForExposedEvent:null};var sw=aw.prototype;sw.updateView=sw.updateLayout=sw.updateVisual=function(){},yr(aw),br(aw,{registerWhenExtend:!0});var lw=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"}},uw=ur(),hw=lw();fl.prototype={type:"chart",init:function(){},render:function(){},highlight:function(t,e,i,n){pl(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){pl(t.getData(),n,"normal")},remove:function(){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var cw=fl.prototype;cw.updateView=cw.updateLayout=cw.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},yr(fl,["dispose"]),br(fl,{registerWhenExtend:!0}),fl.markUpdateMethod=function(t,e){uw(t).updateMethod=e};var dw={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)}}},fw="\x00__throttleOriginMethod",gw="\x00__throttleRate",pw="\x00__throttleType",mw={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 D_?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}}}},vw={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:""}}}},yw=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=vw.aria,r=0;r<i.length;++r)n=n[i[r]];return n}return e}function r(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}function o(t){return vw.series.typeNames[t]||"自定义图"}var a=e.getModel("aria");if(a.get("show")){if(a.get("description"))return void t.setAttribute("aria-label",a.get("description"));var s=0;e.eachSeries(function(){++s},this);var l,u=a.get("data.maxCount")||10,h=a.get("series.maxCount")||10,c=Math.min(s,h);if(!(1>s)){var d=r();l=d?i(n("general.withTitle"),{title:d}):n("general.withoutTitle");var g=[],p=s>1?"series.multiple.prefix":"series.single.prefix";l+=i(n(p),{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 h=t.getData();window.data=h,r+=h.count()>u?i(n("data.partialData"),{displayCnt:u}):n("data.allData");for(var d=[],f=0;f<h.count();f++)if(u>f){var p=h.getName(f),m=Qs(h,f);d.push(i(n(p?"data.withName":"data.withoutName"),{name:p,value:m}))}r+=d.join(n("data.separator.middle"))+n("data.separator.end"),g.push(r)}}),l+=g.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",l)}}},_w=Math.PI,xw=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 qm,n=new w_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r=e.fontSize+" sans-serif",o=new w_({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 T_({shape:{startAngle:-_w/2,endAngle:-_w/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*_w/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*_w/2}).delay(300).start("circularInOut"),i.add(a)}return i.resize=function(){var i=Xi(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),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},ww=xl.prototype;ww.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},ww.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}}},ww.getPipeline=function(t){return this._pipelineMap.get(t)},ww.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}},ww.restorePipelines=function(t){var e=this,i=e._pipelineMap=E();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}),Ll(e,t,t.dataTask)})},ww.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&&bl(this,n,r,e,i),n.overallReset&&Sl(this,n,r,e,i)},this)},ww.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,Ll(this,e,r)},ww.performDataProcessorTasks=function(t,e){wl(this,this._dataProcessorHandlers,t,e,{block:!0})},ww.performVisualTasks=function(t,e,i){wl(this,this._visualHandlers,t,e,i)},ww.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e|=t.dataTask.perform()}),this.unfinished|=e},ww.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 bw=ww.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Sw=kl(0);xl.wrapStageHandler=function(t,e){return w(t)&&(t={overallReset:t,seriesType:Ol(t)}),t.uid=ya("stageHandler"),e&&(t.visualType=e),t};var Mw,Iw={},Tw={};zl(Iw,zx),zl(Tw,Ts),Iw.eachSeriesByType=Iw.eachRawSeriesByType=function(t){Mw=t},Iw.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Mw=t.subType)};var Cw=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Dw={color:Cw,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Cw]},Aw="#eee",kw=function(){return{axisLine:{lineStyle:{color:Aw}},axisTick:{lineStyle:{color:Aw}},axisLabel:{textStyle:{color:Aw}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Aw}}}},Pw=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],Lw={color:Pw,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:Aw},crossStyle:{color:Aw},label:{color:"#000"}}},legend:{textStyle:{color:Aw}},textStyle:{color:Aw},title:{textStyle:{color:Aw}},toolbox:{iconStyle:{normal:{borderColor:Aw}}},dataZoom:{textStyle:{color:Aw}},visualMap:{textStyle:{color:Aw}},timeline:{lineStyle:{color:Aw},itemStyle:{normal:{color:Pw[1]}},label:{normal:{textStyle:{color:Aw}}},controlStyle:{normal:{color:Aw,borderColor:Aw}}},timeAxis:kw(),logAxis:kw(),valueAxis:kw(),categoryAxis:kw(),line:{symbol:"circle"},graph:{color:Pw},gauge:{title:{textStyle:{color:Aw}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};Lw.categoryAxis.splitLine.show=!1,vx.extend({type:"dataset",defaultOption:{seriesLayoutBy:Ax,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){as(this)}}),aw.extend({type:"dataset"});var Ow=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()}}),zw=/[\s,]+/;Nl.prototype.parse=function(t,e){e=e||{};var i=Rl(t);if(!i)throw new Error("Illegal svg");var n=new qm;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),Vl(i,n,null,!0);for(var s=i.firstChild;s;)this._parseNode(s,n),s=s.nextSibling;var l,u;if(r){var h=z(r).split(zw);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=a&&(u=Xl(l,o,a),!e.ignoreViewBox)){var c=n;n=new qm,n.add(c),c.scale=u.scale.slice(),c.position=u.position.slice()}return e.ignoreRootClip||null==o||null==a||n.setClipPath(new w_({shape:{x:0,y:0,width:o,height:a}})),{root:n,width:o,height:a,viewBoxRect:l,viewBoxTransform:u}},Nl.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=Nw[i];if(r){var o=r.call(this,t),a=t.getAttribute("id");a&&(this._defs[a]=o)}}else{var r=Rw[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)},Nl.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 u_({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});El(e,r),Vl(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 Rw={g:function(t,e){var i=new qm;return El(e,i),Vl(t,i,this._defs),i},rect:function(t,e){var i=new w_;return El(e,i),Vl(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 h_;return El(e,i),Vl(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 S_;return El(e,i),Vl(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 Ow;return El(e,i),Vl(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=Fl(i));var n=new v_({shape:{points:i||[]}});return El(e,n),Vl(t,n,this._defs),n},polyline:function(t,e){var i=new io;El(e,i),Vl(t,i,this._defs);var n=t.getAttribute("points");n&&(n=Fl(n));var r=new y_({shape:{points:n||[]}});return r},image:function(t,e){var i=new Dn;return El(e,i),Vl(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 qm;return El(e,a),Vl(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 qm;return El(e,a),Vl(t,a,this._defs),this._textX+=r,this._textY+=o,a},path:function(t,e){var i=t.getAttribute("d")||"",n=ao(i);return El(e,n),Vl(t,n,this._defs),n}},Nw={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 A_(e,i,n,r);return Bl(t,o),o},radialgradient:function(){}},Bw={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"},Ew=/url\(\s*#(.*?)\)/,Fw=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,Vw=/([^\s:;]+)\s*:\s*([^:;]+)/g,Gw=E(),Hw={registerMap:function(t,e,i){var n;return x(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=Ww[e];i(t)}),Gw.set(t,n)},retrieveMap:function(t){return Gw.get(t)}},Ww={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)}},Xw=O,Yw=f,Uw=w,Zw=S,qw=vx.parseClassType,jw="4.9.0",Kw={zrender:"4.3.2"},$w=1,Jw=1e3,Qw=800,tb=900,eb=5e3,ib=1e3,nb=1100,rb=2e3,ob=3e3,ab=3500,sb=4e3,lb=5e3,ub={PROCESSOR:{FILTER:Jw,SERIES_FILTER:Qw,STATISTIC:eb},VISUAL:{LAYOUT:ib,PROGRESSIVE_LAYOUT:nb,GLOBAL:rb,CHART:ob,POST_CHART_LAYOUT:ab,COMPONENT:sb,BRUSH:lb}},hb="__flagInMainProcess",cb="__optionUpdated",db=/^[a-zA-Z0-9_]+$/;Zl.prototype.on=Ul("on",!0),Zl.prototype.off=Ul("off",!0),Zl.prototype.one=Ul("one",!0),c(Zl,im);var fb=ql.prototype;fb._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[cb]){var e=this[cb].silent;this[hb]=!0,Kl(this),gb.update.call(this),this[hb]=!1,this[cb]=!1,tu.call(this,e),eu.call(this,e)}else if(t.unfinished){var i=$w,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),su(this,this._model,r,"remain"),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},fb.getDom=function(){return this._dom},fb.getZr=function(){return this._zr},fb.setOption=function(t,e,i){if(!this._disposed){var n;if(Zw(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[hb]=!0,!this._model||e){var r=new Ds(this._api),o=this._theme,a=this._model=new zx;a.scheduler=this._scheduler,a.init(null,null,o,r)}this._model.setOption(t,_b),i?(this[cb]={silent:n},this[hb]=!1):(Kl(this),gb.update.call(this),this._zr.flush(),this[cb]=!1,this[hb]=!1,tu.call(this,n),eu.call(this,n))}},fb.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},fb.getModel=function(){return this._model},fb.getOption=function(){return this._model&&this._model.getOption()},fb.getWidth=function(){return this._zr.getWidth()},fb.getHeight=function(){return this._zr.getHeight()},fb.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},fb.getRenderedCanvas=function(t){if(zp.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)}},fb.getSvgDataURL=function(){if(zp.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return f(e,function(t){t.stopAnimation(!0)}),t.painter.toDataURL()}},fb.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;Yw(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 Yw(n,function(t){t.group.ignore=!1}),o}},fb.getConnectedDataURL=function(t){if(!this._disposed&&zp.canvasSupported){var e="svg"===t.type,i=this.group,r=Math.min,o=Math.max,a=1/0;if(Ib[i]){var s=a,l=a,u=-a,h=-a,c=[],d=t&&t.pixelRatio||1;f(Mb,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),u=o(f.right,u),h=o(f.bottom,h),c.push({dom:d,left:f.left,top:f.top})}}),s*=d,l*=d,u*=d,h*=d;var g=u-s,p=h-l,m=Yp(),v=jn(m,{renderer:e?"svg":"canvas"});if(v.resize({width:g,height:p}),e){var y="";return Yw(c,function(t){var e=t.left-s,i=t.top-l;y+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new w_({shape:{x:0,y:0,width:g,height:p},style:{fill:t.connectedBackgroundColor}})),Yw(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)}},fb.convertToPixel=_(jl,"convertToPixel"),fb.convertFromPixel=_(jl,"convertFromPixel"),fb.containPixel=function(t,e){if(!this._disposed){var i,n=this._model;return t=hr(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))}},this)},this),!!i}},fb.getVisual=function(t,e){var i=this._model;t=hr(i,t,{defaultMainType:"series"});var n=t.seriesModel,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)},fb.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},fb.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var gb={prepareAndUpdate:function(t){Kl(this),gb.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),ru(e),o.performVisualTasks(e,t),ou(this,e,i,t);var a=e.get("backgroundColor")||"transparent";if(zp.canvasSupported)n.setBackgroundColor(a);else{var s=ti(a);a=ui(s,"rgb"),0===s[3]&&(a="transparent")}lu(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=E();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)}),ru(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),su(i,e,n,t,o),lu(e,this._api)}},updateView:function(t){var e=this._model;e&&(fl.markUpdateMethod(t,"updateView"),ru(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ou(this,this._model,this._api,t),lu(e,this._api))},updateVisual:function(t){gb.update.call(this,t)},updateLayout:function(t){gb.update.call(this,t)}};fb.resize=function(t){if(!this._disposed){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[hb]=!0,i&&Kl(this),gb.update.call(this),this[hb]=!1,tu.call(this,n),eu.call(this,n)}}},fb.showLoading=function(t,e){if(!this._disposed&&(Zw(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Sb[t])){var i=Sb[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},fb.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},fb.makeActionFromEvent=function(t){var e=a({},t);return e.type=vb[t.type],e},fb.dispatchAction=function(t,e){if(!this._disposed&&(Zw(e)||(e={silent:!!e}),mb[t.type]&&this._model)){if(this[hb])return void this._pendingActions.push(t);Ql.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&zp.browser.weChat&&this._throttledZrFlush(),tu.call(this,e.silent),eu.call(this,e.silent)}},fb.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);n.appendData(t),this._scheduler.unfinished=!0}},fb.on=Ul("on",!1),fb.off=Ul("off",!1),fb.one=Ul("one",!1);var pb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];fb._initEvents=function(){Yw(pb,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,u=i.componentIndex;("markLine"===l||"markPoint"===l||"markArea"===l)&&(l="series",u=i.seriesIndex);var h=l&&null!=u&&n.getComponent(l,u),c=h&&this["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:h,view:c},this.trigger(t,i)}};e.zrEventfulCallAtLast=!0,this._zr.on(t,e,this)},this),Yw(vb,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},fb.isDisposed=function(){return this._disposed
},fb.clear=function(){this._disposed||this.setOption({series:[]},!0)},fb.dispose=function(){if(!this._disposed){this._disposed=!0,dr(this.getDom(),Db,"");var t=this._api,e=this._model;Yw(this._componentsViews,function(i){i.dispose(e,t)}),Yw(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete Mb[this.id]}},c(ql,im),fu.prototype={constructor:fu,normalizeQuery:function(t){var e={},i={},n={};if(b(t)){var r=qw(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;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.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,u=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(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},afterTrigger:function(){this.eventInfo=null}};var mb={},vb={},yb=[],_b=[],xb=[],wb=[],bb={},Sb={},Mb={},Ib={},Tb=new Date-0,Cb=new Date-0,Db="_echarts_instance_",Ab=vu;Au(rb,mw),bu(qx),Su(tb,jx),Pu("default",xw),Iu({type:"highlight",event:"highlight",update:"highlight"},V),Iu({type:"downplay",event:"downplay",update:"downplay"},V),wu("light",Dw),wu("dark",Lw);var kb={};Vu.prototype={constructor:Vu,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(Gu(e,n,o,"_oldKeyGetter",this),Gu(i,r,a,"_newKeyGetter",this),t=0;t<e.length;t++){var s=o[t],l=r[s];if(null!=l){var u=l.length;u?(1===u&&(r[s]=null),l=l.shift()):r[s]=null,this._update&&this._update(l,t)}else this._remove&&this._remove(t)}for(var t=0;t<a.length;t++){var s=a[t];if(r.hasOwnProperty(s)){var l=r[s];if(null==l)continue;if(l.length)for(var h=0,u=l.length;u>h;h++)this._add&&this._add(l[h]);else this._add&&this._add(l)}}}};var Pb=E(["tooltip","label","itemName","itemId","seriesName"]),Lb=S,Ob="undefined",zb=-1,Rb="e\x00\x00",Nb={"float":typeof Float64Array===Ob?Array:Float64Array,"int":typeof Int32Array===Ob?Array:Int32Array,ordinal:Array,number:Array,time:Array},Bb=typeof Uint32Array===Ob?Array:Uint32Array,Eb=typeof Int32Array===Ob?Array:Int32Array,Fb=typeof Uint16Array===Ob?Array:Uint16Array,Vb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],Gb=["_extent","_approximateExtent","_rawExtent"],Hb=function(t,e){t=t||["x","y"];for(var i={},n=[],r={},o=0;o<t.length;o++){var a=t[o];b(a)?a=new Uu({name:a}):a instanceof Uu||(a=new Uu(a));var s=a.name;a.type=a.type||"float",a.coordDim||(a.coordDim=s,a.coordDimIndex=0),a.otherDims=a.otherDims||{},n.push(s),i[s]=a,a.index=o,a.createInvertedIndices&&(r[s]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=Hu(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},Wb=Hb.prototype;Wb.type="list",Wb.hasItemOption=!0,Wb.getDimension=function(t){return("number"==typeof t||!isNaN(t)&&!this._dimensionInfos.hasOwnProperty(t))&&(t=this.dimensions[t]),t},Wb.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},Wb.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},Wb.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return e===!0?(n||[]).slice():n&&n[e]},Wb.initData=function(t,e,i){var n=os.isInstance(t)||d(t);n&&(t=new Us(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=Qx[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=Qx.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},Wb.getProvider=function(){return this._rawData},Wb.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},Wb.appendValues=function(t,e){for(var i=this._chunkSize,n=this._storage,r=this.dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e?e.length:0),u=this._chunkCount,h=0;o>h;h++){var c=r[h];a[c]||(a[c]=oh()),n[c]||(n[c]=[]),Ku(n,this._dimensionInfos[c],i,u,l),this._chunkCount=n[c].length}for(var d=new Array(o),f=s;l>f;f++){for(var g=f-s,p=Math.floor(f/i),m=f%i,v=0;o>v;v++){var c=r[v],y=this._dimValueGetterArrayRows(t[g]||d,c,g,v);n[c][p][m]=y;var _=a[c];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}e&&(this._nameList[f]=e[g])}this._rawCount=this._count=l,this._extent={},$u(this)},Wb._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,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,g=0;s>g;g++){var p=a[g];c[p]||(c[p]=oh());var m=l[p];0===m.otherDims.itemName&&(i=this._nameDimIdx=g),0===m.otherDims.itemId&&(this._idDimIdx=g),o[p]||(o[p]=[]),Ku(o,m,n,f,e),this._chunkCount=o[p].length}for(var v=new Array(s),y=t;e>y;y++){v=r.getItem(y,v);for(var _=Math.floor(y/n),x=y%n,w=0;s>w;w++){var p=a[w],b=o[p][_],S=this._dimValueGetter(v,p,y,w);b[x]=S;var M=c[p];S<M[0]&&(M[0]=S),S>M[1]&&(M[1]=S)}if(!r.pure){var I=u[y];if(v&&null==I)if(null!=v.name)u[y]=I=v.name;else if(null!=i){var T=a[i],C=o[T][_];if(C){I=C[x];var D=l[T].ordinalMeta;D&&D.categories.length&&(I=D.categories[I])}}var A=null==v?null:v.id;null==A&&null!=I&&(d[I]=d[I]||0,A=I,d[I]>0&&(A+="__ec__"+d[I]),d[I]++),null!=A&&(h[y]=A)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent={},$u(this)}},Wb.count=function(){return this._count},Wb.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=Zu(this),t=new i(this.count()),r=0;r<t.length;r++)t[r]=r;return t},Wb.get=function(t,e){if(!(e>=0&&e<this._count))return 0/0;var i=this._storage;if(!i[t])return 0/0;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=i[t][n],a=o[r];return a},Wb.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var i=this._storage[t];if(!i)return 0/0;var n=Math.floor(e/this._chunkSize),r=e%this._chunkSize,o=i[n];return o[r]},Wb._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize,r=this._storage[t][i];return r[n]},Wb.getValues=function(t,e){var i=[];x(t)||(e=t,t=this.dimensions);for(var n=0,r=t.length;r>n;n++)i.push(this.get(t[n],e));return i},Wb.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},Wb.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],i=oh();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 u=this._getFast(t,this.getRawIndex(l));a>u&&(a=u),u>s&&(s=u)}return n=[a,s],this._extent[t]=n,n},Wb.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},Wb.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Wb.getCalculationInfo=function(t){return this._calculationInfo[t]},Wb.setCalculationInfo=function(t,e){Lb(t)?a(this._calculationInfo,t):this._calculationInfo[t]=e},Wb.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},Wb.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},Wb.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?zb:n},Wb.indexOfName=function(t){for(var e=0,i=this.count();i>e;e++)if(this.getName(e)===t)return e;return-1},Wb.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<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},Wb.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,u=0,h=this.count();h>u;u++){var c=e-this.get(t,u),d=Math.abs(c);i>=d&&((a>d||d===a&&c>=0&&0>s)&&(a=d,s=c,l=0),c===s&&(o[l++]=u))}return o.length=l,o},Wb.getRawIndex=Qu,Wb.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},Wb.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||Ju(this,this._nameDimIdx,e)||""},Wb.getId=function(t){return eh(this,this.getRawIndex(t))},Wb.each=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=g(ih(t),this.getDimension,this);for(var r=t.length,o=0;o<this.count();o++)switch(r){case 0:e.call(i,o);break;case 1:e.call(i,this.get(t[0],o),o);break;case 2:e.call(i,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var a=0,s=[];r>a;a++)s[a]=this.get(t[a],o);s[a]=o,e.apply(i,s)}}},Wb.filterSelf=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=g(ih(t),this.getDimension,this);for(var r=this.count(),o=Zu(this),a=new o(r),s=[],l=t.length,u=0,h=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 p=this._getFast(h,f);d=e.call(i,p,c)}else{for(var m=0;l>m;m++)s[m]=this._getFast(h,f);s[m]=c,d=e.apply(i,s)}d&&(a[u++]=f)}return r>u&&(this._indices=a),this._count=u,this._extent={},this.getRawIndex=this._indices?th:Qu,this}},Wb.selectRange=function(t){if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var n=e.length;if(n){var r=this.count(),o=Zu(this),a=new o(r),s=0,l=e[0],u=t[l][0],h=t[l][1],c=!1;if(!this._indices){var d=0;if(1===n){for(var f=this._storage[e[0]],g=0;g<this._chunkCount;g++)for(var p=f[g],m=Math.min(this._count-g*this._chunkSize,this._chunkSize),v=0;m>v;v++){var y=p[v];(y>=u&&h>=y||isNaN(y))&&(a[s++]=d),d++}c=!0}else if(2===n){for(var f=this._storage[l],_=this._storage[e[1]],x=t[e[1]][0],w=t[e[1]][1],g=0;g<this._chunkCount;g++)for(var p=f[g],b=_[g],m=Math.min(this._count-g*this._chunkSize,this._chunkSize),v=0;m>v;v++){var y=p[v],S=b[v];(y>=u&&h>=y||isNaN(y))&&(S>=x&&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>=u&&h>=y||isNaN(y))&&(a[s++]=M)}else for(var v=0;r>v;v++){for(var I=!0,M=this.getRawIndex(v),g=0;n>g;g++){var T=e[g],y=this._getFast(i,M);(y<t[T][0]||y>t[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?th:Qu,this}}},Wb.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},Wb.map=function(t,e,i,n){i=i||n||this,t=g(ih(t),this.getDimension,this);var r=nh(this,t);r._indices=this._indices,r.getRawIndex=r._indices?th:Qu;for(var o=r._storage,a=[],s=this._chunkSize,l=t.length,u=this.count(),h=[],c=r._rawExtent,d=0;u>d;d++){for(var f=0;l>f;f++)h[f]=this.get(t[f],d);h[l]=d;var p=e&&e.apply(i,h);if(null!=p){"object"!=typeof p&&(a[0]=p,p=a);for(var m=this.getRawIndex(d),v=Math.floor(m/s),y=m%s,_=0;_<p.length;_++){var x=t[_],w=p[_],b=c[x],S=o[x];S&&(S[v][y]=w),w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}}return r},Wb.downSample=function(t,e,i,n){for(var r=nh(this,[t]),o=r._storage,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=r._rawExtent[t],d=new(Zu(this))(u),f=0,g=0;u>g;g+=s){s>u-g&&(s=u-g,a.length=s);for(var p=0;s>p;p++){var m=this.getRawIndex(g+p),v=Math.floor(m/h),y=m%h;a[p]=l[v][y]}var _=i(a),x=this.getRawIndex(Math.min(g+n(a,_)||0,u-1)),w=Math.floor(x/h),b=x%h;l[w][b]=_,_<c[0]&&(c[0]=_),_>c[1]&&(c[1]=_),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=th,r},Wb.getItemModel=function(t){var e=this.hostModel;return new pa(this.getRawDataItem(t),e,e&&e.ecModel)},Wb.diff=function(t){var e=this;return new Vu(t?t.getIndices():[],this.getIndices(),function(e){return eh(t,e)},function(t){return eh(e,t)})},Wb.getVisual=function(t){var e=this._visual;return e&&e[t]},Wb.setVisual=function(t,e){if(Lb(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},Wb.setLayout=function(t,e){if(Lb(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},Wb.getLayout=function(t){return this._layout[t]},Wb.getItemLayout=function(t){return this._itemLayouts[t]},Wb.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?a(this._itemLayouts[t]||{},e):e},Wb.clearItemLayouts=function(){this._itemLayouts.length=0},Wb.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],r=n&&n[e];return null!=r||i?r:this.getVisual(e)},Wb.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},r=this.hasItemVisual;if(this._itemVisuals[t]=n,Lb(e))for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o],r[o]=!0);else n[e]=i,r[e]=!0},Wb.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Xb=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};Wb.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(Xb,e)),this._graphicEls[t]=e},Wb.getItemGraphicEl=function(t){return this._graphicEls[t]},Wb.eachItemGraphicEl=function(t,e){f(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},Wb.cloneShallow=function(t){if(!t){var e=g(this.dimensions,this.getDimensionInfo,this);t=new Hb(e,this.hostModel)}if(t._storage=this._storage,ju(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?th:Qu,t},Wb.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)))})},Wb.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],Wb.CHANGABLE_METHODS=["filterSelf","selectRange"];var Yb=function(t,e){return e=e||{},ah(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})},Ub={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),ch(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),ch(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",r),ch(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");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),ch(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),ch(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),ch(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=o)})}};yh.prototype.parse=function(t){return t},yh.prototype.getSetting=function(t){return this._setting[t]},yh.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},yh.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},yh.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},yh.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},yh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},yh.prototype.getExtent=function(){return this._extent.slice()},yh.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},yh.prototype.isBlank=function(){return this._isBlank},yh.prototype.setBlank=function(t){this._isBlank=t},yh.prototype.getLabel=null,yr(yh),br(yh,{registerWhenExtend:!0}),_h.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&g(i,wh);return new _h({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})};var Zb=_h.prototype;Zb.getOrdinal=function(t){return xh(this).get(t)},Zb.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=xh(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 qb=yh.prototype,jb=yh.extend({type:"ordinal",init:function(t,e){(!t||x(t))&&(t=new _h({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),qb.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return qb.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(qb.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});jb.create=function(){return new jb};var Kb=Ma,$b=Ma,Jb=yh.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[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),Jb.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=Sh(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]<n[0]&&o.push(t?$b(n[0]-e,r):i[0]);for(var s=n[0];s<=n[1]&&(o.push(s),s=$b(s+e,r),s!==o[o.length-1]);)if(o.length>a)return[];var l=o.length?o[o.length-1]:n[1];return i[1]>l&&o.push(t?$b(l+e,r):i[1]),o},getMinorTicks:function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o-a,h=u/t;t-1>s;){var c=Ma(a+(s+1)*h);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Ca(t)||0:"auto"===i&&(i=this._intervalPrecision),t=$b(t,i,!0),Fa(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=bh(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]=$b(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=$b(Math.ceil(e[1]/r)*r))}});Jb.create=function(){return new Jb};var Qb="__ec_stack_",tS=.5,eS="undefined"!=typeof Float32Array?Float32Array:Array,iS={seriesType:"bar",plan:lw(),reset:function(t){function e(t,e){for(var i,d=t.count,f=new eS(2*d),g=new eS(2*d),p=new eS(d),m=[],v=[],y=0,_=0;null!=(i=t.next());)v[h]=e.get(s,i),v[1-h]=e.get(l,i),m=n.dataToPoint(v,null,m),g[y]=u?r.x+r.width:m[0],f[y++]=m[0],g[y]=u?m[1]:r.y+r.height,f[y++]=m[1],p[_++]=i;e.setLayout({largePoints:f,largeDataIndices:p,largeBackgroundPoints:g,barWidth:c,valueAxisStart:Nh(o,a,!1),backgroundStart:u?r.x:r.y,valueAxisHorizontal:u})}if(zh(t)&&Rh(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),u=a.isHorizontal(),h=u?0:1,c=Lh(kh([t]),o,t).width;return c>tS||(c=tS),{progress:e}}}},nS=Jb.prototype,rS=Math.ceil,oS=Math.floor,aS=1e3,sS=60*aS,lS=60*sS,uS=24*lS,hS=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},cS=Jb.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return Ua(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=uS,e[1]+=uS),e[1]===-1/0&&1/0===e[0]){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-uS}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=Ma(oS(e[0]/n)*n)),t.fixMax||(e[1]=Ma(rS(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0],o=r/t;null!=e&&e>o&&(o=e),null!=i&&o>i&&(o=i);var a=dS.length,s=hS(dS,o,0,a),l=dS[Math.min(s,a-1)],u=l[1];if("year"===l[0]){var h=r/u,c=Ra(h/t,!0);u*=c}var d=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,f=[Math.round(rS((n[0]-d)/u)*u+d),Math.round(oS((n[1]-d)/u)*u+d)];Ih(f,n),this._stepLvl=l,this._interval=u,this._niceExtent=f},parse:function(t){return+La(t)}});f(["contain","normalize"],function(t){cS.prototype[t]=function(e){return nS[t].call(this,this.parse(e))}});var dS=[["hh:mm:ss",aS],["hh:mm:ss",5*aS],["hh:mm:ss",10*aS],["hh:mm:ss",15*aS],["hh:mm:ss",30*aS],["hh:mm\nMM-dd",sS],["hh:mm\nMM-dd",5*sS],["hh:mm\nMM-dd",10*sS],["hh:mm\nMM-dd",15*sS],["hh:mm\nMM-dd",30*sS],["hh:mm\nMM-dd",lS],["hh:mm\nMM-dd",2*lS],["hh:mm\nMM-dd",6*lS],["hh:mm\nMM-dd",12*lS],["MM-dd\nyyyy",uS],["MM-dd\nyyyy",2*uS],["MM-dd\nyyyy",3*uS],["MM-dd\nyyyy",4*uS],["MM-dd\nyyyy",5*uS],["MM-dd\nyyyy",6*uS],["week",7*uS],["MM-dd\nyyyy",10*uS],["week",14*uS],["week",21*uS],["month",31*uS],["week",42*uS],["month",62*uS],["week",70*uS],["quarter",95*uS],["month",31*uS*4],["month",31*uS*5],["half-year",380*uS/2],["month",31*uS*8],["month",31*uS*10],["year",380*uS]];cS.create=function(t){return new cS({useUTC:t.ecModel.get("useUTC")})};var fS=yh.prototype,gS=Jb.prototype,pS=Ca,mS=Ma,vS=Math.floor,yS=Math.ceil,_S=Math.pow,xS=Math.log,wS=yh.extend({type:"log",base:10,$constructor:function(){yh.apply(this,arguments),this._originalScale=new Jb},getTicks:function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return g(gS.getTicks.call(this,t),function(t){var r=Ma(_S(this.base,t));return r=t===i[0]&&e.__fixMin?Bh(r,n[0]):r,r=t===i[1]&&e.__fixMax?Bh(r,n[1]):r},this)},getMinorTicks:gS.getMinorTicks,getLabel:gS.getLabel,scale:function(t){return t=fS.scale.call(this,t),_S(this.base,t)},setExtent:function(t,e){var i=this.base;t=xS(t)/xS(i),e=xS(e)/xS(i),gS.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=fS.getExtent.call(this);e[0]=_S(t,e[0]),e[1]=_S(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Bh(e[0],n[0])),i.__fixMax&&(e[1]=Bh(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=xS(t[0])/xS(e),t[1]=xS(t[1])/xS(e),fS.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(yS(e[0]/n)*n),Ma(vS(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t){gS.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],function(t){wS.prototype[t]=function(e){return e=xS(e)/xS(this.base),fS[t].call(this,e)}}),wS.create=function(){return new wS};var bS={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&&!C(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&&!C(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}},SS=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()}}),MS=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()}}),IS=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,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),f=.6*a,g=.7*a;t.moveTo(i-h,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+d*f,i,n-g,i,n),t.bezierCurveTo(i,n-g,i-h+c*f,l+s+d*f,i-h,l+s),t.closePath()}}),TS=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()}}),CS={line:S_,rect:w_,roundRect:w_,square:w_,circle:h_,diamond:MS,pin:IS,arrow:TS,triangle:SS},DS={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}},AS={};f(CS,function(t,e){AS[e]=new t});var kS=vo({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=Ki(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=AS[n];r||(n="rect",r=AS[n]),DS[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),PS={isDimensionStacked:fh,enableDataStack:dh,getStackedDimension:gh},LS=(Object.freeze||Object)({createList:$h,getLayoutRect:Ja,dataStack:PS,createScale:Jh,mixinAxisModelCommonMethods:Qh,completeDimensions:ah,createDimensions:Yb,createSymbol:Kh}),OS=1e-8;ic.prototype={constructor:ic,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;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;Br(l,r,o),ae(i,i,r),se(n,n,o)}return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new Ti(i[0],i[1],n[0]-i[0],n[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(ec(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(ec(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,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,d=0;d<h.length;d++)oe(h[d],h[d],s);for(var f=0;f<(c?c.length:0);f++)for(var d=0;d<c[f].length;d++)oe(c[f][d],c[f][d],s)}r=this._rect,r.copy(a),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new ic(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var zS=function(t,e){return nc(t),g(m(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),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 ic(i[e||"name"],o,i.cp);return a.properties=i,a})},RS=ur(),NS=[0,1],BS=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};BS.prototype={constructor:BS,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 Da(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(),_c(i,n.count())),ba(t,NS,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),_c(i,n.count()));var r=ba(t,i,NS,e);return this.scale.scale(r)},pointToData:function(){},getTicksCoords:function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=ac(this,e),n=i.ticks,r=g(n,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this),o=e.get("alignWithLabel");return xc(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=g(i,function(t){return g(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return n},getViewLabels:function(){return oc(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 pc(this)}};var ES=zS,FS={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){FS[t]=qp[t]
});var VS={};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){VS[t]=U_[t]});var GS=function(t){this._axes={},this._dimList=[],this.name=t||""};GS.prototype={constructor:GS,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return g(this._dimList,wc,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;r<i.length;r++){var o=i[r],a=this._axes[o];n[o]=a[e](t[o])}return n}},bc.prototype={constructor:bc,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),r=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=r.toGlobalCoord(r.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n,a=new Ti(i,n,r,o);return a}},h(bc,GS);var HS=function(t,e,i,n,r){BS.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom"};HS.prototype={constructor:HS,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(HS,BS);var WS={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)"]}}},XS={};XS.categoryAxis=r({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},WS),XS.valueAxis=r({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},WS),XS.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},XS.valueAxis),XS.logAxis=s({scale:!0,logBase:10},XS.valueAxis);var YS=["value","category","time","log"],US=function(t,e,i,n){f(YS,function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var o=this.layoutMode,s=o?es(e):{},l=n.getTheme();r(e,l.get(a+"Axis")),r(e,this.getDefaultOption()),e.type=i(t,e),o&&ts(e,s,o)},optionUpdated:function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=_h.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([{},XS[a+"Axis"],n],!0)})}),vx.registerSubTypeDefaulter(t+"Axis",_(i,t))},ZS=vx.extend({type:"cartesian2dAxis",axis:null,init:function(){ZS.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){ZS.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){ZS.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});r(ZS.prototype,bS);var qS={offset:0};US("x",ZS,Sc,qS),US("y",ZS,Sc,qS),vx.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 jS=Ic.prototype;jS.type="grid",jS.axisPointerEnabled=!0,jS.getRect=function(){return this._rect},jS.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),f(i.x,function(t){Vh(t.scale,t.model)}),f(i.y,function(t){Vh(t.scale,t.model)});var n={};f(i.x,function(t){Tc(i,"y",t,n)}),f(i.y,function(t){Tc(i,"x",t,n)}),this.resize(this.model,e)},jS.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]),Dc(t,e?r.x:r.y)})}var r=Ja(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=Yh(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())},jS.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]}},jS.getAxes=function(){return this._axesList.slice()},jS.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;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},jS.getCartesians=function(){return this._coordsList.slice()},jS.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},jS.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},jS._findConvertTarget=function(t,e){var i,n,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis")[0],a=e.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;if(r)i=r.coordinateSystem,u(l,i)<0&&(i=null);else if(o&&a)i=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(s){var h=s.coordinateSystem;h===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},jS.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},jS._initCartesian=function(t,e){function i(i){return function(a,s){if(Mc(a,t,e)){var l=a.get("position");"x"===i?"top"!==l&&"bottom"!==l&&(l=n.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=n.left?"right":"left"),n[l]=!0;var u=new HS(i,Gh(a),[0,0],a.get("type"),l),h="category"===u.type;u.onBand=h&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),r[i][s]=u,o[i]++}}}var n={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},o={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),o.x&&o.y?(this._axesMap=r,void f(r.x,function(e,i){f(r.y,function(n,r){var o="x"+i+"y"+r,a=new bc(o);a.grid=this,a.model=t,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(n)},this)},this)):(this._axesMap={},void(this._axesList=[]))},jS._updateScale=function(t,e){function i(t,e){f(t.mapDimension(e.dim,!0),function(i){e.scale.unionExtentFromData(t,gh(t,i))})}f(this._axesList,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeries(function(n){if(kc(n)){var r=Ac(n,t),o=r[0],a=r[1];if(!Mc(o,e,t)||!Mc(a,e,t))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),l=n.getData(),u=s.getAxis("x"),h=s.getAxis("y");"list"===l.type&&(i(l,u,n),i(l,h,n))}},this)},jS.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);u(e,r)<0&&e.push(r),u(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}};var KS=["xAxis","yAxis"];Ic.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,r){var o=new Ic(n,t,e);o.name="grid_"+r,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(e){if(kc(e)){var i=Ac(e,t),n=i[0],r=i[1],o=n.getCoordSysModel(),a=o.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,r.componentIndex)}}),i},Ic.dimensions=Ic.prototype.dimensions=bc.prototype.dimensions,Cs.register("cartesian2d",Ic);var $S=ow.extend({type:"series.__base_bar__",getInitialData:function(){return ph(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),r=n.getLayout("offset"),o=n.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return i[a]+=r+o/2,i}return[0/0,0/0]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});$S.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(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 JS=iy([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),QS={getBarItemStyle:function(t){var e=JS(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},tM=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,u=e.endAngle,h=e.clockwise,c=Math.cos(l),d=Math.sin(l),f=Math.cos(u),g=Math.sin(u),p=h?u-l<2*Math.PI:l-u<2*Math.PI;p&&(t.moveTo(c*r+i,d*r+n),t.arc(c*s+i,d*s+n,a,-Math.PI+l,l,!h)),t.arc(i,n,o,l,u,!h),t.moveTo(f*o+i,g*o+n),t.arc(f*s+i,g*s+n,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&(t.arc(i,n,r,u,l,h),t.moveTo(c*r+i,g*r+n)),t.closePath()}}),eM=["itemStyle","barBorderWidth"],iM=[0,0];a(pa.prototype,QS),Ru({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)),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),u=Bc(o,n);i.removeClipPath();var h=t.get("roundCap",!0),c=t.get("showBackground",!0),d=t.getModel("backgroundStyle"),f=d.get("barBorderRadius")||0,g=[],p=this._backgroundEls||[],m=function(t){var i=sM[o.type](n,t),r=qc(o,e,i);return r.useStyle(d.getBarItemStyle()),"cartesian2d"===o.type&&r.setShape("r",f),g[t]=r,r};n.diff(r).add(function(r){var a=n.getItemModel(r),d=sM[o.type](n,r,a);if(c&&m(r),n.hasValue(r)){if(l){var f=oM[o.type](u,d);if(f)return void i.remove(g)}var g=aM[o.type](r,d,e,s,!1,h);n.setItemGraphicEl(r,g),i.add(g),Gc(g,n,r,a,d,t,e,"polar"===o.type)}}).update(function(a,v){var y=n.getItemModel(a),_=sM[o.type](n,a,y);if(c){var x;0===p.length?x=m(v):(x=p[v],x.useStyle(d.getBarItemStyle()),"cartesian2d"===o.type&&x.setShape("r",f),g[a]=x);var w=sM[o.type](n,a),b=Zc(e,w,o);ia(x,{shape:b},s,a)}var S=r.getItemGraphicEl(v);if(!n.hasValue(a))return void i.remove(S);if(l){var M=oM[o.type](u,_);if(M)return void i.remove(S)}S?ia(S,{shape:_},s,a):S=aM[o.type](a,_,e,s,!0,h),n.setItemGraphicEl(a,S),i.add(S),Gc(S,n,a,y,_,t,e,"polar"===o.type)}).remove(function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===o.type?e&&Ec(t,s,e):e&&Fc(t,s,e)}).execute();var v=this._backgroundGroup||(this._backgroundGroup=new qm);v.removeAll();for(var y=0;y<g.length;++y)v.add(g[y]);i.add(v),this._backgroundEls=g,this._data=n},_renderLarge:function(t){this._clear(),Wc(t,this.group);var e=t.get("clip",!0)?Nc(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},_incrementalRenderLarge:function(t,e){this._removeBackground(),Wc(e,this.group,!0)},dispose:V,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(e){"sector"===e.type?Fc(e.dataIndex,t,e):Ec(e.dataIndex,t,e)})):e.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}});var nM=Math.max,rM=Math.min,oM={cartesian2d:function(t,e){var i=e.width<0?-1:1,n=e.height<0?-1:1;0>i&&(e.x+=e.width,e.width=-e.width),0>n&&(e.y+=e.height,e.height=-e.height);var r=nM(e.x,t.x),o=rM(e.x+e.width,t.x+t.width),a=nM(e.y,t.y),s=rM(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=rM(e.r,t.r),r=nM(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}},aM={cartesian2d:function(t,e,i,n,r){var o=new w_({shape:a({},e),z2:1});if(o.name="item",n){var s=o.shape,l=i?"height":"width",u={};s[l]=0,u[l]=e[l],U_[r?"updateProps":"initProps"](o,{shape:u},n,t)}return o},polar:function(t,e,i,n,r,o){var a=e.startAngle<e.endAngle,l=!i&&o?tM:f_,u=new l({shape:s({clockwise:a},e),z2:1});if(u.name="item",n){var h=u.shape,c=i?"r":"endAngle",d={};h[c]=i?0:e.startAngle,d[c]=e[c],U_[r?"updateProps":"initProps"](u,{shape:d},n,t)}return u}},sM={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),r=i?Hc(i,n):0,o=n.width>0?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}}},lM=io.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,r=this.__baseDimIdx,o=0;o<i.length;o+=2)n[r]=i[o+r],t.moveTo(n[0],n[1]),t.lineTo(i[o],i[o+1])}}),uM=yl(function(t){var e=this,i=Xc(e,t.offsetX,t.offsetY);e.dataIndex=i>=0?i:null},30,!1),hM=Math.PI,cM=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new qm;var i=new qm({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};cM.prototype={constructor:cM,hasBuilder:function(t){return!!dM[t]},add:function(t){dM[t].call(this)},getGroup:function(){return this.group}};var dM={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 S_({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"),u=e.get("axisLine.symbolSize"),h=e.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=l){"string"==typeof l&&(l=[l,l]),("string"==typeof u||"number"==typeof u)&&(u=[u,u]);var c=u[0],d=u[1];f([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[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=Kh(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=ed(this,t,e),n=nd(this,t,e);Kc(t,n,i),id(this,t,e)},axisName:function(){var t=this.opt,e=this.axisModel,i=D(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,u=this.axisModel.axis.getExtent(),h=u[0]>u[1]?-1:1,c=["start"===r?u[0]-h*l:"end"===r?u[1]+h*l:(u[0]+u[1])/2,Qc(r)?t.labelOffset+o*l:0],d=e.get("nameRotate");null!=d&&(d=d*hM/180);var f;Qc(r)?n=gM(t.rotation,null!=d?d:t.rotation,o):(n=jc(t,r,d||0,u),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(n.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),p=e.get("nameTruncate",!0)||{},m=p.ellipsis,v=D(t.nameTruncateMaxWidth,p.maxWidth,f),y=null!=m&&null!=v?ux(i,v,g,m,{minChar:2,placeholder:p.placeholder}):i,_=e.get("tooltip",!0),x=e.mainType,w={componentType:x,name:i,$vars:["name"]};w[x+"Index"]=e.componentIndex;var b=new u_({anid:"name",__fullText:i,__truncatedText:y,position:c,rotation:n.rotation,silent:pM(e),z2:1,tooltip:_&&_.show?a({content:i,formatter:function(){return i},formatterParams:w},_):null});Uo(b.style,s,{text:y,textFont:g,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=fM(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},fM=cM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},gM=cM.innerTextLayout=function(t,e,i){var n,r,o=ka(e-t);return Pa(o)?(r=i>0?"top":"bottom",n="center"):Pa(o-hM)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&hM>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},pM=cM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},mM=f,vM=_,yM=Ou({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&hd(t),yM.superApply(this,"render",arguments),pd(this,t,e,i,n,!0)},updateAxisPointer:function(t,e,i,n){pd(this,t,e,i,n,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),yM.superApply(this,"remove",arguments)},dispose:function(t,e){md(this,e),yM.superApply(this,"dispose",arguments)}}),_M=[];yM.registerAxisPointerClass=function(t,e){_M[t]=e},yM.getAxisPointerClass=function(t){return t&&_M[t]};var xM=["axisLine","axisTickLabel","axisName"],wM=["splitArea","splitLine","minorSplitLine"],bM=yM.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new qm,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),a=vd(o,t),s=new cM(t,a);f(xM,s.add,s),this._axisGroup.add(s.getGroup()),f(wM,function(e){t.get(e+".show")&&this["_"+e](t,o)},this),sa(r,this._axisGroup,t),bM.superCall(this,"render",t,e,i,n)}},remove:function(){_d(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=x(o)?o:[o];for(var a=e.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:n}),c=[],d=[],f=r.getLineStyle(),g=0;g<h.length;g++){var p=i.toGlobalCoord(h[g].coord);l?(c[0]=p,c[1]=a.y,d[0]=p,d[1]=a.y+a.height):(c[0]=a.x,c[1]=p,d[0]=a.x+a.width,d[1]=p);var m=u++%o.length,v=h[g].tickValue;this._axisGroup.add(new S_({anid:null!=v?"line_"+h[g].tickValue:null,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:s({stroke:o[m]},f),silent:!0}))}}},_minorSplitLine:function(t,e){var i=t.axis,n=t.getModel("minorSplitLine"),r=n.getModel("lineStyle"),o=e.coordinateSystem.getRect(),a=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=r.getLineStyle(),c=0;c<s.length;c++)for(var d=0;d<s[c].length;d++){var f=i.toGlobalCoord(s[c][d].coord);a?(l[0]=f,l[1]=o.y,u[0]=f,u[1]=o.y+o.height):(l[0]=o.x,l[1]=f,u[0]=o.x+o.width,u[1]=f),this._axisGroup.add(new S_({anid:"minor_line_"+s[c][d].tickValue,subPixelOptimize:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},_splitArea:function(t,e){yd(this,this._axisGroup,t,e)}});bM.extend({type:"xAxis"}),bM.extend({type:"yAxis"}),Ou({type:"grid",render:function(t){this.group.removeAll(),t.get("show")&&this.group.add(new w_({shape:t.coordinateSystem.getRect(),style:s({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),bu(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),Du(ub.VISUAL.LAYOUT,_(Oh,"bar")),Du(ub.VISUAL.PROGRESSIVE_LAYOUT,iS),Au({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}}),ow.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(){return ph(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var SM=xd.prototype,MM=xd.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};SM._createSymbol=function(t,e,i,n,r){this.removeAll();var o=e.getItemVisual(i,"color"),a=Kh(t,-1,-1,2,2,o,r);a.attr({z2:100,culling:!0,scale:wd(n)}),a.drift=bd,this._symbolType=t,this.add(a)},SM.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},SM.getSymbolPath=function(){return this.childAt(0)},SM.getScale=function(){return this.childAt(0).scale},SM.highlight=function(){this.childAt(0).trigger("emphasis")},SM.downplay=function(){this.childAt(0).trigger("normal")},SM.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},SM.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},SM.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,o=MM(t,e),a=n!==this._symbolType;if(a){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,o,s)}else{var l=this.childAt(0);l.silent=!1,ia(l,{scale:wd(o)},r,e)}if(this._updateCommon(t,e,o,i),a){var l=this.childAt(0),u=i&&i.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),na(l,h,r,e)}this._seriesModel=r};var IM=["itemStyle"],TM=["emphasis","itemStyle"],CM=["label"],DM=["emphasis","label"];SM._updateCommon=function(t,e,i,n){function r(e){return b?t.getName(e):Pc(t,e)}var o=this.childAt(0),s=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var u=n&&n.itemStyle,h=n&&n.hoverItemStyle,c=n&&n.symbolOffset,d=n&&n.labelModel,f=n&&n.hoverLabelModel,g=n&&n.hoverAnimation,p=n&&n.cursorStyle;if(!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e);u=m.getModel(IM).getItemStyle(["color"]),h=m.getModel(TM).getItemStyle(),c=m.getShallow("symbolOffset"),d=m.getModel(CM),f=m.getModel(DM),g=m.getShallow("hoverAnimation"),p=m.getShallow("cursor")}else h=a({},h);var v=o.style,y=t.getItemVisual(e,"symbolRotate");o.attr("rotation",(y||0)*Math.PI/180||0),c&&o.attr("position",[Sa(c[0],i[0]),Sa(c[1],i[1])]),p&&o.attr("cursor",p),o.setColor(l,n&&n.symbolInnerColor),o.setStyle(u);var _=t.getItemVisual(e,"opacity");null!=_&&(v.opacity=_);var x=t.getItemVisual(e,"liftZ"),w=o.__z2Origin;null!=x?null==w&&(o.__z2Origin=o.z2,o.z2+=x):null!=w&&(o.z2=w,o.__z2Origin=null);var b=n&&n.useNameLabel;Xo(v,h,d,f,{labelFetcher:s,labelDataIndex:e,defaultText:r,isRectText:!0,autoColor:l}),o.__symbolOriginalScale=wd(i),o.hoverStyle=h,o.highDownOnUpdate=g&&s.isAnimationEnabled()?Sd:null,Vo(o)},SM.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,!(e&&e.keepLabel)&&(i.style.text=null),ia(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},h(xd,qm);var AM=Md.prototype;AM.updateData=function(t,e){e=Td(e);var i=this.group,n=t.hostModel,r=this._data,o=this._symbolCtor,a=Cd(t);r||i.removeAll(),t.diff(r).add(function(n){var r=t.getItemLayout(n);if(Id(t,r,n,e)){var s=new o(t,n,a);s.attr("position",r),t.setItemGraphicEl(n,s),i.add(s)}}).update(function(s,l){var u=r.getItemGraphicEl(l),h=t.getItemLayout(s);return Id(t,h,s,e)?(u?(u.updateData(t,s,a),ia(u,{position:h},n)):(u=new o(t,s),u.attr("position",h)),i.add(u),void t.setItemGraphicEl(s,u)):void i.remove(u)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._data=t},AM.isPersistent=function(){return!0},AM.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr("position",n)})},AM.incrementalPrepareUpdate=function(t){this._seriesScope=Cd(t),this._data=null,this.group.removeAll()},AM.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)}i=Td(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Id(e,o,r,i)){var a=new this._symbolCtor(e,r,this._seriesScope);a.traverse(n),a.attr("position",o),this.group.add(a),e.setItemGraphicEl(r,a)}}},AM.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var kM=function(t,e,i,n,r,o,a,s){for(var l=Pd(t,e),u=[],h=[],c=[],d=[],f=[],g=[],p=[],m=Dd(r,e,a),v=Dd(o,t,s),y=0;y<l.length;y++){var _=l[y],x=!0;switch(_.cmd){case"=":var w=t.getItemLayout(_.idx),b=e.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=b.slice()),u.push(w),h.push(b),c.push(i[_.idx]),d.push(n[_.idx1]),p.push(e.getRawIndex(_.idx1));break;case"+":var S=_.idx;u.push(r.dataToPoint([e.get(m.dataDimsForPoint[0],S),e.get(m.dataDimsForPoint[1],S)])),h.push(e.getItemLayout(S).slice()),c.push(kd(m,r,e,S)),d.push(n[S]),p.push(e.getRawIndex(S));break;case"-":var S=_.idx,M=t.getRawIndex(S);M!==S?(u.push(t.getItemLayout(S)),h.push(o.dataToPoint([t.get(v.dataDimsForPoint[0],S),t.get(v.dataDimsForPoint[1],S)])),c.push(i[S]),d.push(kd(v,o,t,S)),p.push(M)):x=!1}x&&(f.push(_),g.push(g.length))}g.sort(function(t,e){return p[t]-p[e]});for(var I=[],T=[],C=[],D=[],A=[],y=0;y<g.length;y++){var S=g[y];I[y]=u[S],T[y]=h[S],C[y]=c[S],D[y]=d[S],A[y]=f[S]}return{current:I,next:T,stackedOnCurrent:C,stackedOnNext:D,status:A}},PM=ae,LM=se,OM=U,zM=H,RM=[],NM=[],BM=[],EM=io.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:d_(io.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,r=i.length,o=Nd(i,e.smoothConstraint);if(e.connectNulls){for(;r>0&&Ld(i[r-1]);r--);for(;r>n&&Ld(i[n]);n++);}for(;r>n;)n+=Od(t,i,n,r,r,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),FM=io.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:d_(io.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length,a=e.smoothMonotone,s=Nd(i,e.smoothConstraint),l=Nd(n,e.smoothConstraint);if(e.connectNulls){for(;o>0&&Ld(i[o-1]);o--);for(;o>r&&Ld(i[r]);r++);}for(;o>r;){var u=Od(t,i,r,o,o,1,s.min,s.max,e.smooth,a,e.connectNulls);Od(t,n,r+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,a,e.connectNulls),r+=u+1,t.closePath()}}});fl.extend({type:"line",init:function(){var t=new qm,e=new Md;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"),u=o.mapArray(o.getItemLayout),h="polar"===n.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,g=this._polygon,p=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),_=Dd(n,o,y),x=Vd(n,o,_),w=t.get("showSymbol"),b=w&&!h&&Wd(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(p);var M,I=!h&&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&&!g?g=this._newPolygon(u,x,n,m):g&&!v&&(p.remove(g),g=this._polygon=null),p.setClipPath(Yd(n,!1,t)),w&&d.updateData(o,{isIgnore:b,clipShape:M}),o.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),Bd(this._stackedOnPoints,x)&&Bd(this._points,u)||(m?this._updateAnimation(o,x,n,i,I,y):(I&&(u=Gd(u,n,I),x=Gd(x,n,I)),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:x})))):(w&&d.updateData(o,{isIgnore:b,clipShape:M}),I&&(u=Gd(u,n,I),x=Gd(x,n,I)),f=this._newPolyline(u,n,m),v&&(g=this._newPolygon(u,x,n,m)),p.setClipPath(Yd(n,!0,t)));var T=Hd(o,n)||o.getVisual("color");f.useStyle(s(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var C=t.get("smooth");if(C=Fd(t.get("smooth")),f.setShape({smooth:C,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),g){var D=o.getCalculationInfo("stackedOnSeries"),A=0;g.useStyle(s(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),D&&(A=Fd(D.get("smooth"))),g.setShape({smooth:C,stackedOnSmooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=x,this._points=u,this._step=I,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,i,n){var r=t.getData(),o=lr(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 xd(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=lr(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 EM({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 FM({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,u=kM(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;if(r&&(h=Gd(u.current,i,r),c=Gd(u.stackedOnCurrent,i,r),d=Gd(u.next,i,r),f=Gd(u.stackedOnNext,i,r)),Ed(h,d)>3e3||s&&Ed(c,f)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=h,ia(a,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),ia(s,{shape:{points:d,stackedOnPoints:f}},l));for(var g=[],p=u.status,m=0;m<p.length;m++){var v=p[m].cmd;if("="===v){var y=t.getItemGraphicEl(p[m].idx1);y&&g.push({el:y,ptIdx:m})}}a.animators&&a.animators.length&&a.animators[0].during(function(){for(var t=0;t<g.length;t++){var e=g[t].el;e.attr("position",a.shape.__points[g[t].ptIdx])}})},remove:function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var VM=function(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n){function r(e,i){if(f){var n=t.getRawValue(i),r=t.getDataParams(i);h&&e.setItemVisual(i,"symbol",a(n,r)),c&&e.setItemVisual(i,"symbolSize",s(n,r)),d&&e.setItemVisual(i,"symbolRotate",u(n,r))}if(e.hasItemOption){var o=e.getItemModel(i),l=o.getShallow("symbol",!0),g=o.getShallow("symbolSize",!0),p=o.getShallow("symbolRotate",!0),m=o.getShallow("symbolKeepAspect",!0);null!=l&&e.setItemVisual(i,"symbol",l),null!=g&&e.setItemVisual(i,"symbolSize",g),null!=p&&e.setItemVisual(i,"symbolRotate",p),null!=m&&e.setItemVisual(i,"symbolKeepAspect",m)}}var o=t.getData(),a=t.get("symbol"),s=t.get("symbolSize"),l=t.get("symbolKeepAspect"),u=t.get("symbolRotate"),h=w(a),c=w(s),d=w(u),f=h||c||d,g=!h&&a?a:e,p=c?null:s;return o.setVisual({legendSymbol:i||g,symbol:g,symbolSize:p,symbolKeepAspect:l,symbolRotate:u}),n.isSeriesFiltered(t)?void 0:{dataEach:o.hasItemOption||f?r:null}}}},GM=function(t){return{seriesType:t,plan:lw(),reset:function(t){function e(t,e){for(var i=t.end-t.start,r=o&&new Float32Array(i*s),l=t.start,u=0,h=[],c=[];l<t.end;l++){var d;if(1===s){var f=e.get(a[0],l);d=!isNaN(f)&&n.dataToPoint(f,null,c)}else{var f=h[0]=e.get(a[0],l),g=h[1]=e.get(a[1],l);d=!isNaN(f)&&!isNaN(g)&&n.dataToPoint(h,null,c)}o?(r[u++]=d?d[0]:0/0,r[u++]=d?d[1]:0/0):e.setItemLayout(l,d&&d.slice()||[0/0,0/0])}o&&e.setLayout("symbolPoints",r)}var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=r.large;if(n){var a=g(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");return fh(i,a[0])&&(a[0]=l),fh(i,a[1])&&(a[1]=l),s&&{progress:e}}}}},HM={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},WM=function(t){return Math.round(t.length/2)},XM=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t){var e=t.getData(),i=t.get("sampling"),n=t.coordinateSystem;if("cartesian2d"===n.type&&i){var r=n.getBaseAxis(),o=n.getOtherAxis(r),a=r.getExtent(),s=Math.abs(a[1]-a[0]),l=Math.round(e.count()/s);if(l>1){var u;"string"==typeof i?u=HM[i]:"function"==typeof i&&(u=i),u&&t.setData(e.downSample(e.mapDimension(o.dim),1/l,u,WM))}}}}};Au(VM("line","circle","line")),Du(GM("line")),Su(ub.PROCESSOR.STATISTIC,XM("line"));var YM=function(t,e,i){e=x(e)&&{coordDimensions:e}||a({},e);var n=t.getSource(),r=Yb(n,e),o=new Hb(r,t);return o.initData(n,i),o},UM={updateSelectedMap:function(t){this._targetList=x(t)?t.slice():[],this._selectTargetMap=p(t||[],function(t,e){return t.set(e.name,e),t},E())},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}},ZM=zu({type:"series.pie",init:function(t){ZM.superApply(this,"init",arguments),this.legendVisualProvider=new Ud(y(this.getData,this),y(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){ZM.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(){return YM(this,{coordDimensions:["value"],encodeDefaulter:_(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=ZM.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),function(t){n.push(t)}),i.percent=Aa(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){er(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(ZM,UM);var qM=jd.prototype;qM.updateData=function(t,e,i){var n=this.childAt(0),r=this.childAt(1),o=this.childAt(2),l=t.hostModel,u=t.getItemModel(e),h=t.getItemLayout(e),c=a({},h);c.label=null;var d=l.getShallow("animationTypeUpdate");if(i){n.setShape(c);var f=l.getShallow("animationType");"scale"===f?(n.shape.r=h.r0,na(n,{shape:{r:h.r}},l,e)):(n.shape.endAngle=h.startAngle,ia(n,{shape:{endAngle:h.endAngle}},l,e))}else"expansion"===d?n.setShape(c):ia(n,{shape:c},l,e);var g=t.getItemVisual(e,"color");n.useStyle(s({lineJoin:"bevel",fill:g},u.getModel("itemStyle").getItemStyle())),n.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var p=u.getShallow("cursor");p&&n.attr("cursor",p),qd(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()&&u.get("hoverAnimation");"emphasis"===e?(r.ignore=r.hoverIgnore,o.ignore=o.hoverIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:h.r+l.get("hoverOffset")}},300,"elasticOut"))):(r.ignore=r.normalIgnore,o.ignore=o.normalIgnore,i&&(n.stopAnimation(!0),n.animateTo({shape:{r:h.r}},300,"elasticOut")))},Vo(this)},qM._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,u=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 h={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:h},o,e),ia(r,{style:c},o,e)):(n.attr({shape:h}),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"),g=a.getModel("labelLine"),p=a.getModel("emphasis.labelLine"),u=t.getItemVisual(e,"color");Xo(r.style,r.hoverStyle={},d,f,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:l.text,autoColor:u,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=!g.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:u,opacity:t.getItemVisual(e,"opacity")}),n.setStyle(g.getModel("lineStyle").getLineStyle()),n.hoverStyle=p.getModel("lineStyle").getLineStyle();var m=g.get("smooth");m&&m===!0&&(m=.4),n.setShape({smooth:m})},h(jd,qm);var jM=(fl.extend({type:"pie",init:function(){var t=new qm;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,u=t.get("animationType"),h=t.get("animationTypeUpdate"),c=_(Zd,this.uid,t,s,i),d=t.get("selectedMode");if(r.diff(o).add(function(t){var e=new jd(r,t);l&&"scale"!==u&&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"===h||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"!==u:"transition"!==h)){for(var f=r.getItemLayout(0),g=1;isNaN(f.startAngle)&&g<r.count();++g)f=r.getItemLayout(g);var p=Math.max(i.getWidth(),i.getHeight())/2,m=y(a.removeClipPath,a);a.setClipPath(this._createClipPath(f.cx,f.cy,p,f.startAngle,f.clockwise,m,t,l))}else a.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(t,e,i,n,r,o,a,s){var l=new f_({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}}),u=s?na:ia;return u(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},a,o),l},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,o=t[1]-n.cy,a=Math.sqrt(r*r+o*o);return a<=n.r&&a>=n.r0}}}),function(t,e){f(e,function(e){e.update="updateView",Iu(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}})})}),KM=function(t){return{getTargetSeries:function(e){var i={},n=E();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 u=o.get("itemStyle.color")||t.getColorFromPalette(e.getName(r)||r+"",t.__paletteScope,e.count());null!=a&&n.setItemVisual(a,"color",u)}if(!l){var h=o.get("itemStyle.borderColor");null!=a&&n.setItemVisual(a,"borderColor",h)}})}}},$M=Math.PI/180,JM=function(t,e,i,n,r,o){var a,s,l=t.getData(),u=[],h=!1,c=(t.get("minShowLabelAngle")||0)*$M;l.each(function(n){var o=l.getItemLayout(n),d=l.getItemModel(n),f=d.getModel("label"),g=f.get("position")||d.get("emphasis.label.position"),p=f.get("distanceToLabelLine"),m=f.get("alignTo"),v=Sa(f.get("margin"),i),y=f.get("bleedMargin"),_=f.getFont(),x=d.getModel("labelLine"),w=x.get("length");w=Sa(w,i);var b=x.get("length2");if(b=Sa(b,i),!(o.angle<c)){var S,M,I,T,C=(o.startAngle+o.endAngle)/2,D=Math.cos(C),A=Math.sin(C);a=o.cx,s=o.cy;var k=t.getFormattedLabel(n,"normal")||l.getName(n),P=Yi(k,_,T,"top"),L="inside"===g||"inner"===g;if("center"===g)S=o.cx,M=o.cy,T="center";else{var O=(L?(o.r+o.r0)/2*D:o.r*D)+a,z=(L?(o.r+o.r0)/2*A:o.r*A)+s;if(S=O+3*D,M=z+3*A,!L){var R=O+D*(w+e-o.r),N=z+A*(w+e-o.r),B=R+(0>D?-1:1)*b,E=N;S="edge"===m?0>D?r+v:r+i-v:B+(0>D?-p:p),M=E,I=[[O,z],[R,N],[B,E]]}T=L?"center":"edge"===m?D>0?"right":"left":D>0?"left":"right"}var F,V=f.get("rotate");F="number"==typeof V?V*(Math.PI/180):V?0>D?-C+Math.PI:-C:0,h=!!F,o.label={x:S,y:M,position:g,height:P.height,len:w,len2:b,linePoints:I,textAlign:T,verticalAlign:"middle",rotation:F,inside:L,labelDistance:p,labelAlignTo:m,labelMargin:v,bleedMargin:y,textRect:P,text:k,font:_},L||u.push(o.label)}}),!h&&t.get("avoidLabelOverlap")&&$d(u,a,s,e,i,n,r,o)},QM=2*Math.PI,tI=Math.PI/180,eI=function(t,e,i){e.eachSeriesByType(t,function(t){var e=t.getData(),n=e.mapDimension("value"),r=Qd(t,i),o=t.get("center"),a=t.get("radius");x(a)||(a=[0,a]),x(o)||(o=[o,o]);var s=Sa(r.width,i.getWidth()),l=Sa(r.height,i.getHeight()),u=Math.min(s,l),h=Sa(o[0],s)+r.x,c=Sa(o[1],l)+r.y,d=Sa(a[0],u/2),f=Sa(a[1],u/2),g=-t.get("startAngle")*tI,p=t.get("minAngle")*tI,m=0;e.each(n,function(t){!isNaN(t)&&m++});var v=e.getSum(n),y=Math.PI/(v||m)*2,_=t.get("clockwise"),w=t.get("roseType"),b=t.get("stillShowZeroSum"),S=e.getDataExtent(n);S[0]=0;var M=QM,I=0,T=g,C=_?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:_,cx:h,cy:c,r0:d,r:w?0/0:f,viewRect:r});n="area"!==w?0===v&&b?y:t*y:QM/m,p>n?(n=p,M-=p):I+=t;var o=T+C*n;e.setItemLayout(i,{angle:n,startAngle:T,endAngle:o,clockwise:_,cx:h,cy:c,r0:d,r:w?ba(t,S,[d,f]):f,viewRect:r}),T=o}),QM>M&&m)if(.001>=M){var D=QM/m;e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=D,n.startAngle=g+C*i*D,n.endAngle=g+C*(i+1)*D}})}else y=M/I,T=g,e.each(n,function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===p?p:t*y;n.startAngle=T,n.endAngle=T+C*r,T+=C*r}});JM(t,f,r.width,r.height,r.x,r.y)})},iI=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;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0})}}}};jM("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),Au(KM("pie")),Du(_(eI,"pie")),Su(iI("pie"));for(var nI=[126,25],rI=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],oI=0;oI<rI.length;oI++)for(var aI=0;aI<rI[oI].length;aI++)rI[oI][aI][0]/=10.5,rI[oI][aI][1]/=-14,rI[oI][aI][0]+=nI[0],rI[oI][aI][1]+=nI[1];var sI=function(t,e){"china"===t&&e.push(new ic("南海诸岛",g(rI,function(t){return{type:"polygon",exterior:t}}),nI))},lI={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},uI=function(t,e){if("china"===t){var i=lI[e.name];if(i){var n=e.center;n[0]+=i[0]/10.5,n[1]+=-i[1]/14}}},hI={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},cI=function(t,e){if("world"===t){var i=hI[e.name];if(i){var n=e.center;n[0]=i[0],n[1]=i[1]}}},dI=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],fI=function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:dI[0]})},gI=ur(),pI={load:function(t,e,i){var n=gI(e).parsed;if(n)return n;var r,o=e.specialAreas||{},a=e.geoJSON;try{r=a?zS(a,i):[]}catch(s){throw new Error("Invalid geoJson format\n"+s.message)}return sI(t,r),f(r,function(e){var i=e.name;uI(t,e),cI(t,e),fI(t,e);var n=o[i];n&&e.transformTo(n.left,n.top,n.width,n.height)}),gI(e).parsed={regions:r,boundingRect:tf(r)}}},mI=ur(),vI={load:function(t,e){var i=mI(e).originRoot;if(i)return{root:i,boundingRect:mI(e).boundingRect};var n=ef(e);return mI(e).originRoot=n.root,mI(e).boundingRect=n.boundingRect,n},makeGraphic:function(t,e,i){var n=mI(e),r=n.rootMap||(n.rootMap=E()),o=r.get(i);if(o)return o;var a=n.originRoot,s=n.boundingRect;return n.originRootHostKey?o=ef(e,s).root:(n.originRootHostKey=i,o=a),r.set(i,o)},removeGraphic:function(t,e,i){var n=mI(e),r=n.rootMap;r&&r.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}},yI={geoJSON:pI,svg:vI},_I={load:function(t,e,i){var n,r=[],o=E(),a=E(),s=rf(t);return f(s,function(s){var l=yI[s.type].load(t,s,i);f(l.regions,function(t){var i=t.name;e&&e.hasOwnProperty(i)&&(t=t.cloneShallow(i=e[i])),r.push(t),o.set(i,t),a.set(i,t.center)});var u=l.boundingRect;u&&(n?n.union(u):n=u.clone())}),{regions:r,regionsMap:o,nameCoordMap:a,boundingRect:n||new Ti(0,0,0,0)}},makeGraphic:nf("makeGraphic"),removeGraphic:nf("removeGraphic")},xI=ow.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(){for(var t=YM(this,{coordDimensions:["value"],encodeDefaulter:_(ps,this)}),e=t.mapDimension("value"),i=E(),n=[],r=[],o=0,a=t.count();a>o;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=_I.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=[],u=0;u<s.length;u++){var h=s[u].originalData.indexOfName(a),c=r.mapDimension("value");isNaN(s[u].originalData.get(c,h))||l.push(Ga(s[u].name))}var d="html"===n?"<br/>":"\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(xI,UM);var wI="\x00_ec_interaction_mutex";Iu({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),c(sf,im);var bI={axisPointer:1,tooltip:1,brush:1};bf.prototype={constructor:bf,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,u=this._regionsGroup,h=this.group,c=s.getTransformInfo(),d=!u.childAt(0)||r;if(d)h.transform=c.roamTransform,h.decomposeTransform(),h.dirty();else{var g=new _m;g.transform=c.roamTransform,g.decomposeTransform();var p={scale:g.scale,position:g.position};l=g.scale,ia(h,p,t)}var m=c.rawScale,v=c.rawPosition;u.removeAll();var y=["itemStyle"],_=["emphasis","itemStyle"],x=["label"],w=["emphasis","label"],b=E();f(s.regions,function(e){var i=b.get(e.name)||b.set(e.name,new qm),n=new C_({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(n);var r,s=t.getRegionModel(e.name)||t,c=s.getModel(y),g=s.getModel(_),p=_f(c),S=_f(g),M=s.getModel(x),I=s.getModel(w);if(a){r=a.indexOfName(e.name);var T=a.getItemVisual(r,"color",!0);T&&(p.fill=T)}var C=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<t.exterior.length;++i)e.push(C(t.exterior[i]));n.shape.paths.push(new v_({segmentIgnoreThreshold:1,shape:{points:e}}));for(var i=0;i<(t.interiors?t.interiors.length:0);++i){for(var r=t.interiors[i],e=[],o=0;o<r.length;++o)e.push(C(r[o]));n.shape.paths.push(new v_({segmentIgnoreThreshold:1,shape:{points:e}}))}}}),n.setStyle(p),n.style.strokeNoScale=!0,n.culling=!0;var D=M.get("show"),A=I.get("show"),k=a&&isNaN(a.get(a.mapDimension("value"),r)),P=a&&a.getItemLayout(r);if(o||k&&(D||A)||P&&P.showLabel){var L,O=o?e.name:r;(!a||r>=0)&&(L=t);var z=new u_({position:C(e.center.slice()),scale:[1/h.scale[0],1/h.scale[1]],z2:10,silent:!0});if(Xo(z.style,z.hoverStyle={},M,I,{labelFetcher:L,labelDataIndex:O,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!d){var R=[1/l[0],1/l[1]];ia(z,{scale:R},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 N=i.__regions||(i.__regions=[]);N.push(e),i.highDownSilentOnTouch=!!t.get("selectedMode"),Vo(i,S),u.add(i)}),this._updateController(t,e,i),xf(this,t,u,i,n),wf(t,u)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&_I.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&f(_I.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,mf(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,vf(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)&&!yf(e,i,t)})}};var SI="__seriesMapHighDown",MI="__seriesMapCallKey";Ru({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 bf(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,u=new h_({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:8+(l?0:R_+1)});if(!l){var h=t.mainSeries.getData(),c=e.getName(r),d=h.indexOfName(c),f=e.getItemModel(r),g=f.getModel("label"),p=f.getModel("emphasis.label"),m=h.getItemGraphicEl(d),v=A(t.getFormattedLabel(d,"normal"),c),y=A(t.getFormattedLabel(d,"emphasis"),v),x=m[SI],w=Math.random();if(!x){x=m[SI]={};var b=_(Sf,!0),S=_(Sf,!1);m.on("mouseover",b).on("mouseout",S).on("emphasis",b).on("normal",S)}m[MI]=w,a(x,{recordVersion:w,circle:u,labelModel:g,hoverLabelModel:p,emphasisText:y,normalText:v}),Mf(x,!1)}i.add(u)}}})}}),Iu({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=If(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 II=oe;c(Tf,_m),Cf.prototype={constructor:Cf,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(),Re(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?II(i,t,n):H(i,t)},pointToData:function(t){var e=this.invTransform;return e?II([],t,e):[t[0],t[1]]},convertToPixel:_(Df,"dataToPoint"),convertFromPixel:_(Df,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},c(Cf,_m),Af.prototype={constructor:Af,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},transformTo:function(t,e,i,n){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;if(a.transform=r.calculateTransform(new Ti(t,e,i,n)),a.decomposeTransform(),o){var s=a.scale;s[1]=-s[1]}a.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,i){return"string"==typeof t&&(t=this.getGeoCoord(t)),t?Cf.prototype.dataToPoint.call(this,t,e,i):void 0},convertToPixel:_(kf,"dataToPoint"),convertFromPixel:_(kf,"pointToData")},c(Af,Cf);var TI={dimensions:Af.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",function(t,n){var r=t.get("map"),o=t.get("aspectScale"),a=!0,s=Hw.retrieveMap(r);s&&s[0]&&"svg"===s[0].type?(null==o&&(o=1),a=!1):null==o&&(o=.75);var l=new Af(r+n,r,t.get("nameMap"),a);l.aspectScale=o,l.zoomLimit=t.get("scaleLimit"),i.push(l),Lf(l,t),t.coordinateSystem=l,l.model=t,l.resize=Pf,l.resize(t,e)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}});var n={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}}),f(n,function(t,n){var r=g(t,function(t){return t.get("nameMap")}),a=new Af(n,n,o(r));a.zoomLimit=D.apply(null,g(t,function(t){return t.get("scaleLimit")})),i.push(a),a.resize=Pf,a.aspectScale=t[0].get("aspectScale"),a.resize(t[0],e),f(t,function(t){t.coordinateSystem=a,Lf(a,t)})}),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),r=E(),o=0;o<n.length;o++)r.set(n[o].name,n[o]);var a=_I.load(e,i);return f(a.regions,function(t){var e=t.name;!r.get(e)&&n.push({name:e})}),n}};Tu("geo",TI);var CI=function(t){var e={};t.eachSeriesByType("map",function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var r={};f(i.seriesGroup,function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),function(t,e){var o=n.getName(e),a=i.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=i.dataToPoint(a.center);r[o]=s+1,n.setItemLayout(e,{point:l,offset:s})}})});var o=i.getData();o.each(function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!r[e],o.setItemLayout(t,i)}),e[n]=!0}})},DI=function(t){t.eachSeriesByType("map",function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),r=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:r})})},AI=function(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),f(e,function(t){for(var e=Of(g(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(e.cloneShallow()),t[i].mainSeries=t[0]})},kI=function(t){var e=[];f(t.series,function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,s(t,t.mapLocation))})};Du(CI),Au(DI),Su(ub.PROCESSOR.STATISTIC,AI),bu(kI),jM("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}]);var PI="undefined"==typeof Uint32Array?Array:Uint32Array,LI="undefined"==typeof Float64Array?Array:Float64Array,OI=ow.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],zf(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),OI.superApply(this,"init",arguments)},mergeOption:function(t){if(zf(t),t.data){var e=this._processFlatCoordsArray(t.data);
this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}OI.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=F(this._flatCoords,e.flatCoords),this._flatCoordsOffset=F(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t),i=e.option instanceof Array?e.option:e.getShallow("coords");return i},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],r=0;n>r;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[i+2*r],e[r][1]=this._flatCoords[i+2*r+1];return n}for(var o=this._getCoordsFromItemModel(t),r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var i=t.length,n=new PI(i),r=new LI(i),o=0,a=0,s=0,l=0;i>l;){s++;var u=t[l++];n[a++]=o+e,n[a++]=u;for(var h=0;u>h;h++){var c=t[l++],d=t[l++];r[o++]=c,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t){var e=new Hb(["value"],this);return e.hasItemOption=!1,e.initData(t.data,[],function(t,i,n,r){if(t instanceof Array)return 0/0;e.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),e},formatTooltip:function(t){var e=this.getData(),i=e.getItemModel(t),n=i.get("name");if(n)return n;var r=i.get("fromName"),o=i.get("toName"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),Ga(a.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),zI=S_.prototype,RI=I_.prototype,NI=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[Rf(e)?"_buildPathLine":"_buildPathCurve"](t,e)},_buildPathLine:zI.buildPath,_buildPathCurve:RI.buildPath,pointAt:function(t){return this[Rf(this.shape)?"_pointAtLine":"_pointAtCurve"](t)},_pointAtLine:zI.pointAt,_pointAtCurve:RI.pointAt,tangentAt:function(t){var e=this.shape,i=Rf(e)?[e.x2-e.x1,e.y2-e.y1]:this._tangentAtCurve(t);return te(i,i)},_tangentAtCurve:RI.tangentAt}),BI=["fromSymbol","toSymbol"],EI=Gf.prototype;EI.beforeUpdate=Vf,EI._createLine=function(t,e,i){var n=t.hostModel,r=t.getItemLayout(e),o=Ef(r);o.shape.percent=0,na(o,{shape:{percent:1}},n,e),this.add(o);var a=new u_({name:"label",lineLabelOriginalOpacity:1});this.add(a),f(BI,function(i){var n=Bf(i,t,e);this.add(n),this[Nf(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},EI.updateData=function(t,e,i){var n=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};Ff(a.shape,o),ia(r,a,n,e),f(BI,function(i){var n=t.getItemVisual(e,i),r=Nf(i);if(this[r]!==n){this.remove(this.childOfName(i));var o=Bf(i,t,e);this.add(o)}this[r]=n},this),this._updateCommonStl(t,e,i)},EI._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,u=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);o=h.getModel("lineStyle").getLineStyle(),a=h.getModel("emphasis.lineStyle").getLineStyle(),l=h.getModel("label"),u=h.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(BI,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:d}))},this);var g,p,m=l.getShallow("show"),v=u.getShallow("show"),y=this.childOfName("label");if((m||v)&&(g=c||"#000",p=n.getFormattedLabel(e,"normal",t.dataType),null==p)){var _=n.getRawValue(e);p=null==_?t.getName(e):isFinite(_)?Ma(_):_}var w=m?p:null,b=v?A(n.getFormattedLabel(e,"emphasis",t.dataType),p):null,S=y.style;if(null!=w||null!=b){Uo(y.style,l,{text:w},{autoColor:g}),y.__textAlign=S.textAlign,y.__verticalAlign=S.textVerticalAlign,y.__position=l.get("position")||"middle";var M=l.get("distance");x(M)||(M=[M,M]),y.__labelDistance=M}y.hoverStyle=null!=b?{text:b,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,Vo(this)},EI.highlight=function(){this.trigger("emphasis")},EI.downplay=function(){this.trigger("normal")},EI.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},EI.setLinePoints=function(t){var e=this.childOfName("line");Ff(e.shape,t),e.dirty()},h(Gf,qm);var FI=Hf.prototype;FI.isPersistent=function(){return!0},FI.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var r=Uf(t);t.diff(n).add(function(i){Wf(e,t,i,r)}).update(function(i,o){Xf(e,n,t,o,i,r)}).remove(function(t){i.remove(n.getItemGraphicEl(t))}).execute()},FI.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},FI.incrementalPrepareUpdate=function(t){this._seriesScope=Uf(t),this._lineData=null,this.group.removeAll()},FI.incrementalUpdate=function(t,e){function i(t){t.isGroup||Yf(t)||(t.incremental=t.useHoverLayer=!0)}for(var n=t.start;n<t.end;n++){var r=e.getItemLayout(n);if(qf(r)){var o=new this._ctor(e,n,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(n,o)}}},FI.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},FI._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var VI=jf.prototype;VI.createLine=function(t,e,i){return new Gf(t,e,i)},VI._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),n=i.getModel("effect"),r=n.get("symbolSize"),o=n.get("symbol");x(r)||(r=[r,r]);var a=n.get("color")||t.getItemVisual(e,"color"),s=this.childAt(1);this._symbolType!==o&&(this.remove(s),s=Kh(o,-.5,-.5,1,1,a),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.attr("scale",r),s.setColor(a),s.attr("scale",r),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},VI._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var r=this,o=t.getItemLayout(i),a=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=D(e.get("delay"),function(e){return e/t.count()*a/3}),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,o),l>0&&(a=this.getLineLength(n)/l*1e3),a!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-a*n.__t),n.__t=0;var d=n.animate("",s).when(a,{__t:1}).delay(c).during(function(){r.updateSymbolPosition(n)});s||d.done(function(){r.remove(n)}),d.start()}this._period=a,this._loop=s}},VI.getLineLength=function(t){return Jp(t.__p1,t.__cp1)+Jp(t.__cp1,t.__p2)},VI.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},VI.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},VI.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,r=t.__t,o=t.position,a=[o[0],o[1]],s=Pr,l=Lr;o[0]=s(e[0],n[0],i[0],r),o[1]=s(e[1],n[1],i[1],r);var u=l(e[0],n[0],i[0],r),h=l(e[1],n[1],i[1],r);if(t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==t.__lastT&&t.__lastT<t.__t){var c=1.05*Jp(a,o);t.attr("scale",[t.scale[0],c]),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)}else if(1===t.__lastT){var c=2*Jp(e,o);t.attr("scale",[t.scale[0],c])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},VI.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},h(jf,qm);var GI=Kf.prototype;GI._createPolyline=function(t,e,i){var n=t.getItemLayout(e),r=new y_({shape:{points:n}});this.add(r),this._updateCommonStl(t,e,i)},GI.updateData=function(t,e,i){var n=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};ia(r,o,n,e),this._updateCommonStl(t,e,i)},GI._updateCommonStl=function(t,e,i){var n=this.childAt(0),r=t.getItemModel(e),o=t.getItemVisual(e,"color"),a=i&&i.lineStyle,l=i&&i.hoverLineStyle;(!i||t.hasItemOption)&&(a=r.getModel("lineStyle").getLineStyle(),l=r.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(s({strokeNoScale:!0,fill:"none",stroke:o},a)),n.hoverStyle=l,Vo(this)},GI.updateLayout=function(t,e){var i=this.childAt(0);i.setShape("points",t.getItemLayout(e))},h(Kf,qm);var HI=$f.prototype;HI.createLine=function(t,e,i){return new Kf(t,e,i)},HI.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];n+=Jp(o,a),i.push(n)}if(0!==n){for(var r=0;r<i.length;r++)i[r]/=n;this._offsets=i,this._length=n}},HI.getLineLength=function(){return this._length},HI.updateSymbolPosition=function(t){var e=t.__t,i=this._points,n=this._offsets,r=i.length;if(n){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0&&!(n[o]<=e);o--);o=Math.min(o,r-2)}else{for(var o=a;r>o&&!(n[o]>e);o++);o=Math.min(o-1,r-2)}re(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var l=i[o+1][0]-i[o][0],u=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(u,l)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},h($f,jf);var WI=vo({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(var r=0;r<i.length;){var o=i[r++];if(o>0){t.moveTo(i[r++],i[r++]);for(var a=1;o>a;a++)t.lineTo(i[r++],i[r++])}}else for(var r=0;r<i.length;){var s=i[r++],l=i[r++],u=i[r++],h=i[r++];if(t.moveTo(s,l),n>0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(){var t=this.shape,e=t.segs,i=t.curveness;if(t.polyline)for(var n=0,r=0;r<e.length;){var o=e[r++];if(o>0)for(var a=e[r++],s=e[r++],l=1;o>l;l++){var u=e[r++],h=e[r++];if(Hr(a,s,u,h))return n}n++}else for(var n=0,r=0;r<e.length;){var a=e[r++],s=e[r++],u=e[r++],h=e[r++];if(i>0){var c=(a+u)/2-(s-h)*i,d=(s+h)/2-(u-a)*i;if(Xr(a,s,c,d,u,h))return n}else if(Hr(a,s,u,h))return n;n++}return-1}}),XI=Jf.prototype;XI.isPersistent=function(){return!this._incremental},XI.updateData=function(t){this.group.removeAll();var e=new WI({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},XI.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new mo({silent:!0})),this.group.add(this._incremental)):this._incremental=null},XI.incrementalUpdate=function(t,e){var i=new WI;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},XI.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},XI._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("color");r&&t.setStyle("stroke",r),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)}))},XI._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var YI={seriesType:"lines",plan:lw(),reset:function(t){function e(e,o){var a=[];if(r){var s,l=e.end-e.start;if(n){for(var u=0,h=e.start;h<e.end;h++)u+=t.getLineCoordsCount(h);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);for(var c=0,d=[],h=e.start;h<e.end;h++){var f=t.getLineCoords(h,a);n&&(s[c++]=f);for(var g=0;f>g;g++)d=i.dataToPoint(a[g],!1,d),s[c++]=d[0],s[c++]=d[1]}o.setLayout("linesPoints",s)}else for(var h=e.start;h<e.end;h++){var p=o.getItemModel(h),f=t.getLineCoords(h,a),m=[];if(n)for(var v=0;f>v;v++)m.push(i.dataToPoint(a[v]));else{m[0]=i.dataToPoint(a[0]),m[1]=i.dataToPoint(a[1]);var y=p.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(h,m)}}var i=t.coordinateSystem,n=t.get("polyline"),r=t.pipelineContext.large;return{progress:e}}};Ru({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t),o=t.get("zlevel"),a=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(n);var u=t.get("clip",!0)&&Nc(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData(),r=this._updateLineDraw(n,t);r.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=YI.reset(t);o.progress&&o.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return i&&n===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=a?new Jf:new Hf(r?n?$f:Kf:n?jf:Gf),this._hasEffet=n,this._isPolyline=r,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr(),i="svg"===e.painter.getType();i||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});var UI="lineStyle.opacity".split("."),ZI={seriesType:"lines",reset:function(t){function e(t,e){var i=t.getItemModel(e),n=Qf(i.getShallow("symbol",!0)),r=Qf(i.getShallow("symbolSize",!0)),o=i.get(UI);n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1]),t.setItemVisual(e,"opacity",o)}var i=Qf(t.get("symbol")),n=Qf(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),r.setVisual("opacity",t.get(UI)),{dataEach:r.hasItemOption?e:null}}};Du(YI),Au(ZI);var qI=(ow.extend({type:"series.gauge",getInitialData:function(){return YM(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),io.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-i(a)*o*(o>=r/3?1:2),l=e.y-n(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(a)*o,e.y+n(a)*o),t.lineTo(e.x+i(e.angle)*r,e.y+n(e.angle)*r),t.lineTo(e.x-i(a)*o,e.y-n(a)*o),t.lineTo(s,l)}})),jI=2*Math.PI,KI=(fl.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),r=tg(t,i);this._renderMain(t,e,i,n,r)},dispose:function(){},_renderMain:function(t,e,i,n,r){for(var o=this.group,a=t.getModel("axisLine"),s=a.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=(h-u)%jI,d=u,f=s.get("width"),g=a.get("show"),p=0;g&&p<n.length;p++){var m=Math.min(Math.max(n[p][0],0),1),h=u+c*m,v=new f_({shape:{startAngle:d,endAngle:h,cx:r.cx,cy:r.cy,clockwise:l,r0:r.r-f,r:r.r},silent:!0});v.setStyle({fill:n[p][1]}),v.setStyle(s.getLineStyle(["color","borderWidth","borderColor"])),o.add(v),d=h}var y=function(t){if(0>=t)return n[0][1];for(var e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!l){var _=u;u=h,h=_}this._renderTicks(t,e,i,y,r,u,h,l),this._renderPointer(t,e,i,y,r,u,h,l),this._renderTitle(t,e,i,y,r),this._renderDetail(t,e,i,y,r)},_renderTicks:function(t,e,i,n,r,o,a){for(var s=this.group,l=r.cx,u=r.cy,h=r.r,c=+t.get("min"),d=+t.get("max"),f=t.getModel("splitLine"),g=t.getModel("axisTick"),p=t.getModel("axisLabel"),m=t.get("splitNumber"),v=g.get("splitNumber"),y=Sa(f.get("length"),h),_=Sa(g.get("length"),h),x=o,w=(a-o)/m,b=w/v,S=f.getModel("lineStyle").getLineStyle(),M=g.getModel("lineStyle").getLineStyle(),I=0;m>=I;I++){var T=Math.cos(x),C=Math.sin(x);if(f.get("show")){var D=new S_({shape:{x1:T*h+l,y1:C*h+u,x2:T*(h-y)+l,y2:C*(h-y)+u},style:S,silent:!0});"auto"===S.stroke&&D.setStyle({stroke:n(I/m)}),s.add(D)}if(p.get("show")){var A=eg(Ma(I/m*(d-c)+c),p.get("formatter")),k=p.get("distance"),P=n(I/m);s.add(new u_({style:Uo({},p,{text:A,x:T*(h-y-k)+l,y:C*(h-y-k)+u,textVerticalAlign:-.4>C?"top":C>.4?"bottom":"middle",textAlign:-.4>T?"left":T>.4?"right":"center"},{autoColor:P}),silent:!0}))}if(g.get("show")&&I!==m){for(var L=0;v>=L;L++){var T=Math.cos(x),C=Math.sin(x),O=new S_({shape:{x1:T*h+l,y1:C*h+u,x2:T*(h-_)+l,y2:C*(h-_)+u},silent:!0,style:M});"auto"===M.stroke&&O.setStyle({stroke:n((I+L/v)/m)}),s.add(O),x+=b}x-=b}else x+=w}},_renderPointer:function(t,e,i,n,r,o,a){var s=this.group,l=this._data;if(!t.get("pointer.show"))return void(l&&l.eachItemGraphicEl(function(t){s.remove(t)}));var u=[+t.get("min"),+t.get("max")],h=[o,a],c=t.getData(),d=c.mapDimension("value");c.diff(l).add(function(e){var i=new qI({shape:{angle:o}});na(i,{shape:{angle:ba(c.get(d,e),u,h,!0)}},t),s.add(i),c.setItemGraphicEl(e,i)}).update(function(e,i){var n=l.getItemGraphicEl(i);ia(n,{shape:{angle:ba(c.get(d,e),u,h,!0)}},t),s.add(n),c.setItemGraphicEl(e,n)}).remove(function(t){var e=l.getItemGraphicEl(t);s.remove(e)}).execute(),c.eachItemGraphicEl(function(t,e){var i=c.getItemModel(e),o=i.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:Sa(o.get("width"),r.r),r:Sa(o.get("length"),r.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(ba(c.get(d,e),u,[0,1],!0))),Vo(t,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=c},_renderTitle:function(t,e,i,n,r){var o=t.getData(),a=o.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=r.cx+Sa(l[0],r.r),h=r.cy+Sa(l[1],r.r),c=+t.get("min"),d=+t.get("max"),f=t.getData().get(a,0),g=n(ba(f,[c,d],[0,1],!0));this.group.add(new u_({silent:!0,style:Uo({},s,{x:u,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,r){var o=t.getModel("detail"),a=+t.get("min"),s=+t.get("max");if(o.get("show")){var l=o.get("offsetCenter"),u=r.cx+Sa(l[0],r.r),h=r.cy+Sa(l[1],r.r),c=Sa(o.get("width"),r.r),d=Sa(o.get("height"),r.r),f=t.getData(),g=f.get(f.mapDimension("value"),0),p=n(ba(g,[a,s],[0,1],!0));this.group.add(new u_({silent:!0,style:Uo({},o,{x:u,y:h,text:eg(g,o.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:p,forceRich:!0})}))}}}),function(t,e,i,n,r){BS.call(this,t,e,i),this.type=n||"value",this.position=r||"bottom",this.orient=null});KI.prototype={constructor:KI,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},h(KI,BS),ig.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:ig,_init:function(t){var e=this.dimension,i=new KI(e,Gh(t),[0,0],t.get("type"),t.get("position")),n="category"===i.type;i.onBand=n&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},update:function(t){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData();f(e.mapDimension(this.dimension,!0),function(t){this._axis.scale.unionExtentFromData(e,t)},this),Vh(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=Ja({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(n[r],n[1-r]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[r]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-r]=0===r?i.y+i.height/2:i.x+i.width/2,n}},Cs.register("single",{create:ng,dimensions:ig.prototype.dimensions});var $I=["axisLine","axisTickLabel","axisName"],JI=["splitArea","splitLine"],QI=yM.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var r=this.group;r.removeAll();var o=this._axisGroup;this._axisGroup=new qm;var a=rg(t),s=new cM(t,a);f($I,s.add,s),r.add(this._axisGroup),r.add(s.getGroup()),f(JI,function(e){t.get(e+".show")&&this["_"+e](t)},this),sa(o,this._axisGroup,t),QI.superCall(this,"render",t,e,i,n)},remove:function(){_d(this)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),r=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var a=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;f<h.length;++f){var g=e.toGlobalCoord(h[f].coord);s?(c[0]=g,c[1]=a.y,d[0]=g,d[1]=a.y+a.height):(c[0]=a.x,c[1]=g,d[0]=a.x+a.width,d[1]=g);var p=u++%o.length;l[p]=l[p]||[],l[p].push(new S_({subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:{lineWidth:r},silent:!0}))}for(var f=0;f<l.length;++f)this.group.add(H_(l[f],{style:{stroke:o[f%o.length],lineDash:n.getLineDash(r),lineWidth:r},silent:!0}))}},_splitArea:function(t){yd(this,this._axisGroup,t,t)}}),tT=vx.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),eT={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};r(tT.prototype,bS),US("single",tT,og,eT);var iT=function(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=lr(o,t);if(null==a||0>a||x(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(g(l.dimensions,function(t){return o.mapDimension(t)}),a,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),n=[u.x+u.width/2,u.y+u.height/2]}return{point:n,el:s}},nT=f,rT=_,oT=ur(),aT=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){pg(r)&&(r=iT({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=pg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===n||pg(r),d={},f={},g={list:[],map:{}},p={showPointer:rT(lg,f),showTooltip:rT(ug,g)};nT(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);nT(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=fg(u,t);if(!c&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&ag(t,o,p,!1,d)}})});var m={};return nT(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&nT(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,gg(e),gg(t)))),m[t.key]=o}})}),nT(m,function(t,e){ag(h[e],t,p,!0,d)}),hg(f,h,d),cg(g,r,t,a),dg(h,a,i),d}},sT=(Lu({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()),lT=f,uT=Ou({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";mg("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){bg(e.getZr(),"axisPointer"),uT.superApply(this._model,"remove",arguments)},dispose:function(t,e){bg("axisPointer",e),uT.superApply(this._model,"dispose",arguments)}}),hT=ur(),cT=n,dT=y;Sg.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 u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=_(Mg,e,h);this.updatePointerEl(a,l,c,e),this.updateLabelEl(a,l,c,e)}else a=this._group=new qm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);Dg(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=cd(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=hT(t).pointerEl=new U_[i.type](cT(e.pointer));t.add(n)}},createLabelEl:function(t,e,i,n){if(e.label){var r=hT(t).labelEl=new w_(cT(e.label));t.add(r),Tg(r,n)}},updatePointerEl:function(t,e,i){var n=hT(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var r=hT(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{shape:e.label.shape,position:e.label.position}),Tg(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=ha(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){um(t.event)},onmousedown:dT(this._onHandleDragMove,this,0,0),drift:dT(this._onHandleDragMove,this),ondragend:dT(this._onHandleDragEnd,this)}),i.add(n)),Dg(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(r.getItemStyle(null,s));var l=r.get("size");x(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),_l(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},_moveHandleToValue:function(t,e){Mg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Cg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Cg(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Cg(n)),hT(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]}}},Sg.prototype.constructor=Sg,yr(Sg);var fT=Sg.extend({makeElOption:function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=Bg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));
if(s&&"none"!==s){var h=Ag(n),c=gT[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=vd(a.model,i);zg(e,t,d,i,n,r)},getHandleTransform:function(t,e,i){var n=vd(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Og(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=Bg(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 u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}}}),gT={line:function(t,e,i){var n=Rg([e,i[0]],[e,i[1]],Eg(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:Ng([e-n/2,i[0]],[n,r],Eg(t))}}};yM.registerAxisPointerClass("CartesianAxisPointer",fT),bu(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!x(e)&&(t.axisPointer.link=[e])}}),Su(ub.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=rd(t,e)}),Iu({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},aT);var pT=["x","y"],mT=["width","height"],vT=Sg.extend({makeElOption:function(t,e,i,n,r){var o=i.axis,a=o.coordinateSystem,s=Vg(a,1-Fg(o)),l=a.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=Ag(n),c=yT[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var d=rg(i);zg(e,t,d,i,n,r)},getHandleTransform:function(t,e,i){var n=rg(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:Og(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i){var n=i.axis,r=n.coordinateSystem,o=Fg(n),a=Vg(r,o),s=t.position;s[o]+=e[o],s[o]=Math.min(a[1],s[o]),s[o]=Math.max(a[0],s[o]);var l=Vg(r,1-o),u=(l[1]+l[0])/2,h=[u,u];return h[o]=s[o],{position:s,rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}}}),yT={line:function(t,e,i){var n=Rg([e,i[0]],[e,i[1]],Fg(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:Ng([e-n/2,i[0]],[n,r],Fg(t))}}};yM.registerAxisPointerClass("SingleAxisPointer",vT),Ou({type:"single"});var _T=2,xT=ow.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(){xT.superApply(this,"init",arguments),this.legendVisualProvider=new Ud(y(this.getData,this),y(this.getRawData,this))},fixData:function(t){var e=t.length,i={},n=pr(t,function(t){return i.hasOwnProperty(t[0])||(i[t[0]]=-1),t[2]}),r=[];n.buckets.each(function(t,e){r.push({name:e,dataList:t})});for(var o=r.length,a=0;o>a;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var u=r[a].dataList[l][0];i[u]=a}for(var u in i)i.hasOwnProperty(u)&&i[u]!==a&&(i[u]=a,t[e]=[],t[e][0]=u,t[e][1]=0,t[e][2]=s,e++)}return t},getInitialData:function(t,e){for(var i=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],n=i.get("type"),r=m(t.data,function(t){return void 0!==t[2]}),o=this.fixData(r||[]),a=[],s=this.nameMap=E(),l=0,u=0;u<o.length;++u)a.push(o[u][_T]),s.get(o[u][_T])||(s.set(o[u][_T],l),l++);var h=Yb(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Xu(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),c=new Hb(h,this);return c.initData(o),c},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),i=[],n=0;e>n;++n)i[n]=n;var r=t.mapDimension("single"),o=pr(i,function(e){return t.get("name",e)}),a=[];return o.buckets.each(function(e,i){e.sort(function(e,i){return t.get(r,e)-t.get(r,i)}),a.push({name:i,indices:e})}),a},getAxisTooltipData:function(t,e){x(t)||(t=t?[t]:[]);for(var i,n=this.getData(),r=this.getLayerSeries(),o=[],a=r.length,s=0;a>s;++s){for(var l=Number.MAX_VALUE,u=-1,h=r[s].indices.length,c=0;h>c;++c){var d=n.get(t[0],r[s].indices[c]),f=Math.abs(d-e);l>=f&&(i=d,l=f,u=r[s].indices[c])}o.push(u)}return{dataIndices:o,nestestValue:i}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),Ga(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});Ru({type:"themeRiver",init:function(){this._layers=[]},render:function(t){function e(t){return t.name}function i(e,i,s){var l=this._layers;if("remove"===e)return void r.remove(l[i]);for(var u,h=[],d=[],f=o[i].indices,g=0;g<f.length;g++){var p=n.getItemLayout(f[g]),m=p.x,v=p.y0,y=p.y;h.push([m,v]),d.push([m,v+y]),u=n.getItemVisual(f[g],"color")}var _,x,w=n.getItemLayout(f[0]),b=n.getItemModel(f[g-1]),S=b.getModel("label"),M=S.get("margin");if("add"===e){var I=c[i]=new qm;_=new FM({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x=new u_({style:{x:w.x-M,y:w.y0+w.y/2}}),I.add(_),I.add(x),r.add(I),_.setClipPath(Gg(_.getBoundingRect(),t,function(){_.removeClipPath()}))}else{var I=l[s];_=I.childAt(0),x=I.childAt(1),r.add(I),c[i]=I,ia(_,{shape:{points:h,stackedOnPoints:d}},t),ia(x,{style:{x:w.x-M,y:w.y0+w.y/2}},t)}var T=b.getModel("emphasis.itemStyle"),C=b.getModel("itemStyle");Uo(x.style,S,{text:S.get("show")?t.getFormattedLabel(f[g-1],"normal")||n.getName(f[g-1]):null,textVerticalAlign:"middle"}),_.setStyle(a({fill:u},C.getItemStyle(["color"]))),Vo(_,T.getItemStyle())}var n=t.getData(),r=this.group,o=t.getLayerSeries(),s=n.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;r.attr("position",[0,l.y+u[0]]);var h=new Vu(this._layersSeries||[],o,e,e),c={};h.add(y(i,this,"add")).update(y(i,this,"update")).remove(y(i,this,"remove")).execute(),this._layersSeries=o,this._layers=c},dispose:function(){}});var wT=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.coordinateSystem,n={},r=i.getRect();n.rect=r;var o=t.get("boundaryGap"),a=i.getAxis();if(n.boundaryGap=o,"horizontal"===a.orient){o[0]=Sa(o[0],r.height),o[1]=Sa(o[1],r.height);var s=r.height-o[0]-o[1];Hg(e,t,s)}else{o[0]=Sa(o[0],r.width),o[1]=Sa(o[1],r.width);var l=r.width-o[0]-o[1];Hg(e,t,l)}e.setLayout("layoutInfo",n)})},bT=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),r=E();e.each(function(t){r.set(e.getRawIndex(t),t)}),i.each(function(o){var a=i.getName(o),s=n[(t.nameMap.get(a)-1)%n.length];i.setItemVisual(o,"color",s);var l=r.get(o);null!=l&&e.setItemVisual(l,"color",s)})})};Du(wT),Au(bT),Su(iI("themeRiver"));var ST=vx.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){vx.prototype.init.apply(this,arguments),er(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=TI.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=p(t.regions||[],function(t,i){return i.name&&t.set(i.name,new pa(i,e)),t},E()),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 pa(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(ST,UM),Ou({type:"geo",init:function(t,e){var i=new bf(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()}}),Xg("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),Xg("select",{type:"geoSelect",event:"geoselected"}),Xg("unSelect",{type:"geoUnSelect",event:"geounselected"});var MT=864e5;Yg.prototype={constructor:Yg,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){t=La(t);var e=t.getFullYear(),i=t.getMonth()+1;i=10>i?"0"+i:i;var n=t.getDate();n=10>n?"0"+n:n;var r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:r,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),a=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];f([0,1],function(t){i(o,t)&&(a[r[t]]=o[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Ja(a,l);f([0,1],function(t){i(o,t)||(o[t]=u[r[t]]/s[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){x(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,r=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+MT))return[0/0,0/0];var o=i.day,a=this._getRangeInfo([n.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:_(Ug,"dataToPoint"),convertFromPixel:_(Ug,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(x(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var r=this.getNextNDay(n,-1);t=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];var e;t[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/MT)-Math.floor(t[0].time/MT)+1,n=new Date(t[0].time),r=n.getDate(),o=t[1].date.getDate();n.setDate(r+i-1);var a=n.getDate();if(a!==o)for(var s=n.getTime()-t[1].time>0?1:-1;(a=n.getDate())!==o&&(n.getTime()-t[1].time)*s>0;)i-=s,n.setDate(a-s);var l=Math.floor((i+t[0].day+6)/7),u=e?-l+1:l-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return!1;var r=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(n.start.d+r),this.getDateInfo(o)}},Yg.dimensions=Yg.prototype.dimensions,Yg.getDimensionsInfo=Yg.prototype.getDimensionsInfo,Yg.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var r=new Yg(n,t,e);i.push(r),n.coordinateSystem=r}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},Cs.register("calendar",Yg);var IT=vx.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t){var e=es(t);IT.superApply(this,"init",arguments),Zg(t,e)},mergeOption:function(t){IT.superApply(this,"mergeOption",arguments),Zg(this.option,t)}}),TT={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},CT={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};Ou({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t){var e=this.group;e.removeAll();var i=t.coordinateSystem,n=i.getRangeInfo(),r=i.getOrient();this._renderDayRect(t,n,e),this._renderLines(t,n,r,e),this._renderYearText(t,n,r,e),this._renderMonthText(t,r,e),this._renderWeekText(t,n,r,e)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),a=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new w_({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});i.add(u)}},_renderLines:function(t,e,i,n){function r(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var r=o._getLinePointsOfOneWeek(t,e,i);o._tlpoints.push(r[0]),o._blpoints.push(r[r.length-1]),l&&o._drawSplitline(r,s,n)}var o=this,a=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){r(h.formatedDate),0===c&&(h=a.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=a.getDateInfo(d)}r(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,i),s,n),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===i?0:1;return n[0][r]=n[0][r]-e/2,n[1][r]=n[1][r]+e/2,n},_drawSplitline:function(t,e,i){var n=new y_({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var r=[],o=0;7>o;o++){var a=n.getNextNDay(e.time,o),s=n.dataToRect([a.time],!1);r[2*a.day]=s.tl,r[2*a.day+1]=s["horizontal"===i?"bl":"tr"]}return r},_formatterLabel:function(t,e){return"string"==typeof t&&t?Wa(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,r){e=e.slice();var o=["center","bottom"];"bottom"===n?(e[1]+=r,o=["center","top"]):"left"===n?e[0]-=r:"right"===n?(e[0]+=r,o=["center","top"]):e[1]-=r;var a=0;return("left"===n||"right"===n)&&(a=Math.PI/2),{rotation:a,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,n){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:d},p=this._formatterLabel(f,g),m=new u_({z2:30});Uo(m.style,r,{text:p}),m.attr(this._yearTextPositionControl(m,c[a],i,a,o)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===i?(l+=r,e&&(o="center"),"start"===n&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===n&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var r=n.get("nameMap"),o=n.get("margin"),s=n.get("position"),l=n.get("align"),u=[this._tlpoints,this._blpoints];b(r)&&(r=TT[r.toUpperCase()]||[]);var h="start"===s?0:1,c="horizontal"===e?0:1;o="start"===s?-o:o;for(var d="center"===l,f=0;f<u[h].length-1;f++){var g=u[h][f].slice(),p=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];g[c]=(m[c]+u[0][f+1][c])/2}var v=n.get("formatter"),y=r[+p.m-1],_={yyyy:p.y,yy:(p.y+"").slice(2),MM:p.m,M:+p.m,nameMap:y},x=this._formatterLabel(v,_),w=new u_({z2:30});a(Uo(w.style,n,{text:x}),this._monthTextPositionControl(g,d,e,s,o)),i.add(w)}}},_weekTextPositionControl:function(t,e,i,n,r){var o="center",a="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*r[0]/2,o=u?"right":"left"):(l=l+n+(u?1:-1)*r[1]/2,a=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(t,e,i,n){var r=t.getModel("dayLabel");if(r.get("show")){var o=t.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),u=r.get("margin"),h=o.getFirstDayOfWeek();b(l)&&(l=CT[l.toUpperCase()]||[]);var c=o.getNextNDay(e.end.time,7-e.lweek).time,d=[o.getCellWidth(),o.getCellHeight()];u=Sa(u,d["horizontal"===i?0:1]),"start"===s&&(c=o.getNextNDay(e.start.time,-(7+e.fweek)).time,u=-u);for(var f=0;7>f;f++){var g=o.getNextNDay(c,f),p=o.dataToRect([g.time],!1).center,m=f;m=Math.abs((f+h)%7);var v=new u_({z2:30});a(Uo(v.style,r,{text:l[m]}),this._weekTextPositionControl(p,i,s,u,d)),n.add(v)}}}}),Lu({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"}}}),Ou({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=A(t.get("textBaseline"),t.get("textVerticalAlign")),l=new u_({style:Uo({},r,{text:t.get("text"),textFill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new u_({style:Uo({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);l.silent=!d&&!g,c.silent=!f&&!g,d&&l.on("click",function(){Ka(d,"_"+t.get("target"))}),f&&c.on("click",function(){Ka(f,"_"+t.get("subtarget"))}),l.eventData=c.eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),h&&n.add(c);var p=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=p.width,m.height=p.height;var v=Ja(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),p=n.getBoundingRect();var _=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new w_({shape:{x:p.x-_[3],y:p.y-_[0],width:p.width+_[1]+_[3],height:p.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});n.add(w)}}});var DT=vw.legend.selector,AT={all:{type:"all",title:n(DT.all)},inverse:{type:"inverse",title:n(DT.inverse)}},kT=Lu({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){kT.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var e=t.selector;e===!0&&(e=t.selector=["all","inverse"]),x(e)&&f(e,function(t,i){b(t)&&(t={type:t}),e[i]=r(t,AT[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<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries(function(n){var r=n.name;i.push(r);var o;if(n.legendVisualProvider){var a=n.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&ar(n)&&e.push(n.name)}),this._availableNames=i;var n=this.get("data")||e,r=g(n,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new pa(t,this,this.ecModel)},this);this._data=r},getData:function(){return this._data},select:function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;f(n,function(t){e[t.get("name")]=!1})}e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){e[t.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,e=this.option.selected;f(t,function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]})},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&u(this._availableNames,t)>=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}}});Iu("legendToggleSelect","legendselectchanged",_(qg,"toggleSelected")),Iu("legendAllSelect","legendselectall",_(qg,"allSelect")),Iu("legendInverseSelect","legendinverseselect",_(qg,"inverseSelect")),Iu("legendSelect","legendselected",_(qg,"select")),Iu("legendUnSelect","legendunselected",_(qg,"unSelect"));var PT=_,LT=f,OT=qm,zT=Ou({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new OT),this._backgroundEl,this.group.add(this._selectorGroup=new OT),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 u=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),d=Ja(u,h,c),f=this.layoutInner(t,r,d,n,a,l),g=Ja(s({width:f.width,height:f.height},u),h,c);this.group.attr("position",[g.x-f.x,g.y-f.y]),this.group.add(this._backgroundEl=jg(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=E(),u=e.get("selectedMode"),h=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),LT(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a))return void s.add(new OT({newline:!0}));var c=i.getSeriesByName(a)[0];if(!l.get(a))if(c){var d=c.getData(),f=d.getVisual("color"),g=d.getVisual("borderColor");"function"==typeof f&&(f=f(c.getDataParams(0))),"function"==typeof g&&(g=g(c.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",m=d.getVisual("symbol"),v=this._createItem(a,o,r,e,p,m,t,f,g,u);v.on("click",PT($g,a,null,n,h)).on("mouseover",PT(Jg,c.name,null,n,h)).on("mouseout",PT(Qg,c.name,null,n,h)),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"),g="roundRect",p=this._createItem(a,o,r,e,g,null,t,d,f,u);p.on("click",PT($g,null,a,n,h)).on("mouseover",PT(Jg,null,a,n,h)).on("mouseout",PT(Qg,null,a,n,h)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,n,o,a)},_createSelector:function(t,e,i){function n(t){var n=t.type,o=new u_({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");Xo(o.style,o.hoverStyle={},a,s,{defaultText:t.title,isRectText:!1}),Vo(o)}var r=this.getSelectorGroup();LT(t,function(t){n(t)})},_createItem:function(t,e,i,n,r,o,s,l,u,h){var c=n.get("itemWidth"),d=n.get("itemHeight"),f=n.get("inactiveColor"),g=n.get("inactiveBorderColor"),p=n.get("symbolKeepAspect"),m=n.getModel("itemStyle"),v=n.isSelected(t),y=new OT,_=i.getModel("textStyle"),x=i.get("icon"),w=i.getModel("tooltip"),b=w.parentModel;r=x||r;var S=Kh(r,0,0,c,d,v?l:f,null==p?!0:p);if(y.add(Kg(S,r,m,u,g,v)),!x&&o&&(o!==r||"none"===o)){var M=.8*d;"none"===o&&(o="circle");var I=Kh(o,(c-M)/2,(d-M)/2,M,M,v?l:f,null==p?!0:p);y.add(Kg(I,o,m,u,g,v))}var T="left"===s?c+5:-5,C=s,D=n.get("formatter"),A=t;"string"==typeof D&&D?A=D.replace("{name}",null!=t?t:""):"function"==typeof D&&(A=D(t)),y.add(new u_({style:Uo({},_,{text:A,x:T,y:d/2,textFill:v?_.getTextColor():f,textAlign:C,textVerticalAlign:"middle"})}));var k=new w_({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=!h,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();gx(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(r){gx("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,g=0===f?"width":"height",p=0===f?"height":"width",m=0===f?"y":"x";"end"===o?c[f]+=l[g]+d:u[f]+=h[g]+d,c[1-f]+=l[p]/2-h[p]/2,s.attr("position",c),a.attr("position",u);var v={x:0,y:0};return v[g]=l[g]+d+h[g],v[p]=Math.max(l[p],h[p]),v[m]=Math.min(0,h[m]+c[1-f]),v}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}}),RT=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})};Su(ub.PROCESSOR.SERIES_FILTER,RT),vx.registerSubTypeDefaulter("legend",function(){return"plain"});var NT=kT.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,i,n){var r=es(t);NT.superCall(this,"init",t,e,i,n),tp(this,t,r)},mergeOption:function(t,e){NT.superCall(this,"mergeOption",t,e),tp(this,this.option,t)}}),BT=qm,ET=["width","height"],FT=["x","y"],VT=zT.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){VT.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new BT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BT),this._showController},resetInner:function(){VT.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,n,r,o,a){function s(t,i){var r=t+"DataIndex",o=ha(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:y(l._pageGo,l,r,e,n)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}var l=this;VT.superCall(this,"renderInner",t,e,i,n,r,o,a);var u=this._controllerGroup,h=e.get("pageIconSize",!0);x(h)||(h=[h,h]),s("pagePrev",0);var c=e.getModel("pageTextStyle");u.add(new u_({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),s("pageNext",1)},layoutInner:function(t,e,i,r,o,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=ET[l],h=FT[l],c=ET[1-l],d=FT[1-l];o&&gx("horizontal",s,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),g=s.getBoundingRect(),p=[-g.x,-g.y],m=n(i);o&&(m[u]=i[u]-g[u]-f);var v=this._layoutContentAndController(t,r,m,l,u,c,d);if(o){if("end"===a)p[l]+=v[u]+f;else{var y=g[u]+f;p[l]-=y,v[h]-=y}v[u]+=g[u]+f,p[1-l]+=v[d]+v[c]/2-g[c]/2,v[c]=Math.max(v[c],g[c]),v[d]=Math.min(v[d],g[d]+p[1-l]),s.attr("position",p)}return v},_layoutContentAndController:function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;gx(t.get("orient"),s,t.get("itemGap"),n?i.width:null,n?null:i.height),gx("horizontal",u,t.get("pageButtonItemGap",!0));var h=s.getBoundingRect(),c=u.getBoundingRect(),d=this._showController=h[r]>i[r],f=[-h.x,-h.y];e||(f[n]=s.position[n]);var g=[0,0],p=[-c.x,-c.y],m=A(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var v=t.get("pageButtonPosition",!0);"end"===v?p[n]+=i[r]-c[r]:g[n]+=c[r]+m}p[1-n]+=h[o]/2-c[o]/2,s.attr("position",f),l.attr("position",g),u.attr("position",p);var y={x:0,y:0};if(y[r]=d?i[r]:h[r],y[o]=Math.max(h[o],c[o]),y[a]=Math.min(0,c[a]+p[1-n]),l.__rectSize=i[r],d){var _={x:0,y:0};_[r]=Math.max(i[r]-c[r]-m,0),_[o]=y[o],l.setClipPath(new w_({shape:_})),l.__rectSize=_[r]}else u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&ia(s,{position:x.contentPosition},d?t:!1),this._updatePageInfoView(t,x),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=ET[a],l=FT[a],u=this._findTargetItemIndex(n),h=r.children(),c=h[u],d=h.length,f=d?1:0,g={contentPosition:r.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return g;var p=e(c);g.contentPosition[a]=-p.s;for(var m=u+1,v=p,y=p,_=null;d>=m;++m)_=e(h[m]),(!_&&y.e>v.s+o||_&&!i(_,v.s))&&(v=y.i>v.i?y:_,v&&(null==g.pageNextDataIndex&&(g.pageNextDataIndex=v.i),++g.pageCount)),y=_;for(var m=u-1,v=p,y=p,_=null;m>=-1;--m)_=e(h[m]),_&&i(y,_.s)||!(v.i<y.i)||(y=v,null==g.pagePrevDataIndex&&(g.pagePrevDataIndex=v.i),++g.pageCount,++g.pageIndex),v=_;return g},_findTargetItemIndex:function(t){if(!this._showController)return 0;var e,i,n=this.getContentGroup();return n.eachChild(function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)}),null!=e?e:i}});Iu("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})}),Lu({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var GT=f,HT=Va,WT=["","-webkit-","-moz-","-o-"],XT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";op.prototype={constructor:op,_enterable:!0,update:function(t){var e=this._container,i=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var r=t.get("alwaysShowContent");r&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(t){clearTimeout(this._hideTimeout);var e=this.el,i=this._styleCoord;e.style.cssText=XT+np(t)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i=this._styleCoord;rp(i,this._zr,this._appendToBody,t,e);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(y(this.hide,this),t)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}},sp.prototype={constructor:sp,_enterable:!0,update:function(t){var e=t.get("alwaysShowContent");e&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var t=this._styleCoord[2],e=this._styleCoord[3],i=t*this._zr.getWidth(),n=e*this._zr.getHeight();this.moveTo(i,n)},show:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},r=t,o="{marker",a="|}",s=r.indexOf(o);s>=0;){var l=r.indexOf(a),u=r.substr(s+o.length,l-s-o.length);n["marker"+u]=u.indexOf("sub")>-1?{textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[u],textOffset:[3,0]}:{textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[u]},r=r.substr(l+1),s=r.indexOf("{marker")}var h=i.getModel("textStyle"),c=h.get("fontSize"),d=i.get("textLineHeight");null==d&&(d=Math.round(3*c/2)),this.el=new u_({style:Uo({},h,{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;ap(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 YT=y,UT=f,ZT=Sa,qT=new w_({shape:{x:-1,y:-1,width:2,height:2}});Ou({type:"tooltip",init:function(t,e){if(!zp.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=gr(n);var r;"html"===this._renderMode?(r=new op(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(r=new sp(e),this._newLine="\n"),this._tooltipContent=r}},render:function(t,e,i){if(!zp.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");mg("itemTooltip",this._api,YT(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&&!zp.node){var r=up(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var a=qT;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=iT(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,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(up(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=lp([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=lp([e.tooltipOption,n]),u=this._renderMode,h=this._newLine,c={};UT(t,function(t){UT(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,o=[];if(e&&null!=n){var l=Lg(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,function(a){var h=i.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Xh(e.axis,n),f.axisValueLabel=l,f){s.push(f);var g,p=h.formatTooltip(d,!0,null,u);if(S(p)){g=p.html;var m=p.markers;r(c,m)}else g=p;o.push(g)}});var d=l;a.push("html"!==u?o.join(h):(d?Ga(d)+h:"")+o.join(h))}})},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,u=a.getData(l),h=lp([u.getItemModel(s),a,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,g=a.getDataParams(s,l),p=a.formatTooltip(s,!1,l,this._renderMode);S(p)?(d=p.html,f=p.markers):(d=p,f=null);var m="item_"+a.name+"_"+s;this._showOrMove(h,function(){this._showTooltipContent(h,d,g,m,t.offsetX,t.offsetY,t.position,t.target,f)}),i({type:"showTip",dataIndexInside:s,dataIndex:u.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 pa(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 u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e;if(h&&"string"==typeof h)c=Ha(h,i,!0);else if("function"==typeof h){var d=YT(function(e,n){e===this._ticket&&(u.setContent(n,l,t),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,c=h(i,n,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,a,r,o,u,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 u=r.getSize(),h=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:u.slice()})),x(e))i=ZT(e[0],s),n=ZT(e[1],l);else if(S(e)){e.width=u[0],e.height=u[1];var f=Ja(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else if("string"==typeof e&&a){var g=dp(e,d,u);i=g[0],n=g[1]}else{var g=hp(i,n,r,s,l,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=fp(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=fp(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var g=cp(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&UT(e,function(e,n){var r=e.dataByAxis||{},o=t[n]||{},a=o.dataByAxis||[];i&=r.length===a.length,i&&UT(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&&UT(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){zp.node||(this._tooltipContent.dispose(),bg("itemTooltip",e))}}),Iu({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Iu({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var jT=Fa,KT=Ga,$T=Lu({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},isAnimationEnabled:function(){if(zp.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&&gp(i),f(i.data,function(t){t instanceof Array?(gp(t[0]),gp(t[1])):gp(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=x(o)?g(o,jT).join(", "):jT(o),s=r.getName(t),l=KT(this.name),u="html"===n?"<br/>":"\n";return(null!=o||s)&&(l+=u),s&&(l+=KT(s),null!=o&&(l+=" : ")),null!=o&&(l+=KT(a)),l},getData:function(){return this._data},setData:function(t){this._data=t}});c($T,ew),$T.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 JT=u,QT=_,tC={min:QT(vp,"min"),max:QT(vp,"max"),average:QT(vp,"average")},eC=Ou({type:"marker",init:function(){this.markerGroupMap=E()},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(){}});eC.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(Mp(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 Md),u=Ip(r,t,e);e.setData(u),Mp(e.getData(),t,n),u.each(function(t){var i=u.getItemModel(t),n=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=w(n),l=w(r),h=w(o);if(s||l||h){var c=e.getRawValue(t),d=e.getDataParams(t);s&&(n=n(c,d)),l&&(r=r(c,d)),h&&(o=o(c,d))}u.setItemVisual(t,{symbol:n,symbolSize:r,symbolRotate:o,color:i.get("itemStyle.color")||a.getVisual("color")})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),bu(function(t){t.markPoint=t.markPoint||{}}),$T.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 iC=function(t,e,i,o){var s=t.getData(),l=o.type;if(!x(o)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=o.xAxis||null!=o.yAxis)){var u,h;if(null!=o.yAxis||null!=o.xAxis)u=e.getAxis(null!=o.yAxis?"y":"x"),h=D(o.yAxis,o.xAxis);else{var c=_p(o,s,e,t);u=c.valueAxis;var d=gh(s,c.valueDataDim);h=Sp(s,d,l)}var f="x"===u.dim?0:1,g=1-f,p=n(o),m={};p.type=null,p.coord=[],m.coord=[],p.coord[g]=-1/0,m.coord[g]=1/0;var v=i.get("precision");v>=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(v,20))),p.coord[f]=m.coord[f]=h,o=[p,m,{type:l,valueIndex:o.valueIndex,value:h}]}return o=[yp(t,o[0]),yp(t,o[1]),a({},o[2])],o[2].type=o[2].type||"",r(o[2],o[0]),r(o[2],o[1]),o};eC.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){Ap(r,e,!0,t,i),Ap(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);Ap(e,i,r,t,n),e.setItemVisual(i,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||p[r?0:1],symbol:o.get("symbol",!0)||g[r?0:1],color:o.get("itemStyle.color")||s.getVisual("color")})}var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new Hf);this.group.add(u.group);var h=kp(o,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var g=e.get("symbol"),p=e.get("symbolSize");x(g)||(g=[g,g]),"number"==typeof p&&(p=[p,p]),h.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")})}),u.updateData(f),h.line.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}}),bu(function(t){t.markLine=t.markLine||{}}),t.version=jw,t.dependencies=Kw,t.PRIORITY=ub,t.init=pu,t.connect=mu,t.disConnect=vu,t.disconnect=Ab,t.dispose=yu,t.getInstanceByDom=_u,t.getInstanceById=xu,t.registerTheme=wu,t.registerPreprocessor=bu,t.registerProcessor=Su,t.registerPostUpdate=Mu,t.registerAction=Iu,t.registerCoordinateSystem=Tu,t.getCoordinateSystemDimensions=Cu,t.registerLayout=Du,t.registerVisual=Au,t.registerLoading=Pu,t.extendComponentModel=Lu,t.extendComponentView=Ou,t.extendSeriesModel=zu,t.extendChartView=Ru,t.setCanvasCreator=Nu,t.registerMap=Bu,t.getMap=Eu,t.dataTool=kb,t.zrender=Uv,t.number=nx,t.format=hx,t.throttle=yl,t.helper=LS,t.matrix=mm,t.vector=tm,t.color=Rm,t.parseGeoJSON=zS,t.parseGeoJson=ES,t.util=FS,t.graphic=VS,t.List=Hb,t.Model=pa,t.Axis=BS,t.env=zp});